- Created a program that allows nintendo switch joycons to play a midifile through vibrations
- Utilized HID API hidraw library to interface with joycons
- Built a Song class to interface between music files and joycon vibration output
- Download the release
- Extract exe and dll into the same folder
- Pair Joycons
- Put Midi File into the same directory as the exe
- run musical-joycons.exe
- Input midiFile name, track1 and track2 when prompted
This is specifically made for linux. I will add a windows version later (hopefully)
-
Clone the repository
git clone https://github.com/sarossilli/Musical-Joycons.git
-
Compile the HIDAPI for your system and add lib files to libs folder
Instructions here: https://github.com/libusb/hidapi
-
use the makefile to Compile: use command
make
in terminal -
Connect your Joycons through bluetooth
-
Run the program: use command
./bin/build (midifile).mid track1 track2
Language Used: C++
Libraries:
HIDAPI, using the Linux/hidraw backend. Github Repo Avaliable Here
MIDI file parsing library Github Repo Avaliable [Here] https://github.com/craigsapp/midifile Resources Used:
Nintendo Switch Reverse Engineering. Github Repo Avaliable Here
JoyCon-Driver. Github Repo Avaliable Here