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

Thread Groups

Open samaaron opened this issue 7 years ago • 1 comments

It would be nice to be able to put threads into (nestable) groups which can then be stopped/started/controlled in isolation from other groups.

Currently the big Stop button stops all threads. However, it is often desirable to have some threads doing IO (perhaps mapping MIDI to OSC) which run in the background and aren't stopped when you hit Stop.

One approach would be to have a way of creating an isolated group for new threads to go in. This could be automatically used by the buffers - with each buffer automatically creating and using an implicit group. This would then allow you to start and stop all the running code in a buffer independently from other buffers.

FX chains could also be associated with groups - so that you could fade in/out, silence, solo and modify all audio created by threads in a specific group. It would make sense to map the thread groups with scsynth groups. This would potentially provide a solution for #117.

samaaron avatar Feb 20 '18 13:02 samaaron

I'd like to use this new feature to stop all running play commands and sample commands, but keep all live-loops running. Not sure what a thread is within sonic pi

it-arjan avatar Feb 16 '20 16:02 it-arjan