Your best bet on understanding the signal flow would be to lay this out in the audio design tool.
One possible solution would be to replace:
AudioConnection patchCord2(mixer, 0, notefreq, 0);
with
AudioConnection patchCord2(playSdWav1, 0, notefreq, 0);