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

Thread: Teensy 3 + Ableton, Analog CC causes midi crash.

Threaded View

  1. #1

    Teensy 3 + Ableton, Analog CC causes midi crash.

    Hi!

    I'm trying to use my new Teensy 3.0 as a USB MIDI device. It seems to work great for digital inputs, such as the 'Buttons' example.

    However I'm hoping to use it mostly for analog inputs, potentiometers and so on. I've tried a number of different approaches to the code, but the most basic is:

    Code:
    void setup() {
    }
    void loop() {
       usbMIDI.sendControlChange(1, analogRead(0)>>3, 1);
       delay(10); 
    }
    I have this set up with a standard potentiometer. When I use this code, or pretty much any other code that uses usbMIDI.sendControlChange(), this works perfectly in Max/MSP. It is stable and I get normal CC readings, all is well.

    However, in Ableton Live this does not work properly. It will work for a few moments (maybe up to 30 seconds maximum) before the MIDI input starts to overload (visualised by the orange flashing box in the upper right hand corner of Live) and eventually the Teensy board stops responding and sending MIDI. Resetting the board gets it working again, with the same result.

    It's very strange to me that the MIDI sending works perfectly in Max/MSP but not in Ableton!

    I have tried a number of approaches - for example, I get the same result even if I use a very high value in the delay() function of the code.

    It seems like someone else had a similar problem: http://forum.pjrc.com/threads/24012-...-MIDI-crashing

    Any solutions or ideas?

    using Mac OS 10.8.4, Teensy 3.0, Teensyduino 1.15, Arduino 1.0.5, Ableton 9.0.5
    Last edited by amazingrolo; 09-06-2013 at 10:21 AM.

Tags for this Thread

Posting Permissions

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