- You need to have
node
andnpm
on your machine. - Install homebridge.
- Clone this repo
git clone https://github.com/minikin/VoiceControlledDrumMachine.git
- Switch to dir
VoiceControlledDrumMachine
and open project with your favorite text editor i.e.atom .
- Switch to folder (in terminal emulator)
midi-clock
and runnpm i
- Connect your usb to midi device or an interface to a computer
- Open new tab in terminal and run
system_profiler SPUSBDataType
- Find your device. In my case
Sonic Potions USB MIDI
You should see something like this: - Switch to text editor, in folder
midi-clock
openindex.js
replace on line #56 name of midi deviceSonic Potions USB MIDI
with your . - Switch to terminal (folder
midi-clock
) runnpm start
. Set your BPM and keep this tab open and process running! - Switch to text editor, in folder
homebridge-lxr
runnpm i
- In text editor find file
machineConfig.json
- Modify it for your settings and save.
- Open new terminal tab and run
cd /Users/YourUserName/.homebridge-dev/
- Create empty
config.json
file at this folder. - And copy your settings from
machineConfig.json
- Open new terminal tab
- Navigate to a root project path
/VoiceControlledDrumMachine
to folder/homebridge
- Run
DEBUG=* ./bin/homebridge -D -U ~/.homebridge-dev -P ../homebridge-lxr/
- If everything is fine you should see something like this:
- Take your iOS device. Locate and open
Home
app.
19. Press
Add Accessory
button. You might be asked to turn on Bluetooth.
- In case everything is works fine you should see screen with you device
- Select your device. I'll see notification from Apple. Press
Add anyway
.
- Then you need manually enter code (check your terminal)
- After that you'll see a few other screens. The meaning of them is self-explanatory.
Type
should be a Switch
- You finally successfully added your device to Home app!
- Now just ask
Siri
:Siri turn on drum machine, please
😍
Enjoy!
Send me a message @minikin in case you have any questions.