Class: Synthesizer::Filter::Serial::Fx

Inherits:
Object
  • Object
show all
Defined in:
lib/synthesizer/filter/serial.rb

Instance Method Summary collapse

Constructor Details

#initialize(fxs) ⇒ Fx

Returns a new instance of Fx.



20
21
22
# File 'lib/synthesizer/filter/serial.rb', line 20

def initialize(fxs)
  @fxs = fxs
end

Instance Method Details

#process(input) ⇒ Object



24
25
26
27
28
29
# File 'lib/synthesizer/filter/serial.rb', line 24

def process(input)
  @fxs.each {|fx|
    input = fx.process(input)
  }
  input
end