<plugin resizable="true">
	<grid rows="2" cols="2" spacing="4" transpose="true">
		<group text="groups.midi_setup">
			<grid rows="3" cols="6" hspacing="4">
				<label text="labels.channel" />
				<label text="labels.mus.note" />
				<label text="labels.muting" />
				<hbox spacing="4" fill="false">
					<button id="noff" led="true" color="green" size="12" />
					<label text="labels.midi.note_off" />
				</hbox>
				<label text="labels.midi.midi_num" />
				<label text="labels.muting" />
									
				<combo id="chan" halign="1" fill="true" />
				<hbox fill="true" spacing="2">
					<combo id="note" fill="true" />
					<combo id="oct" fill="true" />
				</hbox>
				<button id="muting" size="24" color="yellow" led="true" />
				<knob id="fout" size="20" />
				<midinote id="mn" note_id="note" octave_id="oct" format="i3" text_color="green" />
				<button id="mute" size="32" />
				
				<label />
				<label />
				<label />
				<value id="fout" same_line="true"/>
				<label />
				<led id="mute" color="red" />
			</grid>
		</group>
		<cgroup id="ssel" expand="true">
			<vbox>
				<!-- File editor -->
				<file expand="true"
					id="sf[ssel]" head_id="hc[ssel]" tail_id="tc[ssel]"
					fadein_id="fi[ssel]" fadeout_id="fo[ssel]" length_id="fl[ssel]"
					status_id="fs[ssel]" mesh_id="fd[ssel]"
					width="320" height="160"
					path_id="ui:dlg_sample_path"
					bind="makeup=mk[ssel],predelay=pd[ssel]"
				/>
					
				<grid rows="3" cols="8" spacing="2">
					<label text="labels.sedit.reverse" />
					<label text="labels.sedit.head_cut" />
					<label text="labels.sedit.tail_cut" />
					<label text="labels.sedit.fade_in" />
					<label text="labels.sedit.fade_out" />
					<label text="labels.sedit.makeup" />
					<label text="labels.sedit.predelay" />
					<label text="labels.sedit.listen" />
					
					<button id="rs[ssel]" size="32" />
					<knob id="hc[ssel]" size="20" />
					<knob id="tc[ssel]" size="20" />
					<knob id="fi[ssel]" size="20" scale_color="yellow" />
					<knob id="fo[ssel]" size="20" scale_color="yellow" />
					<knob id="mk[ssel]" size="20" />
					<knob id="pd[ssel]" size="20" />
					<button id="ls[ssel]" size="32" toggle="false" />
					
					<led id="rs[ssel]" />
					<value id="hc[ssel]" />
					<value id="tc[ssel]" />
					<value id="fi[ssel]" />
					<value id="fo[ssel]" />
					<value id="mk[ssel]" />
					<value id="pd[ssel]" />
					<led id="ls[ssel]" />
				</grid>
			</vbox>
		</cgroup>
		<group text="groups.audio_channel">
			<grid rows="3" cols="5">
				<label text="labels.dynamics" />
				<label text="labels.time_drifting" />
				<label text="labels.signal.dry" />
				<label text="labels.signal.wet" />
				<label text="labels.output" />
				
				<knob id="dyna" scale_color="green" />
				<knob id="drft" scale_color="green" />
				<knob id="dry" />
				<knob id="wet" />
				<knob id="g_out" />
				
				<value id="dyna" />
				<value id="drft" />
				<value id="dry" />
				<value id="wet" />
				<value id="g_out" />
			</grid>
		</group>
		<group text="groups.sample_matrix" expand="true">
			<!-- Sample matrix -->
			<grid rows="9" cols="9" transpose="true">
				<label text="labels.sedit.sample_num" fill="true" halign="0" />
				<label text="labels.sedit.enabled" fill="true" halign="0" />
				<label text="labels.sedit.active" fill="true" halign="0" />
				<label text="labels.midi.velocity" fill="true" halign="0" />
				<label text="labels.units.:pc" fill="true" halign="0" />
				<label text="labels.gain" fill="true" halign="0" />
				<label text="labels.units.:db" fill="true" halign="0" />
				<label text="labels.sedit.listen" fill="true" halign="0" />
				<label text="labels.midi.note_on" fill="true" halign="0" />

				<ui:for id="i" first="0" last="7" >
					<label text="${i}" />
					<button id="on_${i}" size="16" color="yellow" led="true" />
					<led id="ac_${i}" color="yellow" size="6"/>
					<knob id="vl_${i}" size="20" scale_color="magenta" />
					<value id="vl_${i}" detailed="false" />
					<knob id="mx_${i}" size="20" scale_color="cyan" />
					<value id="mx_${i}" detailed="false" />
					<button id="ls_${i}" size="32" toggle="false" />
					<led id="no_${i}" />
				</ui:for>
			</grid>
		</group>
	</grid>
</plugin>