"use strict";

/* --------------------------------------------------- */
/* SkyDragon Story track 04                            */
/* Rumble                                              */
/* (boss theme)                                        */
/* (c) Sean Kelly, 2013                                */
/* --------------------------------------------------- */
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

				,	{"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": 1.0, "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", // sixteenths.  Because just wait.
						"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 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": [
							"Ef3 1"
						,	"Bf2 1"
						,	"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": [
							"Df3 1"
						,	"Af2 1"
						,	"Df3 1"
						,	"Af2 1"
						,	"En2 1"
						,	"Df2 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"
						,	"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": [
							"Df3 1"
						,	"Af2 1"
						,	"Df3 1"
						,	"Af2 1"
						,	"En2 1"
						,	"Df2 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"
						,	"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": [
							"Ef3 1"
						,	"Bf2 1"
						,	"Ef3 1"
						,	"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 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"
						,	"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": [
							"Ef3 1"
						,	"Bf2 1"
						,	"Ef3 1"
						,	"Bf2 1"
						,	"Gf2 1"
						,	"Ef2 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"
						,	"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": [
							"Ef3 1"
						,	"Bf2 1"
						,	"Fn3 1"
						,	"Cn3 1"
						,	"Af2 1"
						,	"Fn2 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": [
							"Gn3 1"
						,	"Dn3 1"
						,	"Gn3 1"
						,	"Dn3 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"
						,	"Df3 1"
						,	"Fn3 1"
						,	"Df3 1"
						,	"An2 1"
						,	"Fn2 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"
						,	"Dn3 1"
						,	"Gn3 1"
						,	"Dn3 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"
						,	"Df3 1"
						,	"Fn3 1"
						,	"Df3 1"
						,	"An2 1"
						,	"Fn2 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": [
							"Af3 1"
						,	"Fn3 1"
						,	"Bf3 1"
						,	"Fn3 1"
						,	"Df3 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": [
							"Gn3 1"
						,	"Dn3 1"
						,	"Gn3 1"
						,	"Dn3 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"
						,	"Df3 1"
						,	"Fn3 1"
						,	"Df3 1"
						,	"An2 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": [
							"Gn3 1"
						,	"Dn3 1"
						,	"Gn3 1"
						,	"Dn3 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"
						,	"Df3 1"
						,	"Fn3 1"
						,	"Df3 1"
						,	"An2 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": [
							"Af3 1"
						,	"Fn3 1"
						,	"Bf3 1"
						,	"Fn3 1"
						,	"Df3 1"
						,	"Bf2 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", // sixteenths.  Because just wait.
						"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": [
							"Dn3 1"
						,	"Dn3 1"
						,	"Rst 1"
						,	"Dn3 1"
						,	"Dn3 1"
						,	"Rst 1"
						,	"Dn3 1"
						,	"Dn3 1"
						,	"Rst 1"
						,	"Dn3 1"
						,	"Dn3 1"
						,	"Rst 5"

						,	"Gf3 1"
						,	"Gf3 1"
						,	"Rst 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



				,	{"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 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": [
							"Ef3 1"
						,	"Ef3 2"
						,	"Df3 1"
						,	"Df3 2"
						,	"Ef3 1"
						,	"Ef3 2"
						,	"Df3 1"
						,	"Df3 2"
						,	"Ef3 1"
						,	"Fn3 2"

						,	"Ef3 1"
						,	"Ef3 2"
						,	"Df3 1"
						,	"Df3 2"
						,	"Ef3 1"
						,	"Ef3 2"
						,	"Df3 1"
						,	"Df3 2"
						,	"Ef3 1"
						,	"Fn3 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": [
							"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Af3 1"
						,	"Bf3 2"

						,	"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Gn3 1"
						,	"Gn3 2"
						,	"Fn3 1"
						,	"Fn3 2"
						,	"Af3 1"
						,	"Bf3 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": [
							"Gn2 1"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Gn2 1"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Gn2 1"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Gn2 1"
						,	"Gn2 1"
						,	"Rst 5"

						,	"Gn2 1"
						,	"Gn2 1"
						,	"Rst 2"
						]
					}
				]
		,	"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

				,	{"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": "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.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": [
							"Bf4 3"
						,	"Ef4 3"
						,	"Af4 3"
						,	"Bn3 3"
						,	"Bf3 2"
						,	"Fn4 2"
						]
					}

				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -12, "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": [
							"Gf4 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": [
							"Cn5 2"
						,	"Bf4 1"
						,	"An4 2"
						,	"Gn4 1"
						,	"Fn4 1"

						,	"Gf4 3"
						,	"Df4 1"
						,	"Df4 4"
						,	"Cn5 2"
						,	"Bf4 1"
						,	"An4 2"
						,	"Bf4 1"
						,	"Fn4 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": [
							"Bn4 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"
						,	"Df5 2"
						,	"Cn5 1"
						,	"Bf4 1"

						,	"Bn4 3"
						,	"Fn4 1"
						,	"Fn4 4"
						,	"En5 2"
						,	"Dn5 1"
						,	"Df5 2"
						,	"Cn5 1"
						,	"Bf4 1"
						]
					}

				// 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": [
							"Cn5 1"
						,	"Cn5 1"
						,	"Rst 1"
						,	"Cn5 1"
						,	"Cn5 1"
						,	"Rst 1"
						,	"Cn5 1"
						,	"Cn5 1"
						,	"Rst 1"
						,	"Cn5 1"
						,	"Cn5 1"
						,	"Rst 1"

						,	"Rst 4"

						,	"Cn5 1"
						,	"Cn5 1"
						,	"Rst 2"
						]
					}

				]
		,	"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

				,	{"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": 1}
					}

				// 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
						]
					}
					
				]
		,	"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

				,	{"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": 1}
					}

				// 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"
						]
					}

				]
		}
	};

