Skip to content

A MIDI output plugin example for Node RED based on python-rtmidi.

Notifications You must be signed in to change notification settings

keskival/node-red-contrib-midi-out

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

This is a simple Node-RED module playing MIDI sounds when it receives a Node-RED message.

Currently it plays a sequence of three grand piano notes. Of course it is easy to customize this to play whatever based on the message content.

This could be useful in making silent (pun intended) information happening on the network observable, or for making sound effects for specific events. Beeps are so 1990s anyhow.

Imagine castanets for common events, and taiko drums for more dramatic ones on a production line. Speech and song synthesis (Vocaloid) could be used in the same way.

Usage

This is designed to work on Ubuntu, but with small changes you can make it work on any Linux.

First run: ./install_prerequisites.sh

The start the Fluidsynth daemon: ./start_fs.sh

Then: npm start

Then point your browser to: http://localhost:1880

Then connect for example an inject input module to midi output module, deploy, and then click the button on the inject module. Sounds should ensue.

Potential problems: Currently this is hard coded to use the first MIDI device after the midi-through port, that is the Fluidsynth port. After all, all my computers and my Raspberry Pi have this arrangement. Your mileage might vary. See the code.

Yes, this works on a Raspberry Pi Raspbian (awesomeness...).

Instruments

See this list: https://en.wikipedia.org/wiki/General_MIDI_Level_2

Note: You must subtract 1 from the instrument number, because python-rtmidi starts counting from 0.

Screenshot

screenshot

License: ISC

About

A MIDI output plugin example for Node RED based on python-rtmidi.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published