The Node-Red Midi Piano Octave

This flow uses multiple inject nodes and the midi out node to produce a super awesome piano octave (c6 - c7) to play with. There are also some fancy "note off" buttons too to turn off the notes after playing them.

It is a byproduct of my current work with midi on the raspberry pi for debugging

[{"id":"a9ebf6f8.31a018","type":"comment","z":"f2cd3368.25d428","name":"The Node-Red Midi Piano Octave","info":"","x":150,"y":320,"wires":[]},{"id":"a8c9bbb7.ad3728","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,96,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":120,"y":400,"wires":[["6234cfb8.6be47"]]},{"id":"6234cfb8.6be47","type":"midi out","z":"f2cd3368.25d428","name":"","midiport":"0","x":440,"y":540,"wires":[]},{"id":"a85d4048.b003f","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,84,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":120,"y":680,"wires":[["6234cfb8.6be47"]]},{"id":"4c53988e.d11458","type":"inject","z":"f2cd3368.25d428","name":"C7 Note Off","topic":"","payload":"[170, 134, 96, 126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":130,"y":400,"wires":[["6234cfb8.6be47"]]},{"id":"c852d7dd.fcca08","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,95, 100]","payloadType":"json","repeat":"","crontab":"","once":false,"x":130,"y":440,"wires":[["6234cfb8.6be47"]]},{"id":"2b8f08a9.5d6f38","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,93,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":120,"y":480,"wires":[["6234cfb8.6be47"]]},{"id":"1b0e5e53.efa812","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,91,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":120,"y":520,"wires":[["6234cfb8.6be47"]]},{"id":"b75ed66d.a34c08","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,89,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":120,"y":560,"wires":[["6234cfb8.6be47"]]},{"id":"4b8094e2.47246c","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,88,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":120,"y":600,"wires":[["6234cfb8.6be47"]]},{"id":"c18fb6a0.cbd988","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,86,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":120,"y":640,"wires":[["6234cfb8.6be47"]]},{"id":"997a80bc.8ee24","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150, 94,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":150,"y":460,"wires":[["6234cfb8.6be47"]]},{"id":"8e9e992c.45a8a8","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,92,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":140,"y":500,"wires":[["6234cfb8.6be47"]]},{"id":"7c824ca5.18a0b4","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,87,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":140,"y":620,"wires":[["6234cfb8.6be47"]]},{"id":"40aa7760.6a7d98","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 150,85,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":140,"y":660,"wires":[["6234cfb8.6be47"]]},{"id":"f46d7fa4.b29c9","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134,92,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":160,"y":500,"wires":[["6234cfb8.6be47"]]},{"id":"69cc5d95.0c53f4","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134, 94,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":170,"y":460,"wires":[["6234cfb8.6be47"]]},{"id":"ac7dd276.06918","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134, 95,100]","payloadType":"json","repeat":"","crontab":"","once":false,"x":150,"y":440,"wires":[["6234cfb8.6be47"]]},{"id":"1ca0becb.702111","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134, 93,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":150,"y":480,"wires":[["6234cfb8.6be47"]]},{"id":"3c507c57.277724","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134, 91,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":150,"y":520,"wires":[[]]},{"id":"3dc90fb9.8349","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134,89,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":140,"y":560,"wires":[["6234cfb8.6be47"]]},{"id":"5ec91ec.01a06e","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134,88,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":140,"y":600,"wires":[["6234cfb8.6be47"]]},{"id":"f2475f61.6d1dd","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134,87,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":160,"y":620,"wires":[["6234cfb8.6be47"]]},{"id":"999f70a8.2c73","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134,86,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":140,"y":640,"wires":[["6234cfb8.6be47"]]},{"id":"31843d5f.b39ee2","type":"inject","z":"f2cd3368.25d428","name":"","topic":"","payload":"[170, 134,85,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":160,"y":660,"wires":[["6234cfb8.6be47"]]},{"id":"b60aeabe.5b1608","type":"inject","z":"f2cd3368.25d428","name":"C6 Note Off","topic":"","payload":"[170, 134,84,126]","payloadType":"json","repeat":"","crontab":"","once":false,"x":130,"y":680,"wires":[["6234cfb8.6be47"]]},{"id":"4cdcbd92.1f8a74","type":"comment","z":"f2cd3368.25d428","name":"Note On","info":"","x":80,"y":360,"wires":[]},{"id":"8ac48c2e.823c9","type":"comment","z":"f2cd3368.25d428","name":"Note Off","info":"","x":180,"y":360,"wires":[]}]
MarkusWals

Flow Info

created 10 months ago

Node Types

Core
  • comment (x3)
  • inject (x24)
Other

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option