sonic-pi icon indicating copy to clipboard operation
sonic-pi copied to clipboard

with_synth options

Open tercerapersona opened this issue 8 years ago • 1 comments

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?

tercerapersona avatar Jun 10 '16 01:06 tercerapersona

@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?

ethancrawford avatar Oct 01 '21 08:10 ethancrawford