Teensy Midi | Pitch Bend Range

Status
Not open for further replies.

ybr

Member
Hi Guys,
I'm creating a midi controller using a Teensy 3.2. I implemented pitch bending and everything is working fine. However, the pitch bend is over an initially undefined range of semitones. I would like to be able to set the device to a specific pitch bend range like 12 or 24. I found how to do it here: http://www.midikits.net/midi_analyser/pitch_bend.htm
Only I do not really have a clue how to implement it within Teensyduino. Is there anyone that can help me out?
Thanks in advance!
 
That reference has some clarity issues.

You send:
usbMIDI.sendControlChange(101, 0, channel)
usbMIDI.sendControlChange(100, 0, channel)
usbMIDI.sendControlChange(6, semiRange, channel)


and then to lock:
usbMIDI.sendControlChange(101, 127, channel)
usbMIDI.sendControlChange(100, 127, channel)



NB - untested ... just my reading of this and other references.
Not sure if you actually need to send the CC=100s as some references seem to suggest you only need those if you're limiting PM to a CENT range; explicit examples, however, seem to send them even if they are just using CC6 and not CC38.
 
Your reference suggests sending:
usbMIDI.sendControlChange(38, 00, channel);
after the CC6 message... others omit.

Some references seem to suggest either 101,00 or 101,00 will lock the RPN while most seem to use both.
 
Last edited:
Status
Not open for further replies.
Back
Top