var MGBdecoders = 14

var MGBdecName = new Array
var MGBdecDescription = new Array
var MGBdecOutputsNumber = new Array
var MGBdecOutputsType = new Array
var MGBdecMidiThroughOutput = new Array
var MGBdecFeatures = new Array 
var MGBdecPrice = new Array
var MGBdecManual = new Array
var MGBdecAddoc = new Array

MGBdecName[0] = "mdec32br"
MGBdecName[1] = "mdec64"
MGBdecName[2] = "mdec64br"
MGBdecName[3] = "mdec80br"
MGBdecName[4] = "mdec96br"
MGBdecName[5] = "mdec128br"
MGBdecName[6] = "mdec64ddn"
MGBdecName[7] = "mdec64ddp"
MGBdecName[8] = "mdec32"
MGBdecName[9] = "mdec64br-p"
MGBdecName[10] = "msmd4"
MGBdecName[11] = "msd1"
MGBdecName[12] = "mrl4"
MGBdecName[13] = "hwlcd"

MGBdecDescription[0] = "Parallel MIDI decoder"
MGBdecDescription[1] = "Parallel MIDI decoder"
MGBdecDescription[2] = "Parallel MIDI decoder"
MGBdecDescription[3] = "Parallel MIDI decoder for controlling loads with common positive line"
MGBdecDescription[4] = "Parallel MIDI decoder for controlling loads with common positive line"
MGBdecDescription[5] = "Parallel MIDI decoder for controlling loads with common positive line"
MGBdecDescription[6] = "Parallel MIDI decoder for controlling loads with common positive line"
MGBdecDescription[7] = "Parallel MIDI decoder for controlling loads with common negative line"
MGBdecDescription[8] = "Parallel MIDI decoder"
MGBdecDescription[9] = "Parallel MIDI decoder"
MGBdecDescription[10] = "MIDI-to-Stepper decoder/driver"
MGBdecDescription[11] = "MIDI-to-Servo decoder/driver"
MGBdecDescription[12] = "MIDI - relay w. 4 ouput channels"
MGBdecDescription[13] = "LCD module for Hauptwerk software virtual pipe organ by Martin Dyde"

MGBdecOutputsNumber[0] = "32"
MGBdecOutputsNumber[1] = "64"
MGBdecOutputsNumber[2] = "64"
MGBdecOutputsNumber[3] = "80"
MGBdecOutputsNumber[4] = "96"
MGBdecOutputsNumber[5] = "128"
MGBdecOutputsNumber[6] = "64"
MGBdecOutputsNumber[7] = "64"
MGBdecOutputsNumber[8] = "32"
MGBdecOutputsNumber[9] = "64"
MGBdecOutputsNumber[10] = "1(4 phases)"
MGBdecOutputsNumber[11] = "1"
MGBdecOutputsNumber[12] = "1"
MGBdecOutputsNumber[13] = "0"

MGBdecOutputsType[0] = "Low end N-Darlington, 500mA@50V per load, 0.1 in. screw terminals"
MGBdecOutputsType[1] = "TTL, pin row header"
MGBdecOutputsType[2] = "Low end N-Darlington, 500mA@50V per load, 0.2 in. screw terminals "
MGBdecOutputsType[3] = "Low end N-Darlington, 500mA@50V per load, 0.2 in. screw terminals"
MGBdecOutputsType[4] = "Low end N-Darlington, 500mA@50V per load, 0.2 in. screw terminals"
MGBdecOutputsType[5] = "Low end N-Darlington, 500mA@50V per load, 2/4 34-pin locking headers"
MGBdecOutputsType[6] = "Low end power N-Darlington, 4A@100V per load, 0.2 in. screw terminals"
MGBdecOutputsType[7] = "High end power N-Darlington, 4A@100V per load, 0.2 in. screw terminals"
MGBdecOutputsType[8] = "TTL, pin row header"
MGBdecOutputsType[9] = "TTL, pin row header"
MGBdecOutputsType[10] = "Low end N-Darlington, 500mA@50V per load, pin row connector"
MGBdecOutputsType[11] = "TTL, pin row connector"
MGBdecOutputsType[12] = "AC power, AC socket connectors"
MGBdecOutputsType[13] = "LCD display 2x16"

MGBdecMidiThroughOutput[0] = "Yes"
MGBdecMidiThroughOutput[1] = "Yes"
MGBdecMidiThroughOutput[2] = "Yes"
MGBdecMidiThroughOutput[3] = "Yes"
MGBdecMidiThroughOutput[4] = "Yes"
MGBdecMidiThroughOutput[5] = "Yes"
MGBdecMidiThroughOutput[6] = "Yes"
MGBdecMidiThroughOutput[7] = "Yes"
MGBdecMidiThroughOutput[8] = "Yes"
MGBdecMidiThroughOutput[9] = "Yes"
MGBdecMidiThroughOutput[10] = "Yes"
MGBdecMidiThroughOutput[11] = "No"
MGBdecMidiThroughOutput[12] = "No"
MGBdecMidiThroughOutput[13] = "No"

MGBdecFeatures[0] = "32 parallel Darlington (up to 30V @ 500mA) outputs!user selectable MIDI channel 1-16!mdec32br-s firmware for controlling up to 32 solenoids: !*user selectable starting note~!mdec32br-sam firmware for controlling up to 16 Stop Action Magnet (SAM) switches: !*user selectable output pulse length (range 100mS - 1.6S, step 100mS)!fixed note range (by user request)~!0.1 in. screw output terminals!opto-insulated MIDI input!MIDI Thru output!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request):!*non-continuous note range!responding to other MIDI messages instead of Note message~!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[1] = "64 parallel TTL compatible outputs (10 TTL loads per output)!user selectable MIDI channel!user selectable starting note 0 - 60 (in steps of 4) !opto-insulated MIDI input!MIDI Thru output!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request): !*non-continuous note range!responding to other MIDI messages instead of Note messages~!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[2] = "64 parallel Darlington (up to 30V @ 500mA) outputs!user selectable MIDI channel 1-16!mdec64br-s firmware for controlling up to 64 solenoids: !*user selectable starting note 0 - 60 (in steps of 4)~!mdec64br-sam firmware for controlling up to 32 Stop Action Magnet (SAM) switches: !*user selectable output pulse length (range 100mS - 1.6S, step 100mS)~!screw output terminals (instead pin row headers)!opto-insulated MIDI input!MIDI Thru output!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request): : !*non-continuous note range!responding to other MIDI messages instead of Note message~!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[3] = "80 parallel Darlington (up to 30V @ 500mA) outputs!user selectable MIDI channel 1-16!mdec80br-s firmware for controlling up to 80 solenoids: !*user selectable starting note 0 - 60 (in steps of 4)~!mdec80br-sam firmware for controlling up to 40 Stop Action Magnet (SAM) switches: !*user selectable output pulse length (range 100mS - 1.6S, step 100mS)~!screw output terminals (instead pin row headers)!opto-insulated MIDI input!MIDI Thru output!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request): !*non-continuous note range!responding to other MIDI messages instead of Note messages~!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[4] = "96 parallel Darlington (up to 30V @ 500mA) outputs!user selectable MIDI channel 1-16!mdec96br-s firmware for controlling up to 80 solenoids: !*user selectable starting note 0 - 30 (in steps of 2)~!mdec96br-sam firmware for controlling up to 48 Stop Action Magnet (SAM) switches: !*user selectable output pulse length (range 100mS - 1.6S, step 100mS)~!screw output terminals (instead pin row headers)!opto-insulated MIDI input!MIDI Thru output!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request): !*non-continuous note range!responding to other MIDI messages instead of Note messages~!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[5] = "128 parallel Darlington (up to 30V @ 500mA) outputs!user selectable MIDI channel 1-16!locking header 34-pin output connectors!opto-insulated MIDI input!MIDI Thru output (optional second output)!on-board LEDs to indicate output status!foldable stacked design for easy testing and compact instalation!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request): !*non-continuous note range!responding to other MIDI messages instead of Note messages~!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[6] = "64 power Darlington outputs (up to 100V @ 5A) outputs!N-Darlington outputs for controlling loads having common positive line (low end driver) !user selectable MIDI channel 1-16!user selectable starting note 0 - 60 (in steps of 4)!screw output terminals (instead pin row headers)!opto-insulated MIDI input!MIDI Thru output!64 on-board SMD LEDs (LED per output) for indicating output activity!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request): !*non-continuous note range!responding to other MIDI messages instead of Note messages~!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[7] = "64 power Darlington outputs (up to 100V @ 5A) outputs!P-Darlington outputs for controlling loads having common negative line (high end driver)!user selectable MIDI channel 1-16!user selectable starting note 0 - 60 (in steps of 4)!screw output terminals (instead pin row headers)!opto-insulated MIDI input!MIDI Thru output!64 on-board SMD LEDs (LED per output) for indicating output activity!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx and Realtime messages as well !user options (on request): !*non-continuous note range!responding to other MIDI messages instead of Note messages~!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[8] = "32 parallel TTL-compatible outputs!mdec32-s firmware for controlling up to 32 general loads (solenoids, relays, lamps etc.) via external drivers:!*user selectable MIDI channel 1-16!user selectable starting note~!mdec32-sam firmware for controlling up to 16 Stop Action Magnet (SAM) switches via external drivers:!*user selectable MIDI channel 1-16!user selectable output pulse length (range 100mS - 1.6S, step 100mS)!fixed starting note (per request)~!mdec32-pwm firmware for controlling up to 32 solenoid-driven percussive instruments via external drivers by single pulses or PWM signals depending on note velocity parameter:!*user selectable MIDI channel (1 out of 2)!user selectable starting note (1 out of 8)!user selectable velocity responce curve (1 out of 2)!Pulse mode with selectable velocity-over-pulse-width mapping (1 out of 4)!PWM mode with selectable velocity-over-duty-cycle mapping (1 out of 4)~!opto-insulated MIDI input!MIDI Thru output!recognizes MIDI Note On/NoteOff messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores System Exclusive and Realtime messages as well!user options (on request):!*non-continuous note range!responding to other MIDI messages instead of Note On/Note Off messages~!!!!!!!!!!!!!!!!!"
MGBdecFeatures[9] = "64 parallel P-Darlington high-end drivers (up to 500mA@30V per output)!mdec64br-s firmware for controlling up to 64 general loads (solenoids, relays, lamps etc.):!*user selectable MIDI channel 1-16!user selectable starting note~!mdec64br-sam firmware for controlling up to 16 Stop Action Magnet (SAM) switches:!*user selectable MIDI channel 1-16!user selectable output pulse length (range 100mS - 1.6S, step 100mS)!fixed starting note (per request)~!mdec64br-pwm firmware for controlling up to 64 solenoid-driven percussive instruments by single pulses or PWM signals depending on note velocity parameter:!*user selectable MIDI channel (1 out of 2)!user selectable starting note (1 out of 8)!user selectable velocity responce curve (1 out of 2)!Pulse mode with selectable velocity-over-pulse-width mapping (1 out of 4)!PWM mode with selectable velocity-over-duty-cycle mapping (1 out of 4)~!opto-insulated MIDI input!MIDI Thru output!recognizes MIDI Note On/NoteOff messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores System Exclusive and Realtime messages as well!user options (on request):!*non-continuous note range!responding to other MIDI messages instead of Note On/Note Off messages~!!!!!!!!!!!!!!!!!"
MGBdecFeatures[10] = "4 Darlington outputs for direct driving small steppers!user selectable MIDI channel!user-defined MIDI Continuous Controller response!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[11] = "provides direct MIDI control of small servos (up to 500mA @ 5V)!user selectable MIDI channel (1 out of 16)!user selectable MIDI Continuous Controller to respond to ( 1 out of 16 CCs programmed by user request)!2 buttons for manual control!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[12] = "4 active power outputs for loads up to 500W (up to 800W short-time) at 220 VAC per output!user selectable unit ID (used for programming)!each channel separately programmable by SysEx message!programming can be done on stage without de-powering the unit!user-programmable features (per channel) : !*MIDI channel to respond to!MIDI note to respond to~!power socket terminals (see pictures)!opto-insulated MIDI input!output channels separately fused!recognizes all MIDI Note messages!recognizes MIDI All Notes Off message!supports Running Status and Zero-velocity!recognizes and ignores SysEx (except specific SysEx message for programming the unit) as well as Realtime messages !user options (on request): !*responding to other MIDI messages instead of Note messages~!!!!!!!!!!!!!!!!!!!!!!!!"
MGBdecFeatures[13] = "MIDI controlled 2x16 characters LCD for displaying text!RGB LED for indicating modes/groups!compatible with Hauptwerk System Exclustive messages format!user selectable unit ID (0-127)!backlight!standard opto-insulated MIDI input!two parallel MIDI Through outputs allowing cascadding of multiple units!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"

MGBdecPrice[0] = "120"
MGBdecPrice[1] = "90"
MGBdecPrice[2] = "130"
MGBdecPrice[3] = "150"
MGBdecPrice[4] = "170"
MGBdecPrice[5] = "200"
MGBdecPrice[6] = "160"
MGBdecPrice[7] = "160"
MGBdecPrice[8] = "75"
MGBdecPrice[9] = "130"
MGBdecPrice[10] = "104"
MGBdecPrice[11] = "91"
MGBdecPrice[12] = "260"
MGBdecPrice[13] = "65"

MGBdecManual[0] = "Yes"
MGBdecManual[1] = "No"
MGBdecManual[2] = "Yes"
MGBdecManual[3] = "Yes"
MGBdecManual[4] = "Yes"
MGBdecManual[5] = "No"
MGBdecManual[6] = "Yes"
MGBdecManual[7] = "Yes"
MGBdecManual[8] = "No"
MGBdecManual[9] = "Yes"
MGBdecManual[10] = "Yes"
MGBdecManual[11] = "Yes"
MGBdecManual[12] = "No"
MGBdecManual[13] = "Yes"

MGBdecAddoc[0] = "No"
MGBdecAddoc[1] = "No"
MGBdecAddoc[2] = "No"
MGBdecAddoc[3] = "No"
MGBdecAddoc[4] = "No"
MGBdecAddoc[5] = "No"
MGBdecAddoc[6] = "No"
MGBdecAddoc[7] = "No"
MGBdecAddoc[8] = "No"
MGBdecAddoc[9] = "Yes"
MGBdecAddoc[10] = "No"
MGBdecAddoc[11] = "No"
MGBdecAddoc[12] = "No"
MGBdecAddoc[13] = "No"