It might be a good idea to be more forgiving with arguments for functions instead of throwing an error to ease the friction when live-coding.
For example Note:panning(-2) could just clamp the input to -1 instead of crashing the sketch, the same thing is applicable to other functions that expect ranges, this is especially handy if you are doing something where the argument comes out of some complex calculation, or trying to plug the same thing into different places while experimenting and so on. Having to write defensive code is a bit antithetical to live-coding.
It might be a good idea to be more forgiving with arguments for functions instead of throwing an error to ease the friction when live-coding.
For example
Note:panning(-2)could just clamp the input to-1instead of crashing the sketch, the same thing is applicable to other functions that expect ranges, this is especially handy if you are doing something where the argument comes out of some complex calculation, or trying to plug the same thing into different places while experimenting and so on. Having to write defensive code is a bit antithetical to live-coding.