Class: MusicBox::Equalizer::EqualizerFilter
- Inherits:
-
Object
- Object
- MusicBox::Equalizer::EqualizerFilter
- Includes:
- SetParams
- Defined in:
- lib/musicbox/equalizer.rb
Instance Attribute Summary collapse
-
#frequency ⇒ Object
Returns the value of attribute frequency.
-
#gain ⇒ Object
Returns the value of attribute gain.
-
#type ⇒ Object
Returns the value of attribute type.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#frequency ⇒ Object
Returns the value of attribute frequency.
66 67 68 |
# File 'lib/musicbox/equalizer.rb', line 66 def frequency @frequency end |
#gain ⇒ Object
Returns the value of attribute gain.
67 68 69 |
# File 'lib/musicbox/equalizer.rb', line 67 def gain @gain end |
#type ⇒ Object
Returns the value of attribute type.
69 70 71 |
# File 'lib/musicbox/equalizer.rb', line 69 def type @type end |
#width ⇒ Object
Returns the value of attribute width.
68 69 70 |
# File 'lib/musicbox/equalizer.rb', line 68 def width @width end |
Instance Method Details
#to_s ⇒ Object
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 |