<?xml version="1.0" encoding="UTF-8"?>
<!-- 
Two Jammer keyboards with a 1 Octave and 1 MIDI channel offset between them in a quasi accordeon layout.
The rotation attribute forces the screen into portrait mode, orientation sets the initial layout direction to vertical (default would be horizontal) 
-->
<controller rotation="1" width="-1" height="-1" orientation="1" padding="4">
	<!-- orientation again forces the layout direction to vertical (default would be to flip the parent's orientation) -->
	<control type="group" weight=".5" orientation="1">
		<!--Upper isomorphic keyboard. Attribute 'kbm' sets the note-layout to jammer, 'mode' flips the keyboard vertically using bits (1 &) 2. Higher bits meet defaults for velocity & aftertouch modes, but need to be explicitly given here, because the set flipping bit makes the mode value different from the control's defaults. -->
		<control type="isokeys" weight=".7" kbm="0x02" mode="0x11002" midi="0x91,0x24,0x7F"/>
		<!-- Upper keyboard's pitchwheel. This is inverted (bit 1 set in 'mode'). Again other defaults need to be 'regiven' or the pitchwheel would and not allow for value jumps (bit 2) nor center (bit 3).-->
		<control type="pitchwheel" weight=".15" midi="0xE1,0x7F,0x7F" mode="0x07"/>
		<control type="group" weight=".15">
			<!-- Upper keyboard's modwheel. 'mode' = 1 inverts and disables the default jumping & centering. -->
			<control type="pitchwheel" midi="0xB1,0x01,0x7F" mode="0x1"/>
			<control type="stepper" margin="8,3" title="Oct.%02d/1" midi="0xFF,0x22,0x0C,0x18"/>
		</control>
	</control>
	<!-- bottom half. Same group setup as for upper one, just the controls are arranged in reverse order -->
	<control type="group" weight=".5" orientation="1">
		<control type="group" weight=".15">
			<control type="stepper" margin="8,3" title="Ch.%02d/1" midi="0xFF,0x21,0x51,0x00"/>
			<!-- Lower keyboard's modwheel. 'mode' = 0 disables the default jumping & centering. -->
			<control type="pitchwheel" midi="0xB0,0x01,0x7F" mode="0x0"/>
		</control>
		<!-- Lower keyboard's pitchwheel. No 'mode' attribute here - the control is at default settings. -->
		<control type="pitchwheel" weight=".15" midi="0xE0,0x7F,0x7F"/>
		<!-- Lower isomorphic keyboard. No 'mode' attribute here - the control is at default settings with the 'kbm' attribute again setting the note-layout -->
		<control type="isokeys" weight=".7" kbm="0x02" midi="0x90,0x30,0x7F"/>
	</control>
</controller>
