Hi Garry
I've got a Yamaha PSR-EW400 which has usbmidi interface and I've just plugged into my RaspberryPi and imported the node-red-contrib-midi from the pallette
You can then just send midi sequences as triplet arrays [144,60,64] plays note on, middle c, velocity =64
my current flow is
[{"id":"5365e08b.f65b7","type":"inject","z":"7698c679.9464c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":440,"wires":[["5b2da726.a730e8"]]},{"id":"5b2da726.a730e8","type":"change","z":"7698c679.9464c8","name":"Set Notes Red","rules":[{"t":"set","p":"payload","pt":"msg","to":"[[[144,66,64],0],[[144,68,64],300],[[144,64,64],500],[[144,68,64],1100],[[144,66,64],1600],[[144,64,64],1800],[[144,61,64],2000]]","tot":"json"},{"t":"set","p":"delay","pt":"flow","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":440,"wires":[["8c711781.e0ef48"]]},{"id":"8c711781.e0ef48","type":"function","z":"7698c679.9464c8","name":"Fan In","func":"\nreturn msg;","outputs":1,"noerr":0,"x":570,"y":420,"wires":[["83e24321.71d46"]]},{"id":"83e24321.71d46","type":"split","z":"7698c679.9464c8","name":"","splt":":","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":710,"y":420,"wires":[["e0caf71e.3af558"]]},{"id":"e0caf71e.3af558","type":"change","z":"7698c679.9464c8","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"payload[1]","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"payload[0]","tot":"msg"},{"t":"set","p":"delay","pt":"flow","to":"delay + flow.delay","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":420,"wires":[["69cc0da2.69f884","b4b5cfbb.e5f0b"]]},{"id":"69cc0da2.69f884","type":"delay","z":"7698c679.9464c8","name":"Variable Delay","pauseType":"delayv","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1060,"y":420,"wires":[["e16ad1a.f8b003"]]},{"id":"e16ad1a.f8b003","type":"function","z":"7698c679.9464c8","name":"Fan In","func":"\nreturn msg;","outputs":1,"noerr":0,"x":1190,"y":360,"wires":[["309d7fd3.e7","f60edd36.595f5"]]},{"id":"309d7fd3.e7","type":"midi out","z":"7698c679.9464c8","name":"MidiOut","midiport":"1","x":1320,"y":460,"wires":[]}]
but I'm working on making it better as I really just want to specify notes as C2,E3 etc and I want the delay times to be relative and not absolute
Simon