class SynthBlocks::Mixer::SendChannel
t Channel subclass specifically for SendChannels
Public Class Methods
new(srate, insert_effects: [], sends: [], preset: {})
click to toggle source
creates new send channel. See MixerChannel#new for parameters
Calls superclass method
SynthBlocks::Mixer::MixerChannel::new
# File lib/synth_blocks/mixer/send_channel.rb, line 10 def initialize(srate, insert_effects: [], sends: [], preset: {}) super(srate, nil, insert_effects: insert_effects, sends: sends, preset: preset) end
Public Instance Methods
run(offset, input)
click to toggle source
run the send channel
# File lib/synth_blocks/mixer/send_channel.rb, line 16 def run(offset, input) out = @eq.run(input) @insert_effects.each do |effect| out = effect.run(out) end @output = out * @preset[:volume] end