Module: Deftones::Core::SignalOperatorMethods

Included in:
Signal
Defined in:
lib/deftones/core/signal_operator_methods.rb

Instance Method Summary collapse

Instance Method Details

#absObject



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_gainObject



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_zeroObject



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

#negateObject



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_audioObject



64
65
66
# File 'lib/deftones/core/signal_operator_methods.rb', line 64

def to_audio
  GainToAudio.new(input: self, context: context)
end

#to_gainObject



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