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

Thread: Midi Footswitches not working

  1. #1
    Junior Member
    Join Date
    Nov 2018
    Posts
    2

    Midi Footswitches not working

    Hello! Attached is the example code for midi buttons. I have a pedalboard with 14 latching footswitches that i am trying to get to send midi on/off signals into a DAW through the teensy board. My problem is I haven't been able to get any midi signals to go through. Even with the example code, some of the pins that are being used for foot switches on the board do not work. I already have it set to USB midi in tools, so I don't believe that is the problem, and it registers on my audio midi devices on my mac, but it does not seem to be working still. I have also tried to use the examples from the bounce.h library but it seems to still be doing the same thing, registers the teensy midi device but no midi input. Any help would be much appreciated!
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Nov 2018
    Posts
    2
    Also I forgot to mention that I am using a teensy 2.0 board

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,354
    I uploaded your code to a T2 and then used MIDI-Ox on Win 10 to monitor the MIDI messages. I grounded each of pins 0 to 11 in turn and Midi-Ox saw a note-on and note-off for each pin.
    Code:
     ===> MIDI-OX Version: 7.0.2.372
     ===> Log Opened: Sat 17-Nov-2018 15:07:22 ===>
     TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT               
     0004C733   2  --     90    3C    63    1  C  4 Note On               
     0004C87B   2  --     80    3C    00    1  C  4 Note Off              
     0004CC06   2  --     90    3D    63    1  C# 4 Note On               
     0004CD20   2  --     80    3D    00    1  C# 4 Note Off              
     0004D0E8   2  --     90    3E    63    1  D  4 Note On               
     0004D230   2  --     80    3E    00    1  D  4 Note Off              
     0004D4E0   2  --     90    3F    63    1  Eb 4 Note On               
     0004D667   2  --     80    3F    00    1  Eb 4 Note Off              
     0004DBD5   2  --     90    40    63    1  E  4 Note On               
     0004DC71   2  --     80    40    00    1  E  4 Note Off              
     0004E0C7   2  --     90    41    63    1  F  4 Note On               
     0004E182   2  --     80    41    00    1  F  4 Note Off                         
     0004EB46   2  --     90    42    63    1  F# 4 Note On               
     0004EE82   2  --     80    42    00    1  F# 4 Note Off              
     0004F21D   2  --     90    43    63    1  G  4 Note On               
     0004F559   2  --     80    43    00    1  G  4 Note Off              
     0004F8B4   2  --     90    44    63    1  G# 4 Note On               
     0005022A   2  --     80    44    00    1  G# 4 Note Off              
     000506BE   2  --     90    45    63    1  A  4 Note On               
     00050826   2  --     80    45    00    1  A  4 Note Off              
     00050FD6   2  --     90    46    63    1  Bb 4 Note On               
     0005110F   2  --     80    46    00    1  Bb 4 Note Off              
     0005212D   2  --     90    47    63    1  B  4 Note On               
     00052294   2  --     80    47    00    1  B  4 Note Off              
     <=== MIDI-OX Log Closed: Sat 17-Nov-2018 15:08:41 <===
    There must be something wrong with the pedalboard connections. Try connecting a grounded wire directly to each of the T2 pins in turn to see if that generates the messages.

    Pete

Posting Permissions

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