Local variable in live loop

Sure, sounds like a good discussion to have. Let’s see what @samaaron thinks :slight_smile:

1 Like

Agreed that this would be lovely to have - but unfortunately it’s not trivial to implement as things currently stand.

The move towards determinism wasn’t part of the original designs of Sonic Pi and only came about after playing with it and exploring the benefits.

The closest we have is reset which resets the thread locals - but doesn’t touch the functions (these aren’t currently deterministic), the time state or the supercollider server (loaded synths, samples, busses etc), the existing threads, the observed incoming cues (used to populate the autocompletion), the GUI preferences, etc. - all of which can be seen as some form of state.

1 Like