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

Thread: usbMIDI wierdness when controlling some VSTs as opposed to 5 pin MIDI

  1. #1
    Junior Member
    Join Date
    Mar 2021
    Posts
    5

    usbMIDI wierdness when controlling some VSTs as opposed to 5 pin MIDI

    Hi Everyone
    This is a very strange one. Some of my VSTs respond perfectly to switch or button changes while using my diy teensy LC controller. Others will switch once and get stuck. The controller is sending 7F and 00 commands while toggling. My Arduino Nano controller using traditional 5 pin midi with the same VSTs behave perfectly while sending the same commands. While running MIDIOX the commands look perfect so I'm confused as to the different responses .My question is there something I'm missing ?
    I can post code but that doesn't seem to be the issue

  2. #2
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    1,402
    If it's not your code what would it be?

    Teensy run many, many, many times faster than a Nano and so buttons need to be debounced more carefully.

    Another possibility is not clearing the MIDI queue for incoming MIDI.

    Quote Originally Posted by PJRC
    MIDI controllers which only transmit data should be designed to read and ignore all incoming messages. If MIDI-OX or similar software is sending messages to Teensy, this simple code will prevent problems with USB buffers filling up with never-read messages.

    // MIDI Controllers should discard incoming MIDI messages.
    while (usbMIDI.read()) {
    // read & ignore incoming messages
    }
    That could explain only some 'getting stuck' if they are sending MIDI feedback and others are not.

Posting Permissions

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