Search results

  1. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    MIDI in works fine but the signal seems to be jumping to adjacent pins. Down on pin 7 it was between the clock and latch pins of my serial display causing all kinds of weird things to happen. I figured I'd just fiddled with pin 7 one too many times so I moved MIDI in back up to pin 0. Pin 1 is a...
  2. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    Ok. I plan to go ahead and use Serial1 for the MIDI input on the final layout anyway. But that's good info.
  3. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    Final answer...YES, Teensy 3.x (and presumably LC) can receive MIDI on all three serial ports. I moved the MIDI input to pin 0 and, when that wasn't working, I knew I had some wires crossed on my MIDI circuit. I sorted that out and got it working on Serial1 but I figured it would be more...
  4. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    Thanks for doing that. I tried "Serial.print(Serial3.read());" too and I just got "-1" streaming across the page. Then I tried this... if (Serial3.read != -1){ Serial.print("MIDI"); } Still can't get notes to register. You say Serial1 and Serial2 work ok though?
  5. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    Ok thanks. Am I getting any closer with this... #include "Arduino.h" #include <MIDI.h> void noteoff(byte channel, byte note, byte velocity){ Serial.println("note OFF"); } void noteon(byte channel, byte note, byte velocity){ Serial.println("note ON"); } void setup() {...
  6. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    Thanks. I'm actually trying to go the opposite direction though. I want the MIDI out from my drum pad to run into the MIDI IN connector I have set up on pin 7 of the Teensy. Then I want the Teensy to send that MIDI info through usbMIDI to the computer.
  7. M

    How hard can this be!!! MIDI CC to Hardware

    I think you're just missing some square brackets and, if you need a value from 0 to 63, divide by 16 instead of 8. #include <MIDI.h> // Variables: int cc = 1; int AnalogValue[2] = {0,0}; // define variables for the controller data int lastAnalogValue[2] = {0,0}; // define the "lastValue"...
  8. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    I've got an Alesis Performance Pad plugged into a MIDI IN connector which is routed to pin 7 on my Teensy 3.1 according to (the left side of) this schematic. The quality of my craftsmanship is certainly in question but I want to make sure I'm testing with code that should definitely be working...
  9. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    That's good to know. It means 3 things. 1) Maybe MIDI.h needs an update. 2) I don't need to re-solder anything. 3) My problem with getting MIDI input is something else. For starters I've edited MIDI.h to use serial port 3 and I'm trying this... #include <MIDI.h> void setup() {...
  10. M

    Can Teensy 3.x receive MIDI on pin 7 or 9? Or is it really only Serial1?

    MIDI.h says... // Use Serial1 on all Teensy boards, because Serial is USB virtual serial // Arduino.h must be included before MIDI.h to define CORE_TEENSY #if defined(CORE_TEENSY) #undef USE_SERIAL_PORT #define USE_SERIAL_PORT Serial1 #endif ...but the date on that file is older than...
  11. M

    Analog input protection

    Do you currently have working code to translate the analog range of the expression pedal to MIDI? If so, you should post it. It may be as simple as changing a "1023" to a "1011" (that's the max analog I get with a 100 ohm resistor). Use "Examples/Teensy/Tutorial4/AnalogInput" to be sure.
  12. M

    stabilize analog input

    Encoders are handy for some things like having your code set its value without having to physically turn the knob. But they're not without their own complications. For example the number of pulses isn't necessarily 1 per detent (the quadratic encoder I have is 4 pulses per detent). More...
  13. M

    stabilize analog input

    Encoders are handy for some things like having your code set its value without having to physically turn the knob. But they're not without their own complications. For example the number of pulses isn't necessarily 1 per detent (the quadratic encoder I have is 4 pulses per detent). Also, you're...
  14. M

    Using Serial and MIDI USB types at the same time

    I can't see a problem with yours but here's the one I use. #elif defined(USB_MIDI) #define VENDOR_ID 0x16C0 #define PRODUCT_ID 0x0485 #define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'} #define MANUFACTURER_NAME_LEN 11 #define PRODUCT_NAME...
  15. M

    Building A 25-Key Midi Pedalboard

    Nice work! I'd be interested to know why you're not getting the info in MIDI-OX with this setup.
  16. M

    Teensy FSR based MIDI controller

    No, it's not analog. The way I understood the 2-pin approach is (I'm sure the 1-pin approach is similar), a send pin sends a pulse and the time it takes for the pulse to reach the receive pin is measured. Any capacitive object (like a finger) slows that time down and that's what gives you a...
  17. M

    Teensy FSR based MIDI controller

    First of all, I think it's pretty amazing that I can yank a stainless steel business card case out of my desk, stick it to a single pin on the LC and nothing more is needed for a touch sensitive input. It works great for on/off and I get good variable readings when my finger gets about 6 inches...
  18. M

    Teensy FSR based MIDI controller

    @adrian Is there a way to get accurate velocity with capacitive sensors? That would be awesome! Cap sens is great for on/off input without any of the mechanical noise most buttons have and I know they can be used for variable input too. The only thing you need to get them working is a couple of...
  19. M

    stabilize analog input

    +1 to 'deadspots'. Most people's instinct (including mine) is to limit the frequency of readings. I've found it much more effective to ignore intermittent analog values. e.g. int previousA0 = -1; int n0 = analogRead(A0); if (n0 % 16 == 0 && n0 != previousA0) { n0 = n0 / 16...
  20. M

    Displaying outgoing usbMIDI info onboard

    Um...never mind. I guess it's not so unreasonable to have a read() function actually return a value and then have a for loop that calls the display() function for each of those inputs...I'll show myself out.
  21. M

    Teensy FSR based MIDI controller

    @Adrian. That code would send several note ons per hit and a note off for every cycle that the analog reading is below the threshold. That's a lot of MIDI even if you're only reading one FSR. Have a look at the code in post #3. It ain't pretty but it only sends what's needed.
  22. M

    Displaying outgoing usbMIDI info onboard

    It'll print to the serial monitor (while sending usbMIDI) if I put the call to Serial.println() right after usbMIDI.sendControlChange(). But that's beside the point because I don't really want to display them on the serial port anyway (I'm just trying to debug). I really just want the value of...
  23. M

    Teensy FSR based MIDI controller

    That's pretty much how it works. A note is triggered any time an analog reading breaks the threshold but higher velocities are only triggered when there is a SUDDEN change in the analog reading. It sounds like the "reading dual microswitch" approach would be way more efficient and cost effective...
  24. M

    Displaying outgoing usbMIDI info onboard

    I've got a MIDI controller with several inputs and a 7-segment LED that I'd like to have display the Control Numbers or Values of outgoing usbMIDI messages. "usbMIDI.read()" is only for incoming MIDI, correct? This code does NOT WORK. This is only how my mind wants it to work. #include...
  25. M

    Teensy FSR based MIDI controller

    I just finished a class that reads velocity and aftertouch. The code was much more complicated than I was expecting but it works great with the FSR I have and the example .ino is written with total beginners in mind. I'd love any kind of feedback on it...
  26. M

    Modi - DIY MIDI Controllers

    Very slick! The function for reading pots looks solid. Check out https://github.com/monkeybiscuits/MIDIcontroller too. The 'MIDIpot' class there will allow you to set upper and lower limits for outgoing MIDI and set upper and lower limits for the analog input (good for calibrating other sensors)...
  27. M

    Do I have to include unneeded libraries in the sketch?

    You're right. Thanks! I upgraded to 1.6.6 and it compiles without those includes. I'll remember the note about backward compatibility though.
  28. M

    Do I have to include unneeded libraries in the sketch?

    Say I have a library with two parts (all in the same folder): 1) foo.cpp / foo.h which #include “Bounce.h” 2) bar.cpp / bar.h which #include “Encoder.h” I want to write fooExample.ino which should only require “Bounce.h” so I #include <Bounce.h> #include “foo.h” How can I get that sketch to...
  29. M

    Teensyduino 1.26 Beta #3 Available

    It looks like my problem was just a part of a bigger issue involving the windows bug "Virtual Store" (which is mis-labeled as a feature). I would save new versions of files into the programs directory and, when I went to open them again or compile my sketches with them, they would be the OLD...
  30. M

    Teensy 3 + Ableton, Analog CC causes midi crash.

    I've had great success with this approach. Rather than comparing an analog value to a previous analog value, it completely ignores all but every 8th analog value, calculates a MIDI value only for those analog values and compares it to the previously sent MIDI message. Also, it doesn't require...
  31. M

    Teensyduino 1.26 Beta #3 Available

    I tried it on 1.6.6. No luck, so I installed 1.6.5 and tried it. No luck with that either. Yes, Arduino's closed when I right click and 'Run as Administrator'.
  32. M

    Teensyduino 1.26 Beta #3 Available

    I'm trying 1.26 beta #3 on Windows 10 64-bit and, on the "Libraries to Install" screen, I click 'none' and they all get unchecked. But when I go to check a library I want, they ALL revert to being checked. I go ahead and install but get an error despite the fact that I'm running as administrator.
  33. M

    Misspelling of "TRANSMIT" in usb_desc.h caused a compile error.

    Every instance of the word "TRANSMIT" is misspelled as "TRANSIMIT" in usb_desc.h (and presumably elsewhere). I needed to add an ENDPOINTx_CONFIG line and got a compile error because I typed "TRANSMIT" correctly. Otherwise, the code and comments are beautiful and I had no trouble getting my...
  34. M

    Using Serial and MIDI USB types at the same time

    Would your program allow Teensy to send keystrokes and MIDI messages simultaneously? I have a MIDI controller that I'd love an 'undo' or 'delete' button for. I know there's a great program for mac (midiStroke) but I'm on a windows machine. If it is possible, would you be willing to share your...
  35. M

    Teensy 2.0++ not reading analog in from potentiometer.

    I know you connected the voltage and ground but I struggled with a pot for a long time because I didn't realize those lines only run halfway down the breadboard unless you stick jumpers on them.
  36. M

    remember user-input boolean values after power off?

    Great! That's exactly what I was looking for, just didn't know what it was called. Thanks.
  37. M

    remember user-input boolean values after power off?

    Hi, I'm making a teensy midi controller with a few small buttons. Sometimes I need button to be momentary and sometimes I need a latch. It's easy enough to make the button behaviors switchable by using boolean values and a 'shift' button. But is there anyway to save those boolean values after...
Back
Top