Class: MusicBox::Equalizer::EqualizerFilter

Inherits:
Object
  • Object
show all
Includes:
SetParams
Defined in:
lib/musicbox/equalizer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#frequencyObject

Returns the value of attribute frequency.



66
67
68
# File 'lib/musicbox/equalizer.rb', line 66

def frequency
  @frequency
end

#gainObject

Returns the value of attribute gain.



67
68
69
# File 'lib/musicbox/equalizer.rb', line 67

def gain
  @gain
end

#typeObject

Returns the value of attribute type.



69
70
71
# File 'lib/musicbox/equalizer.rb', line 69

def type
  @type
end

#widthObject

Returns the value of attribute width.



68
69
70
# File 'lib/musicbox/equalizer.rb', line 68

def width
  @width
end

Instance Method Details

#to_sObject



73
74
75
76
77
78
79
80
# File 'lib/musicbox/equalizer.rb', line 73

def to_s
  "equalizer=%s" % {
    f: @frequency,
    g: @gain,
    w: @width,
    t: @type,
  }.map { |kv| kv.join('=') }.join(':')
end