amy icon indicating copy to clipboard operation
amy copied to clipboard

Scheduled changes of wave type from a playing osc crashes on ESP32

Open bwhitman opened this issue 1 year ago • 1 comments

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.

bwhitman avatar Aug 07 '24 03:08 bwhitman

Dan said it may be freq here

https://github.com/shorepine/amy/issues/135#issuecomment-2272893041

bwhitman avatar Aug 07 '24 13:08 bwhitman