Hi All,
I am playing around with declaring audio objects in a seperate class. In my case, i'm attempting to combine two oscillators in a single voice class that connects to the mixer and audioOutput in the main sketch.
Results have been mixed; i am able to connect a single Audio object from a class to an object in the main sketch like so;
View attachment objecttest.inoView attachment Voice.h
However, when i want to add something with an audioConnection in my class, the Teensy stalls right after being reprogrammed.
View attachment objecttest.inoView attachment Voice.h
Am i trying something impossible here, or simply overlooking a neat solution?
It would be very neat for my synth design, if multiple voices could be declared as classes instead of in the main sketch.
I hope i have made my problem clear, and would like to thank in advance for all the valuable information that can be found in this place!
Best regards,
Kees
I am playing around with declaring audio objects in a seperate class. In my case, i'm attempting to combine two oscillators in a single voice class that connects to the mixer and audioOutput in the main sketch.
Results have been mixed; i am able to connect a single Audio object from a class to an object in the main sketch like so;
View attachment objecttest.inoView attachment Voice.h
However, when i want to add something with an audioConnection in my class, the Teensy stalls right after being reprogrammed.
View attachment objecttest.inoView attachment Voice.h
Am i trying something impossible here, or simply overlooking a neat solution?
It would be very neat for my synth design, if multiple voices could be declared as classes instead of in the main sketch.
I hope i have made my problem clear, and would like to thank in advance for all the valuable information that can be found in this place!
Best regards,
Kees