Scheduled changes of wave type from a playing osc crashes on ESP32
This is an edge case, fixed by resetting the oscs before doing this. But on ESP32 in Arduino, at least, you'll get a reboot if you do e..g
amy.send_message("v0f220l1");
long clock = amy.sysclock();
amy.drums(clock+5000, 2);
Where amy.drums() does NOT reset osc 0 before changing it to e.wave=PCM; e.patch=X;. We are committing a change so that the example code now does this reset, but this may bite other use cases.
This does not happen on macOS.
I feel like something in the ESP renderer (note, DAN, this is single core mode) is not happy with the state change while it's reading from a LUT. We can debug this with JTAG later if we need to fix this.
For now, the underlying thing is fixed in the example code.
Dan said it may be freq here
https://github.com/shorepine/amy/issues/135#issuecomment-2272893041