I’m working on a polyphonic synth. So at the moment whenever a midi key is pressed, the synth plays the sound belonging to that key, until it runs out of voices (then it removes the oldest sound to play the new pressed sound on that voice). The way i do this is simply by implementing the SynthesiserVoice and SynthesiserSound classes and calling the startNote function in the SynthesiserVoices.
But now i want to create an option which makes it possible to call multiple voices (for example one for the pressed midinote and one for a note an octave higher) with one midi keypress. I dont really know how to go about this. Could anyone help me with this?
Thanks so much!