From a8e5b0ba15b68ac646ea8f58d9ab2e590e2e0b54 Mon Sep 17 00:00:00 2001 From: Francois Best Date: Fri, 7 Oct 2016 00:44:03 +0200 Subject: [PATCH] Added example of RPN sequence. --- res/Examples/MIDI_RPN_NRPN/MIDI_RPN_NRPN.ino | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/res/Examples/MIDI_RPN_NRPN/MIDI_RPN_NRPN.ino b/res/Examples/MIDI_RPN_NRPN/MIDI_RPN_NRPN.ino index 587aad2..17155cd 100644 --- a/res/Examples/MIDI_RPN_NRPN/MIDI_RPN_NRPN.ino +++ b/res/Examples/MIDI_RPN_NRPN/MIDI_RPN_NRPN.ino @@ -192,4 +192,14 @@ void setup() void loop() { MIDI.read(); + + // Send a RPN sequence (Pitch Bend sensitivity) on channel 1 + { + const midi::Channel channel = 1; + const byte semitones = 12; + const byte cents = 42; + MIDI.startRpn(midi::PitchBendSensitivity, channel); + MIDI.sendRpnValue(semitones, cents, channel); + MIDI.endRpn(channel); + } }