Added example of RPN sequence.

This commit is contained in:
Francois Best 2016-10-07 00:44:03 +02:00
parent 96374a1fa1
commit a8e5b0ba15
1 changed files with 10 additions and 0 deletions

View File

@ -192,4 +192,14 @@ void setup()
void loop() void loop()
{ {
MIDI.read(); 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);
}
} }