Module: Deftones::Core::SignalOperatorMethods
- Included in:
- Signal
- Defined in:
- lib/deftones/core/signal_operator_methods.rb
Instance Method Summary collapse
- #abs ⇒ Object
- #add(value) ⇒ Object
- #equal_power_gain ⇒ Object
- #greater_than(value) ⇒ Object
- #greater_than_zero ⇒ Object
- #modulo(value) ⇒ Object
- #multiply(value) ⇒ Object
- #negate ⇒ Object
- #normalize(min, max) ⇒ Object
- #pow(exponent) ⇒ Object
- #scale(min, max) ⇒ Object
- #scale_exp(min, max, exponent: 2.0) ⇒ Object
- #subtract(value) ⇒ Object
- #to_audio ⇒ Object
- #to_gain ⇒ Object
- #wave_shaper(curve = nil, mapping: nil, &block) ⇒ Object (also: #waveshaper)
Instance Method Details
#abs ⇒ Object
22 23 24 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 22 def abs Abs.new(input: self, context: context) end |
#add(value) ⇒ Object
6 7 8 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 6 def add(value) Add.new(input: self, addend: value, context: context) end |
#equal_power_gain ⇒ Object
26 27 28 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 26 def equal_power_gain EqualPowerGain.new(input: self, context: context) end |
#greater_than(value) ⇒ Object
30 31 32 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 30 def greater_than(value) GreaterThan.new(input: self, threshold: value, context: context) end |
#greater_than_zero ⇒ Object
34 35 36 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 34 def greater_than_zero GreaterThanZero.new(input: self, context: context) end |
#modulo(value) ⇒ Object
38 39 40 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 38 def modulo(value) Modulo.new(input: self, modulus: value, context: context) end |
#multiply(value) ⇒ Object
14 15 16 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 14 def multiply(value) Multiply.new(input: self, factor: value, context: context) end |
#negate ⇒ Object
18 19 20 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 18 def negate Negate.new(input: self, context: context) end |
#normalize(min, max) ⇒ Object
42 43 44 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 42 def normalize(min, max) Normalize.new(input: self, min: min, max: max, context: context) end |
#pow(exponent) ⇒ Object
54 55 56 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 54 def pow(exponent) Pow.new(input: self, exponent: exponent, context: context) end |
#scale(min, max) ⇒ Object
46 47 48 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 46 def scale(min, max) Scale.new(input: self, min: min, max: max, context: context) end |
#scale_exp(min, max, exponent: 2.0) ⇒ Object
50 51 52 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 50 def scale_exp(min, max, exponent: 2.0) ScaleExp.new(input: self, min: min, max: max, exponent: exponent, context: context) end |
#subtract(value) ⇒ Object
10 11 12 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 10 def subtract(value) Subtract.new(input: self, subtrahend: value, context: context) end |
#to_audio ⇒ Object
64 65 66 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 64 def to_audio GainToAudio.new(input: self, context: context) end |
#to_gain ⇒ Object
68 69 70 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 68 def to_gain AudioToGain.new(input: self, context: context) end |
#wave_shaper(curve = nil, mapping: nil, &block) ⇒ Object Also known as: waveshaper
58 59 60 |
# File 'lib/deftones/core/signal_operator_methods.rb', line 58 def wave_shaper(curve = nil, mapping: nil, &block) WaveShaper.new(input: self, curve: curve, mapping: mapping, context: context, &block) end |