"use strict";

/* --------------------------------------------------- */
/* SkyDragon Story track 22                            */
/* Frog Hop                                            */
/* (bog theme)                                         */
/* (c) Sean Kelly, 2018                                */
/* --------------------------------------------------- */
DATA_CHIPTUNES["Frog Hop"] = {
		"chip": "oneofeach"
	,	"bpm": 280 // beats per minute; 140 in 8ths
	,	"priority": 1 // baseline nonzero for BGM
	,	"songdata" : {
			"st":	// 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": 0.0, "end": 1.0, "dur": 0.125}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.02, "end": 0.98, "dur": 0}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.075}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.5}
					}
				,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
						"data": {"cents": 0}
					}
				
				// 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": [
							"Rst 2"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Rst 2"
						,	"Gn2 1"
						,	"Rst 1"

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

				// B
				,	{"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": [
							"Rst 2"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Rst 2"
						,	"Gn2 1"
						,	"Rst 1"

						,	"Rst 2"
						,	"Gn2 1"
						,	"Gn2 1"
						,	"Rst 2"
						,	"Gn2 1"
						,	"Rst 1"
						]
					}
				
				,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
						"data": {"delta": -4, "times": 3}
					}
				]
		,	"tri":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every note
						"data": {"start": 0.75, "end": 1.0, "dur": 0.25}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 1.05, "end": 1.0, "dur": 0.125}
					}
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.1}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.625}
					}
				,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
						"data": {"cents": -2}
					}

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

						,	"Gn4 1"
						,	"Bf4 1"
						,	"Rst 1"
						,	"Dn4 2"
						,	"Gn4 1"
						,	"Bf4 1"
						,	"Gn4 1"

						,	"Df5 1"
						,	"Rst 1"
						,	"Cn5 4"
						,	"Bf4 2"

						,	"Gn4 1"
						,	"Bf4 1"
						,	"Rst 1"
						,	"An4 1"
						,	"Rst 1"
						,	"Dn4 1"
						,	"Ef4 1"
						,	"Dn4 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": [
							"Dn5 1"
						,	"Rst 1"
						,	"Dn5 4"
						,	"Cn5 1"
						,	"Bf4 1"

						,	"Gn4 1"
						,	"Bf4 1"
						,	"Rst 1"
						,	"Gn4 2"
						,	"Gn4 1"
						,	"Bf4 1"
						,	"Gn4 1"

						,	"Df5 1"
						,	"Rst 1"
						,	"Cn5 4"
						,	"Bf4 1"
						,	"Gn4 1"

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

				//B
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.125}
					}
				,	{"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 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 1"
						,	"Dn5 1"

						,	"Rst 5"
						,	"Gn4 1"
						,	"Bf4 1"
						,	"Gn4 1"

						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 0.25"
						,	"Cs5 1"
						,	"Dn5 1"

						,	"Rst 5"
						,	"Gn4 1"
						,	"Bf4 1"
						,	"Gn4 1"


						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 0.25"
						,	"Fn5 1"
						,	"Dn5 1"

						,	"Rst 5"
						,	"Gn4 1"
						,	"Bf4 1"
						,	"Gn4 1"

						,	"Df5 1"
						,	"Rst 1"
						,	"Cn5 4"
						,	"Bf4 1"
						,	"Gn4 1"

						,	"Rst 3"
						,	"Gn3 1"
						,	"Rst 1"
						,	"Gn4 1"
						,	"Bf4 1"
						,	"Gn4 1"
						]
					}

				]
		,	"sq":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every note
						"data": {"start": 1.0, "end": 0.0, "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.0625}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.375}
					}
				,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
						"data": {"cents": 2}
					}

				// 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": [
							"Gn3 1"
						,	"Rst 2"
						,	"Dn3 1"
						,	"Fn3 1"
						,	"Dn3 2"
						,	"Gn3 1"
						
						,	"Rst 1"
						,	"Gn3 1"
						,	"Rst 1"
						,	"Dn3 1"
						,	"Fn3 1"
						,	"Dn3 3"

						,	"Bf2 1"
						,	"Cn3 1"
						,	"Cs3 1"
						,	"Dn3 1"
						,	"Fn3 1"
						,	"Fs3 3"

						,	"Gn3 1"
						,	"Rst 1"
						,	"Dn3 1"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Gn3 1"
						,	"Gn3 1"
						,	"Gn3 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"
						,	"Rst 2"
						,	"Dn3 1"
						,	"Fn3 1"
						,	"Dn3 2"
						,	"Gn3 1"
						
						,	"Rst 1"
						,	"Gn3 1"
						,	"Rst 1"
						,	"Dn3 1"
						,	"Bf3 1"
						,	"Dn3 3"

						,	"Bf2 1"
						,	"Cn3 1"
						,	"Cs3 1"
						,	"Dn3 1"
						,	"Fn3 1"
						,	"Fs3 3"

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

				// B
				,	{"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"
						,	"Rst 1"
						,	"Gn3 1"
						,	"Rst 1"
						,	"Fn3 1"
						,	"Fn3 1"
						,	"Fn3 1"
						,	"Gn3 1"

						,	"Rst 1"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Gn2 1"
						,	"Bf2 1"
						,	"Bf2 1"
						,	"Gn2 2"


						,	"Fn3 1"
						,	"Rst 1"
						,	"Fn3 1"
						,	"Rst 1"
						,	"Fn3 1"
						,	"Fn3 1"
						,	"Fn3 1"
						,	"Gn3 1"

						,	"Rst 1"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Gn2 1"
						,	"Bf2 1"
						,	"Bf2 1"
						,	"Gn2 2"


						,	"Gn3 1"
						,	"Rst 1"
						,	"Gn3 1"
						,	"Rst 1"
						,	"Fn3 1"
						,	"Fn3 1"
						,	"Fn3 1"
						,	"Gn3 1"

						,	"Rst 1"
						,	"Gn2 1"
						,	"Rst 1"
						,	"Gn2 1"
						,	"Bf2 1"
						,	"Bf2 1"
						,	"Gn2 2"


						,	"Bf2 1"
						,	"Cn3 1"
						,	"Cs3 1"
						,	"Dn3 1"
						,	"Fn3 1"
						,	"Fs3 3"

						,	"Gn3 1"
						,	"Rst 1"
						,	"Dn3 1"
						,	"Gn2 1"
						,	"Rst 4"
						]
					}
				]
		,	"sin":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every note
						"data": {"start": 1.0, "end": 0.0, "dur": 0.125}
					}
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.1}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 2.0, "end": 0.5, "dur": 0.125}
					}

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

				// pattern 1
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"An2 1"
						]
					}



				// pattern 1
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"An2 1"
						]
					}


				// pattern 1
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"An2 1"
						]
					}

				// pattern 2
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"Rst 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Rst 6"
						]
					}

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

				// B

				// pattern 3
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"An2 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 2"
						,	"Rst 3"
						]
					}

				// pattern 3
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"An2 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 2"
						,	"Rst 3"
						]
					}

				// pattern 3
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"An2 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 1"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 2"
						,	"Rst 3"
						]
					}

				// pattern 2
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Dn3 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.75}
					}
				,	{"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": [
							"An2 1"
						,	"An2 1"
						,	"Rst 2"
						]
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				,	{"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 2"
						,	"Rst 6"
						]
					}
				]
			,	"nz":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every 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": 1.0, "end": 1.0, "dur": 0}
				//	}
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.05}
					}

				// A/B

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

				,	{"command": "pan", 
						"data": {"position": 0.5}
					}
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.05}
					}

				,	{"command": "notes", 
						"data": [
							"Gn4 0.5" //shaker
						,	"Rst 0.5"
						]
					}

				,	{"command": "pan", 
						"data": {"position": 0.5625}
					}
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.0375}
					}
				,	{"command": "notes", 
						"data": [
							"En4 0.25" //shaker
						,	"Rst 0.75"
						,	"En4 0.25" //shaker
						,	"Rst 0.75"
						,	"En4 0.25" //shaker
						,	"Rst 0.75"
						]
					}

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

				

				,	{"command": "pan", 
						"data": {"position": 0.5}
					}
				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.05}
					}

				,	{"command": "notes", 
						"data": [
							"Gn4 0.5" //shaker
						,	"Rst 0.5"
						,	"Gn4 0.25" //shaker
						,	"Rst 0.75"
						,	"Gn4 0.25" //shaker
						,	"Rst 0.75"
						,	"Gn4 0.5" //shaker
						,	"Rst 4.5"
						]
					}

				

				]
		}
	};