Mapping Midi to DMX

Discussion in 'Lasershow Designer BEYOND' started by willtheld, Feb 4, 2014.

  1. willtheld

    willtheld Member

    So I am running Beyond with a APC40 and a Enttec usb pro

    I want to use one of the rotary knobs to control a dmx channel for a variable output fog machine (aka the higher the value of the knob the higher the value of dmx)


    How do I make this happen?
     
  2. neutrino

    neutrino Well-Known Member

    I'm not in front of beyond right now but you should be able to do it with Pangoscript fairly easily.
    I'll see if I can check the code for you tomorrow
    Hopefully someone else will jump in

    Cheers
    Rich
     
  3. Helyx

    Helyx Active Member

    Go in the midi setup of your APC, choose the know you want to use and try this scrit:

    DMXOut <Channel>, ExtValue(0,255)


    Just replace <Channel> with the Channel you want to use.

    Greetings
     
  4. willtheld

    willtheld Member

    Tried that script and according to the dmx monitor I got nothing? also the script stayed red when I entered it....
     
  5. willtheld

    willtheld Member

    Nevermind had to take the <> out!
     
  6. Lasernt

    Lasernt Member

    CodeName "Midi_DMX1new"
    // Autostart // unrem this line if the script should start automatically
    //SelectMidi 1 // select MIDI device pair, 1..4.

    WaitForMidi 0xB0, 0x07,-1
    DmxOut 1,(ExtValue(0,127))

    DisplayPopup "Channel 1",(ExtValue(0,127))*2

    StopOnBlackout
    Restart
     
  7. Lasernt

    Lasernt Member

    CodeName "Midi_DMX1new"
    // Autostart // unrem this line if the script should start automatically
    //SelectMidi 1 // select MIDI device pair, 1..4.

    WaitForMidi 0xB0, 0x07,-1
    DmxOut 1,(ExtValue(0,127))*2

    DisplayPopup "Channel 1",(ExtValue(0,127))*2

    StopOnBlackout
    Restart
     
  8. ENOT

    ENOT Software Developer Staff Member

    Hi Guys,

    Thanks for posts. All answers are correct. The only small recommendation. The most effective place is "MIDI to PangoScrtipt" table. It require minimum number of lines and will work a bit faster. Nothing critical, the loop with WaitFor also work fine, from my side it only a recommendation.

    What also might be usefull - commands inside MIDI to PangoScript is a part of profile, and can be loaded/saved as a complete setup.

    --

    In coming build DmxOut will allow to define more than one channel (DmxOut FirstAddress, Data, Data, Data...), and also will allow "-1" data value, what return channel to neutral state ("Z State").

    Best Regards,

    Alexey.
     
  9. Helyx

    Helyx Active Member

    Is there a special reason you wrote "DmxOut 1,(ExtValue(0,127))*2" instead of "DmxOut 1,(ExtValue(0,255))"?
     
  10. Lasernt

    Lasernt Member

    In this case Extvalue (0,127), the value of the incoming MIDI channel
     
  11. ENOT

    ENOT Software Developer Staff Member

    Well, ExtValue made for transformation of incoming data into desired range. Arguments define output range: From, To. So, for case of use with DMX Out must be used ExtValue(0,255).

    Internally BEYOND memorize value of incoming MIDI CC and save it in normalized state. This logic is equal for DMX to PangoSript, MIDI to PangoScript, and so on.
     
  12. drm916

    drm916 Member

    I tried this.. for some reason I cant get it to work.. uggg
     
  13. drm916

    drm916 Member

    I got this working.

    just no values are displayed in any of the DMX monitors or displays in the software.
     

Share This Page