Comments (21)

adi

hello do you have a code for teensy 3.1 or this will work on that as well
thank you..

3 years ago

    Hey! I have not yet tried a teensy 3.1, but I think it will probably work exactly the same. Let me know if you have any problems…I’ve ordered a few 3.1 boards and will be testing them out next week.

    3 years ago

so did you try with a teensy 3.1?

2 years ago

    oh yeah, i forgot to revisit this: yes, this code works perfectly with the teensy 3.1 as well.

    2 years ago
lionel

Hi !

Nice projet ! I’d like to try it

What about the responsivity ? is it reactiv enough or do you have a little latency ?

2 years ago

    I’ve never noticed any latency at all, everything I’ve made is just as responsive as any commercial MIDI controller.

    2 years ago
lionel

Could you make a tutorial on how to make our own please ?

2 years ago

    I probably should, I’ll put it on my list of things to do!

    2 years ago
lionel

Just a schematic would be nice to begin with !

2 years ago
laserr20

Can you please post the schematic?
In the meantime: do the touch sense inputs use 1 meg resistors to ground or to another pin?

1 year ago

    Hi there,
    I don’t really have a schematic for this – you don’t need to do any special wiring on the touch inputs, they are automatically configured to work when you call them touch pins in the code. So you just need to say “touchRead(pin_number)” and then connect some sort of wire directly to that pin (and touch it).
    I hope that makes sense!

    1 year ago
Alex

Hi, do you know if you can send an especific Midi Port number using this usb.midi? something that can be read by ctlin in a Max patch. Thanks nice work!

12 months ago

    Hey!
    I’m not 100% sure I understand what you’re asking – this code should work with the ctlin object in a Max patch over USB as it is. I think it comes up as a device called Teensy USB…if you want to change that name to something specific it’s apparently a bit more effort (and I’ve never bothered).
    Does that make sense? Let me know if I’m not actually answering your question!

    12 months ago
Chick

Hi Yann,
is it possible to use the touch pins as note triggers with velocity sensitivity? If yes, could you provide us with code for this feature? I haven’t found anything about this on the web so far. Thanks in advance!

11 months ago

    Hey!
    In my experience, making velocity sensitive notes using touch pins is challenging, because of the way MIDI note messages work – you have to send the message for the note and the velocity at the same time. That is really impractical to do with a touch pin, because by the time you’ve sent the note value the amount of touching will have changed a lot. You can get a quite good range of values from how much you’re touching, but it’s pretty much impossible to send the value of how much you’re touching to the note velocity in a way that feels right! In practice, by the time you’ve sent the note paired with a velocity it’s too late and you only sometimes get a direct correlation between touch and volume.
    It’s quite hard to explain, I hope that makes some sense. There are a couple of possible approaches:
    – Make a small delay between capturing the touch value and sending the note. This would have the advantage of probably getting a more accurate correlation between how much you’re touching and the eventual velocity, but the major downside would be a significant feeling of latency.
    – Avoid using velocity at all and instead use Aftertouch. I think this is the best solution, even though aftertouch isn’t used all that much in most MIDI software or hardware. You could assign aftertouch to control volume, and then use the MIDI.sendAfterTouch message using the value of your touches. I haven’t tested this but I feel like it should work!
    In any case, you’d have to make a system for calibrating the touch values, as they can vary wildly depending on what you are using as your conductive object. I would approach this by making all values set to 0 on startup, and then have a button you can press whilst touching the object which would then set that as the maximum of 127.
    I hope that makes sense, good luck!

    11 months ago
chann

Hello sir can i make a midi controller using teensy, which will control pitch or tempo with 2 pushing button (-button and + button) instead of potentiometer , can potentiometer control be changed into 2 button (- and +) if yes what is type of this controller ,,,,thank you

6 months ago

    Hello there,

    Yes it would certainly be possible to make a controller that uses buttons to control the tempo rather than a potentiometer. It would take a bit more code.

    Off the top of my head:

    You would first want to set up two buttons going into the teensy, and you’ll want to set them to increment and decrement an integer variable. There are a number of ways to do this, perhaps the best way is here: https://www.arduino.cc/en/Tutorial/StateChangeDetection

    Taking that code as a starting point, you would have one button doing buttonPushCounter++ and the other doing buttonPushCounter–.

    Then you send that variable out a MIDI CC controller output and map it in the software.

    I hope that helps!

    Yann

    6 months ago
HC

Hi Yann. Really cool project you have.

This may be a newby question and if so, I apologize.

Online, all of the Teensy boards I see, show to have only 11 touch sensitive pins, however, your project shows to have a few more. How did you get the extra pins?

Thanks for your time and information!

HC

4 months ago

    Hey there, thanks for the kind words.
    The smaller Teensy boards have 12 built-in touch sensitive pins…three of these are accessible only as little pads on the underside of the board, so they are a bit impractical to use if you’re not used to surface mount soldering.
    I imagine you’re referring to my touch sensitive piano prototype, which used 15 or so touch pins if I remember right…to do that I used a different method, using a Teensy++ and this system: http://www.pjrc.com/teensy/td_libs_CapacitiveSensor.html

    I don’t completely remember the circuit I made, but the details are on that site. Essentially each touch pad needs to be connected to a “receive” pin, as well as a “sensor” pin. The various touch pads can share a receive pin. The resistors you use set the sensitivity. Because the Teensy++ has so many pins this allows you to have more touch sensitive inputs.

    I hope that helps!

    4 months ago
Diego Leroux

Hi Yann, thanks a lot for your code ! I want to have a number of pots and buttons sending midi notes, and have 2 other buttons selecting banks, in order to send different MIDI notes depending the bank I’m in. Is it possible ? Thanks !

4 months ago

    That sounds like a good idea, I guess this could also be like octave up/down buttons?
    I suppose the way I would do that would be to program the “bank” buttons to add an offset to the midi note number coming out of the array. If that was in multiples of 12 then it would be octaves. Does that make sense?

    4 months ago

Leave a Reply

Your email address will not be published. Required fields are marked *

@