Emma Sasonov, 8/1/2023
Purpose: A library to be used on the LEGO SPIKE Prime that allows kids to build instruments with LEGO SPIKE sensors that can play notes through MIDI on GarageBand using an iPad/iPhone. This library contains simple and easy to use functions that can be called to create fun and cool instruments!
*Note: There are several variations of ble_emma... this is because some include automatic port detection while others only work for previous SPIKE firmwares. Some of the latest updates dont work on a few of the librarys.
Instructions:
- Load ble_advertising.py, ble_CBR.py, ble_MIDI, and ble_emma to your SPIKE Prime
- Either use example code to create a music or use functions from my library by importing ble_emma
- Run code (When you run your code, it should say “Waiting.....")
- Open up Garage Band
- Select an Instrument (any instrument!)
- Press the settings button on the top right of your screen (⚙)
- Click Advanced
- Click Bluetooth MIDI Devices
- Select the name that appears (should first say Not Connected and then change to Connected) - Feel free to change the name of the connection in your code!(8 char max)
- Plays some cool music! 🎶 (make sure to use some LEGO SPIKE sensors in your build!)
Once up and running, try recording your music in GarageBand!
Good luck! :)