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

Thread: connecting a MIDI keyboard to my teensy 4.0

  1. #1
    Junior Member
    Join Date
    Jul 2020

    connecting a MIDI keyboard to my teensy 4.0

    hello dear pjrc forum,

    I want to build my own little synth with a teensy 4.0 and the audio adapter board. Maybe this seems like a stupid question but how or better said where would i connect a MIDI-keyboard?

    Are there some pins on the platine to build an own connection? Or can you just only work with a MIDI-keyboard, that is connected to a computer, and never run a "standalone" setup with just the teensy, the board and the midi-keyboard?

    Sorry for my lack of knowledge, i'm just a beginner!

  2. #2
    Senior Member
    Join Date
    Apr 2019
    Hello, use the USB Host and connect your (hopefully) MIDI Class Compliant keyboard directly to it. It works great! You need to connect to the USB Host pads (D+ and D-) on the bottom of the T4.0 and also provide 5V and GND. The T3.6 and T4.1 has dedicated pins, which makes life easier. Look at the examples in USBHost_T36 --> Serial --> MIDI for code to use the host with MIDI. You also need to make a cable to give you a USB type A socket to plug in to.

  3. #3
    Junior Member
    Join Date
    Sep 2020
    Sorry for my lack of knowledge, i'm just a beginner!
    Hi, I'm a total beginner too and just started exploring the way to make a synth in the last few days. Before long I can across Teensy Audio and then started readin and watching videos. There is a truly brilliant set of videos by Dave from NotesAndVolts on Youtube that shows how he goes right from scratch to make a "Teensy Synth". It starts with Part 1 here: and I'd suggest watching all 10 (I think it is) parts but if you want to jump straight to the bit where he switches from using usbMidi to real MIDI as the input look specifically at Part 9:

    (or just do what UHF says) and have the Teensy act as a Midi host (but it depends whether your MIDI device sends MIDI over 5 pin DIN cables or USB!)

Posting Permissions

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