var MGBencoders = 19

var MGBencName = new Array
var MGBencDescription = new Array
var MGBencDiscreteInputs = new Array
var MGBencAnalogInputs = new Array
var MGBencMergeInput = new Array
var MGBencUserProgrammable = new Array
var MGBencFeatures = new Array
var MGBencPrice = new Array
var MGBencManual = new Array
var MGBencAddoc = new Array

MGBencName[0] = "b4ce1x"
MGBencName[1] = "b4cp"
MGBencName[2] = "hwce"
MGBencName[3] = "mbe2"
MGBencName[4] = "mccp"
MGBencName[5] = "mce2048"
MGBencName[6] = "mce2440"
MGBencName[7] = "mce32064"
MGBencName[8] = "mdbc24"
MGBencName[9] = "mkc128x"
MGBencName[10] = "mkcv128s"
MGBencName[11] = "mkcv64cs"
MGBencName[12] = "mkcv64sm"
MGBencName[13] = "mkcx"
MGBencName[14] = "mpc32xr"
MGBencName[15] = "mpc64xr"
MGBencName[16] = "mpc88xr"
MGBencName[17] = "mscan2"
MGBencName[18] = "msync"

MGBencDescription[0] = "Console MIDI encoder for controlling B4 and B4 II software organs by Native Instruments"
MGBencDescription[1] = "Control panel for controlling B4 software organ by Native Instruments"
MGBencDescription[2] = "Console MIDI encoder for controlling Hauptwerk software virtual pipe organ, by Martin Dyde"
MGBencDescription[3] = "Bandoneon/accordion MIDI encoder with Air-pressure control"
MGBencDescription[4] = "MIDI continuous control pedal encoder"
MGBencDescription[5] = "Console MIDI encoder for up to 1024/2048 keys"
MGBencDescription[6] = "MIDI encoder for 24 parallel contacts and 40 potentiometers with Merge input"
MGBencDescription[7] = "Console MIDI encoder for up to 320 keys and up to 64 pots"
MGBencDescription[8] = "Drawbars MIDI encoder"
MGBencDescription[9] = "Keyboard MIDI encoder, compatible with PC Joystick and standard MIDI gear as well"
MGBencDescription[10] = "Touch sensitive keyboard MIDI encoder w. Sustain"
MGBencDescription[11] = "Touch sensitive keyboard MIDI encoder w. Sustain"
MGBencDescription[12] = "Touch sensitive keyboard MIDI encoder"
MGBencDescription[13] = "Keyboard MIDI encoder, designed for using with PC (via Joystick/MIDI port) or standard MIDI gear, replacing obsolete  mkc-PC and mkc-MG "
MGBencDescription[14] = "Keyboard (pedalboard) MIDI encoder for positive/negative/passive keying voltage"
MGBencDescription[15] = "Keyboard MIDI encoder for positive/negative/passive keying voltage"
MGBencDescription[16] = "Keyboard MIDI encoder for positive/negative/passive keying voltage"
MGBencDescription[17] = "Organ console MIDI encoder with presets memory"
MGBencDescription[18] = "Rotary encoder-to-MIDI converter two-phase encoder input"

MGBencDiscreteInputs[0] = "scanmatrix 4x8x8, 256contacts"
MGBencDiscreteInputs[1] = "na"
MGBencDiscreteInputs[2] = "scanmatrix 4x8x8, 256 contacts plus 3 additional"
MGBencDiscreteInputs[3] = "scanmatrix 2x8x8, 48+40 contacts "
MGBencDiscreteInputs[4] = "na"
MGBencDiscreteInputs[5] = "scanmatrix 16x8x8/ 32x8x8,  1024/2048 contacts"
MGBencDiscreteInputs[6] = "24"
MGBencDiscreteInputs[7] = "scanmatrix 6x8x8,  320 contacts"
MGBencDiscreteInputs[8] = "none"
MGBencDiscreteInputs[9] = "scanmatrix 2x8x8,  128 contacts"
MGBencDiscreteInputs[10] = "scanrow 2x128,  128 double/ changeover contacts"
MGBencDiscreteInputs[11] = "scanrow 2x64,  64 double/ changeover contacts"
MGBencDiscreteInputs[12] = "scanmatrix 2x8x8,  64 double/ changeover contacts"
MGBencDiscreteInputs[13] = "scanmatrix 8x8, 64 contacts"
MGBencDiscreteInputs[14] = "scanrow 1x40,  40 contacts"
MGBencDiscreteInputs[15] = "scanrow 1x64,  64 contacts"
MGBencDiscreteInputs[16] = "scanrow 1x88 ,  88 contacts"
MGBencDiscreteInputs[17] = "scanmatrix 6x8x8,  320 contacts"
MGBencDiscreteInputs[18] = "na"

MGBencAnalogInputs[0] = "48"
MGBencAnalogInputs[1] = "na"
MGBencAnalogInputs[2] = "5"
MGBencAnalogInputs[3] = "1"
MGBencAnalogInputs[4] = "na"
MGBencAnalogInputs[5] = "4"
MGBencAnalogInputs[6] = "40"
MGBencAnalogInputs[7] = "64"
MGBencAnalogInputs[8] = "24"
MGBencAnalogInputs[9] = "0"
MGBencAnalogInputs[10] = "0"
MGBencAnalogInputs[11] = "0"
MGBencAnalogInputs[12] = "5"
MGBencAnalogInputs[13] = "0"
MGBencAnalogInputs[14] = "0"
MGBencAnalogInputs[15] = "up to 4"
MGBencAnalogInputs[16] = "up to 4"
MGBencAnalogInputs[17] = "3"
MGBencAnalogInputs[18] = "na"

MGBencMergeInput[0] = "Yes"
MGBencMergeInput[1] = "Yes"
MGBencMergeInput[2] = "Yes"
MGBencMergeInput[3] = "Yes"
MGBencMergeInput[4] = "Yes"
MGBencMergeInput[5] = "Yes"
MGBencMergeInput[6] = "Yes"
MGBencMergeInput[7] = "Yes"
MGBencMergeInput[8] = "Yes"
MGBencMergeInput[9] = "No"
MGBencMergeInput[10] = "No"
MGBencMergeInput[11] = "No"
MGBencMergeInput[12] = "Yes"
MGBencMergeInput[13] = "No"
MGBencMergeInput[14] = "No"
MGBencMergeInput[15] = "Yes"
MGBencMergeInput[16] = "Yes"
MGBencMergeInput[17] = "Yes"
MGBencMergeInput[18] = "Yes"

MGBencUserProgrammable[0] = "No (planned)"
MGBencUserProgrammable[1] = "No"
MGBencUserProgrammable[2] = "No (planned)"
MGBencUserProgrammable[3] = "Yes"
MGBencUserProgrammable[4] = "Yes"
MGBencUserProgrammable[5] = "No"
MGBencUserProgrammable[6] = "No (planned)"
MGBencUserProgrammable[7] = "No (planned)"
MGBencUserProgrammable[8] = "No (planned)"
MGBencUserProgrammable[9] = "No"
MGBencUserProgrammable[10] = "No"
MGBencUserProgrammable[11] = "No"
MGBencUserProgrammable[12] = "Yes"
MGBencUserProgrammable[13] = "No"
MGBencUserProgrammable[14] = "No"
MGBencUserProgrammable[15] = "No (planned)"
MGBencUserProgrammable[16] = "No (planned)"
MGBencUserProgrammable[17] = "No"
MGBencUserProgrammable[18] = "No "

MGBencFeatures[0] = "2 manual keyboards (up to 64 keys each)!1 pedal keyboard (up to 64 keys)!24 drawbars (sliding potentiometers)!10 position Bank selector!2x12 position Presets selectors!Vibrato/Percussion/Keyclick/!Overdrive/Rotator/ Velocity switches!Swell pedal/potentiometer!console control potentiometers (10)!rotator control potentiometers (12)!intermanual coupler functions: Upper-To-Pedal, Lower-To-Pedal and Upper-To-Lower!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[1] = "Bank selector (10 position rotary switch) !Preset selector (12 chained buttons) !Chorus/Vibrato selector (6 position rotary switch) !Rotator speed switch (toggle switch) !Vibrato Lower, Vibrato Upper, Percussion, Overdrive and Velocity switches (rocker- switches) !Full Drawbar control (6+9+9 sliding potentiometers) !Swell (Expression) pedal input (pedal not included) !Send All momentary button (reset B4 to manual settings) !MIDI output !on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from external adaptor or battery (not included)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[2] = "4  scanmatrices, each 64 scanpoints (for key contacts, buttons, switches) - keymux64 compatible !5 analog inputs for continuous control (for potentiometers or external control voltage) !3 additional inputs for passive discrete control (buttons, switches) !5 additional inputs for active discrete control (TTL signals) !standard MIDI output (DIN5) !MIDI Merge input (DIN5, optoinsulated) !on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[3] = "2 scanmatrices, each up to 64 key contacts, KeyMux64 and sm8x8 compatible!analog input for Volume control using potentiometer/pedal!bi-directional differential air pressure sensor, sensing the pressure value and bellows movement direction!all of features are programmable by means of SysEx message, using free-downloadable SXBlast sofware:!*MIDI event for push/pull per each key separately!MIDI event for Airpressure sensor!MIDI event for potentiometer!Response curve for airpressure (1 out of 4)~!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[4] = "user selectable/programmable MIDI channel (1 of 16) !user selectable/programmable Continuous Controller (1 of 128) !user selectable/programmable response curve (1 of 4) !user selectable/programmable control direction (1 of 2) !MIDI Merge/program input (optoinsulated) !MIDI output !analog output !adjusting potentiometer for both - MIDI Controller and analog output !on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from external adaptor or battery (not included) !NOTES about user programming:!*all programming is done by dedicated SysEx messages, format described in documentation!programmable features are permanenty memorized in non-volatile memory!downloadable freeware Windows application SXBlast, for programming~!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[5] = "16 or 32 scanmatrices, each 64 scanpoints = 1024 or 2048 keys !4 analog inputs used for continuous control !fully custom MIDI implementation !MIDI Merge input (optoinsulated) !on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[6] = "24 discrete parallel inputs for key contact/switches!40 parallel analog inputs for potentiometers/external voltage!MIDI Merge input!custom defined MIDI implementation (see additional documentation)!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!standard on-board DIN5 connectors for MIDI input/output!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[7] = "fully custom firmware design !MIDI Merge input (optoinsulated) !on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[8] = "supports up to 24 Hammond-like (or potentiometric) drawbars (not included)!no need of rewiring/ripping the drawbars!MIDI Merge input allows inserting this unit between the keyboard and the synth/expander module without need of Merger unit!customer-defined MIDI continuous controllers assigned to each drawbar (support of B4 by Native Instruments, V3 by Voce etc.)!2 banks of Continuous Controllers, easy selectable!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!standard on-board DIN5 connector for MIDI output and MIDI Merge input!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[9] = "2 scanmatrices, each 64 keys = 128 keys!can be used with standard MIDI gear as well as with PC MIDI/Game port!can be powered either by external power supply or by PC MIDI/Game port!fully custom firmware design!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[10] = "128 change-over key inputs supporting full MIDI note range !selectable contacts type (1 of 2) !user selectable velocity response curve (1 of 4) !user selectable time resolution (1 of 2) !user selectable MIDI channel (1 or 16) !standard on-board DIN5 connector for MIDI output !sustain switch input !on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[11] = "64 key inputs organized in scanrows, supporting full MIDI note range!selectable contacts type (1 of 2)!user selectable velocity response curve (1 of 4)!user selectable time resolution (1 of 2)!user selectable MIDI channel (1 or 16)!standard on-board DIN5 connector for MIDI output!sustain switch input!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[12] = "64 touch sensitive key inputs in two 8x8 scanmatrices!user programmable type of contacts (1 of 2)!user-programmable velocity response curve (1 of 4)!user programmable time resolution (1 of 8)!user programmable On/Off events per key (2 bytes plus Velocity in third)!5 analog inputs with user programmable PotChange events per potentiometer (2 bytes plus Potentiometer position in third)!standard on-board DIN5 connector for MIDI output!standard on-board DIN5 connector for MIDI input (Merge/Programming)!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!NOTES about user programming:!*all programming is done by dedicated SysEx messages, format described in documentation!programmable features are permanenty memorized in non-volatile memory!downloadable freeware Windows application SXBlast, for programming~!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[13] = "8x8 points scanmatrix = 64 keys!user programmable MIDI channel!user programmable Octave Transposition (starting octave)!user programmable Note Transposition (starting note)!user programmable default Velocity!user selectable MIDI Program!user selectable MIDI Bank!user selectable All Notes Off on all keys released!user selectable NoteOff/NoteOn(Velocity=0) message on key releasing!output is DIN5 female connector (MIDI standard)!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!port-powered when used with PC Game/MIDI port!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[14] = "40 scanpoints, organized in scanrow!no need of arranging the key contacts in scanmatrix!no need of additional diode per each of the key contacts!firmware debouncing!up to 35 key contacts (32+3 additional)!4 dedicated inputs for Program control (Program+1; Program-1; Program+10, Program-10)!Sustain control!passive (ground) or active (voltage driven) positive or negative keying for voltages up to 36V (depending on request)!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adapter or battery!standard on-board DIN5 connector for MIDI output!DIP switch for setting:!*MIDI channel (1-16)!contacts type (normally open/closed)!octave transposition (-1,0,1,2 octaves)!default Velocity (63/127)~!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[15] = "64 scanpoints, organized in scanrow!no need of arranging the key contacts in scanmatrix!no need of additional diode per each of the key contacts!firmware debouncing !active or passive keying (depending on request)!positive or negative active keying voltage up to 36V (depending on request)!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!standard on-board DIN5 connectors for MIDI input/output!Extended functions:!*Optoinsulated MIDI input for merging external MIDI stream!Up to 4 analog inputs for Continuous control (potentiometers)~!DIP switch for setting:!*MIDI channel (1-16) - 4 bits!key contacts type (normally open/closed) - 1 bit!starting note (0-127) - 7 bits~!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[16] = "88 scanpoints, organized in scanrow!no need of arranging the key contacts in scanmatrix!no need of additional diode per each of the key contacts!firmware debouncing !active or passive keying (depending on request)!positive or negative active keying voltage up to 36V (depending on request)!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!standard on-board DIN5 connectors for MIDI input/output!Extended functions:!*Optoinsulated MIDI input for merging external MIDI stream!Up to 4 analog inputs for Continuous control (potentiometers)~!DIP switch for setting:!*MIDI channel (1-16) - 4 bits!key contacts type (normally open/closed) - 1 bit!starting note (0-127) - 7 bits~!!!!!!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[17] = "two standard firmware versions available (mscan-a, mscan-b)!6 scanmatrices, each 64 scanpoints (for keys and buttons) - keymux64 and sm8x8 compatible!3 analog/potentiometer inputs!standard MIDI output (DIN5)!standard MIDI input (DIN5, optoinsulated)!three manual keyboards, up to 64 keys each and one pedalboard up to 32 keys!64 momentary contacts for Stop On (mscan-a) or Stop Toggle (mscan-b)!64 momentary contacts for Stop Off (mscan-a) or Recall Preset (mscan-b)!500 memorized presets of stops (digitally displayed preset number)!easy recalling memorized presets(slow/fast scan buttons)!easy memorizing presets (program button)!MIDI control over the stops and couplers from external MIDI device (via MIDI input)!serial LED display control (sd144 - LEDs control unit separately obtainable)!64 LEDs display for stop tablets!6 intermanual couplers, assigned to 6 toe pistons and 6 stop tablets (with LEDs)!8 builder presets attached to 8 toe pistons (with LEDs)!transposer -9 to +9 notes (digitally displayed transposition value)!2 swell pedals (displayed on LED bars)!Crescendo pedal with 8 builder presets assigned (displayed on LED bar)!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from standard adaptor or battery!!!!!!!!!!!!!!!!!!!!"
MGBencFeatures[18] = "can be used with any 2-phase rotary encoder (not included): photo-raster encoder as well as electromechanical rotary encoder of various detents number!typical uses:!*controlling the playing tempo of MIDI sequenser by means of shaft or other rotating object; the tempo will depend on object rotating speed!converting the speed of objects rotation in MIDI Continuous Control messages!converting the angle of rotation in MIDI Continuous Control message~!two on-board 8-bit DIP switches for user settings!MIDI Merge input allows inserting this unit in existing MIDI gear without need of Merger unit!on-board diode bridge and voltage regulator - just apply 9-12V AC/DC from adaptor or battery!standard on-board DIN5 connectors for MIDI output and MIDI Merge input!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"

MGBencPrice[0] = "160"
MGBencPrice[1] = "500"
MGBencPrice[2] = "160"
MGBencPrice[3] = "180"
MGBencPrice[4] = "180"
MGBencPrice[5] = "312"
MGBencPrice[6] = "150"
MGBencPrice[7] = "180"
MGBencPrice[8] = "90"
MGBencPrice[9] = "70"
MGBencPrice[10] = "120"
MGBencPrice[11] = "100"
MGBencPrice[12] = "100"
MGBencPrice[13] = "50"
MGBencPrice[14] = "100"
MGBencPrice[15] = "140"
MGBencPrice[16] = "170"
MGBencPrice[17] = "200"
MGBencPrice[18] = "90"

MGBencManual[0] = "Yes"
MGBencManual[1] = "No"
MGBencManual[2] = "Yes"
MGBencManual[3] = "Yes"
MGBencManual[4] = "Yes"
MGBencManual[5] = "No"
MGBencManual[6] = "No"
MGBencManual[7] = "No"
MGBencManual[8] = "Yes"
MGBencManual[9] = "Yes"
MGBencManual[10] = "Yes"
MGBencManual[11] = "Yes"
MGBencManual[12] = "Yes"
MGBencManual[13] = "Yes"
MGBencManual[14] = "Yes"
MGBencManual[15] = "Yes"
MGBencManual[16] = "Yes"
MGBencManual[17] = "Yes"
MGBencManual[18] = "Yes"

MGBencAddoc[0] = "No"
MGBencAddoc[1] = "No"
MGBencAddoc[2] = "No"
MGBencAddoc[3] = "Yes"
MGBencAddoc[4] = "Yes"
MGBencAddoc[5] = "No"
MGBencAddoc[6] = "Yes"
MGBencAddoc[7] = "Yes"
MGBencAddoc[8] = "No"
MGBencAddoc[9] = "No"
MGBencAddoc[10] = "No"
MGBencAddoc[11] = "No"
MGBencAddoc[12] = "No"
MGBencAddoc[13] = "No"
MGBencAddoc[14] = "Yes"
MGBencAddoc[15] = "No"
MGBencAddoc[16] = "No"
MGBencAddoc[17] = "Yes"
MGBencAddoc[18] = "No"