Control GPIO with Note Data (example_1_key_press.py) This example shows how to: Listen for 3 specific note-on and note-off events using a simple condition Catch the exceptions that arise when non-note data is sent to the Pi (e.g. transport data from a sequencer) Map the note velocity to the PWM of the output pin Import the [...]The post Setting-up Raspberry Pi for MIDI appeared first on OSA Electronics.