How to connect my synth to the patch I did?

Nicolas Gomez Salamanca's icon

Hello! I did a patch that play randomly a melody on a piano, and separately I did a "synthesizer" that allows me to change gain values of oscilators and the adsr. Now, I want the random melody being played by my synthesizer and not the piano, and I don't really understand how to connect both. Here I attach my patch.
Thanks for your help!

Both.maxpat
Max Patch


Source Audio's icon

your "synthesizer" uses no velocity, only note number.
delete makenote and noteout and connect note number where stripnote
output was.