Define Device (
	Manufacturer "Boss"
	Device "SE-50"
	Part "MultiPitchShifter"
	Checksum Zero
	CharSet (
		Disable (
			$40 $5C $60 $7E
		)
	)
	Channel 1
)

Define Font "Numbers" (
	Name "Helvetica.font"
	Size 9
)

Define Font "Topaz2" (
	Name "Topaz2.font"
	Size 8
)

Define Font "Topaz2p" (
	Name "Topaz2p.font"
	Size 8
)


Define Window "Effect Select" (
	Position 0 14
	Size 640 24
)

Define Window "Pitch Shifters 1/2" (
	Position 0 41
	Position2 639 232
)
Define Window "Pitch Shifters 3/4" (
	Position 0 41
	Position2 639 232
)

Define Window "Parameters" (
	Position 0 233
	Position2 640 399
)
Define Window "Assign PS1FineTune" (
	Position 325 345
	Position2 534 372
)
Define Window "Assign MasterLevel" (
	Position 325 345
	Position2 534 372
)

Define Midi "Parameter" (
	Data (
		F0h     'Exclusive status
		41h     'Roland ID
		Byte
		37h     'Model ID
		12h     'Command: DT1
		02h     'Address MSB
		00h     'Address
		Byte    'Address LSB
		Bytes 2 'Data
		Byte    'Checksum
		F7h     'EOX
	)
	Midi (
		Data (
			2 CHANNEL
			10 CHECKSUM 5 9
		)
	)
)

Define Midi "Parameter-4" (
	Data (
		F0h     'Exclusive status
		41h     'Roland ID
		Byte    'Channel
		37h     'Model ID
		12h     'Command: DT1
		02h     'Address MSB
		00h     'Address
		Byte    'Address LSB
		Bytes 4 'Data
		Byte    'Checksum
		F7h     'EOX
	)
	Midi (
		Data (
			2 CHANNEL
			12 CHECKSUM 5 11
		)
	)
)

Define Midi "PatchName" (
	Data (
		F0h      'Exclusive status
		41h      'Roland ID
		Byte     'Channel
		37h      'Model ID
		12h      'Command: DT1
		02h      'Address MSB
		00h      'Address
		68h      'Address LSB
		Bytes 12 'Data - Name
		Byte     'Checksum
		F7h      'EOX
	)
	Midi (
		Data (
			2 CHANNEL
			20 CHECKSUM 5 19
		)
	)
)

Define Midi "Patch" (
	Loadable
	DataFile "TEMP:MSE/modules/Boss/SE-50/MultiPitchShifter.dm"
	Midi (
		Data (
			2 CHANNEL
			126 CHECKSUM 5 125
		)
	)
)

Define Midi "Initialize" (
	Data (
		C0h 'Patch Change
		00h '#1
	)
	Midi (
		Data (
			0 CHANNEL
		)
	)
)

Define Initialize (
	Midi "Initialize" (
		Send
	)
	Midi "Patch" (
		Send
	)
)


Define Link "Effect Select" (
	Type Modules (
		Data (
			"Boss/SE-50/Hall1"
			"Boss/SE-50/Hall2"
			"Boss/SE-50/Room"
			"Boss/SE-50/Plate"
			"Boss/SE-50/Ambience"
			"Boss/SE-50/GateReverb"
			"Boss/SE-50/StereoReverb"
			"Boss/SE-50/MultiDelay"
			"Boss/SE-50/MultiTapDelay"
			"Boss/SE-50/StereoDelay"
			"Boss/SE-50/SpaceChorus"
			"Boss/SE-50/MultiPitchShifter"
			"Boss/SE-50/StereoPitchShifter"
			"Boss/SE-50/StereoFlanger"
			"Boss/SE-50/StereoPhaser"
			"Boss/SE-50/Vocoder"
			"Boss/SE-50/RotarySpeaker"
			"Boss/SE-50/KeyboardMulti1"
			"Boss/SE-50/KeyboardMulti2"
			"Boss/SE-50/Rhodes"
			"Boss/SE-50/GuitarMulti"
			"Boss/SE-50/VocalMulti"
			"Boss/SE-50/StereoEnhancer"
			"Boss/SE-50/2ChannelMixer"
			"Boss/SE-50/Reverb+Reverb"
			"Boss/SE-50/GateReverb+Reverb"
			"Boss/SE-50/Chorus+Reverb"
			"Boss/SE-50/Delay+Reverb"
		)
	)
)
Define Link "PreDelay" (
	Type Numbers (
		Font "Numbers"
		Position 0 -12
		Size 100 8
		MinValue 0
		Skip 5
		LevelText "ms"
	)
)
Define Link "FineTune" (
	Type Numbers (
		Font "Numbers"
		Position 0 -12
		Size 100 8
		MinValue -50
		Skip 2
		LevelText "cents"
	)
)
Define Link "PS PageSelect" (
	Type Windows (
		Data (
			"Pitch Shifters 1/2"
			"Pitch Shifters 3/4"
		)
	)
)
Define Link "LPF" (
	Type Texts (
		Font "Numbers"
		Position 0 -12
		Size 100 8
		Data (
			"500 Hz" "700 Hz" "1 kHz" "1.5 kHz" "2 kHz" "3 kHz" "4 kHz" "6 kHz"
			"8 kHz" "12 kHz" "THRU"
		)
	)
)
Define Link "HPF" (
	Type Texts (
		Font "Numbers"
		Position 0 -12
		Size 100 8
		Data (
			"THRU" "30 Hz" "45 Hz" "60 Hz" "90 Hz" "120 Hz" "180 Hz" "250 Hz"
			"350 Hz" "500 Hz" "700 Hz" "1 kHz"
		)
	)
)
Define Link "Controller" (
	Type Texts (
		Font "Numbers"
		Position 0 -12
		Size 100 8
		Data (
			"OFF" "Aftertouch" "Pitch Bend"
			"0" "1" "2" "3" "4" "5" "6" "7" "8" "9"
			"10" "11" "12" "13" "14" "15" "16" "17" "18" "19"
			"20" "21" "22" "23" "24" "25" "26" "27" "28" "29"
			"30" "31" "64" "65" "66" "67" "68" "69"
			"70" "71" "72" "73" "74" "75" "76" "77" "78" "79"
			"80" "81" "82" "83" "84" "85" "86" "87" "88" "89"
			"90" "91" "92" "93" "94" "95"
		)
	)
)
Define Link "Assign" (
	Type Texts (
		Font "Numbers"
		Position 0 -12
		Size 100 8
		Data (
			"Pitch Shifter 1: Fine Tune" "Master Level"
		)
	)
)
Define Link "AssignSelect" (
	Type Windows (
		Data (
			"Assign PS1FineTune"
			"Assign MasterLevel"
		)
	)
)
Define Link "Assign_PS1FineTune" (
	Type Numbers (
		Font "Numbers"
		Position 0 -12
		Size 100 8
		MinValue -2450
		Skip 2
		LevelText "cents"
	)
)


Window "Effect Select" (
	Border (
		Position 0 0
		Position2 639 23
		Fill 3
	)

	Text "BOSS : SE-50" (
		Position 537 14
		Color 2
		Shadow
	)

	Gadget "Page" (
		Position 8 5
		Type Cycle (
			Data (
				"Hall 1"
				"Hall 2"
				"Room"
				"Plate"
				"Ambience"
				"Gate Reverb"
				"Stereo Reverb"
				"Multi Delay"
				"Multi Tap Delay"
				"Stereo Delay"
				"Space Chorus"
				"Multi Pitch Shifter"
				"Stereo Pitch Shifter"
				"Stereo Flanger"
				"Stereo Phaser"
				"Vocoder"
				"Rotary Speaker"
				"Keyboard Multi 1"
				"Keyboard Multi 2"
				"Rhodes"
				"Guitar Multi"
				"Vocal Multi"
				"Stereo Enhancer"
				"2 Channel Mixer"
				"Reverb + Reverb"
				"Gate Reverb + Reverb"
				"Chorus + Reverb"
				"Delay + Reverb"
			)
			Default 11
			Link "Effect Select"
		)
	)

	Gadget "PatchName" (
		Position 355 5
		Font "Topaz2"
		Type String (
			MaxChars 12
		)
		Midi "PatchName" (
			Data (
				8 VALUE Byte
			)
			Send
		)
		Midi "Patch" (
			Data (
				70h VALUE Byte
			)
		)
	)
)


Window "Pitch Shifters 1/2" (
	Border (
		Position 0 0
		Position2 639 91
		Frame 3D-Recess
	)
	Border (
		Position 0 96
		Position2 639 187
		Frame 3D-Recess
	)
	Border (
		Position 470 0
		Position2 498 193
		Fill 3
		Frame 3D-Recess
	)

	Text "1" (
		Position 482 48
	)

	Text "Mode" (
		Position 51 14
	)
	Gadget "PS1_Mode" (
		Position 17 30
		Font "Numbers"
		Type Slider (
			Range 1 3
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 04h Byte
				8 VALUE Offset -1 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				0Ch VALUE Offset -1 XBits abbbbbbb
			)
		)
	)

	Text "Pitch" (
		Position 162 14
	)
	Gadget "PS1_Pitch" (
		Position 127 30
		Font "Numbers"
		Type Slider (
			Range -24 24
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
			LevelText "semitones"
		)
		Midi "Parameter" (
			Data (
				7 06h Byte
				8 VALUE Offset 24 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				0Eh VALUE Offset 24 XBits abbbbbbb
			)
		)
	)

	Text "Fine Tune" (
		Position 255 14
	)
	Gadget "PS1_FineTune" (
		Position 237 30
		Font "Numbers"
		Type Slider (
			Range 0 50
			Size 100 12
			Direction HORIZONTAL
			Link "FineTune"
		)
		Midi "Parameter" (
			Data (
				7 08h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				10h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pre Delay" (
		Position 36 58
	)
	Gadget "PS1_PreDelay" (
		Position 17 74
		Font "Numbers"
		Type Slider (
			Range 0 152
			Size 100 12
			Direction HORIZONTAL
			Link "PreDelay"
		)
		Midi "Parameter" (
			Data (
				7 0Ah Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				12h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Feedback" (
		Position 147 58
	)
	Gadget "PS1_Feedback" (
		Position 127 74
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 0Eh Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				16h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pan" (
		Position 384 58
	)
	Gadget "PS1_Pan" (
		Position 347 74
		Font "Numbers"
		Type Slider (
			Range -50 50
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 0Ch Byte
				8 VALUE Offset 50 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				14h VALUE Offset 50 XBits abbbbbbb
			)
		)
	)

	Text "Level" (
		Position 556 58
	)
	Gadget "PS1_Level" (
		Position 522 74
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 10h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				18h VALUE XBits abbbbbbb
			)
		)
	)


	Text "2" (
		Position 481 144
	)

	Text "Mode" (
		Position 51 110
	)
	Gadget "PS2_Mode" (
		Position 17 126
		Font "Numbers"
		Type Slider (
			Range 1 3
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 12h Byte
				8 VALUE Offset -1 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				1Ah VALUE Offset -1 XBits abbbbbbb
			)
		)
	)

	Text "Pitch" (
		Position 162 110
	)
	Gadget "PS2_Pitch" (
		Position 127 126
		Font "Numbers"
		Type Slider (
			Range -24 24
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
			LevelText "semitones"
		)
		Midi "Parameter" (
			Data (
				7 14h Byte
				8 VALUE Offset 24 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				1Ch VALUE Offset 24 XBits abbbbbbb
			)
		)
	)

	Text "Fine Tune" (
		Position 255 110
	)
	Gadget "PS2_FineTune" (
		Position 237 126
		Font "Numbers"
		Type Slider (
			Range 0 50
			Size 100 12
			Direction HORIZONTAL
			Link "FineTune"
		)
		Midi "Parameter" (
			Data (
				7 16h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				1Eh VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pre Delay" (
		Position 36 154
	)
	Gadget "PS2_PreDelay" (
		Position 17 170
		Font "Numbers"
		Type Slider (
			Range 0 114
			Size 100 12
			Direction HORIZONTAL
			Link "PreDelay"
		)
		Midi "Parameter" (
			Data (
				7 18h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				20h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pan" (
		Position 384 154
	)
	Gadget "PS2_Pan" (
		Position 347 170
		Font "Numbers"
		Type Slider (
			Range -50 50
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 1Ah Byte
				8 VALUE Offset 50 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				22h VALUE Offset 50 XBits abbbbbbb
			)
		)
	)

	Text "Level" (
		Position 556 154
	)
	Gadget "PS2_Level" (
		Position 522 170
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 1Ch Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				24h VALUE XBits abbbbbbb
			)
		)
	)
)

Window "Pitch Shifters 3/4" (
	Border (
		Position 0 0
		Position2 639 91
		Frame 3D-Recess
	)
	Border (
		Position 0 96
		Position2 639 187
		Frame 3D-Recess
	)
	Border (
		Position 470 0
		Position2 498 193
		Fill 3
		Frame 3D-Recess
	)

	Text "3" (
		Position 481 48
	)

	Text "Mode" (
		Position 51 14
	)
	Gadget "PS3_Mode" (
		Position 17 30
		Font "Numbers"
		Type Slider (
			Range 1 3
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 1Eh Byte
				8 VALUE Offset -1 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				26h VALUE Offset -1 XBits abbbbbbb
			)
		)
	)

	Text "Pitch" (
		Position 162 14
	)
	Gadget "PS3_Pitch" (
		Position 127 30
		Font "Numbers"
		Type Slider (
			Range -24 24
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
			LevelText "semitones"
		)
		Midi "Parameter" (
			Data (
				7 20h Byte
				8 VALUE Offset 24 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				28h VALUE Offset 24 XBits abbbbbbb
			)
		)
	)

	Text "Fine Tune" (
		Position 255 14
	)
	Gadget "PS3_FineTune" (
		Position 237 30
		Font "Numbers"
		Type Slider (
			Range 0 50
			Size 100 12
			Direction HORIZONTAL
			Link "FineTune"
		)
		Midi "Parameter" (
			Data (
				7 22h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				2Ah VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pre Delay" (
		Position 36 58
	)
	Gadget "PS3_PreDelay" (
		Position 17 74
		Font "Numbers"
		Type Slider (
			Range 0 76
			Size 100 12
			Direction HORIZONTAL
			Link "PreDelay"
		)
		Midi "Parameter" (
			Data (
				7 24h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				2Ch VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pan" (
		Position 384 58
	)
	Gadget "PS3_Pan" (
		Position 347 74
		Font "Numbers"
		Type Slider (
			Range -50 50
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 26h Byte
				8 VALUE Offset 50 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				2Eh VALUE Offset 50 XBits abbbbbbb
			)
		)
	)

	Text "Level" (
		Position 556 58
	)
	Gadget "PS3_Level" (
		Position 522 74
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 28h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				30h VALUE XBits abbbbbbb
			)
		)
	)


	Text "4" (
		Position 481 144
	)

	Text "Mode" (
		Position 51 110
	)
	Gadget "PS4_Mode" (
		Position 17 126
		Font "Numbers"
		Type Slider (
			Range 1 3
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 2Ah Byte
				8 VALUE Offset -1 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				32h VALUE Offset -1 XBits abbbbbbb
			)
		)
	)

	Text "Pitch" (
		Position 162 110
	)
	Gadget "PS4_Pitch" (
		Position 127 126
		Font "Numbers"
		Type Slider (
			Range -24 24
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
			LevelText "semitones"
		)
		Midi "Parameter" (
			Data (
				7 2Ch Byte
				8 VALUE Offset 24 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				34h VALUE Offset 24 XBits abbbbbbb
			)
		)
	)

	Text "Fine Tune" (
		Position 255 110
	)
	Gadget "PS4_FineTune" (
		Position 237 126
		Font "Numbers"
		Type Slider (
			Range 0 50
			Size 100 12
			Direction HORIZONTAL
			Link "FineTune"
		)
		Midi "Parameter" (
			Data (
				7 2Eh Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				36h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pre Delay" (
		Position 36 154
	)
	Gadget "PS4_PreDelay" (
		Position 17 170
		Font "Numbers"
		Type Slider (
			Range 0 38
			Size 100 12
			Direction HORIZONTAL
			Link "PreDelay"
		)
		Midi "Parameter" (
			Data (
				7 30h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				38h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Pan" (
		Position 384 154
	)
	Gadget "PS4_Pan" (
		Position 347 170
		Font "Numbers"
		Type Slider (
			Range -50 50
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 32h Byte
				8 VALUE Offset 50 XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				3Ah VALUE Offset 50 XBits abbbbbbb
			)
		)
	)

	Text "Level" (
		Position 556 154
	)
	Gadget "PS4_Level" (
		Position 522 170
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 34h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				3Ch VALUE XBits abbbbbbb
			)
		)
	)
)


Window "Parameters" (
	Border (
		Position 0 0
		Position2 543 16
		Fill 3
		Frame 3D-Recess
	)
	Border (
		Position 627 0
		Position2 639 16
		Fill 3
		Frame 3D-Recess
	)
	Text "Pitch Shifters" (
		Position 268 11
	)

	Gadget "PS_PageSelect" (
		Position 549 2
		Type Cycle (
			Data (
				"1 / 2"
				"3 / 4"
			)
			Link "PS PageSelect"
		)
	)


	Border (
		Position 0 25
		Position2 242 71
		Frame 3D-Recess
	)
	Border (
		Position 0 70
		Position2 242 86
		Fill 3
		Frame 3D-Recess
	)
	Text "Filters" (
		Position 97 81
	)

	Text "Low-Pass" (
		Position 34 38
	)
	Gadget "LPF" (
		Position 15 54
		Font "Numbers"
		Type Slider (
			Range 0 10
			Size 100 12
			Direction HORIZONTAL
			Link "LPF"
		)
		Midi "Parameter" (
			Data (
				7 36h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				3Eh VALUE XBits abbbbbbb
			)
		)
	)

	Text "High-Pass" (
		Position 140 38
	)
	Gadget "HPF" (
		Position 125 54
		Font "Numbers"
		Type Slider (
			Range 0 11
			Size 100 12
			Direction HORIZONTAL
			Link "HPF"
		)
		Midi "Parameter" (
			Data (
				7 38h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				40h VALUE XBits abbbbbbb
			)
		)
	)


	Border (
		Position 287 25
		Position2 639 71
		Frame 3D-Recess
	)
	Border (
		Position 287 70
		Position2 639 86
		Fill 3
		Frame 3D-Recess
	)
	Text "Levels" (
		Position 443 81
	)

	Text "Direct L" (
		Position 324 38
	)
	Gadget "Direct_LevelL" (
		Position 302 54
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 40h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				48h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Direct R" (
		Position 434 38
	)
	Gadget "Direct_LevelR" (
		Position 412 54
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 42h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				4Ah VALUE XBits abbbbbbb
			)
		)
	)

	Text "Master" (
		Position 550 38
	)
	Gadget "Master_Level" (
		Position 522 54
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
		)
		Midi "Parameter" (
			Data (
				7 50h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				58h VALUE XBits abbbbbbb
			)
		)
	)


	Border (
		Position 88 95
		Position2 551 141
		Frame 3D-Recess
	)
	Border (
		Position 88 140
		Position2 551 156
		Fill 3
		Frame 3D-Recess
	)
	Text "MIDI Control" (
		Position 276 151
	)

	Text "Controller" (
		Position 122 108
	)
	Gadget "MIDI_Controller" (
		Position 105 124
		Font "Numbers"
		Type Slider (
			Range 0 66
			Size 100 12
			Direction HORIZONTAL
			Link "Controller"
		)
		Midi "Parameter" (
			Data (
				7 50h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				58h VALUE XBits abbbbbbb
			)
		)
	)

	Text "Assign" (
		Position 245 108
	)
	Gadget "MIDI_Assign" (
		Position 215 124
		Font "Numbers"
		Type Slider (
			Range 0 1
			Size 100 12
			Direction HORIZONTAL
			Link "Assign"
			Link "AssignSelect"
		)
		Midi "Parameter" (
			Data (
				7 54h Byte
				8 VALUE XBits abbbbbbb
			)
			Send
		)
		Midi "Patch" (
			Data (
				5Ch VALUE XBits abbbbbbb
			)
		)
	)

	Text "Minimum Value" (
		Position 329 108
	)
	Text "Maximum Value" (
		Position 437 108
	)
)

Window "Assign PS1FineTune" (
	Gadget "MIDI_MinValue.PS1FineTune" (
		Position 0 12
		Font "Numbers"
		Type Slider (
			Range 0 2450
			Size 100 12
			Direction HORIZONTAL
			Link "Assign_PS1FineTune"
		)
		Midi "Parameter-4" (
			Data (
				7 58h Byte
				8 VALUE XBits abbbbbbbcddddddd
			)
			Send
		)
		Midi "Patch" (
			Data (
				60h VALUE XBits abbbbbbbcddddddd
			)
		)
	)

	Gadget "MIDI_MaxValue.PS1FineTune" (
		Position 110 12
		Font "Numbers"
		Type Slider (
			Range 0 2450
			Size 100 12
			Direction HORIZONTAL
			Link "Assign_PS1FineTune"
		)
		Midi "Parameter-4" (
			Data (
				7 5Ch Byte
				8 VALUE XBits abbbbbbbcddddddd
			)
			Send
		)
		Midi "Patch" (
			Data (
				64h VALUE XBits abbbbbbbcddddddd
			)
		)
	)
)

Window "Assign MasterLevel" (
	Gadget "MIDI_MinValue.MasterLevel" (
		Position 0 12
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
			LevelText "%%"
		)
		Midi "Parameter-4" (
			Data (
				7 58h Byte
				8 VALUE XBits abbbbbbbcddddddd
			)
			Send
		)
		Midi "Patch" (
			Data (
				60h VALUE XBits abbbbbbbcddddddd
			)
		)
	)

	Gadget "MIDI_MaxValue.MasterLevel" (
		Position 110 12
		Font "Numbers"
		Type Slider (
			Range 0 100
			Size 100 12
			Direction HORIZONTAL
			LevelPlace ABOVE
			LevelText "%%"
		)
		Midi "Parameter-4" (
			Data (
				7 5Ch Byte
				8 VALUE XBits abbbbbbbcddddddd
			)
			Send
		)
		Midi "Patch" (
			Data (
				64h VALUE XBits abbbbbbbcddddddd
			)
		)
	)
)
