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

Thread: communication midi high speed between teensy

  1. #1
    Junior Member
    Join Date
    Nov 2019
    Posts
    9

    communication midi high speed between teensy

    Hello,

    I allow myself to write to you because I need your help and advice in my project. I am new to the world of teensy.

    I make an analog synthesizer controlled in "midi". For that I chose teensy (teensy 3.6). I made most of the schemas however I ask myself several questions.

    The synthesizer is composed of 4 voices controlled separately via the MIDI controller. Each voice is composed of a teensy piloting DAC and digipot. In sum there are 5 teensy (one for the midi controller and 4 for each voice). 4 switch (1 per voice) to indicate to the MIDI controller which voice it controls (for example if the switch 3 is switched on then the controller controls the voice 3, if the switches 3 and 4 are on then the controller pilot the voice 3 and 4)

    To communicate between the midi contoller and the voices I hesitate between two solutions.

    The first one: I use a TX output of the teensy of the MIDI controller connected to the Rx of teensy voices, parralele I use 4 pin to indicate with which the controller midi communicates.If the pin is high then the teensy of the voice concerned listening.

    The second: I multiplex the TX output of the MIDI controller with a 4051, which gives me 8 MIDI outputs.
    (as http://little-scale.blogspot.com/200...eams-with.html)


    According to you what would be the best solutions, I look for the fastest communication?

    I profile to ask if it is possible to increase the speed of communication between the Teensy at noon, the baud is normally expected to 31250 however I imagine that between the Teensy we must be able to go up to 2Mbit / s ?

    Very cordially

  2. #2
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Location
    Florida
    Posts
    402
    Theoretically UART MIDI can run at any baud rate as long as both devices support it, I happen to own a device that had selectable speeds from the early 90’s. However since you are using the Teensy 3.6 I would suggest using USB MIDI since it’s the simplest to setup without modifying any libraries and the fastest form of communication offered from a Teensy.

  3. #3
    Junior Member
    Join Date
    Nov 2019
    Posts
    9
    Thank you for your reply.

    I thought of this solution, however the Teensy USB port (MIDI controller) is already used for sending and receiving MIDI data from the computer.

    Maybe it is possible to use the second USB port of the teensy? Basically a USB port for sending and receiving MIDI data from the computer and a second port to communicate with the 4 teensy of the 4 voices?

    Or maybe it is possible to use only one teensy USB port via a hub?

  4. #4
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Location
    Florida
    Posts
    402
    The second USB port has to be used to connect other devices, the first can only be connected to a computer or power. You would connect a powered USB hub to the second USB port then connect your four voice Teensies to the hub, this also allows you to easily connect more in the future if 4 is not enough.

Posting Permissions

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