View Code? Open in Web Editor
NEW
Convert MIDI input from a device to MQTT output for the purposes of home automation interactions.
HTML 2.51%
JavaScript 97.49%
node-midi2mqtt's Introduction
- Clone repo
- npm i
- mv .env.sample .env
- Change values in .env to match mqtt server
- On mac, in spotlight, look for "audio midi setup"
- Click on "View -> Midi something something"
- Double-click on IAC driver and click "enable" checkbox
- (Perform either the keyboard steps, or playing midi file steps below)
- npm run start
- Open localhost:3000 in a browser
- Plug in keyboard
- Plug in audio cable from speakers to mac (optional)
- Open Garage Band
- Go to Audio Midi Setup, double-click the IAC Driver
- Click the "+" sign to add a second Bus
- Open "MuseScore3"
- Click on "Open Score" and select midi file
- Click Preferences -> IO tab
- In MIDI Output dropdown, select the second Bus you just added
- Midi Input should be the first Bus
- Close preferences
- Open Garage Band
node-midi2mqtt's People
Watchers