Git Product home page Git Product logo

dmx_midi's Introduction

MIDI to DMX using the Teensy 3

A MIDI to DMX converter box based on Teensy 3.

Using Control Change messages

MIDI channel = DMX channel offset
Controller number = DMX channel (1-127 * offset)
Controller value = DMX value (scaled to 0-255)

Controller numbers 1-127 on MIDI channel 1 = DMX channels 1 to 127
Controller numbers 1-127 on MIDI channel 2 = DMX channels 128 to 254
Controller numbers 1-127 on MIDI channel 3 = DMX channels 255 to 381
Controller numbers 1-127 on MIDI channel 3 = DMX channels 382 to 508
Controller numbers 1-4 on MIDI channel 5 = DMX channels 509 to 512

Using Note messages

MIDI channel = DMX channel offset
Note number = DMX channel (Starting at note 1)
Velocity value = DMX value (scaled to 0-255)

(See above mapping for note number to dmx channel conversion)

Using System Exclusive messages

By using specially formatted sysex messages you can send the full DMX (0-255) resolution:

240 127 value_lsb value_msb channel_lsb channel_msb 247

To create the msb and lsb parts of an integer:

lsb = number & 127
msb = (number >> 7) & 127

To go the other way around we do:

number = (lsb & 127) | (msb <<7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.