"use strict";

/* --------------------------------------------------- */
/* SkyDragon Story track 04                            */
/* Rumble                                              */
/* (boss theme)                                        */
/* (c) Sean Kelly, 2013, 2015, 2016                    */
/* --------------------------------------------------- */
DATA_CHIPTUNES["Rumble"] = {
		"chip": "oneofeach"
	,	"bpm": 360 // beats per minute; 180 quarters in 8ths
	,	"priority": 1 // baseline nonzero for BGM
	,	"songdata" : {
			"st":	// name of a channel on the chip	
				[
					{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.1}
					}
				,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
						"data": {"cents": -5}
					}

				// Section A.1

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.25, "dur": 0}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.1}
					}
				,	{"command": "tempo", // sixteenths.  Because just wait.
						"data": {"bpm": 720}
					}

				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef3 1"
						,	"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 1"
						,	"Bf1 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Df3 1"
						,	"Af2 1"
						,	"En2 1"
						,	"Df2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf2 1"
						,	"Gf2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef3 1"
						,	"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef3 1"
						,	"Bf2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 1"
						,	"Bf1 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Df3 1"
						,	"Af2 1"
						,	"En2 1"
						,	"Df2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 1"
						,	"Bf1 1"
						]
					}


				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.25, "dur": 0.25}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.12}
					}
				,	{"command": "tempo", // eighths
						"data": {"bpm": 360}
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gf2 1"
						,	"Gf2 1"
						,	"Gf2 1"
						,	"Gf2 3"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn2 1"
						,	"Fn2 1"
						,	"Fn2 1"
						,	"Fn2 3"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf2 2"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf2 2"
						]
					}
				
				
				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -32, "times": 1}
					}

				// Section A.2

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.25, "dur": 0}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.1}
					}
				,	{"command": "tempo", // sixteenths.  Because just wait.
						"data": {"bpm": 720}
					}

				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 1"
						,	"Cn3 1"
						,	"Af2 1"
						,	"Fn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn3 1"
						,	"Af2 1"
						,	"Fn2 1"
						,	"Cn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef3 1"
						,	"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn3 1"
						,	"Af2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 1"
						,	"Cn3 1"
						,	"Af2 1"
						,	"Fn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 1"
						,	"Cn3 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn3 1"
						,	"Af2 1"
						,	"Fn2 1"
						,	"Cn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef3 1"
						,	"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn3 1"
						,	"Af2 1"
						,	"Fn2 1"
						,	"Cn2 1"
						]
					}


				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.25, "dur": 0.25}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.12}
					}
				,	{"command": "tempo", // eighths
						"data": {"bpm": 360}
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Af2 1"
						,	"Af2 1"
						,	"Af2 1"
						,	"Af2 3"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn2 1"
						,	"Gn2 1"
						,	"Gn2 1"
						,	"Gn2 3"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn3 2"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn3 2"
						]
					}
				
				
				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -32, "times": 1}
					}

				// Section B.1

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "tempo", // sixteenths.  Because just wait.
						"data": {"bpm": 720}
					}

				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn3 1"
						,	"Dn2 1"
						,	"Gn3 1"
						,	"Dn2 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 1"
						,	"Cn3 1"
						,	"Fn3 1"
						,	"Cn3 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn3 1"
						,	"Dn2 1"
						,	"Gn3 1"
						,	"Dn2 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 1"
						,	"Cn3 1"
						,	"Fn3 1"
						,	"Cn3 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn3 1"
						,	"Dn2 1"
						,	"An3 1"
						,	"En3 1"
						,	"Cn3 1"
						,	"An2 1"
						]
					}


				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn3 1"
						,	"Dn2 1"
						,	"Gn3 1"
						,	"Dn2 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 1"
						,	"Cn3 1"
						,	"Fn3 1"
						,	"Cn3 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn3 1"
						,	"Dn2 1"
						,	"Gn3 1"
						,	"Dn2 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 1"
						,	"Cn3 1"
						,	"Fn3 1"
						,	"Cn3 1"
						,	"Bf2 1"
						,	"Gn2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn3 1"
						,	"Dn2 1"
						,	"An3 1"
						,	"En3 1"
						,	"Cn3 1"
						,	"An2 1"
						]
					}

				// Section B.2

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "tempo", // sixteenths.  Because just wait.
						"data": {"bpm": 720}
					}

				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gs3 1"
						,	"Ef3 1"
						,	"Gs3 1"
						,	"Ef3 1"
						,	"Bn2 1"
						,	"Gs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fs3 1"
						,	"Dn3 1"
						,	"Fs3 1"
						,	"Dn3 1"
						,	"Bf2 1"
						,	"Fs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gs3 1"
						,	"Ef3 1"
						,	"Gs3 1"
						,	"Ef3 1"
						,	"Bn2 1"
						,	"Gs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fs3 1"
						,	"Dn3 1"
						,	"Fs3 1"
						,	"Dn3 1"
						,	"Bf2 1"
						,	"Fs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"An3 1"
						,	"Fs3 1"
						,	"Bn3 1"
						,	"Fs3 1"
						,	"Dn3 1"
						,	"Bn2 1"
						]
					}


				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gs3 1"
						,	"Ef3 1"
						,	"Gs3 1"
						,	"Ef3 1"
						,	"Bn2 1"
						,	"Gs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fs3 1"
						,	"Dn3 1"
						,	"Fs3 1"
						,	"Dn3 1"
						,	"Bf2 1"
						,	"Fs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gs3 1"
						,	"Ef3 1"
						,	"Gs3 1"
						,	"Ef3 1"
						,	"Bn2 1"
						,	"Gs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fs3 1"
						,	"Dn3 1"
						,	"Fs3 1"
						,	"Dn3 1"
						,	"Bf2 1"
						,	"Fs2 1"
						]
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"An3 1"
						,	"Fs3 1"
						,	"Bn3 1"
						,	"Fs3 1"
						,	"Dn3 1"
						,	"Bn2 1"
						]
					}

				// Section C

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.25, "dur": 0.25}
					}
				,	{"command": "tempo", // eighths
						"data": {"bpm": 360}
					}
				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef3 1"
						,	"Ef3 1"
						,	"Rst 1"
						,	"Ef3 1"
						,	"Ef3 1"
						,	"Rst 1"
						,	"Ef3 1"
						,	"Ef3 1"
						,	"Rst 1"
						,	"Ef3 1"
						,	"Ef3 1"
						,	"Rst 5"

						,	"Gn3 1"
						,	"Gn3 1"
						,	"Rst 2"
						]
					}

				// reset

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ds3 2"
						,	"Cs3 2"
						,	"Bn2 2"
						,	"As2 2"
						]
					}

				]
		,	"sin":	// name of a channel on the chip	
				[
					{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.2}
					}
				//,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
				//		"data": {"cents": 0}
				//	}

				,	{"command": "pan", "data": {"position": 0.5}}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.25, "dur": 0.5}
					}

				// Section A.1

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef3 2"
						,	"Bf2 2"
						,	"Df3 2"
						,	"Bf2 1"
						,	"Ef3 2"
						,	"Ef3 1"
						,	"Bf2 2"
						,	"Df3 2"
						,	"Bf2 2"
						]
					}

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef2 1"
						,	"Ef2 1"
						,	"Ef2 1"
						,	"Ef2 3"

						,	"Ef2 1"
						,	"Ef2 1"
						,	"Ef2 1"
						,	"Ef2 3"

						,	"Gf2 2"
						,	"Gf2 2"
						]
					}
				
				
				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -2, "times": 1}
					}

				// Section A.2

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn3 2"
						,	"Cn3 2"
						,	"Ef3 2"
						,	"Cn3 1"
						,	"Fn3 2"
						,	"Fn3 1"
						,	"Cn3 2"
						,	"Ef3 2"
						,	"Cn3 2"
						]
					}

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn2 1"
						,	"Fn2 1"
						,	"Fn2 1"
						,	"Fn2 3"

						,	"Fn2 1"
						,	"Fn2 1"
						,	"Fn2 1"
						,	"Fn2 3"

						,	"Af2 2"
						,	"Af2 2"
						]
					}
				
				
				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -2, "times": 1}
					}

				// Section B.1

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Gn3 1"
						,	"An3 2"

						,	"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Gn3 1"
						,	"An3 2"
						]
					}

				// Section B.2

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gs3 1"
						,	"Gs3 2"
						,	"Fs3 1"
						,	"Fs3 2"
						,	"Gs3 1"
						,	"Gs3 2"
						,	"Fs3 1"
						,	"Fs3 2"
						,	"An3 1"
						,	"Bn3 2"

						,	"Gs3 1"
						,	"Gs3 2"
						,	"Fs3 1"
						,	"Fs3 2"
						,	"Gs3 1"
						,	"Gs3 2"
						,	"Fs3 1"
						,	"Fs3 2"
						,	"An3 1"
						,	"Bn3 2"
						]
					}

				// Section C

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gs2 1"
						,	"Gs2 1"
						,	"Rst 1"
						,	"Gs2 1"
						,	"Gs2 1"
						,	"Rst 1"
						,	"Gs2 1"
						,	"Gs2 1"
						,	"Rst 1"
						,	"Gs2 1"
						,	"Gs2 1"
						,	"Rst 5"

						,	"Gs2 1"
						,	"Gs2 1"
						,	"Rst 2"
						]
					}

				// reset

				,	{"command": "tempo", // sixteenths
						"data": {"bpm": 720}
					}

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf3 2"
						,	"Bn3 1"
						,	"Bf3 1"
						,	"Af3 2"
						,	"Gf3 2"
						,	"Fn3 2"
						,	"Ef3 2"
						,	"Df3 2"
						,	"Bf2 2"
						]
					}

				,	{"command": "tempo", // eighths
						"data": {"bpm": 360}
					}
				]
		,	"sq":	// name of a channel on the chip	
				[
					{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.1}
					}
				//,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
				//		"data": {"cents": -5}
				//	}

				// Section A.1

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 0.5, "end": 1.0, "dur": 0}
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gf5 6"
						]
					}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gf5 4"
						]
					}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.5, "dur": 0}
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Gf5 6"
						]
					}

				
				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.25, "end": 0.75, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 0.94, "end": 1.0, "dur": 0.05}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf4 3"
						]
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.25, "end": 0.5, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef4 1"
						,	"Ef4 2"
						]
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.25, "end": 0.75, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 0.94, "end": 1.0, "dur": 0.05}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Af4 3"
						]
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.5, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bn3 1"
						,	"Bn3 2"
						,	"Bf3 2"
						,	"Fn4 2"
						]
					}

				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -22, "times": 1}
					}

				// Section A.2

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 0.5, "end": 1.0, "dur": 0}
					}
				,	{"command": "pan", "data": {"position": 0.375}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef5 6"
						]
					}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef5 4"
						]
					}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.5, "dur": 0}
					}
				,	{"command": "pan", "data": {"position": 0.625}}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Ef5 6"
						]
					}

				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.25, "end": 0.75, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 0.94, "end": 1.0, "dur": 0.05}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn5 3"
						]
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.25, "end": 0.5, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn4 1"
						,	"Fn4 2"
						]
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.75, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 0.94, "end": 1.0, "dur": 0.05}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Bf4 3"
						]
					}

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.5, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cs4 1"
						,	"Cs4 2"
						,	"Cn4 2"
						,	"Gn4 2"
						]
					}

				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -22, "times": 1}
					}

				//	Section B.1

				,	{"command": "pan", "data": {"position": 0.5}}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 0.75, "end": 1.0, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"As4 8"
						]
					}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.75, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"En5 2"
						,	"Dn5 1"
						,	"Cs5 2"
						,	"Bn4 1"
						,	"An4 1"
						]
					}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.5, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"As4 3"
						,	"Fn4 1"
						,	"Fn4 4"
						,	"En5 2"
						,	"Dn5 1"
						,	"Cs5 2"
						,	"Dn5 1"
						,	"An4 1"
						]
					}

				// Section B.2

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 0.75, "end": 1.0, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn5 8"
						]
					}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.75, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Fn5 2"
						,	"Ef5 1"
						,	"Dn5 2"
						,	"Cs5 1"
						,	"Bn4 1"
					]
				}
				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.5, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cn5 3"
						,	"Fs4 1"
						,	"Fs4 4"
						,	"Fn5 2"
						,	"Ef5 1"
						,	"Dn5 2"
						,	"Cs5 1"
						,	"Bn4 1"
						]
					}

				// Section C

				,	{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.75, "dur": 0}
					}
				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Cs5 1"
						,	"Cs5 1"
						,	"Rst 1"
						,	"Cs5 1"
						,	"Cs5 1"
						,	"Rst 1"
						,	"Cs5 1"
						,	"Cs5 1"
						,	"Rst 1"
						,	"Cs5 1"
						,	"Cs5 1"
						,	"Rst 1"

						,	"Rst 4"

						,	"Cs5 1"
						,	"Cs5 1"
						,	"Rst 2"
						]
					}

				// reset

				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.1}
					}

				,	{"command": "tempo", // sixteenths
						"data": {"bpm": 720}
					}

				,	{"command": "notes", // strings of the form "NnO L" where NnO is the Note-modifier-Octave note to play (from DEF_CHIPTUNE_PITCHES) and L is the length in beats or fractions (can be multiple characters as long as parseFloat will take it)
						"data": [
							"Dn5 2"
						,	"Dn5 1"
						,	"Cn5 1"
						,	"Bf4 2"
						,	"An4 2"
						,	"Af4 2"
						,	"Af4 2"
						,	"Fn4 2"
						,	"Dn5 2"
						]
					}

				,	{"command": "tempo", // eighths
						"data": {"bpm": 360}
					}

				]
		,	"tri":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every note; dur is measured in seconds, 0 means length of current note
						"data": {"start": 1.0, "end": 0.0, "dur": 0.25}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.0, "end": 0.5, "dur": 0.25}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.4}
					}

				,	{"command": "pan", 
						"data": {"position": 0.4375}
					}

				// Section A.1, A.2

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "notes", 
						"data": [
							"Cs3 2" // Cs3 - mid tom
						,	"Gn2 2" // Gn2 - low tom
						,	"Cs3 2" // Cs3 - mid tom
						,	"Gn2 1" // Gn2 - low tom
						,	"Cs3 2" // Cs3 - mid tom
						,	"Cs3 1" // Cs3 - mid tom
						,	"Gn2 2" // Gn2 - low tom
						,	"Cs3 2" // Cs3 - mid tom
						,	"Gn2 2" // Gn2 - low tom

						,	"Rst 12"
						,	"Cs3 2" // Cs3 - mid tom
						,	"Gn2 2" // Gn2 - low tom
						]
					}

				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -1, "times": 3}
					}

				// Section B.1, B.2

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "notes", 
						"data": [
							"Cs3 3" // Cs3 - mid tom
						,	"Gn2 3" // Gn2 - low tom
						,	"Cs3 3" // Cs3 - mid tom
						,	"Cs3 2" // Cs3 - mid tom
						,	"Cs3 2" // Cs3 - mid tom
						,	"Gn2 2" // Gn2 - low tom
						]
					}

				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -1, "times": 3}
					}

				// Section C

				,	{"command": "notes", 
						"data": [
							"Gn2 3" // Gn2 - low tom
						,	"Gn2 3" // Gn2 - low tom
						,	"Gn2 3" // Gn2 - low tom
						,	"Gn2 3" // Gn2 - low tom

						,	"Gn2 2" // Gn2 - low tom
						,	"Gn2 2" // Gn2 - low tom

						,	"Cs3 1" // Cs3 - mid tom
						,	"Cs3 1" // Cs3 - mid tom
						,	"Gn2 2" // Gn2 - low tom
						]
					}

				// reset

				,	{"command": "notes", 
						"data": [
							"Fn3 1" // Fn3 - hi tom
						,	"Cs3 1" // Cs3 - mid tom
						,	"Gn2 1" // Gn2 - low tom
						,	"Fn3 1" // Fn3 - hi tom
						,	"Cs3 1" // Cs3 - mid tom
						,	"Gn2 1" // Gn2 - low tom
						,	"Fn3 1" // Fn3 - hi tom
						,	"Gn2 1" // Gn2 - low tom
						]
					}
					
				]
		,	"nz":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every note
						"data": {"start": 1.0, "end": 0.2, "dur": 0}
					}
				//,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
				//		"data": {"start": 1.0, "end": 1.0, "dur": 0}
				//	}
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.1}
					}
				,	{"command": "pan", 
						"data": {"position": 0.5625}
					}
				//,	{"command": "tempo", // change tempo mid-tune
				//		"data": {"bpm": 120}
				//	}
				//,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" cound when 2 similar frequencies overlap)
				//		"data": {"cents": 0}
				//	}

				// Section A.1, A.2

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "notes", 
						"data": [
							"Rst 16"

						,	"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Rst 2"
						,	"Cn4 1" //snare
						,	"Cn4 1" //snare

						,	"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Rst 6"
						]
					}

				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -1, "times": 3}
					}

				// Section B

				,	{"command": "jump", // reset the loop counter
						"data": {"reset": true}
					}

				,	{"command": "notes", 
						"data": [
							"Fn4 3" //snare?
						,	"Dn4 3" //snare?
						,	"Rst 7"
						,	"Dn6 2" //hat
						]
					}

				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -1, "times": 3}
					}

				// Section C

				,	{"command": "notes", 
						"data": [
							"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Rst 1"
						,	"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Rst 1"
						,	"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Rst 1"
						,	"Cn4 1" //snare
						,	"Cn4 1" //snare
						,	"Rst 1"
						
						,	"Rst 8"
						]
					}

				// reset

				,	{"command": "notes", 
						"data": [
							"Rst 8"
						]
					}

				]
		}
	};

