apparent crash on call to AudioMixer4::gain

Hello everyone! I've been working on a polyphonic synth based around the Teensy and its audio shield & library

while trying to set up unit tests for each of the individual pieces, I seem to be hitting a wall.

Here is a link to all of the files involved in this unit test : https://git.gay/BorealisBlues/False-Idol-DIY-Teensy-Synth/src/branch/main/Code/test/test_SingleVoice

on any given run, the Serial Monitor displays the following
1737559151492.png


and then appears to reboot at the call to
Code:
 this->noteMixer->gain(0, vol1);

I'll admit freely that I'm not the most experienced C++ programmer, and this one has really stumped me

any assistance is appreciated! thank you!
 
Yup, dereferencing uninitialized pointer will crash stuff! If use references rather than pointers this can't happen (but you have to initialize references in the constructor)...
 
Back
Top