@bonemap

It has been a long time since I have worked with it and I cannot guarantee that it is the right file. I hope it helps, though.

sketch_PIR_MIDI_JF.ino.zip

PS: I used a board Teensy 3.2 for this project

best 

Jean-François