sonic-pi
sonic-pi copied to clipboard
with_synth options
Same as with_fx
, I thought I was able to do this,
live_loop :foo do
with_synth :dsaw, detune: [0.1, 0.4].choose do |s|
play :e1, release: 8, cutoff: rrand(70, 130)
sleep 8
end
end
Would it be nice to add options to with_synth
block?
@samaaron given that code snippets such as the above currently print out the following error message:
Runtime Error: [buffer 9, line 2] - RuntimeError
Thread death +--> :live_loop_foo
with_synth does not accept opts such as {detune: 0.4}.
Consider using with_synth_defaults.
Do we take the resulting error message to be the desired behaviour?