Class: Tone::Effect::Distortion

Inherits:
Base
  • Object
show all
Defined in:
lib/tone/effect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value: 0.4) ⇒ Distortion

Returns a new instance of Distortion.



52
53
54
55
# File 'lib/tone/effect.rb', line 52

def initialize(value: 0.4)
  @value = value
  super `new Tone.Distortion(value)`
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



50
51
52
# File 'lib/tone/effect.rb', line 50

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
# File 'lib/tone/effect.rb', line 57

def ==(other)
  super && value == other.value
end