Hi,
I’m looking for a tool to teach python to musicians. I love Scamp for its simplicity but I would like to use it in a context of improvising musical algorithms in real time, as in the practice of livecoding.
Live coding involves manipulating, redefining, or altering software while it’s running. This approach explores hot swapping, reloading, or re-compiling parts of a software stack without interruption.
It looks complicated in scamp. I have tried sending portions of code to run directly in the python interpreter. But the interpreter becomes unusable while running an infinite loop.
I tried with fork_unsynchronized() but I get the following error " WARNING:root:Ran out of threads in the master clock’s ThreadPool; small thread creation delays may result. You can increase the number of threads in the pool to avoid this."
Can you think of a solution?
Do you think it is possible to modify the scamp code for this kind of multi-threading?
Sending code to several different interpreters is possible but not very elegant, and audio is not very reliable.
Thanks a lot