REM:Script template 



STARTSCRIPT:



REM: // this name will appear in the TrackMixers PopupMenu

DEVICENAME:"XG Global (Script)"

DEVICESHORTNAME:"XG 2"

REM: // the first name is only used to identify the following names later

NAMETABLE: xg_eff1names,No Effect,Hall1,Hall2,"Room1","Room2","Room3","Stage1","Stage2",Plate

NAMETABLE: xg_eff2names,"No Effect","Chorus1","Chorus2","Chorus3","Celeste1","Celeste2","Celeste3","Flanger1","Flanger2"

NAMETABLE: xg_eff3names,"No Effect","Hall1","Hall2","Room1","Room2","Room3","Stage1","Stage2","Plate",

												"Delay LCR","Delay LR","Echo","Cross Delay","ER","Gate Reverb","Reverse Gate",

												"THRU","Chorus1","Chorus2","Chorus3","Celeste1","Celeste2","Celeste3","Flanger1","Flanger2",

												"Symphonic","Rotary Speaker","Tremolo","Auto Pan","Phaser1","Distortion","Overdrive",

												 "Amp Simulator","3-Band EQ","2-Band EQ","Auto Wah"



REM: // a Maptable uses the Valuerange as index into a table of values (i.e log values)

REM: // it is theoretically possible to stuff Bankselect+Prg-Change into this Table in the future



MAPTABLE:  xg_map1,x00,x0100,x0101,x0200,x0201,x0202,x0300,x0301,x0400

MAPTABLE:  xg_map2,x00,x4100,x4101,x4102,x4200,x4201,x4202,x4300,x4301

MAPTABLE:  xg_map3,x00,x0100,x0101,x0200,x0201,x0202,x0300,x0301,x0400,x0500,x0600,x0700,x0800,x0900,x0a00,

									 x0b00,x4000,x4100,x4101,x4102,x4200,x4201,x4202,x4300,x4301,x4400,x4500,x4600,x4700,

									 x4800,x4900,x4a00,x4b00,x4c00,x4d00,x4e00



REM:the following username is only used to identify this Valuesettings in the MAPARRAY

EFFECTVALUE:XG_S1

	LONGNAME:"Eff.1"

	MINVALUE:	0	

	MAXVALUE:	8

	VALUEPOSITION:7	

	DEFAULTVALUE:	 1

	DISABLEDVALUE:	-1

	VALUEFLAGS:	0

	VALUECLASS:	CBYTE

	RESETVALUE: 0

	MIDISTRING: f0,43,10,4c,02,01,00,00,00,f7,ff

	VALUECONVERSION: wordToMsbLsb

	CONTROLLTYPE: POPUP_TYPE

	MAPLIST: xg_map1

	NAMELIST: xg_eff1names

EFFECTVALUE:XG_S2

	LONGNAME:"Eff.2"

	MINVALUE:	0	

	MAXVALUE:	8

	VALUEPOSITION:7	

	DEFAULTVALUE:	 1

	DISABLEDVALUE:	-1

	VALUEFLAGS:	0

	VALUECLASS:	CBYTE

	RESETVALUE: 0

	MIDISTRING:,f0,43,10,4c,02,01,20,00,00,f7,ff

	VALUECONVERSION: wordToMsbLsb

	CONTROLLTYPE: POPUP_TYPE

	MAPLIST: xg_map2

	NAMELIST: xg_eff2names

EFFECTVALUE:XG_S3

	LONGNAME:"Eff.3"

	MINVALUE:	0	

	MAXVALUE:	35

	VALUEPOSITION:16	

	DEFAULTVALUE:	 1

	DISABLEDVALUE:	-1

	VALUEFLAGS:	0

	VALUECLASS:	CBYTE

	RESETVALUE: 0

	MIDISTRING: f0,43,10,4c,02,01,5a,01,f7,f0,43,10,4c,02,01,40,00,00,f7,ff

	VALUECONVERSION: wordToMsbLsb

	CONTROLLTYPE: POPUP_TYPE

	MAPLIST: xg_map3

	NAMELIST: xg_eff3names

EFFECTVALUE:XG_S4

	LONGNAME:Reset

	MINVALUE:	0	

	MAXVALUE:	1

	VALUEPOSITION:11

	DEFAULTVALUE:	 1

	DISABLEDVALUE:	-1

	VALUEFLAGS:	NO_CHASE

	VALUECLASS:	CBYTE

	RESETVALUE: 0

	MIDISTRING: f0,43,10,4c,00,00,7e,00,f7,ff,0,0

	CONTROLLTYPE: FADER_TYPE

EFFECTVALUE:XG_S5

	LONGNAME:MastVol

	MINVALUE:	0	

	MAXVALUE:	127

	VALUEPOSITION:6

	DEFAULTVALUE:	 127

	DISABLEDVALUE:	-1

	VALUEFLAGS: 0

	VALUECLASS:	CBYTE

	RESETVALUE: 0

	MIDISTRING:f0,7f,7f,04,01,00,00,f7,ff

	CONTROLLTYPE: FADER_TYPE

	

MAPARRAY:map2,XG_S1,XG_S2,XG_S3,XG_S4,XG_S5

ENDSCRIPT:

 

