Giter Site home page Giter Site logo

cybercom-finland / node-red-contrib-midi-out Goto Github PK

View Code? Open in Web Editor NEW

This project forked from keskival/node-red-contrib-midi-out

0.0 20.0 0.0 68 KB

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

Shell 15.35% HTML 24.97% JavaScript 15.18% Python 44.50%

node-red-contrib-midi-out's Introduction

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

node-red-contrib-midi-out's People

Watchers

Jussi Sorjonen avatar Markus Linnala avatar Tero Keski-Valkama avatar James Cloos avatar Toni Ylenius avatar Toni Helminen avatar Ilkka Virtanen avatar Michał Jędryszka avatar Rolf Koski avatar Are Vaskela avatar  avatar Juha Aaltonen avatar  avatar  avatar  avatar  avatar Timo Myllymäki avatar Teemu Kankaanranta avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.