Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: monkeybiscuits

Search: Search took 0.00 seconds.

  1. MIDI in works fine but the signal seems to be...

    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...
  2. Ok. I plan to go ahead and use Serial1 for the...

    Ok. I plan to go ahead and use Serial1 for the MIDI input on the final layout anyway. But that's good info.
  3. Final answer...YES, Teensy 3.x (and presumably...

    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...
  4. Thanks for doing that. I tried...

    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");
    }...
  5. Ok thanks. Am I getting any closer with this... ...

    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");
    }
  6. Thanks. I'm actually trying to go the opposite...

    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...
  7. I think you're just missing some square brackets...

    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};...
  8. I've got an Alesis Performance Pad plugged into a...

    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.
    5883
    The quality of my craftsmanship is...
  9. That's good to know. It means 3 things. 1)...

    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...
  10. 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...
  11. Replies
    6
    Views
    1,659

    Do you currently have working code to translate...

    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...
  12. Replies
    12
    Views
    3,309

    Encoders are handy for some things like having...

    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...
  13. Replies
    12
    Views
    3,309

    Encoders are handy for some things like having...

    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...
  14. I can't see a problem with yours but here's the...

    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...
  15. Replies
    44
    Views
    8,081

    Nice work! I'd be interested to know why you're...

    Nice work! I'd be interested to know why you're not getting the info in MIDI-OX with this setup.
  16. Replies
    30
    Views
    25,055

    No, it's not analog. The way I understood the...

    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...
  17. Replies
    30
    Views
    25,055

    First of all, I think it's pretty amazing that I...

    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...
  18. Replies
    30
    Views
    25,055

    @adrian Is there a way to get accurate velocity...

    @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...
  19. Replies
    12
    Views
    3,309

    +1 to 'deadspots'. Most people's instinct...

    +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 =...
  20. Um...never mind. I guess it's not so unreasonable...

    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...
  21. Replies
    30
    Views
    25,055

    @Adrian. That code would send several note ons...

    @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...
  22. It'll print to the serial monitor (while sending...

    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...
  23. Replies
    30
    Views
    25,055

    That's pretty much how it works. A note is...

    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...
  24. 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...
  25. Replies
    30
    Views
    25,055

    I just finished a class that reads velocity and...

    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...
  26. Replies
    4
    Views
    6,739

    Very slick! The function for reading pots looks...

    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...
  27. You're right. Thanks! I upgraded to 1.6.6 and it...

    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. 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...
  29. Replies
    56
    Views
    30,174

    It looks like my problem was just a part of a...

    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...
  30. I've had great success with this approach. Rather...

    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...
  31. Replies
    56
    Views
    30,174

    I tried it on 1.6.6. No luck, so I installed...

    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. Replies
    56
    Views
    30,174

    I'm trying 1.26 beta #3 on Windows 10 64-bit and,...

    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...
  33. 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...
  34. Would your program allow Teensy to send...

    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...
  35. I know you connected the voltage and ground but I...

    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. Great! That's exactly what I was looking for,...

    Great! That's exactly what I was looking for, just didn't know what it was called. Thanks.
  37. 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...
Results 1 to 37 of 37