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

Thread: Completed project: MIDI to DMX Interface

  1. #1
    Senior Member
    Join Date
    Jun 2013
    Location
    Montréal
    Posts
    462

    Completed project: MIDI to DMX Interface

    Just finished this project, quite happy with the result. It's a MIDI to DMX Interface based on Teensy 3

    You can use MIDI Notes, Control Change and Poly Pressure message to control DMX channels.
    If you need the full resolution (0-255) of DMX you can also send specially formatted sysex messages.

    Nice thing is that you can plug it into pretty much anything: computers, iPad, Android tablet etc.

    More info here:

    https://github.com/natcl/dmx_midi

    Last edited by nlecaude; 10-08-2013 at 08:04 PM.

  2. #2
    Junior Member
    Join Date
    Mar 2018
    Posts
    7

    Code not working

    I haven't been able to get the code to load onto the teensy without error. Any tips





    QUOTE=nlecaude;36189]Just finished this project, quite happy with the result. It's a MIDI to DMX Interface based on Teensy 3

    You can use MIDI Notes, Control Change and Poly Pressure message to control DMX channels.
    If you need the full resolution (0-255) of DMX you can also send specially formatted sysex messages.

    Nice thing is that you can plug it into pretty much anything: computers, iPad, Android tablet etc.

    More info here:

    https://github.com/natcl/dmx_midi

    [/QUOTE]

  3. #3
    Senior Member
    Join Date
    Jun 2013
    Location
    Montréal
    Posts
    462
    What errors are you getting?

  4. #4
    Junior Member
    Join Date
    Mar 2018
    Posts
    7
    Quote Originally Posted by nlecaude View Post
    What errors are you getting?
    I am pretty new to arduino. I copied it from the teensy_buffered.ino and pasted it as a new sketch and verified it and this is the error it gave me.
    Error compiling for board Teensy LC

  5. #5
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    985
    usbMIDI.getType() == 7

    First issue... the type values were changed to match MIDI library but it mostly impacts sysex read.


    https://www.pjrc.com/teensy/td_midi.html
    Receiving Messages with Read & Query Functions section

    ...but that would still compile and so while a problem, it is not the source of the compile error.

    Is your Teensy an LC?

    Are you choosing USB MIDI as the USB Type when you compile?


    If you don't know what that means that's the likely cause of the compile error.

    ...edit: Timer library is not part of Teensyduino standard distribution.
    Last edited by oddson; 06-07-2018 at 01:15 AM.

  6. #6
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    985
    Looks like the Timer is just used to flash the LED...

    comment out the three places t occurs and it will compile for LC MIDI.

    The sysex part won't work until you change the right-hand-side of the conditional from '7' to 'usbMIDI.SystemExclusive'

    If you want the flashing LED I can help you with replacement code.

  7. #7
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    985
    Quote Originally Posted by nlecaude View Post
    What errors are you getting?
    Sorry.. didn't notice you're the OP.

    Maybe you'd like to update.

    P.s . What's with the first byte of sysex?

    What are you expecting to send this?

    Sorry if the answers are in your github but I was just trying to understand new post

  8. #8
    Senior Member
    Join Date
    Jun 2013
    Location
    Montréal
    Posts
    462
    Thanks for the troubleshooting, I'll update the code soon!

  9. #9
    Senior Member
    Join Date
    Jun 2013
    Location
    Montréal
    Posts
    462
    The first byte of sysex is the manufacturer ID, I choose 127 here. The sysex in my case is sent by Max/MSP or Lemur template.

  10. #10
    Well, this is my first visit to your blog! Your blog provided us valuable information .You have done a marvelous job
    - happy wheels

  11. #11
    Senior Member
    Join Date
    Jun 2013
    Location
    Montréal
    Posts
    462
    I just updated the code to include the Timer library. Compiles fine here for Teensy LC with USB midi.

  12. #12
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    985
    you still need to fix this: usbMIDI.getType() == 7

    Sb: usbMIDI.getType() == usbMIDI.SystemExclusive

Posting Permissions

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