"use strict";

/* --------------------------------------------------- */
/* SkyDragon Story track 23                            */
/* And So we Stay                                      */
/* (landchild village)                                 */
/* (c) Sean Kelly, 2018                                */
/* --------------------------------------------------- */
DATA_CHIPTUNES["And So we Stay"] = {
		"chip": "oneofeach"
	,	"bpm": 240 // beats per minute; 120 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.5, "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.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.0375}
					}
				,	{"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": "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 6"
						,	"En3 6"
						,	"Dn3 6"
						,	"Cn3 6"

						,	"Dn3 6"
						,	"Gn2 6"
						,	"Fn3 6"
						,	"Cn3 6"

						,	"Fn3 6"
						,	"En3 6"
						,	"Dn3 6"
						,	"Cn3 6"

						,	"Bf2 6"
						,	"Cn3 6"
						,	"Dn3 6"
						,	"Dn3 4"
						,	"En3 2"
						]
					}


				,	{"command": "vol", // set overall volume of channel; 0.1 is a sane "loud" level
						"data": {"level": 0.025}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.625}
					}
				// B1
				,	{"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 6"
						,	"En3 6"
						,	"Dn3 6"
						,	"Cn3 6"

						,	"Dn3 6"
						,	"Gn2 6"
						,	"Fn3 6"
						,	"Cn3 6"

						,	"Fn3 6"
						,	"En3 6"
						,	"Dn3 6"
						,	"Cn3 6"

						,	"Bf2 6"
						,	"Cn3 6"
						,	"Dn3 6"
						,	"An2 6"
						,	"Dn3 6"
						,	"An2 4"
						,	"En3 2"
						]
					}

				// B2
				,	{"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 6"
						,	"En3 6"
						,	"Dn3 6"
						,	"Cn3 6"

						,	"Dn3 6"
						,	"Gn2 6"
						,	"Fn3 6"
						,	"Cn3 6"

						,	"Fn3 6"
						,	"En3 6"
						,	"Dn3 6"
						,	"Cn3 6"

						,	"Bf2 6"
						,	"Cn3 6"
						,	"Dn3 6"
						,	"Dn2 4"
						,	"Rst 2"
						]
					}
				//,	{"command": "jump", // reset the loop counter
				//		"data": {"reset": true}
				//	}
				//,	{"command": "jump", // go forwards/backwards delta commands if loop counter < times; increase loop counter
				//		"data": {"delta": -4, "times": 1}
				//	}
				]
		,	"tri":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every note
						"data": {"start": 0.5, "end": 1.0, "dur": 1.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.075}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.45}
					}
				,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
						"data": {"cents": 5}
					}

				// A
				,	{"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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 1.6"
						,	"Fn5 3"
						,	"En5 1"

						,	"Cn5 0.2"
						,	"Dn5 1.8"
						,	"En5 2"
						,	"Fn5 2"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Cn5 1"
						,	"An4 4"						
						]
					}
				,	{"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 4"
						,	"Cn5 1"
						,	"Dn5 1"

						,	"Dn5 0.2"
						,	"En5 1.8"
						,	"Fn5 2"
						,	"Gn5 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 2.6"
						,	"Gn5 0.33"
						,	"An5 0.33"
						,	"Gn5 0.34"
						,	"Fn5 1"
						,	"Gn5 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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 0.6"
						,	"Fn5 1"

						,	"Gn5 2"
						,	"Cn6 4"

						,	"Cn6 0.2"
						,	"Dn6 1.8"
						,	"Cn6 3"
						,	"Bf5 1"

						,	"An5 0.2"
						,	"Bf5 0.2"
						,	"An5 1.6"
						,	"Gn5 1"
						,	"Fn5 3"						
						]
					}
				,	{"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": [
							"Gn5 2"
						,	"Cn6 3"
						,	"Fn5 1"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Fn5 1"
						,	"Gn5 1"
						,	"Fn5 1"
						,	"En5 1"
						,	"Cn5 1"

						,	"Gn5 0.2"
						,	"An5 5.8"

						,	"Gn5 0.2"
						,	"An5 1.8"
						,	"Rst 4"
						]
					}


				,	{"command": "vol", // set overall volume of channel
						"data": {"level": 0.05}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.25}
					}
				// B1
				,	{"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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 1.6"
						,	"Fn5 3"
						,	"En5 1"

						,	"Cn5 0.2"
						,	"Dn5 1.8"
						,	"En5 2"
						,	"Fn5 2"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Cn5 1"
						,	"An4 4"						
						]
					}
				,	{"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 4"
						,	"Cn5 1"
						,	"Dn5 1"

						,	"Dn5 0.2"
						,	"En5 1.8"
						,	"Fn5 2"
						,	"Gn5 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 2.6"
						,	"Gn5 0.33"
						,	"An5 0.33"
						,	"Gn5 0.34"
						,	"Fn5 1"
						,	"Gn5 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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 0.6"
						,	"Fn5 1"

						,	"Gn5 2"
						,	"Cn6 4"

						,	"Cn6 0.2"
						,	"Dn6 1.8"
						,	"Cn6 3"
						,	"Bf5 1"

						,	"An5 0.2"
						,	"Bf5 0.2"
						,	"An5 3.6"
						,	"Gn5 1"
						,	"Fn5 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": [
							"Gn5 2"
						,	"Cn6 3"
						,	"Fn5 1"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Fn5 1"
						,	"Gn5 1"
						,	"Fn5 1"
						,	"En5 1"
						,	"Cn5 1"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 1"
						,	"Gn5 1"

						,	"An5 4"
						,	"Rst 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 1"
						,	"Gn5 1"

						,	"An5 4"
						,	"Fn5 1"
						,	"Gn5 1"
						]
					}


				// B2
				,	{"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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 1.6"
						,	"Fn5 3"
						,	"En5 1"

						,	"Cn5 0.2"
						,	"Dn5 1.8"
						,	"En5 2"
						,	"Fn5 2"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Cn5 1"
						,	"An4 4"						
						]
					}
				,	{"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 4"
						,	"Cn5 1"
						,	"Dn5 1"

						,	"Dn5 0.2"
						,	"En5 1.8"
						,	"Fn5 2"
						,	"Gn5 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 2.6"
						,	"Gn5 0.33"
						,	"An5 0.33"
						,	"Gn5 0.34"
						,	"Fn5 1"
						,	"Gn5 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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 0.6"
						,	"Fn5 1"

						,	"Gn5 2"
						,	"Cn6 4"

						,	"Cn6 0.2"
						,	"Dn6 1.8"
						,	"Cn6 3"
						,	"Bf5 1"

						,	"An5 0.2"
						,	"Bf5 0.2"
						,	"An5 3.6"
						,	"Gn5 1"
						,	"Fn5 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": [
							"Gn5 2"
						,	"Cn6 3"
						,	"Fn5 1"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Fn5 1"
						,	"Gn5 1"
						,	"Fn5 1"
						,	"En5 1"
						,	"Cn5 1"

						,	"Cn5 0.2"
						,	"Dn5 5.8"

						,	"Rst 6"
						]
					}
				]
		,	"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.5}
					}
				,	{"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.0375}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {
							"position": 0.25, // float 0-1; 0.0=left, 1.0=right
							"travel": 0.5, // float; offset from position for auto-panning; optional (no auto-pan if omitted)
							"dur": 1.5, // float, seconds; optional (no auto-pan if omitted)
							"alternate": true // bool; false = always pan from position to position+travel, true = pan from position to position+travel and back; optional (false if omitted)
						}
					}
				,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
						"data": {"cents": 2}
					}

				// A
				,	{"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 6"
						,	"Rst 6"
						,	"Rst 6"
						,	"Rst 6"
						]
					}
				,	{"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 6"
						,	"Rst 6"
						,	"Rst 6"
						,	"Rst 6"
						]
					}
				,	{"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 6"
						,	"Rst 6"
						,	"Rst 6"
						,	"Rst 6"
						]
					}
				,	{"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 6"
						,	"Rst 6"
						,	"Rst 6"
						,	"Rst 6"
						]
					}

				// B1	
				,	{"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"
						,	"Cn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"

						,	"Rst 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 2"

						,	"Rst 1"
						,	"Bf3 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Dn4 1"

						,	"Rst 1"
						,	"An3 1"
						,	"Cn4 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Cn4 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": [
							"Rst 1"
						,	"Gn3 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Fn4 2"

						,	"Rst 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 2"

						,	"Rst 1"
						,	"Cn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 1"
						,	"Cn5 1"

						,	"Cn5 1"
						,	"Bf4 1"
						,	"Fn4 1"
						,	"Dn4 1"
						,	"An4 1"
						,	"Gn4 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": [
							"Fn4 1"
						,	"Cn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"

						,	"Cn5 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 2"

						,	"Cn5 1"
						,	"Bf3 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Dn4 1"

						,	"Cn5 1"
						,	"An3 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"An4 1"
						,	"An3 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"
						,	"An3 1"
						,	"Bf3 1"
						,	"Dn4 1"
						,	"Fn4 1"
						,	"Gn3 1"

						,	"An3 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"Cn4 1"

						,	"An3 1"
						,	"Dn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"

						,	"An3 1"
						,	"Dn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"

						,	"An3 1"
						,	"Dn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"

						,	"An3 1"
						,	"Dn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"
						]
					}


				// B2
				,	{"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"
						,	"Cn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"

						,	"Rst 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 2"

						,	"Rst 1"
						,	"Bf3 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Dn4 1"

						,	"Rst 1"
						,	"An3 1"
						,	"Cn4 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Cn4 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": [
							"Rst 1"
						,	"Gn3 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Fn4 2"

						,	"Rst 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 2"

						,	"Rst 1"
						,	"Cn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 1"
						,	"Cn5 1"

						,	"Cn5 1"
						,	"Bf4 1"
						,	"Fn4 1"
						,	"Dn4 1"
						,	"An4 1"
						,	"Gn4 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": [
							"Fn4 1"
						,	"Cn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"An4 2"

						,	"Cn5 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 2"

						,	"Cn5 1"
						,	"Bf3 1"
						,	"Dn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Dn4 1"

						,	"Cn5 1"
						,	"An3 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"An4 1"
						,	"An3 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"
						,	"An3 1"
						,	"Bf3 1"
						,	"Dn4 1"
						,	"Fn4 1"
						,	"Gn3 1"

						,	"An3 1"
						,	"Cn4 1"
						,	"En4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"Cn4 1"

						,	"An3 1"
						,	"Cn4 1"
						,	"Dn4 1"
						,	"Fn4 1"
						,	"Gn4 1"
						,	"Cn5 1"

						,	"Fn4 0.5"
						,	"An4 0.5"
						,	"Dn5 5"
						]
					}
				]
		,	"sin":	// name of a channel on the chip	
				[
					{"command": "env", // set linear ramp envelope applied to every note
						"data": {"start": 1.0, "end": 1.0, "dur": 0}
					}
				,	{"command": "sweep", // set linear frequency sweep applied to every note (start and end multiply base note frequency)
						"data": {"start": 2.0, "end": 2.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.55}
					}
				,	{"command": "detune", // detune in cents to be applied to the oscillator (for "richer" sound when 2 similar frequencies overlap)
						"data": {"cents": -10}
					}

				// A
				,	{"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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 1.6"
						,	"Fn5 3"
						,	"En5 1"

						,	"Cn5 0.2"
						,	"Dn5 1.8"
						,	"En5 2"
						,	"Fn5 2"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Cn5 1"
						,	"An4 4"						
						]
					}
				,	{"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 4"
						,	"Cn5 1"
						,	"Dn5 1"

						,	"Dn5 0.2"
						,	"En5 1.8"
						,	"Fn5 2"
						,	"Gn5 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 2.6"
						,	"Gn5 0.33"
						,	"An5 0.33"
						,	"Gn5 0.34"
						,	"Fn5 1"
						,	"Gn5 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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 0.6"
						,	"Fn5 1"

						,	"Gn5 2"
						,	"Cn6 4"

						,	"Cn6 0.2"
						,	"Dn6 1.8"
						,	"Cn6 3"
						,	"Bf5 1"

						,	"An5 0.2"
						,	"Bf5 0.2"
						,	"An5 1.6"
						,	"Gn5 1"
						,	"Fn5 3"						
						]
					}
				,	{"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": [
							"Gn5 2"
						,	"Cn6 3"
						,	"Fn5 1"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Fn5 1"
						,	"Gn5 1"
						,	"Fn5 1"
						,	"En5 1"
						,	"Cn5 1"

						,	"Gn5 0.2"
						,	"An5 5.8"

						,	"Gn5 0.2"
						,	"An5 1.8"
						,	"Rst 4"					
						]
					}


				,	{"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.0375}
					}
				,	{"command": "pan", // linearly-divided fraction of the audio going to the right channel, with the remainder going to the left
						"data": {"position": 0.4}
					}
				// B1
				,	{"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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 1.6"
						,	"Fn5 3"
						,	"En5 1"

						,	"Cn5 0.2"
						,	"Dn5 1.8"
						,	"En5 2"
						,	"Fn5 2"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Cn5 1"
						,	"An4 4"						
						]
					}
				,	{"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 4"
						,	"Cn5 1"
						,	"Dn5 1"

						,	"Dn5 0.2"
						,	"En5 1.8"
						,	"Fn5 2"
						,	"Gn5 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 2.6"
						,	"Gn5 0.33"
						,	"An5 0.33"
						,	"Gn5 0.34"
						,	"Fn5 1"
						,	"Gn5 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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 0.6"
						,	"Fn5 1"

						,	"Gn5 2"
						,	"Cn6 4"

						,	"Cn6 0.2"
						,	"Dn6 1.8"
						,	"Cn6 3"
						,	"Bf5 1"

						,	"An5 0.2"
						,	"Bf5 0.2"
						,	"An5 3.6"
						,	"Gn5 1"
						,	"Fn5 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": [
							"Gn5 2"
						,	"Cn6 3"
						,	"Fn5 1"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Fn5 1"
						,	"Gn5 1"
						,	"Fn5 1"
						,	"En5 1"
						,	"Cn5 1"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 1"
						,	"Gn5 1"

						,	"An5 4"
						,	"Rst 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 1"
						,	"Gn5 1"

						,	"An5 4"
						,	"Fn5 1"
						,	"Gn5 1"
						]
					}


				// B2
				,	{"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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 1.6"
						,	"Fn5 3"
						,	"En5 1"

						,	"Cn5 0.2"
						,	"Dn5 1.8"
						,	"En5 2"
						,	"Fn5 2"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Cn5 1"
						,	"An4 4"						
						]
					}
				,	{"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 4"
						,	"Cn5 1"
						,	"Dn5 1"

						,	"Dn5 0.2"
						,	"En5 1.8"
						,	"Fn5 2"
						,	"Gn5 2"

						,	"Gn5 0.2"
						,	"An5 3.8"
						,	"An5 0.2"
						,	"Bf5 0.8"
						,	"An5 1"

						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 2.6"
						,	"Gn5 0.33"
						,	"An5 0.33"
						,	"Gn5 0.34"
						,	"Fn5 1"
						,	"Gn5 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": [
							"Gn5 0.2"
						,	"An5 3.8"
						,	"Gn5 0.2"
						,	"An5 0.2"
						,	"Gn5 0.6"
						,	"Fn5 1"

						,	"Gn5 2"
						,	"Cn6 4"

						,	"Cn6 0.2"
						,	"Dn6 1.8"
						,	"Cn6 3"
						,	"Bf5 1"

						,	"An5 0.2"
						,	"Bf5 0.2"
						,	"An5 3.6"
						,	"Gn5 1"
						,	"Fn5 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": [
							"Gn5 2"
						,	"Cn6 3"
						,	"Fn5 1"

						,	"En5 0.2"
						,	"Fn5 0.2"
						,	"En5 0.6"
						,	"Fn5 1"
						,	"Gn5 1"
						,	"Fn5 1"
						,	"En5 1"
						,	"Cn5 1"

						,	"Cn5 0.2"
						,	"Dn5 5.8"

						,	"Rst 6"
						]
					}
				]
		}
	};