2021-01-08 22:35:08 +00:00
midiOSCesp v0.1
2021-01-06 02:48:09 +00:00
By Sam Neurohack
2021-01-08 22:35:08 +00:00
Forward incoming midi messages as OSC message (UDP) to micropython host to trigger hardware event. In example : noteon, noteoff lights on/off some leds connected to an ESP 8266.
Remember to edit netconf.py for network/OSC configuration.
2021-01-16 20:45:00 +00:00
In this early version you also need to edit in main.py :
- On your midikeyboard the left key midi notenumber : i.e leftnote = 36
- motherip and motheroscport if you want some debug information.
2021-01-08 22:35:08 +00:00
Connect the led strip data line to D5 (GPIO 14)
2021-01-16 20:45:00 +00:00
How it works ?
2021-01-08 22:35:08 +00:00
* Computer side : List and hook to all midi devices (real or virtual). OSC commands generated from incoming midi messages :
2021-01-16 18:57:46 +00:00
- /noteon midichannel, note, velocity
- /noteoff midichannel, note
- /rawcc midichannel, CCnumber, CCvalue
2021-01-08 22:35:08 +00:00
- /clock
- /start
- /stop
* Micropython/ESP side :
2021-01-16 18:57:46 +00:00
- interpret /noteon and /noteoff and switch one led in a led strip. Changing or adding functions to clock or other midi msg is easy, look lserver.py.
2021-01-08 22:35:08 +00:00
- ESP 8266 from https://www.wemos.cc/en/latest/d1/d1_mini_lite.html
- Micropython firmware (select v1.13 with the right RAM amount): https://micropython.org/download/esp8266/
- Flash firmware, upload python files, run files,... thonny IDE : https://thonny.org/
- Great tutorials : https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/
2021-01-06 02:49:47 +00:00
2021-01-16 20:45:00 +00:00
* midi learning software :
2021-01-06 02:48:09 +00:00
2021-01-16 20:45:00 +00:00
- This has been tested with Synthesia.
- Synthesia/Neothesia hook to midi OUT ports to send light guidance and obviously midiOSCesp listen to INcoming events. So you need to create a virtual midi port will forward event sent to its OUT port and to its IN port. https://help.ableton.com/hc/en-us/articles/209774225-How-to-setup-a-virtual-MIDI-bus
2021-01-06 02:49:47 +00:00
2021-01-06 02:48:09 +00:00
More soon...