Anyone working with sapf playing around with go / sleep ? and have a very simple example you can share… this plays the fist square but not the sine in the function.
The sleep function performs a side effect – sleeping the current thread. The go function spawns a thread that runs the argument function. go returns no value. The functions like steps, sinosc etc. compose lazy lists producing audio. The audio functions and thread functions don’t compose with each other. But, if you add a play into the inner function this example can work.