Skip to content

Python script to bridge MIDI messages between WiFi (WS, DS, OCS) to a virtual port for further handling.

Notifications You must be signed in to change notification settings

pperrin/midibridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

midibridge

A python script which listens for incoming WiFi MIDI messages and passes them to a virutal port where they can be be further proccessed by (say) mididings.

I wrote it to use my Model A Raspberry Pi as a wireless controller for a whole load of Midi Kit

The IP addresses and ports are currently hardcoded - change them to suit your own setup!

Incoming Formats

There are many 'standards' for MIDI over WiFi, this script listens for:-

DSMidi

* http:https://dsmi.tobw.net
* https://code.google.com/p/dsmi/

Websockets

* WS:\<addr\>:\<port\>

###OSC - open sound control OSC can transmit binary MIDI messages (I think!), but tends to be used to transmit user defined text message.

The script currently recognises messages in the format
/midi/note_on/<note>
/midi/note_off/<note>
/midi/polytouch/<note>
/midi/control_change/<control>/<value>
/program_change/<program>

Outgoing Format

A single RTMidi virtual port.

Dependencies

This took ages of digging around/experimenting, along the way I did all of the following(!)

wget https://bootstrap.pypa.io/get-pip.py
chmod 755 get-pip.py
sudo python get-pip.py
sudo pip install mido
#sudo apt-get install libportmidi-dev
sudo pip install python-rtmidi


sudo apt-get install build-essential
sudo apt-get install libasound2-dev
sudo apt-get install librtmidi1
sudo apt-get install libjack-jackd2-dev
sudo pip install python-rtmidi

sudo apt-get install librtaudio-dev
sudo apt-get install librtmidi-dev
sudo pip install python-rtmidi

wget http:https://pp.com.mx/python/alsaseq/alsaseq-0.4.1.tar.gz
tar xf alsaseq-0.4.1.tar.gz
cd alsaseq-0.4.1
python setup.py build

sudo apt-get install python-dev
(needed to compile some of the other python stuff that didn't work(!).

python setup.py build

About

Python script to bridge MIDI messages between WiFi (WS, DS, OCS) to a virtual port for further handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages