Skip to content

Instantly share code, notes, and snippets.

@johnty
Created July 7, 2016 21:50
Show Gist options
  • Select an option

  • Save johnty/37a1d685c9061a1f1c01f3a9630b5191 to your computer and use it in GitHub Desktop.

Select an option

Save johnty/37a1d685c9061a1f1c01f3a9630b5191 to your computer and use it in GitHub Desktop.
simple node-red flow for displaying MIDI messages. requires node-red-contrib-ui and node-red-contrib-midi
[{"id":"c2c6477f.a696e8","type":"midi","z":"29801501.b12f9a","name":"MIDI In","filtermessage":"","port":"1","x":72,"y":42,"wires":[["a8489adb.12f6c8"]]},{"id":"a8489adb.12f6c8","type":"template","z":"29801501.b12f9a","name":"grab midi msg","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.message}}","x":139,"y":90,"wires":[["6a918548.45b34c"]]},{"id":"6a918548.45b34c","type":"csv","z":"29801501.b12f9a","name":"","sep":",","hdrin":"","hdrout":"","multi":"one","ret":"\\n","temp":"","x":217,"y":41,"wires":[["cc1b3fe4.be9cc","7a9da23f.8e6a2c","fbdad48.cbcff28"]]},{"id":"cc1b3fe4.be9cc","type":"template","z":"29801501.b12f9a","name":"col1","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.col1}}","x":319,"y":83,"wires":[["b7bcfdb6.33e0f"]]},{"id":"7a9da23f.8e6a2c","type":"template","z":"29801501.b12f9a","name":"col2","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.col2}}","x":318.5,"y":117,"wires":[["3cd89838.d41078"]]},{"id":"fbdad48.cbcff28","type":"template","z":"29801501.b12f9a","name":"col3","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.col3}}","x":319.5,"y":151,"wires":[["4290cc8e.4d81b4","87071e9.6820ce"]]},{"id":"b7bcfdb6.33e0f","type":"ui_text","z":"29801501.b12f9a","tab":"e3257868.dcaa18","name":"byte 1","group":"MIDI Input","order":1,"format":"{{msg.payload}}","x":437,"y":83,"wires":[]},{"id":"3cd89838.d41078","type":"ui_text","z":"29801501.b12f9a","tab":"e3257868.dcaa18","name":"byte 2","group":"MIDI Input","order":1,"format":"{{msg.payload}}","x":437.5,"y":117,"wires":[]},{"id":"4290cc8e.4d81b4","type":"ui_text","z":"29801501.b12f9a","tab":"e3257868.dcaa18","name":"byte 3","group":"MIDI Input","order":1,"format":"{{msg.payload}}","x":436.5,"y":151,"wires":[]},{"id":"87071e9.6820ce","type":"ui_slider","z":"29801501.b12f9a","tab":"e3257868.dcaa18","name":"Velocity","topic":"","group":"MIDI Input","order":1,"min":0,"max":"127","x":447,"y":186,"wires":[[]]},{"id":"e3257868.dcaa18","type":"ui_tab","z":"bc7ea069.67a99","name":"Sensors","icon":"dashboard","order":"1"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment