Originally Posted by
wcalvert
Hmm... well, "voiceToUse + 8" certainly looks suspect.
If voiceToUse + 8 goes beyond the size of the array, it will probably lock the Teensy up. I'm amazed it's not locking up as is.
I loaded syntharch.h into the GUI tool to see how you've wired everything up. It might be worth pressing the pause button for a second. If you're wanting to have 2 oscillators per voice, and you have 32 oscillators, then NUM_VOICES really needs to be 16, and you'll probably want some way of grouping up the oscillators to make it easy to manage the voices, including turning notes on and off, and setting the first oscillator in the voice to one waveform, and the second oscillator in the voice to another waveform.
I might have time to post a full working example later, once I dig up some pots... I use all encoders on mine, heh.