Class: Synthesizer::Filter::Parallel
- Inherits:
-
Object
- Object
- Synthesizer::Filter::Parallel
- Defined in:
- lib/synthesizer/filter/parallel.rb
Defined Under Namespace
Classes: Fx
Instance Method Summary collapse
- #generator(note_perform, samplecount) ⇒ Object
-
#initialize(*filters) ⇒ Parallel
constructor
A new instance of Parallel.
Constructor Details
#initialize(*filters) ⇒ Parallel
Returns a new instance of Parallel.
4 5 6 |
# File 'lib/synthesizer/filter/parallel.rb', line 4 def initialize(*filters) @filters = filters end |
Instance Method Details
#generator(note_perform, samplecount) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/synthesizer/filter/parallel.rb', line 8 def generator(note_perform, samplecount) filter_mods = @filters.map {|filter| filter.generator(note_perform, samplecount) } -> { fxs = filter_mods.map(&:[]) Fx.new(fxs) } end |