Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Teensy Midi | Pitch Bend Range

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    9

    Teensy Midi | Pitch Bend Range

    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!

  2. #2
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    1,347
    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.

  3. #3
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    1,347
    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 by oddson; 12-05-2016 at 05:36 PM. Reason: dyslexia corrected

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •