You will need to share more information. Do you want to use a synth to actually produce the sounds for example? Or just use your client browser?
Also, what part does node-red play? If you use the browser for the sound, you can do it all in the front-end and wouldn't need node-red at all.
If you want to connect a synth, you will need to either use node-red or the browser to output the midi data to the synth, the choice of which is down to where the synth is connected physically.