changeset 52:e359b9bad811

Added exporting of image and text data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 17 Jul 2012 22:12:20 +0100
parents 6f6461b0d07f
children 5274e3b5479d
files MaxPatchToPlayFiles/MultiMatchPlayer4b.maxpat bayesianArraySrc/DynamicVector.cpp src/AudioEventMatcher.cpp src/AudioEventMatcher.h src/OutputDataWriter.cpp src/OutputDataWriter.h src/RecordedMultitrackAudio.cpp src/testApp.cpp
diffstat 8 files changed, 1802 insertions(+), 1497 deletions(-) [+]
line wrap: on
line diff
--- a/MaxPatchToPlayFiles/MultiMatchPlayer4b.maxpat	Thu Jun 14 23:12:36 2012 +0100
+++ b/MaxPatchToPlayFiles/MultiMatchPlayer4b.maxpat	Tue Jul 17 22:12:20 2012 +0100
@@ -1,9 +1,9 @@
 {
 	"patcher" : 	{
 		"fileversion" : 1,
-		"rect" : [ 578.0, 54.0, 1152.0, 878.0 ],
+		"rect" : [ 1039.0, 89.0, 1152.0, 878.0 ],
 		"bglocked" : 0,
-		"defrect" : [ 578.0, 54.0, 1152.0, 878.0 ],
+		"defrect" : [ 1039.0, 89.0, 1152.0, 878.0 ],
 		"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
 		"openinpresentation" : 1,
 		"default_fontsize" : 10.0,
@@ -21,15 +21,108 @@
 		"boxes" : [ 			{
 				"box" : 				{
 					"maxclass" : "comment",
+					"text" : "go to marker",
+					"patching_rect" : [ 184.0, 579.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
+					"presentation" : 1,
+					"id" : "obj-224",
+					"fontname" : "Verdana",
+					"fontsize" : 10.0,
+					"presentation_rect" : [ 177.0, 526.0, 150.0, 19.0 ],
+					"numinlets" : 1
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "newobj",
+					"text" : "prepend /marker",
+					"patching_rect" : [ 836.0, 941.0, 96.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-222",
+					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
+					"numinlets" : 1
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "message",
+					"text" : "3",
+					"patching_rect" : [ 941.0, 910.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"presentation" : 1,
+					"id" : "obj-221",
+					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
+					"presentation_rect" : [ 284.0, 546.0, 32.5, 17.0 ],
+					"numinlets" : 2
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "message",
+					"text" : "2",
+					"patching_rect" : [ 903.0, 910.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"presentation" : 1,
+					"id" : "obj-219",
+					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
+					"presentation_rect" : [ 246.0, 546.0, 32.5, 17.0 ],
+					"numinlets" : 2
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "message",
+					"text" : "1",
+					"patching_rect" : [ 867.0, 910.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"presentation" : 1,
+					"id" : "obj-216",
+					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
+					"presentation_rect" : [ 210.0, 546.0, 32.5, 17.0 ],
+					"numinlets" : 2
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "message",
+					"text" : "0",
+					"patching_rect" : [ 830.0, 910.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"presentation" : 1,
+					"id" : "obj-212",
+					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
+					"presentation_rect" : [ 173.0, 546.0, 32.5, 17.0 ],
+					"numinlets" : 2
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "comment",
 					"text" : "aubiopitch~",
 					"patching_rect" : [ 57.0, 442.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-217",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 71.0, 440.0, 150.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -38,13 +131,13 @@
 					"maxclass" : "comment",
 					"text" : "yin",
 					"patching_rect" : [ 34.0, 433.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-215",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 16.0, 438.0, 24.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -52,10 +145,10 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 568.0, 940.0, 20.0, 20.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-213",
 					"outlettype" : [ "bang" ],
-					"id" : "obj-213",
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -64,12 +157,12 @@
 					"maxclass" : "newobj",
 					"text" : "f 0.",
 					"patching_rect" : [ 535.0, 1058.0, 32.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-211",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-211",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -77,14 +170,14 @@
 				"box" : 				{
 					"maxclass" : "flonum",
 					"patching_rect" : [ 586.0, 1065.0, 50.0, 19.0 ],
-					"outlettype" : [ "float", "bang" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-210",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "float", "bang" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 75.0, 457.0, 50.0, 19.0 ],
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -93,12 +186,12 @@
 					"maxclass" : "newobj",
 					"text" : "aubiopitch~",
 					"patching_rect" : [ 568.0, 1005.0, 71.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-207",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "float" ],
-					"id" : "obj-207",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -106,12 +199,12 @@
 				"box" : 				{
 					"maxclass" : "number",
 					"patching_rect" : [ 1313.0, 983.0, 50.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-208",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "bang" ],
-					"id" : "obj-208",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -119,12 +212,12 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 1192.0, 1025.0, 20.0, 140.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-200",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 367.0, 234.0, 20.0, 140.0 ],
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -133,12 +226,12 @@
 					"maxclass" : "newobj",
 					"text" : "delay~ 8800",
 					"patching_rect" : [ 1243.0, 1013.0, 74.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-194",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal" ],
-					"id" : "obj-194",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -149,13 +242,13 @@
 					"linecount" : 6,
 					"presentation_linecount" : 6,
 					"patching_rect" : [ 526.0, 175.0, 150.0, 79.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-195",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 491.0, 225.0, 150.0, 79.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -164,12 +257,12 @@
 					"maxclass" : "message",
 					"text" : "120",
 					"patching_rect" : [ 24.0, 895.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-16",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-16",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -178,13 +271,13 @@
 					"maxclass" : "comment",
 					"text" : "main vol",
 					"patching_rect" : [ 435.0, 102.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-177",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 417.0, 117.0, 58.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -192,11 +285,11 @@
 				"box" : 				{
 					"maxclass" : "ezdac~",
 					"patching_rect" : [ 428.0, 990.0, 45.0, 45.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-4",
-					"numinlets" : 2,
 					"presentation_rect" : [ 28.0, 14.0, 45.0, 45.0 ],
-					"numoutlets" : 0
+					"numinlets" : 2
 				}
 
 			}
@@ -204,12 +297,12 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 428.0, 866.0, 66.0, 90.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-2",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 404.0, 137.0, 66.0, 90.0 ],
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -218,12 +311,12 @@
 					"maxclass" : "newobj",
 					"text" : "r seekplay",
 					"patching_rect" : [ 1517.0, 502.0, 62.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-206",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-206",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -232,12 +325,12 @@
 					"maxclass" : "newobj",
 					"text" : "r seekplay",
 					"patching_rect" : [ 785.0, 284.0, 62.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-205",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-205",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -246,12 +339,12 @@
 					"maxclass" : "newobj",
 					"text" : "r seekplay",
 					"patching_rect" : [ 493.0, 283.0, 62.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-204",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-204",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -260,12 +353,12 @@
 					"maxclass" : "newobj",
 					"text" : "r seekplay",
 					"patching_rect" : [ 55.0, 290.0, 62.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-203",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-203",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -274,11 +367,11 @@
 					"maxclass" : "newobj",
 					"text" : "s seekplay",
 					"patching_rect" : [ 131.0, 120.0, 63.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-202",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -287,13 +380,13 @@
 					"maxclass" : "comment",
 					"text" : "manual open files",
 					"patching_rect" : [ 673.0, 116.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-201",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 684.0, 106.0, 104.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -302,12 +395,12 @@
 					"maxclass" : "newobj",
 					"text" : "r startTime",
 					"patching_rect" : [ 941.0, 553.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-199",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-199",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -316,12 +409,12 @@
 					"maxclass" : "newobj",
 					"text" : "r startTime",
 					"patching_rect" : [ 651.0, 550.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-65",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-65",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -330,12 +423,12 @@
 					"maxclass" : "newobj",
 					"text" : "f 0.",
 					"patching_rect" : [ 1613.0, 799.0, 32.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-198",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-198",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -344,12 +437,12 @@
 					"maxclass" : "newobj",
 					"text" : "r startTime",
 					"patching_rect" : [ 1685.0, 765.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-68",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-68",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -358,12 +451,12 @@
 					"maxclass" : "newobj",
 					"text" : "- 0.",
 					"patching_rect" : [ 1666.0, 792.0, 37.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-155",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-155",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -372,12 +465,12 @@
 					"maxclass" : "newobj",
 					"text" : "cpuclock",
 					"patching_rect" : [ 1666.0, 739.0, 58.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-160",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-160",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -386,12 +479,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
 					"patching_rect" : [ 1544.0, 854.0, 68.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-197",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-197",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -400,11 +493,11 @@
 					"maxclass" : "newobj",
 					"text" : "print",
 					"patching_rect" : [ 1018.0, 43.0, 34.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-196",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -413,14 +506,14 @@
 					"maxclass" : "message",
 					"text" : "open /Users/andrew/Documents/work/programming/MadMax/AudioFiles/LiveDuesVerse2/01Bass.wav",
 					"patching_rect" : [ -306.0, 339.0, 783.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-188",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 9.0, 385.0, 783.0, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -429,12 +522,12 @@
 					"maxclass" : "newobj",
 					"text" : "t b l",
 					"patching_rect" : [ 1613.0, 724.0, 47.5, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-159",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang", "" ],
-					"id" : "obj-159",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -443,12 +536,12 @@
 					"maxclass" : "newobj",
 					"text" : "zl join",
 					"patching_rect" : [ 1613.0, 855.0, 41.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-173",
+					"fontname" : "Verdana",
 					"outlettype" : [ "", "" ],
-					"id" : "obj-173",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -456,12 +549,12 @@
 				"box" : 				{
 					"maxclass" : "toggle",
 					"patching_rect" : [ 1585.0, 886.0, 20.0, 20.0 ],
-					"outlettype" : [ "int" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-62",
-					"numinlets" : 1,
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 199.0, 256.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -470,12 +563,12 @@
 					"maxclass" : "newobj",
 					"text" : "gate",
 					"patching_rect" : [ 1599.0, 916.0, 33.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-9",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-9",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -484,12 +577,12 @@
 					"maxclass" : "newobj",
 					"text" : "prepend /elec 3",
 					"patching_rect" : [ 1613.0, 884.0, 89.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-193",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-193",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -497,29 +590,29 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 1778.0, 607.0, 59.0, 59.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-192",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 189.0, 286.0, 41.0, 41.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "multislider",
+					"setstyle" : 1,
 					"patching_rect" : [ 1781.0, 677.0, 270.0, 73.0 ],
-					"outlettype" : [ "", "" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-178",
-					"setstyle" : 1,
+					"candycane" : 2,
+					"outlettype" : [ "", "" ],
+					"size" : 12,
+					"presentation_rect" : [ 175.0, 442.0, 270.0, 73.0 ],
 					"setminmax" : [ 0.0, 1.0 ],
-					"size" : 12,
-					"numinlets" : 1,
-					"presentation_rect" : [ 175.0, 442.0, 270.0, 73.0 ],
-					"candycane" : 2,
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -528,12 +621,12 @@
 					"maxclass" : "newobj",
 					"text" : "r --stop",
 					"patching_rect" : [ 1644.0, 427.0, 49.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-176",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-176",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -542,11 +635,11 @@
 					"maxclass" : "newobj",
 					"text" : "s --stop",
 					"patching_rect" : [ 683.0, -45.0, 50.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-175",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -555,13 +648,13 @@
 					"maxclass" : "comment",
 					"text" : "click",
 					"patching_rect" : [ 331.0, 1154.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-174",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 830.0, 263.0, 33.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -569,12 +662,12 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 1578.0, 578.0, 20.0, 140.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-162",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 199.0, 82.0, 20.0, 140.0 ],
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -583,12 +676,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
 					"patching_rect" : [ 1770.0, 549.0, 68.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-191",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-191",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -597,27 +690,27 @@
 					"maxclass" : "newobj",
 					"text" : "prepend open",
 					"patching_rect" : [ 1517.0, 478.0, 80.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-190",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-190",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "/elec 3 234268.578125 0.27184 0.241252 0.257186 0.203644 0.250506 0.137268 0.158305 0.371158 0.259061 1. 0.283688 0.155253",
-					"linecount" : 4,
-					"patching_rect" : [ 1684.0, 922.0, 229.0, 53.0 ],
+					"text" : "/elec 3 79770.953125 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.",
+					"linecount" : 2,
+					"patching_rect" : [ 1684.0, 922.0, 229.0, 29.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-189",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-189",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -626,12 +719,12 @@
 					"maxclass" : "newobj",
 					"text" : "delay 200",
 					"patching_rect" : [ 1676.0, 652.0, 60.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-187",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang" ],
-					"id" : "obj-187",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -640,12 +733,12 @@
 					"maxclass" : "newobj",
 					"text" : "chroma~ beat",
 					"patching_rect" : [ 1613.0, 689.0, 82.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-186",
+					"fontname" : "Verdana",
 					"outlettype" : [ "list" ],
-					"id" : "obj-186",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -654,15 +747,15 @@
 					"maxclass" : "umenu",
 					"types" : [  ],
 					"patching_rect" : [ 1676.0, 587.0, 100.0, 19.0 ],
-					"outlettype" : [ "int", "", "" ],
+					"numoutlets" : 3,
 					"presentation" : 1,
 					"id" : "obj-184",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "int", "", "" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 177.0, 334.0, 100.0, 19.0 ],
 					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numoutlets" : 3
+					"numinlets" : 1
 				}
 
 			}
@@ -671,12 +764,12 @@
 					"maxclass" : "newobj",
 					"text" : "switch 2",
 					"patching_rect" : [ 1676.0, 621.0, 52.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-185",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-185",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 3
 				}
 
 			}
@@ -685,12 +778,12 @@
 					"maxclass" : "newobj",
 					"text" : "r --starting",
 					"patching_rect" : [ 1679.0, 405.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-183",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-183",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -699,12 +792,12 @@
 					"maxclass" : "newobj",
 					"text" : "r --starting",
 					"patching_rect" : [ 1223.0, 425.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-182",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-182",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -713,12 +806,12 @@
 					"maxclass" : "newobj",
 					"text" : "r --starting",
 					"patching_rect" : [ 934.0, 263.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-181",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-181",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -727,11 +820,11 @@
 					"maxclass" : "newobj",
 					"text" : "s --starting",
 					"patching_rect" : [ 481.0, -41.0, 67.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-180",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -740,13 +833,13 @@
 					"maxclass" : "comment",
 					"text" : "elec",
 					"patching_rect" : [ 190.0, 930.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-179",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 196.0, 232.0, 32.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -755,13 +848,13 @@
 					"maxclass" : "comment",
 					"text" : "elec",
 					"patching_rect" : [ 1659.0, 501.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-166",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 641.0, 200.0, 35.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -770,12 +863,12 @@
 					"maxclass" : "newobj",
 					"text" : "p aubioOnsetDetectionElec",
 					"patching_rect" : [ 1610.0, 551.0, 145.0, 19.0 ],
+					"numoutlets" : 4,
+					"id" : "obj-167",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang", "float", "bang" ],
-					"id" : "obj-167",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 4,
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 25.0, 69.0, 889.0, 558.0 ],
@@ -800,11 +893,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: output period in msecs (will be rounded up to control rate)",
 									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-62",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -813,11 +906,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: minimum frequency in Hz",
 									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-64",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -827,11 +920,11 @@
 									"text" : "estimation quality factor",
 									"linecount" : 2,
 									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-82",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -839,12 +932,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-68",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-68",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -852,12 +945,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-40",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 359.0, 334.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -866,12 +959,12 @@
 									"maxclass" : "message",
 									"text" : "/medianOnset",
 									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-39",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-39",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -880,12 +973,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /medianAubioData",
 									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-37",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-37",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -894,12 +987,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /rawAubioData",
 									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-5",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-5",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -909,11 +1002,11 @@
 									"text" : "raw detection function value",
 									"linecount" : 2,
 									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-32",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -921,12 +1014,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-24",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-24",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -935,13 +1028,13 @@
 									"maxclass" : "comment",
 									"text" : "reset axis /mode ",
 									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-23",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 109.0, 137.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -949,12 +1042,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-2",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 127.0, 159.0, 20.0, 20.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -963,12 +1056,12 @@
 									"maxclass" : "message",
 									"text" : "hfc",
 									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-34",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-34",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -977,11 +1070,11 @@
 									"maxclass" : "comment",
 									"text" : "or send mode as a as message",
 									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-33",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -990,12 +1083,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /mode",
 									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-31",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-31",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -1004,13 +1097,13 @@
 									"maxclass" : "comment",
 									"text" : "detection mode",
 									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-29",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 143.0, 184.0, 91.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -1019,15 +1112,15 @@
 									"maxclass" : "umenu",
 									"types" : [  ],
 									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ],
-									"outlettype" : [ "int", "", "" ],
+									"numoutlets" : 3,
 									"presentation" : 1,
 									"id" : "obj-15",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "int", "", "" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
 									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
-									"numoutlets" : 3
+									"numinlets" : 1
 								}
 
 							}
@@ -1037,11 +1130,11 @@
 									"text" : "send osc data to aubioOnsetVisualiser in openFrameworks",
 									"linecount" : 3,
 									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-28",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -1051,11 +1144,11 @@
 									"text" : "print detection function value at onsets",
 									"linecount" : 2,
 									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-26",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -1063,10 +1156,10 @@
 								"box" : 								{
 									"maxclass" : "toggle",
 									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-18",
 									"outlettype" : [ "int" ],
-									"id" : "obj-18",
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -1075,12 +1168,12 @@
 									"maxclass" : "newobj",
 									"text" : "gate",
 									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-13",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-13",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -1089,13 +1182,13 @@
 									"maxclass" : "comment",
 									"text" : "detection function as float",
 									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-11",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 407.0, 303.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -1104,12 +1197,12 @@
 									"maxclass" : "message",
 									"text" : "/onset",
 									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-22",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-22",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -1118,12 +1211,12 @@
 									"maxclass" : "message",
 									"text" : "energy",
 									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-25",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-25",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -1132,12 +1225,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioData",
 									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-21",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-21",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -1146,11 +1239,11 @@
 									"maxclass" : "newobj",
 									"text" : "udpsend 127.0.0.1 12345",
 									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-20",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -1159,12 +1252,12 @@
 									"maxclass" : "newobj",
 									"text" : "float 0.",
 									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-16",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-16",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -1173,11 +1266,11 @@
 									"maxclass" : "newobj",
 									"text" : "print",
 									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-19",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -1185,14 +1278,14 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-17",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 356.0, 304.0, 49.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -1201,13 +1294,13 @@
 									"maxclass" : "comment",
 									"text" : "threshold",
 									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-6",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 62.0, 182.0, 58.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -1215,16 +1308,16 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-9",
 									"fontname" : "Verdana",
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
+									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
 									"minimum" : 0.1,
-									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"maximum" : 10.0,
-									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -1232,12 +1325,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-7",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 354.0, 247.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -1246,12 +1339,12 @@
 									"maxclass" : "newobj",
 									"text" : "aubioOnsetDetect~ 0.4",
 									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ],
+									"numoutlets" : 6,
+									"id" : "obj-1",
+									"fontname" : "Verdana",
 									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ],
-									"id" : "obj-1",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 6
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -1259,10 +1352,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-121",
 									"outlettype" : [ "signal" ],
-									"id" : "obj-121",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -1271,10 +1364,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-122",
 									"outlettype" : [ "" ],
-									"id" : "obj-122",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -1283,9 +1376,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 254.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-123",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -1294,9 +1387,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 287.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-124",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -1305,9 +1398,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 382.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-125",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -1316,9 +1409,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 569.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-126",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -1660,11 +1753,11 @@
 					"maxclass" : "comment",
 					"text" : "soundfile load",
 					"patching_rect" : [ 1567.0, 451.0, 79.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-168",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -1673,15 +1766,15 @@
 					"maxclass" : "message",
 					"text" : "open",
 					"patching_rect" : [ 1605.0, 478.0, 35.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-169",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.827451, 0.737255, 0.835294, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 678.0, 200.0, 35.0, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -1690,15 +1783,15 @@
 					"maxclass" : "message",
 					"text" : "1",
 					"patching_rect" : [ 1679.0, 478.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-170",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.827451, 0.737255, 0.835294, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 751.0, 200.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -1707,15 +1800,15 @@
 					"maxclass" : "message",
 					"text" : "0",
 					"patching_rect" : [ 1644.0, 478.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-171",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.827451, 0.737255, 0.835294, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 716.0, 200.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -1724,12 +1817,12 @@
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
 					"patching_rect" : [ 1609.0, 505.0, 48.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-172",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang" ],
-					"id" : "obj-172",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 2,
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -1739,13 +1832,13 @@
 					"maxclass" : "comment",
 					"text" : "seek",
 					"patching_rect" : [ 328.0, 235.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-164",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 279.0, 186.0, 36.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -1754,13 +1847,13 @@
 					"maxclass" : "comment",
 					"text" : "notes:\n",
 					"patching_rect" : [ 1212.0, 364.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-165",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"presentation_rect" : [ 910.0, 581.0, 150.0, 31.0 ],
-					"numoutlets" : 0
+					"presentation_rect" : [ 910.0, 581.0, 150.0, 19.0 ],
+					"numinlets" : 1
 				}
 
 			}
@@ -1771,13 +1864,13 @@
 					"linecount" : 2,
 					"presentation_linecount" : 2,
 					"patching_rect" : [ 932.0, 1086.0, 154.0, 31.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-163",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 901.0, 603.0, 157.0, 31.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -1786,13 +1879,13 @@
 					"maxclass" : "comment",
 					"text" : "snare",
 					"patching_rect" : [ 909.0, 318.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-136",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 641.0, 176.0, 42.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -1801,13 +1894,13 @@
 					"maxclass" : "comment",
 					"text" : "bass",
 					"patching_rect" : [ 221.0, 310.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-157",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 641.0, 129.0, 35.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -1816,13 +1909,13 @@
 					"maxclass" : "comment",
 					"text" : "kick",
 					"patching_rect" : [ 611.0, 313.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-158",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 641.0, 152.0, 35.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -1832,14 +1925,14 @@
 					"text" : "Supersaurus:/Gronk/Gronkn/Bounces/MarbleArchMultitracks/Take2/",
 					"presentation_linecount" : 2,
 					"patching_rect" : [ 1203.0, -126.0, 469.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-161",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 771.0, 23.0, 312.0, 29.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -1848,12 +1941,12 @@
 					"maxclass" : "message",
 					"text" : "1",
 					"patching_rect" : [ 1195.0, 557.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-150",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-150",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -1862,14 +1955,14 @@
 					"maxclass" : "message",
 					"text" : "/rescue",
 					"patching_rect" : [ 757.0, 940.0, 48.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-153",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 278.0, 252.0, 48.0, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -1877,12 +1970,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 756.0, 911.0, 20.0, 20.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-139",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 284.0, 268.0, 33.0, 33.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -1890,15 +1983,15 @@
 				"box" : 				{
 					"maxclass" : "number",
 					"patching_rect" : [ 530.0, 701.0, 54.0, 21.0 ],
-					"outlettype" : [ "int", "bang" ],
+					"format" : 4,
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-138",
 					"fontname" : "Verdana",
+					"outlettype" : [ "int", "bang" ],
 					"fontsize" : 12.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 13.0, 329.0, 45.0, 21.0 ],
-					"numoutlets" : 2,
-					"format" : 4
+					"numinlets" : 1
 				}
 
 			}
@@ -1907,12 +2000,12 @@
 					"maxclass" : "newobj",
 					"text" : "ftom",
 					"patching_rect" : [ 530.0, 677.0, 34.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-120",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-120",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -1921,12 +2014,12 @@
 					"maxclass" : "newobj",
 					"text" : "t b l",
 					"patching_rect" : [ 1074.0, -85.0, 32.5, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-156",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang", "" ],
-					"id" : "obj-156",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -1935,12 +2028,12 @@
 					"maxclass" : "newobj",
 					"text" : "t b b",
 					"patching_rect" : [ 1231.0, 465.0, 34.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-125",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang", "bang" ],
-					"id" : "obj-125",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -1948,12 +2041,12 @@
 				"box" : 				{
 					"maxclass" : "flonum",
 					"patching_rect" : [ 1353.0, 520.0, 65.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-121",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float", "bang" ],
-					"id" : "obj-121",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -1962,12 +2055,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
 					"patching_rect" : [ 1109.0, 412.0, 68.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-82",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-82",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -1976,12 +2069,12 @@
 					"maxclass" : "newobj",
 					"text" : "f 1.",
 					"patching_rect" : [ 1091.0, 582.0, 32.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-115",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-115",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -1989,12 +2082,12 @@
 				"box" : 				{
 					"maxclass" : "toggle",
 					"patching_rect" : [ 1090.0, 438.0, 20.0, 20.0 ],
-					"outlettype" : [ "int" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-88",
-					"numinlets" : 1,
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 502.0, 170.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -2003,12 +2096,12 @@
 					"maxclass" : "newobj",
 					"text" : "metro 20",
 					"patching_rect" : [ 1090.0, 487.0, 57.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-69",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang" ],
-					"id" : "obj-69",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2016,14 +2109,14 @@
 				"box" : 				{
 					"maxclass" : "flonum",
 					"patching_rect" : [ 1105.0, 549.0, 50.0, 19.0 ],
-					"outlettype" : [ "float", "bang" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-137",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "float", "bang" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 580.0, 198.0, 50.0, 19.0 ],
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -2032,12 +2125,12 @@
 					"maxclass" : "newobj",
 					"text" : "append 1000",
 					"patching_rect" : [ 1161.0, 488.0, 77.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-135",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-135",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2046,12 +2139,12 @@
 					"maxclass" : "newobj",
 					"text" : "line 1.",
 					"patching_rect" : [ 1105.0, 513.0, 46.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-134",
+					"fontname" : "Verdana",
 					"outlettype" : [ "", "" ],
-					"id" : "obj-134",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 3
 				}
 
 			}
@@ -2060,12 +2153,12 @@
 					"maxclass" : "newobj",
 					"text" : "route /setSpeed",
 					"patching_rect" : [ 1280.0, 486.0, 91.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-133",
+					"fontname" : "Verdana",
 					"outlettype" : [ "", "" ],
-					"id" : "obj-133",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2074,12 +2167,12 @@
 					"maxclass" : "newobj",
 					"text" : "udpreceive 10875",
 					"patching_rect" : [ 1280.0, 456.0, 101.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-132",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-132",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2088,12 +2181,12 @@
 					"maxclass" : "newobj",
 					"text" : "prepend /accompanimentSpeed",
 					"patching_rect" : [ 1055.0, 973.0, 170.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-131",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-131",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2102,26 +2195,26 @@
 					"maxclass" : "newobj",
 					"text" : "prepend /accompanimentRatio",
 					"patching_rect" : [ 1327.0, 897.0, 165.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-129",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-129",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "1780731.375 0.",
+					"text" : "80531.523438 0.",
 					"patching_rect" : [ 1428.0, 920.0, 101.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-126",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-126",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2130,12 +2223,12 @@
 					"maxclass" : "newobj",
 					"text" : "r startTime",
 					"patching_rect" : [ 1491.0, 776.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-124",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-124",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 0
 				}
 
 			}
@@ -2144,12 +2237,12 @@
 					"maxclass" : "newobj",
 					"text" : "- 0.",
 					"patching_rect" : [ 1472.0, 803.0, 37.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-123",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-123",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2158,12 +2251,12 @@
 					"maxclass" : "newobj",
 					"text" : "t b f",
 					"patching_rect" : [ 1462.0, 718.0, 64.5, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-122",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang", "float" ],
-					"id" : "obj-122",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2172,12 +2265,12 @@
 					"maxclass" : "newobj",
 					"text" : "cpuclock",
 					"patching_rect" : [ 1472.0, 750.0, 58.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-119",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-119",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2186,12 +2279,12 @@
 					"maxclass" : "newobj",
 					"text" : "pack 0. 0.",
 					"patching_rect" : [ 1472.0, 850.0, 66.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-118",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-118",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2200,12 +2293,12 @@
 					"maxclass" : "message",
 					"text" : "stop",
 					"patching_rect" : [ 1304.0, 527.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-117",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-117",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2213,12 +2306,12 @@
 				"box" : 				{
 					"maxclass" : "flonum",
 					"patching_rect" : [ 1369.0, 601.0, 88.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-107",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float", "bang" ],
-					"id" : "obj-107",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2227,12 +2320,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
 					"patching_rect" : [ 1321.0, 576.0, 68.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-102",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-102",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2240,14 +2333,14 @@
 				"box" : 				{
 					"maxclass" : "flonum",
 					"patching_rect" : [ 1227.0, 602.0, 79.0, 19.0 ],
-					"outlettype" : [ "float", "bang" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-90",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "float", "bang" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 497.0, 198.0, 79.0, 19.0 ],
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -2255,12 +2348,12 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 1245.0, 696.0, 20.0, 140.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-86",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 366.0, 87.0, 20.0, 140.0 ],
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -2269,12 +2362,12 @@
 					"maxclass" : "message",
 					"text" : "startloop",
 					"patching_rect" : [ 1243.0, 528.0, 56.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-84",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-84",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2283,12 +2376,12 @@
 					"maxclass" : "newobj",
 					"text" : "buffer~ accomp",
 					"patching_rect" : [ 747.0, -208.0, 90.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-77",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float", "bang" ],
-					"id" : "obj-77",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2297,14 +2390,14 @@
 					"maxclass" : "message",
 					"text" : "replace",
 					"patching_rect" : [ 749.0, -244.0, 47.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-71",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 530.0, 171.0, 47.0, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -2312,14 +2405,14 @@
 				"box" : 				{
 					"maxclass" : "number~",
 					"patching_rect" : [ 1373.0, 674.0, 108.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-67",
+					"mode" : 2,
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "float" ],
-					"mode" : 2,
-					"id" : "obj-67",
+					"fontsize" : 10.0,
 					"sig" : 0.0,
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -2328,12 +2421,12 @@
 					"maxclass" : "newobj",
 					"text" : "elastic~ accomp 1",
 					"patching_rect" : [ 1244.0, 637.0, 147.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-15",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "signal" ],
-					"id" : "obj-15",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 4,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 4
 				}
 
 			}
@@ -2343,12 +2436,12 @@
 					"text" : "prefix /Users/andrew/Documents/work/programming/MadMax/AudioFiles/LiveDuesVerse2/",
 					"linecount" : 3,
 					"patching_rect" : [ 1296.0, -79.0, 325.0, 41.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-23",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-23",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2357,12 +2450,12 @@
 					"maxclass" : "message",
 					"text" : "/start",
 					"patching_rect" : [ 452.0, 460.0, 38.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-116",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-116",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2371,13 +2464,13 @@
 					"maxclass" : "comment",
 					"text" : "snare",
 					"patching_rect" : [ 180.0, 852.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-114",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 135.0, 232.0, 37.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -2386,13 +2479,13 @@
 					"maxclass" : "comment",
 					"text" : "bass",
 					"patching_rect" : [ 64.0, 851.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-111",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 20.0, 232.0, 32.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -2401,13 +2494,13 @@
 					"maxclass" : "comment",
 					"text" : "kick",
 					"patching_rect" : [ 127.0, 852.0, 53.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-109",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 82.0, 232.0, 29.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -2417,13 +2510,13 @@
 					"text" : "drag and drop foler - number them, 01bass, 02kick, 03snare",
 					"linecount" : 3,
 					"patching_rect" : [ 1365.0, -174.0, 150.0, 43.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-106",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 484.0, 2.0, 346.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -2432,12 +2525,12 @@
 					"maxclass" : "newobj",
 					"text" : "prepend prefix",
 					"patching_rect" : [ 1061.0, -113.0, 85.0, 20.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"id" : "obj-93",
 					"fontname" : "Arial",
+					"outlettype" : [ "" ],
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -2445,10 +2538,10 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 919.0, -136.0, 20.0, 20.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-94",
 					"outlettype" : [ "bang" ],
-					"id" : "obj-94",
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -2457,12 +2550,12 @@
 					"maxclass" : "newobj",
 					"text" : "prepend set",
 					"patching_rect" : [ 919.0, -161.0, 72.0, 20.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"id" : "obj-95",
 					"fontname" : "Arial",
+					"outlettype" : [ "" ],
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -2471,14 +2564,14 @@
 					"maxclass" : "dropfile",
 					"types" : [ "fold" ],
 					"patching_rect" : [ 1014.0, -161.0, 270.0, 19.0 ],
-					"outlettype" : [ "", "" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-96",
+					"rounded" : 0.0,
 					"border" : 0.0,
-					"rounded" : 0.0,
-					"numinlets" : 1,
+					"outlettype" : [ "", "" ],
 					"presentation_rect" : [ 488.0, 24.0, 270.0, 19.0 ],
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -2487,12 +2580,12 @@
 					"maxclass" : "newobj",
 					"text" : "route text",
 					"patching_rect" : [ 1061.0, -134.0, 59.0, 20.0 ],
-					"outlettype" : [ "", "" ],
+					"numoutlets" : 2,
 					"id" : "obj-97",
 					"fontname" : "Arial",
+					"outlettype" : [ "", "" ],
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -2503,16 +2596,16 @@
 					"linecount" : 2,
 					"presentation_linecount" : 2,
 					"patching_rect" : [ 1014.0, -162.0, 270.0, 19.0 ],
-					"outlettype" : [ "", "int", "", "" ],
+					"numoutlets" : 4,
 					"presentation" : 1,
 					"id" : "obj-98",
+					"fontname" : "Arial",
+					"rounded" : 6.0,
 					"border" : 1.0,
-					"rounded" : 6.0,
-					"fontname" : "Arial",
+					"outlettype" : [ "", "int", "", "" ],
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
 					"presentation_rect" : [ 490.0, 26.0, 270.0, 19.0 ],
-					"numoutlets" : 4
+					"numinlets" : 1
 				}
 
 			}
@@ -2521,12 +2614,12 @@
 					"maxclass" : "message",
 					"text" : "autopopulate 1",
 					"patching_rect" : [ 965.0, -112.0, 87.0, 18.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"id" : "obj-99",
 					"fontname" : "Arial",
+					"outlettype" : [ "" ],
 					"fontsize" : 11.595187,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -2535,17 +2628,17 @@
 					"maxclass" : "umenu",
 					"types" : [  ],
 					"patching_rect" : [ 990.0, -32.0, 243.0, 20.0 ],
-					"outlettype" : [ "int", "", "" ],
+					"numoutlets" : 3,
 					"presentation" : 1,
 					"id" : "obj-100",
 					"fontname" : "Arial",
+					"outlettype" : [ "int", "", "" ],
 					"autopopulate" : 1,
+					"fontsize" : 11.595187,
+					"presentation_rect" : [ 523.0, 77.0, 243.0, 20.0 ],
 					"prefix" : "/Users/andrew/Documents/work/programming/MadMax/AudioFiles/LiveDuesVerse2/",
-					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"presentation_rect" : [ 523.0, 77.0, 243.0, 20.0 ],
 					"items" : [ "01Bass.wav", ",", "02Kick_bip.wav", ",", "03Snare_bip.wav", ",", "04Elec_SM57_bip.wav", ",", "Ac D.I.wav", ",", "Ac Ribbon_bip.wav", ",", "AKG_L_bip.wav", ",", "AKG_R_bip.wav", ",", "Claud D.I.wav", ",", "Guide Vocal_bip.wav" ],
-					"numoutlets" : 3
+					"numinlets" : 1
 				}
 
 			}
@@ -2554,11 +2647,11 @@
 					"maxclass" : "comment",
 					"text" : "drag and drop a folder on the textedit to populate the umenu!",
 					"patching_rect" : [ 975.0, -186.0, 336.0, 20.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-101",
 					"fontname" : "Arial",
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -2567,12 +2660,12 @@
 					"maxclass" : "message",
 					"text" : "/stop",
 					"patching_rect" : [ 744.0, 646.0, 36.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-92",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-92",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2583,13 +2676,13 @@
 					"linecount" : 2,
 					"presentation_linecount" : 2,
 					"patching_rect" : [ 260.0, 7.0, 150.0, 31.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-89",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 222.0, -28.0, 150.0, 31.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -2597,12 +2690,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 201.0, 23.0, 20.0, 20.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-87",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 280.0, 137.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -2610,14 +2703,14 @@
 				"box" : 				{
 					"maxclass" : "number",
 					"patching_rect" : [ 254.0, 40.0, 50.0, 19.0 ],
-					"outlettype" : [ "int", "bang" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-85",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "int", "bang" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 278.0, 164.0, 50.0, 19.0 ],
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -2625,12 +2718,12 @@
 				"box" : 				{
 					"maxclass" : "number",
 					"patching_rect" : [ 202.0, 75.0, 50.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-83",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "bang" ],
-					"id" : "obj-83",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2639,12 +2732,12 @@
 					"maxclass" : "newobj",
 					"text" : "i 0",
 					"patching_rect" : [ 202.0, 51.0, 32.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-79",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int" ],
-					"id" : "obj-79",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2653,12 +2746,12 @@
 					"maxclass" : "message",
 					"text" : "20",
 					"patching_rect" : [ 119.0, 905.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-70",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-70",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2667,12 +2760,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadbang",
 					"patching_rect" : [ 3.0, 719.0, 56.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-61",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang" ],
-					"id" : "obj-61",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2681,12 +2774,12 @@
 					"maxclass" : "message",
 					"text" : "135",
 					"patching_rect" : [ 132.0, 552.0, 37.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-26",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-26",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2695,12 +2788,12 @@
 					"maxclass" : "message",
 					"text" : "/Users/andrew/Documents/work/programming/MadMax/AudioFiles/LiveDuesVerse2/",
 					"patching_rect" : [ 898.0, -214.0, 436.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-7",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-7",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2709,12 +2802,12 @@
 					"maxclass" : "newobj",
 					"text" : "counter 0 0 5",
 					"patching_rect" : [ 1158.0, -59.0, 78.0, 19.0 ],
+					"numoutlets" : 4,
+					"id" : "obj-60",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "", "", "int" ],
-					"id" : "obj-60",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 5,
-					"numoutlets" : 4
+					"fontsize" : 10.0,
+					"numinlets" : 5
 				}
 
 			}
@@ -2723,12 +2816,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
 					"patching_rect" : [ 753.0, 376.0, 68.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-1",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-1",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2737,12 +2830,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
 					"patching_rect" : [ 779.0, 679.0, 68.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-64",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-64",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2750,12 +2843,12 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 192.0, 685.0, 20.0, 140.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-63",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 139.0, 85.0, 20.0, 140.0 ],
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -2764,12 +2857,12 @@
 					"maxclass" : "newobj",
 					"text" : "prepend open",
 					"patching_rect" : [ 1007.0, 115.0, 80.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-59",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-59",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -2778,15 +2871,15 @@
 					"maxclass" : "message",
 					"text" : "open",
 					"patching_rect" : [ 853.0, 288.0, 35.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-58",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.843137, 0.741176, 0.431373, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 678.0, 176.0, 35.0, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -2794,12 +2887,12 @@
 				"box" : 				{
 					"maxclass" : "toggle",
 					"patching_rect" : [ 899.0, 737.0, 20.0, 20.0 ],
-					"outlettype" : [ "int" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-39",
-					"numinlets" : 1,
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 139.0, 256.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -2808,12 +2901,12 @@
 					"maxclass" : "newobj",
 					"text" : "gate",
 					"patching_rect" : [ 910.0, 764.0, 33.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-40",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-40",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -2822,11 +2915,11 @@
 					"maxclass" : "newobj",
 					"text" : "udpsend 127.0.0.1 10874",
 					"patching_rect" : [ 924.0, 794.0, 141.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-42",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -2834,12 +2927,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 887.0, 479.0, 59.0, 59.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-45",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 130.0, 286.0, 41.0, 41.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -2848,13 +2941,13 @@
 					"maxclass" : "umenu",
 					"types" : [  ],
 					"patching_rect" : [ 887.0, 410.0, 100.0, 19.0 ],
+					"numoutlets" : 3,
+					"id" : "obj-46",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "", "" ],
-					"id" : "obj-46",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"fontsize" : 10.0,
 					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numoutlets" : 3
+					"numinlets" : 1
 				}
 
 			}
@@ -2863,12 +2956,12 @@
 					"maxclass" : "newobj",
 					"text" : "switch 2",
 					"patching_rect" : [ 887.0, 444.0, 52.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-47",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-47",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 3
 				}
 
 			}
@@ -2877,12 +2970,12 @@
 					"maxclass" : "newobj",
 					"text" : "p aubioOnsetDeetection",
 					"patching_rect" : [ 861.0, 361.0, 131.0, 19.0 ],
+					"numoutlets" : 4,
+					"id" : "obj-48",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang", "float", "bang" ],
-					"id" : "obj-48",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 4,
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
@@ -2907,11 +3000,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: output period in msecs (will be rounded up to control rate)",
 									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-62",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -2920,11 +3013,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: minimum frequency in Hz",
 									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-64",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -2934,11 +3027,11 @@
 									"text" : "estimation quality factor",
 									"linecount" : 2,
 									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-82",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -2946,12 +3039,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-68",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-68",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -2959,12 +3052,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-40",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 359.0, 334.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -2973,12 +3066,12 @@
 									"maxclass" : "message",
 									"text" : "/medianOnset",
 									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-39",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-39",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -2987,12 +3080,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /medianAubioData",
 									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-37",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-37",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -3001,12 +3094,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /rawAubioData",
 									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-5",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-5",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -3016,11 +3109,11 @@
 									"text" : "raw detection function value",
 									"linecount" : 2,
 									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-32",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3028,12 +3121,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-24",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-24",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -3042,13 +3135,13 @@
 									"maxclass" : "comment",
 									"text" : "reset axis /mode ",
 									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-23",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 109.0, 137.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3056,12 +3149,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-2",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 127.0, 159.0, 20.0, 20.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -3070,12 +3163,12 @@
 									"maxclass" : "message",
 									"text" : "hfc",
 									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-34",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-34",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -3084,11 +3177,11 @@
 									"maxclass" : "comment",
 									"text" : "or send mode as a as message",
 									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-33",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3097,12 +3190,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /mode",
 									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-31",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-31",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -3111,13 +3204,13 @@
 									"maxclass" : "comment",
 									"text" : "detection mode",
 									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-29",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 143.0, 184.0, 91.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3126,15 +3219,15 @@
 									"maxclass" : "umenu",
 									"types" : [  ],
 									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ],
-									"outlettype" : [ "int", "", "" ],
+									"numoutlets" : 3,
 									"presentation" : 1,
 									"id" : "obj-15",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "int", "", "" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
 									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
-									"numoutlets" : 3
+									"numinlets" : 1
 								}
 
 							}
@@ -3144,11 +3237,11 @@
 									"text" : "send osc data to aubioOnsetVisualiser in openFrameworks",
 									"linecount" : 3,
 									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-28",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3158,11 +3251,11 @@
 									"text" : "print detection function value at onsets",
 									"linecount" : 2,
 									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-26",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3170,10 +3263,10 @@
 								"box" : 								{
 									"maxclass" : "toggle",
 									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-18",
 									"outlettype" : [ "int" ],
-									"id" : "obj-18",
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -3182,12 +3275,12 @@
 									"maxclass" : "newobj",
 									"text" : "gate",
 									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-13",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-13",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -3196,13 +3289,13 @@
 									"maxclass" : "comment",
 									"text" : "detection function as float",
 									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-11",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 407.0, 303.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3211,12 +3304,12 @@
 									"maxclass" : "message",
 									"text" : "/onset",
 									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-22",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-22",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -3225,12 +3318,12 @@
 									"maxclass" : "message",
 									"text" : "energy",
 									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-25",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-25",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -3239,12 +3332,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioData",
 									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-21",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-21",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -3253,11 +3346,11 @@
 									"maxclass" : "newobj",
 									"text" : "udpsend 127.0.0.1 12345",
 									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-20",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3266,12 +3359,12 @@
 									"maxclass" : "newobj",
 									"text" : "float 0.",
 									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-16",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-16",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -3280,11 +3373,11 @@
 									"maxclass" : "newobj",
 									"text" : "print",
 									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-19",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3292,14 +3385,14 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-17",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 356.0, 304.0, 49.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -3308,13 +3401,13 @@
 									"maxclass" : "comment",
 									"text" : "threshold",
 									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-6",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 62.0, 182.0, 58.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -3322,16 +3415,16 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-9",
 									"fontname" : "Verdana",
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
+									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
 									"minimum" : 0.1,
-									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"maximum" : 10.0,
-									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -3339,12 +3432,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-7",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 354.0, 247.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -3353,12 +3446,12 @@
 									"maxclass" : "newobj",
 									"text" : "aubioOnsetDetect~ 0.4",
 									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ],
+									"numoutlets" : 6,
+									"id" : "obj-1",
+									"fontname" : "Verdana",
 									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ],
-									"id" : "obj-1",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 6
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -3366,10 +3459,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-121",
 									"outlettype" : [ "signal" ],
-									"id" : "obj-121",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -3378,10 +3471,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-122",
 									"outlettype" : [ "" ],
-									"id" : "obj-122",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -3390,9 +3483,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 254.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-123",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -3401,9 +3494,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 287.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-124",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -3412,9 +3505,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 382.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-125",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -3423,9 +3516,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 569.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-126",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -3767,11 +3860,11 @@
 					"maxclass" : "comment",
 					"text" : "snare channel",
 					"patching_rect" : [ 888.0, 336.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-49",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -3780,15 +3873,15 @@
 					"maxclass" : "message",
 					"text" : "1",
 					"patching_rect" : [ 930.0, 288.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-50",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.843137, 0.741176, 0.431373, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 751.0, 176.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -3797,15 +3890,15 @@
 					"maxclass" : "message",
 					"text" : "0",
 					"patching_rect" : [ 895.0, 288.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-51",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.843137, 0.741176, 0.431373, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 716.0, 176.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -3814,12 +3907,12 @@
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
 					"patching_rect" : [ 860.0, 315.0, 48.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-52",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang" ],
-					"id" : "obj-52",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 2,
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -3827,14 +3920,14 @@
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "/snare 2 232748",
+					"text" : "/snare 2 79562",
 					"patching_rect" : [ 988.0, 758.0, 130.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-53",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-53",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -3842,12 +3935,12 @@
 				"box" : 				{
 					"maxclass" : "number",
 					"patching_rect" : [ 887.0, 614.0, 60.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-54",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "bang" ],
-					"id" : "obj-54",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -3856,12 +3949,12 @@
 					"maxclass" : "newobj",
 					"text" : "- 0.",
 					"patching_rect" : [ 887.0, 585.0, 32.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-55",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-55",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -3870,12 +3963,12 @@
 					"maxclass" : "newobj",
 					"text" : "cpuclock",
 					"patching_rect" : [ 887.0, 553.0, 53.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-56",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-56",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -3884,12 +3977,12 @@
 					"maxclass" : "message",
 					"text" : "/snare 2 $1",
 					"patching_rect" : [ 922.0, 736.0, 69.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-57",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-57",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -3898,13 +3991,13 @@
 					"maxclass" : "umenu",
 					"types" : [  ],
 					"patching_rect" : [ 103.0, 1085.0, 100.0, 19.0 ],
+					"numoutlets" : 3,
+					"id" : "obj-35",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "", "" ],
-					"id" : "obj-35",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"fontsize" : 10.0,
 					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numoutlets" : 3
+					"numinlets" : 1
 				}
 
 			}
@@ -3913,30 +4006,30 @@
 					"maxclass" : "newobj",
 					"text" : "switch 2",
 					"patching_rect" : [ 103.0, 1119.0, 52.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-38",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-38",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 3
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "/aubioPitch 1 49.15 234141",
+					"text" : "/aubioPitch 1 9.977376 79770",
 					"linecount" : 2,
 					"presentation_linecount" : 2,
 					"patching_rect" : [ 484.0, 767.0, 120.0, 29.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-31",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"outlettype" : [ "" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 13.0, 480.0, 120.0, 29.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -3944,12 +4037,12 @@
 				"box" : 				{
 					"maxclass" : "toggle",
 					"patching_rect" : [ 449.0, 754.0, 20.0, 20.0 ],
-					"outlettype" : [ "int" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-22",
-					"numinlets" : 1,
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 24.0, 256.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -3958,12 +4051,12 @@
 					"maxclass" : "newobj",
 					"text" : "gate",
 					"patching_rect" : [ 449.0, 781.0, 33.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-24",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-24",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -3972,11 +4065,11 @@
 					"maxclass" : "newobj",
 					"text" : "udpsend 127.0.0.1 10874",
 					"patching_rect" : [ 449.0, 806.0, 141.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-20",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -3984,12 +4077,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 100.0, 131.0, 20.0, 20.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-44",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 261.0, 13.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -3997,14 +4090,14 @@
 				"box" : 				{
 					"maxclass" : "number",
 					"patching_rect" : [ 259.0, 187.0, 61.0, 19.0 ],
-					"outlettype" : [ "int", "bang" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-41",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "int", "bang" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 243.0, 34.0, 61.0, 19.0 ],
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -4012,12 +4105,12 @@
 				"box" : 				{
 					"maxclass" : "toggle",
 					"patching_rect" : [ 603.0, 734.0, 20.0, 20.0 ],
-					"outlettype" : [ "int" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-37",
-					"numinlets" : 1,
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 84.0, 256.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -4026,12 +4119,12 @@
 					"maxclass" : "newobj",
 					"text" : "gate",
 					"patching_rect" : [ 614.0, 761.0, 33.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-34",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-34",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -4040,13 +4133,13 @@
 					"maxclass" : "comment",
 					"text" : "start",
 					"patching_rect" : [ 372.0, 146.0, 45.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-33",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 103.0, -1.0, 45.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -4055,13 +4148,13 @@
 					"maxclass" : "comment",
 					"text" : "stop",
 					"patching_rect" : [ 499.0, 145.0, 31.0, 19.0 ],
+					"numoutlets" : 0,
 					"presentation" : 1,
 					"id" : "obj-32",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
 					"presentation_rect" : [ 159.0, -1.0, 31.0, 19.0 ],
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -4069,12 +4162,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 681.0, -102.0, 45.0, 45.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-29",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 155.0, 14.0, 45.0, 45.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -4082,12 +4175,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 450.0, -91.0, 45.0, 45.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-28",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 93.0, 14.0, 45.0, 45.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -4096,12 +4189,12 @@
 					"maxclass" : "newobj",
 					"text" : "p signal Info",
 					"patching_rect" : [ 99.61554, 159.19075, 246.38446, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-25",
+					"fontname" : "Verdana",
 					"outlettype" : [ "", "int" ],
-					"id" : "obj-25",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 1,
-					"numoutlets" : 2,
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 25.0, 69.0, 640.0, 480.0 ],
@@ -4125,10 +4218,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 76.0, 60.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-2",
 									"outlettype" : [ "bang" ],
-									"id" : "obj-2",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -4137,9 +4230,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 204.717804, 391.809265, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-1",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -4148,14 +4241,14 @@
 								"box" : 								{
 									"maxclass" : "number",
 									"patching_rect" : [ 171.523865, 285.404633, 50.0, 20.0 ],
-									"outlettype" : [ "int", "bang" ],
+									"numoutlets" : 2,
 									"id" : "obj-55",
 									"fontname" : "Arial",
+									"outlettype" : [ "int", "bang" ],
 									"fontsize" : 11.595187,
-									"numinlets" : 1,
+									"triscale" : 0.9,
 									"presentation_rect" : [ 45.0, 45.0, 50.0, 20.0 ],
-									"triscale" : 0.9,
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -4163,14 +4256,14 @@
 								"box" : 								{
 									"maxclass" : "number",
 									"patching_rect" : [ 175.523865, 212.445099, 50.0, 20.0 ],
-									"outlettype" : [ "int", "bang" ],
+									"numoutlets" : 2,
 									"id" : "obj-54",
 									"fontname" : "Arial",
+									"outlettype" : [ "int", "bang" ],
 									"fontsize" : 11.595187,
-									"numinlets" : 1,
+									"triscale" : 0.9,
 									"presentation_rect" : [ 30.0, 30.0, 50.0, 20.0 ],
-									"triscale" : 0.9,
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -4179,12 +4272,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /ioVectorSize",
 									"patching_rect" : [ 151.38446, 309.809265, 122.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-53",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-53",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4193,12 +4286,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /signalVectorSize",
 									"patching_rect" : [ 154.38446, 239.809265, 142.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-52",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-52",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4207,12 +4300,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /samplingRate",
 									"patching_rect" : [ 98.38446, 155.809265, 128.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-51",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-51",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4221,12 +4314,12 @@
 									"maxclass" : "newobj",
 									"text" : "adstatus iovs",
 									"patching_rect" : [ 92.0, 285.404633, 78.0, 20.0 ],
-									"outlettype" : [ "", "int" ],
+									"numoutlets" : 2,
 									"id" : "obj-38",
 									"fontname" : "Arial",
+									"outlettype" : [ "", "int" ],
 									"fontsize" : 11.595187,
-									"numinlets" : 2,
-									"numoutlets" : 2
+									"numinlets" : 2
 								}
 
 							}
@@ -4234,14 +4327,14 @@
 								"box" : 								{
 									"maxclass" : "number",
 									"patching_rect" : [ 134.523865, 131.445099, 50.0, 20.0 ],
-									"outlettype" : [ "int", "bang" ],
+									"numoutlets" : 2,
 									"id" : "obj-42",
 									"fontname" : "Arial",
+									"outlettype" : [ "int", "bang" ],
 									"fontsize" : 11.595187,
-									"numinlets" : 1,
+									"triscale" : 0.9,
 									"presentation_rect" : [ 15.0, 15.0, 50.0, 20.0 ],
-									"triscale" : 0.9,
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -4250,12 +4343,12 @@
 									"maxclass" : "newobj",
 									"text" : "adstatus sigvs",
 									"patching_rect" : [ 89.0, 213.406555, 84.0, 20.0 ],
-									"outlettype" : [ "", "int" ],
+									"numoutlets" : 2,
 									"id" : "obj-45",
 									"fontname" : "Arial",
+									"outlettype" : [ "", "int" ],
 									"fontsize" : 11.595187,
-									"numinlets" : 2,
-									"numoutlets" : 2
+									"numinlets" : 2
 								}
 
 							}
@@ -4263,10 +4356,10 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 50.0, 104.192688, 20.0, 20.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-49",
 									"outlettype" : [ "bang" ],
-									"id" : "obj-49",
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -4275,12 +4368,12 @@
 									"maxclass" : "newobj",
 									"text" : "adstatus sr",
 									"patching_rect" : [ 50.0, 131.445099, 67.0, 20.0 ],
-									"outlettype" : [ "", "int" ],
+									"numoutlets" : 2,
 									"id" : "obj-50",
 									"fontname" : "Arial",
+									"outlettype" : [ "", "int" ],
 									"fontsize" : 11.595187,
-									"numinlets" : 2,
-									"numoutlets" : 2
+									"numinlets" : 2
 								}
 
 							}
@@ -4289,11 +4382,11 @@
 									"maxclass" : "comment",
 									"text" : "report sampling rate choices",
 									"patching_rect" : [ 92.457458, 100.000015, 154.0, 20.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-63",
 									"fontname" : "Arial",
 									"fontsize" : 11.595187,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4301,9 +4394,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 129.717804, 388.809265, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-24",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -4455,12 +4548,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 1158.0, -106.0, 20.0, 20.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-21",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 496.0, 78.0, 20.0, 20.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -4469,12 +4562,12 @@
 					"maxclass" : "newobj",
 					"text" : "uzi 5",
 					"patching_rect" : [ 1158.0, -81.0, 46.0, 19.0 ],
+					"numoutlets" : 3,
+					"id" : "obj-19",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang", "bang", "int" ],
-					"id" : "obj-19",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 3
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -4483,12 +4576,12 @@
 					"maxclass" : "newobj",
 					"text" : "prepend open",
 					"patching_rect" : [ 288.0, 282.0, 80.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-18",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-18",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -4497,12 +4590,12 @@
 					"maxclass" : "newobj",
 					"text" : "prepend open",
 					"patching_rect" : [ 919.0, 114.0, 80.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-17",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-17",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -4511,12 +4604,12 @@
 					"maxclass" : "newobj",
 					"text" : "route 0 1 2 3",
 					"patching_rect" : [ 915.0, 43.0, 77.0, 19.0 ],
+					"numoutlets" : 5,
+					"id" : "obj-13",
+					"fontname" : "Verdana",
 					"outlettype" : [ "", "", "", "", "" ],
-					"id" : "obj-13",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 5
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -4525,12 +4618,12 @@
 					"maxclass" : "newobj",
 					"text" : "pack 0 s",
 					"patching_rect" : [ 1000.0, 4.0, 52.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-11",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-11",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -4539,12 +4632,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadbang",
 					"patching_rect" : [ 1030.0, -270.0, 56.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-6",
+					"fontname" : "Verdana",
 					"outlettype" : [ "bang" ],
-					"id" : "obj-6",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -4553,12 +4646,12 @@
 					"maxclass" : "message",
 					"text" : "autopopulate 1",
 					"patching_rect" : [ 1015.0, -239.0, 87.0, 18.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"id" : "obj-5",
 					"fontname" : "Arial",
+					"outlettype" : [ "" ],
 					"fontsize" : 11.595187,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -4567,11 +4660,11 @@
 					"maxclass" : "newobj",
 					"text" : "udpsend 127.0.0.1 10874",
 					"patching_rect" : [ 628.0, 791.0, 141.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-66",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -4579,14 +4672,14 @@
 				"box" : 				{
 					"maxclass" : "flonum",
 					"patching_rect" : [ 384.0, 775.0, 50.0, 19.0 ],
-					"outlettype" : [ "float", "bang" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-154",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "float", "bang" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 15.0, 458.0, 50.0, 19.0 ],
-					"numoutlets" : 2
+					"numinlets" : 1
 				}
 
 			}
@@ -4594,14 +4687,14 @@
 				"box" : 				{
 					"maxclass" : "number~",
 					"patching_rect" : [ 501.0, 356.0, 56.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-152",
+					"mode" : 2,
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "float" ],
-					"mode" : 2,
-					"id" : "obj-152",
+					"fontsize" : 10.0,
 					"sig" : 0.0,
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -4609,12 +4702,12 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 133.0, 691.0, 20.0, 140.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-151",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 84.0, 86.0, 20.0, 140.0 ],
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -4622,28 +4715,28 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 591.0, 476.0, 59.0, 59.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-147",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 75.0, 286.0, 41.0, 41.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "umenu",
-					"pattrmode" : 1,
 					"types" : [  ],
 					"patching_rect" : [ 591.0, 407.0, 100.0, 19.0 ],
+					"numoutlets" : 3,
+					"id" : "obj-148",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "", "" ],
-					"id" : "obj-148",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"fontsize" : 10.0,
+					"pattrmode" : 1,
 					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numoutlets" : 3
+					"numinlets" : 1
 				}
 
 			}
@@ -4652,12 +4745,12 @@
 					"maxclass" : "newobj",
 					"text" : "switch 2",
 					"patching_rect" : [ 591.0, 441.0, 52.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-149",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-149",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 3
 				}
 
 			}
@@ -4666,12 +4759,12 @@
 					"maxclass" : "newobj",
 					"text" : "p aubioOnsetDeetection",
 					"patching_rect" : [ 565.0, 358.0, 131.0, 19.0 ],
+					"numoutlets" : 4,
+					"id" : "obj-141",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang", "float", "bang" ],
-					"id" : "obj-141",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 4,
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
@@ -4696,11 +4789,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: output period in msecs (will be rounded up to control rate)",
 									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-62",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4709,11 +4802,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: minimum frequency in Hz",
 									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-64",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4723,11 +4816,11 @@
 									"text" : "estimation quality factor",
 									"linecount" : 2,
 									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-82",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4735,12 +4828,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-68",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-68",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4748,12 +4841,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-40",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 359.0, 334.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -4762,12 +4855,12 @@
 									"maxclass" : "message",
 									"text" : "/medianOnset",
 									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-39",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-39",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -4776,12 +4869,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /medianAubioData",
 									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-37",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-37",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4790,12 +4883,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /rawAubioData",
 									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-5",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-5",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4805,11 +4898,11 @@
 									"text" : "raw detection function value",
 									"linecount" : 2,
 									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-32",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4817,12 +4910,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-24",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-24",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4831,13 +4924,13 @@
 									"maxclass" : "comment",
 									"text" : "reset axis /mode ",
 									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-23",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 109.0, 137.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4845,12 +4938,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-2",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 127.0, 159.0, 20.0, 20.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -4859,12 +4952,12 @@
 									"maxclass" : "message",
 									"text" : "hfc",
 									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-34",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-34",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -4873,11 +4966,11 @@
 									"maxclass" : "comment",
 									"text" : "or send mode as a as message",
 									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-33",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4886,12 +4979,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /mode",
 									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-31",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-31",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -4900,13 +4993,13 @@
 									"maxclass" : "comment",
 									"text" : "detection mode",
 									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-29",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 143.0, 184.0, 91.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4915,15 +5008,15 @@
 									"maxclass" : "umenu",
 									"types" : [  ],
 									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ],
-									"outlettype" : [ "int", "", "" ],
+									"numoutlets" : 3,
 									"presentation" : 1,
 									"id" : "obj-15",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "int", "", "" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
 									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
-									"numoutlets" : 3
+									"numinlets" : 1
 								}
 
 							}
@@ -4933,11 +5026,11 @@
 									"text" : "send osc data to aubioOnsetVisualiser in openFrameworks",
 									"linecount" : 3,
 									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-28",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4947,11 +5040,11 @@
 									"text" : "print detection function value at onsets",
 									"linecount" : 2,
 									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-26",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -4959,10 +5052,10 @@
 								"box" : 								{
 									"maxclass" : "toggle",
 									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-18",
 									"outlettype" : [ "int" ],
-									"id" : "obj-18",
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -4971,12 +5064,12 @@
 									"maxclass" : "newobj",
 									"text" : "gate",
 									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-13",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-13",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -4985,13 +5078,13 @@
 									"maxclass" : "comment",
 									"text" : "detection function as float",
 									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-11",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 407.0, 303.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -5000,12 +5093,12 @@
 									"maxclass" : "message",
 									"text" : "/onset",
 									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-22",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-22",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5014,12 +5107,12 @@
 									"maxclass" : "message",
 									"text" : "energy",
 									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-25",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-25",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5028,12 +5121,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioData",
 									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-21",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-21",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5042,11 +5135,11 @@
 									"maxclass" : "newobj",
 									"text" : "udpsend 127.0.0.1 12345",
 									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-20",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -5055,12 +5148,12 @@
 									"maxclass" : "newobj",
 									"text" : "float 0.",
 									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-16",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-16",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5069,11 +5162,11 @@
 									"maxclass" : "newobj",
 									"text" : "print",
 									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-19",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -5081,14 +5174,14 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-17",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 356.0, 304.0, 49.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -5097,13 +5190,13 @@
 									"maxclass" : "comment",
 									"text" : "threshold",
 									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-6",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 62.0, 182.0, 58.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -5111,16 +5204,16 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-9",
 									"fontname" : "Verdana",
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
+									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
 									"minimum" : 0.1,
-									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"maximum" : 10.0,
-									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -5128,12 +5221,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-7",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 354.0, 247.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -5142,12 +5235,12 @@
 									"maxclass" : "newobj",
 									"text" : "aubioOnsetDetect~ 0.4",
 									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ],
+									"numoutlets" : 6,
+									"id" : "obj-1",
+									"fontname" : "Verdana",
 									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ],
-									"id" : "obj-1",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 6
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5155,10 +5248,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-121",
 									"outlettype" : [ "signal" ],
-									"id" : "obj-121",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -5167,10 +5260,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-122",
 									"outlettype" : [ "" ],
-									"id" : "obj-122",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -5179,9 +5272,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 254.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-123",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -5190,9 +5283,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 287.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-124",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -5201,9 +5294,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 382.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-125",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -5212,9 +5305,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 569.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-126",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -5556,11 +5649,11 @@
 					"maxclass" : "comment",
 					"text" : "soundfile load",
 					"patching_rect" : [ 536.0, 258.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-142",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -5569,15 +5662,15 @@
 					"maxclass" : "message",
 					"text" : "open",
 					"patching_rect" : [ 560.0, 285.0, 35.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-143",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.615686, 0.552941, 0.827451, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 678.0, 152.0, 35.0, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -5586,15 +5679,15 @@
 					"maxclass" : "message",
 					"text" : "1",
 					"patching_rect" : [ 634.0, 285.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-144",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.615686, 0.552941, 0.827451, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 751.0, 152.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -5603,15 +5696,15 @@
 					"maxclass" : "message",
 					"text" : "0",
 					"patching_rect" : [ 599.0, 285.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-145",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.615686, 0.552941, 0.827451, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 716.0, 152.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -5620,12 +5713,12 @@
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
 					"patching_rect" : [ 564.0, 312.0, 48.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-146",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang" ],
-					"id" : "obj-146",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 2,
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -5635,12 +5728,12 @@
 					"maxclass" : "newobj",
 					"text" : "p pitchChannel_0",
 					"patching_rect" : [ 401.0, 711.0, 98.0, 19.0 ],
+					"numoutlets" : 3,
+					"id" : "obj-140",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float", "", "float" ],
-					"id" : "obj-140",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 3,
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 25.0, 69.0, 640.0, 480.0 ],
@@ -5665,11 +5758,11 @@
 									"maxclass" : "newobj",
 									"text" : "s startTime",
 									"patching_rect" : [ 495.0, 223.0, 67.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-5",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -5678,12 +5771,12 @@
 									"maxclass" : "newobj",
 									"text" : "r --starting",
 									"patching_rect" : [ 495.0, 161.0, 66.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-124",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-124",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 0,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 0
 								}
 
 							}
@@ -5692,12 +5785,12 @@
 									"maxclass" : "newobj",
 									"text" : "loadmess 2",
 									"patching_rect" : [ 34.0, 73.0, 72.0, 20.0 ],
-									"outlettype" : [ "" ],
+									"numoutlets" : 1,
 									"id" : "obj-9",
 									"fontname" : "Arial",
+									"outlettype" : [ "" ],
 									"fontsize" : 12.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -5706,12 +5799,12 @@
 									"maxclass" : "newobj",
 									"text" : "switch 2",
 									"patching_rect" : [ 215.0, 145.0, 54.0, 20.0 ],
-									"outlettype" : [ "" ],
+									"numoutlets" : 1,
 									"id" : "obj-8",
 									"fontname" : "Arial",
+									"outlettype" : [ "" ],
 									"fontsize" : 12.0,
-									"numinlets" : 3,
-									"numoutlets" : 1
+									"numinlets" : 3
 								}
 
 							}
@@ -5720,13 +5813,13 @@
 									"maxclass" : "umenu",
 									"types" : [  ],
 									"patching_rect" : [ 37.0, 103.0, 100.0, 20.0 ],
-									"outlettype" : [ "int", "", "" ],
+									"numoutlets" : 3,
 									"id" : "obj-7",
 									"fontname" : "Arial",
+									"outlettype" : [ "int", "", "" ],
 									"fontsize" : 12.0,
-									"numinlets" : 1,
 									"items" : [ "none", ",", "aubioPitch", ",", "yin" ],
-									"numoutlets" : 3
+									"numinlets" : 1
 								}
 
 							}
@@ -5734,12 +5827,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 275.0, 120.0, 50.0, 20.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"id" : "obj-6",
 									"fontname" : "Arial",
+									"outlettype" : [ "float", "bang" ],
 									"fontsize" : 12.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -5748,12 +5841,12 @@
 									"maxclass" : "newobj",
 									"text" : "yin~ 3 10. 5.",
 									"patching_rect" : [ 250.0, 94.0, 76.0, 20.0 ],
-									"outlettype" : [ "float", "float", "float" ],
+									"numoutlets" : 3,
 									"id" : "obj-4",
 									"fontname" : "Arial",
+									"outlettype" : [ "float", "float", "float" ],
 									"fontsize" : 12.0,
-									"numinlets" : 1,
-									"numoutlets" : 3
+									"numinlets" : 1
 								}
 
 							}
@@ -5761,9 +5854,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 419.0, 417.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-3",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -5772,9 +5865,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 302.0, 413.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-2",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -5783,9 +5876,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 244.0, 417.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-1",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -5794,12 +5887,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 154.0, 98.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-47",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-47",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5808,12 +5901,12 @@
 									"maxclass" : "newobj",
 									"text" : "- 0.",
 									"patching_rect" : [ 436.0, 217.0, 32.5, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-88",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-88",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5822,12 +5915,12 @@
 									"maxclass" : "newobj",
 									"text" : "cpuclock",
 									"patching_rect" : [ 495.0, 189.0, 53.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-87",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-87",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5836,11 +5929,11 @@
 									"maxclass" : "comment",
 									"text" : "sending osc of pitch",
 									"patching_rect" : [ 293.0, 273.0, 150.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-86",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -5848,12 +5941,12 @@
 								"box" : 								{
 									"maxclass" : "number",
 									"patching_rect" : [ 436.0, 244.0, 72.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-83",
+									"fontname" : "Verdana",
 									"outlettype" : [ "int", "bang" ],
-									"id" : "obj-83",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5862,26 +5955,26 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioPitch 1",
 									"patching_rect" : [ 248.0, 304.0, 122.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-77",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-77",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "message",
-									"text" : "49.15 234141",
+									"text" : "9.977376 79770",
 									"patching_rect" : [ 50.0, 305.0, 187.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-65",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-65",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5890,12 +5983,12 @@
 									"maxclass" : "newobj",
 									"text" : "pack 0. 0",
 									"patching_rect" : [ 220.0, 270.0, 61.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-60",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-60",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5904,12 +5997,12 @@
 									"maxclass" : "newobj",
 									"text" : "cpuclock",
 									"patching_rect" : [ 436.0, 189.0, 53.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-59",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-59",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5918,12 +6011,12 @@
 									"maxclass" : "newobj",
 									"text" : "delay 100",
 									"patching_rect" : [ 372.0, 113.0, 60.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-58",
+									"fontname" : "Verdana",
 									"outlettype" : [ "bang" ],
-									"id" : "obj-58",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5931,12 +6024,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 141.0, 232.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-57",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-57",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5945,12 +6038,12 @@
 									"maxclass" : "newobj",
 									"text" : "f 0.",
 									"patching_rect" : [ 201.0, 187.0, 32.5, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-48",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-48",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -5959,12 +6052,12 @@
 									"maxclass" : "newobj",
 									"text" : "aubiopitch~",
 									"patching_rect" : [ 149.0, 70.0, 71.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-44",
+									"fontname" : "Verdana",
 									"outlettype" : [ "signal", "float" ],
-									"id" : "obj-44",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -5972,10 +6065,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 436.0, 26.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-135",
 									"outlettype" : [ "" ],
-									"id" : "obj-135",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -5984,10 +6077,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 183.0, 12.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-136",
 									"outlettype" : [ "signal" ],
-									"id" : "obj-136",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -6238,12 +6331,12 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 300.0, 678.0, 59.0, 59.0 ],
-					"outlettype" : [ "bang" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-130",
-					"numinlets" : 1,
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 17.0, 286.0, 41.0, 41.0 ],
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -6252,12 +6345,12 @@
 					"maxclass" : "newobj",
 					"text" : "p aubioOnsetDeetection",
 					"patching_rect" : [ 172.0, 360.0, 131.0, 19.0 ],
+					"numoutlets" : 4,
+					"id" : "obj-128",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang", "float", "bang" ],
-					"id" : "obj-128",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 4,
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 25.0, 69.0, 889.0, 558.0 ],
@@ -6282,11 +6375,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: output period in msecs (will be rounded up to control rate)",
 									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-62",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6295,11 +6388,11 @@
 									"maxclass" : "comment",
 									"text" : "<number>: minimum frequency in Hz",
 									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-64",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6309,11 +6402,11 @@
 									"text" : "estimation quality factor",
 									"linecount" : 2,
 									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-82",
 									"fontname" : "Arial",
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6321,12 +6414,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-68",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-68",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -6334,12 +6427,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-40",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 359.0, 334.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -6348,12 +6441,12 @@
 									"maxclass" : "message",
 									"text" : "/medianOnset",
 									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-39",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-39",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -6362,12 +6455,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /medianAubioData",
 									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-37",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-37",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -6376,12 +6469,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /rawAubioData",
 									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-5",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-5",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -6391,11 +6484,11 @@
 									"text" : "raw detection function value",
 									"linecount" : 2,
 									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-32",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6403,12 +6496,12 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ],
+									"numoutlets" : 2,
+									"id" : "obj-24",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float", "bang" ],
-									"id" : "obj-24",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 2
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -6417,13 +6510,13 @@
 									"maxclass" : "comment",
 									"text" : "reset axis /mode ",
 									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-23",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 109.0, 137.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6431,12 +6524,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-2",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 127.0, 159.0, 20.0, 20.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -6445,12 +6538,12 @@
 									"maxclass" : "message",
 									"text" : "hfc",
 									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-34",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-34",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -6459,11 +6552,11 @@
 									"maxclass" : "comment",
 									"text" : "or send mode as a as message",
 									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-33",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6472,12 +6565,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /mode",
 									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-31",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-31",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -6486,13 +6579,13 @@
 									"maxclass" : "comment",
 									"text" : "detection mode",
 									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-29",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 143.0, 184.0, 91.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6501,15 +6594,15 @@
 									"maxclass" : "umenu",
 									"types" : [  ],
 									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ],
-									"outlettype" : [ "int", "", "" ],
+									"numoutlets" : 3,
 									"presentation" : 1,
 									"id" : "obj-15",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "int", "", "" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
 									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
-									"numoutlets" : 3
+									"numinlets" : 1
 								}
 
 							}
@@ -6519,11 +6612,11 @@
 									"text" : "send osc data to aubioOnsetVisualiser in openFrameworks",
 									"linecount" : 3,
 									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-28",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6533,11 +6626,11 @@
 									"text" : "print detection function value at onsets",
 									"linecount" : 2,
 									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-26",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6545,10 +6638,10 @@
 								"box" : 								{
 									"maxclass" : "toggle",
 									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-18",
 									"outlettype" : [ "int" ],
-									"id" : "obj-18",
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -6557,12 +6650,12 @@
 									"maxclass" : "newobj",
 									"text" : "gate",
 									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-13",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-13",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -6571,13 +6664,13 @@
 									"maxclass" : "comment",
 									"text" : "detection function as float",
 									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-11",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 407.0, 303.0, 150.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6586,12 +6679,12 @@
 									"maxclass" : "message",
 									"text" : "/onset",
 									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-22",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-22",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -6600,12 +6693,12 @@
 									"maxclass" : "message",
 									"text" : "energy",
 									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-25",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-25",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -6614,12 +6707,12 @@
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioData",
 									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-21",
+									"fontname" : "Verdana",
 									"outlettype" : [ "" ],
-									"id" : "obj-21",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -6628,11 +6721,11 @@
 									"maxclass" : "newobj",
 									"text" : "udpsend 127.0.0.1 12345",
 									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-20",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6641,12 +6734,12 @@
 									"maxclass" : "newobj",
 									"text" : "float 0.",
 									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-16",
+									"fontname" : "Verdana",
 									"outlettype" : [ "float" ],
-									"id" : "obj-16",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"numoutlets" : 1
+									"fontsize" : 10.0,
+									"numinlets" : 2
 								}
 
 							}
@@ -6655,11 +6748,11 @@
 									"maxclass" : "newobj",
 									"text" : "print",
 									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-19",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6667,14 +6760,14 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-17",
 									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
 									"presentation_rect" : [ 356.0, 304.0, 49.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -6683,13 +6776,13 @@
 									"maxclass" : "comment",
 									"text" : "threshold",
 									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ],
+									"numoutlets" : 0,
 									"presentation" : 1,
 									"id" : "obj-6",
 									"fontname" : "Verdana",
 									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"presentation_rect" : [ 62.0, 182.0, 58.0, 19.0 ],
-									"numoutlets" : 0
+									"numinlets" : 1
 								}
 
 							}
@@ -6697,16 +6790,16 @@
 								"box" : 								{
 									"maxclass" : "flonum",
 									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ],
-									"outlettype" : [ "float", "bang" ],
+									"numoutlets" : 2,
 									"presentation" : 1,
 									"id" : "obj-9",
 									"fontname" : "Verdana",
+									"outlettype" : [ "float", "bang" ],
+									"fontsize" : 10.0,
+									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
 									"minimum" : 0.1,
-									"fontsize" : 10.0,
-									"numinlets" : 1,
 									"maximum" : 10.0,
-									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
-									"numoutlets" : 2
+									"numinlets" : 1
 								}
 
 							}
@@ -6714,12 +6807,12 @@
 								"box" : 								{
 									"maxclass" : "button",
 									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ],
-									"outlettype" : [ "bang" ],
+									"numoutlets" : 1,
 									"presentation" : 1,
 									"id" : "obj-7",
-									"numinlets" : 1,
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 354.0, 247.0, 47.0, 47.0 ],
-									"numoutlets" : 1
+									"numinlets" : 1
 								}
 
 							}
@@ -6728,12 +6821,12 @@
 									"maxclass" : "newobj",
 									"text" : "aubioOnsetDetect~ 0.4",
 									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ],
+									"numoutlets" : 6,
+									"id" : "obj-1",
+									"fontname" : "Verdana",
 									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ],
-									"id" : "obj-1",
-									"fontname" : "Verdana",
-									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"numoutlets" : 6
+									"fontsize" : 10.0,
+									"numinlets" : 1
 								}
 
 							}
@@ -6741,10 +6834,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-121",
 									"outlettype" : [ "signal" ],
-									"id" : "obj-121",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -6753,10 +6846,10 @@
 								"box" : 								{
 									"maxclass" : "inlet",
 									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
+									"numoutlets" : 1,
+									"id" : "obj-122",
 									"outlettype" : [ "" ],
-									"id" : "obj-122",
 									"numinlets" : 0,
-									"numoutlets" : 1,
 									"comment" : ""
 								}
 
@@ -6765,9 +6858,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 254.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-123",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -6776,9 +6869,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 287.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-124",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -6787,9 +6880,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 382.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-125",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -6798,9 +6891,9 @@
 								"box" : 								{
 									"maxclass" : "outlet",
 									"patching_rect" : [ 569.0, 478.0, 25.0, 25.0 ],
+									"numoutlets" : 0,
 									"id" : "obj-126",
 									"numinlets" : 1,
-									"numoutlets" : 0,
 									"comment" : ""
 								}
 
@@ -7140,14 +7233,14 @@
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "/kick 0 234047",
+					"text" : "/kick 0 79562",
 					"patching_rect" : [ 692.0, 755.0, 130.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-112",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-112",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -7155,12 +7248,12 @@
 				"box" : 				{
 					"maxclass" : "number",
 					"patching_rect" : [ 591.0, 611.0, 60.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-110",
+					"fontname" : "Verdana",
 					"outlettype" : [ "int", "bang" ],
-					"id" : "obj-110",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 2
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -7169,11 +7262,11 @@
 					"maxclass" : "comment",
 					"text" : "start button",
 					"patching_rect" : [ 397.0, 590.0, 75.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-108",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -7182,12 +7275,12 @@
 					"maxclass" : "newobj",
 					"text" : "- 0.",
 					"patching_rect" : [ 591.0, 582.0, 32.5, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-105",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-105",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -7196,12 +7289,12 @@
 					"maxclass" : "newobj",
 					"text" : "cpuclock",
 					"patching_rect" : [ 591.0, 550.0, 53.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-104",
+					"fontname" : "Verdana",
 					"outlettype" : [ "float" ],
-					"id" : "obj-104",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -7210,12 +7303,12 @@
 					"maxclass" : "message",
 					"text" : "/kick 0 $1",
 					"patching_rect" : [ 626.0, 733.0, 61.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-103",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-103",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -7223,10 +7316,10 @@
 				"box" : 				{
 					"maxclass" : "button",
 					"patching_rect" : [ 462.0, 591.0, 20.0, 20.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-91",
 					"outlettype" : [ "bang" ],
-					"id" : "obj-91",
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"numinlets" : 1
 				}
 
 			}
@@ -7235,11 +7328,11 @@
 					"maxclass" : "comment",
 					"text" : "soundfile load",
 					"patching_rect" : [ 143.0, 260.0, 150.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-81",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -7248,15 +7341,15 @@
 					"maxclass" : "umenu",
 					"types" : [  ],
 					"patching_rect" : [ 424.0, 625.0, 100.0, 19.0 ],
-					"outlettype" : [ "int", "", "" ],
+					"numoutlets" : 3,
 					"presentation" : 1,
 					"id" : "obj-80",
 					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"outlettype" : [ "int", "", "" ],
+					"fontsize" : 10.0,
 					"presentation_rect" : [ 5.0, 355.0, 81.0, 19.0 ],
 					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numoutlets" : 3
+					"numinlets" : 1
 				}
 
 			}
@@ -7265,12 +7358,12 @@
 					"maxclass" : "newobj",
 					"text" : "switch 2",
 					"patching_rect" : [ 424.0, 659.0, 52.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-78",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-78",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 3
 				}
 
 			}
@@ -7279,12 +7372,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess 80",
 					"patching_rect" : [ 32.0, 941.0, 74.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-127",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-127",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -7293,11 +7386,11 @@
 					"maxclass" : "comment",
 					"text" : "click sound to use",
 					"patching_rect" : [ 218.0, 1080.0, 108.0, 19.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-113",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -7306,12 +7399,12 @@
 					"maxclass" : "message",
 					"text" : "1",
 					"patching_rect" : [ 218.0, 1135.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-36",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-36",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -7320,12 +7413,12 @@
 					"maxclass" : "newobj",
 					"text" : "loadmess open cow2.wav",
 					"patching_rect" : [ 241.0, 1105.0, 139.0, 19.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-72",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-72",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 1
 				}
 
 			}
@@ -7333,13 +7426,13 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 122.0, 933.0, 20.0, 140.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-73",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 832.0, 120.0, 20.0, 140.0 ],
 					"interp" : 100.0,
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -7348,12 +7441,12 @@
 					"maxclass" : "message",
 					"text" : "open",
 					"patching_rect" : [ 251.0, 1135.0, 35.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-74",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-74",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -7362,12 +7455,12 @@
 					"maxclass" : "message",
 					"text" : "0",
 					"patching_rect" : [ 287.0, 1135.0, 32.5, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-75",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-75",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -7376,12 +7469,12 @@
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
 					"patching_rect" : [ 249.0, 1166.0, 48.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-76",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang" ],
-					"id" : "obj-76",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 2,
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -7391,12 +7484,12 @@
 					"maxclass" : "message",
 					"text" : "seek $1",
 					"patching_rect" : [ 202.0, 99.0, 50.0, 17.0 ],
+					"numoutlets" : 1,
+					"id" : "obj-43",
+					"fontname" : "Verdana",
 					"outlettype" : [ "" ],
-					"id" : "obj-43",
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 1
+					"fontsize" : 10.0,
+					"numinlets" : 2
 				}
 
 			}
@@ -7404,12 +7497,12 @@
 				"box" : 				{
 					"maxclass" : "gain~",
 					"patching_rect" : [ 79.0, 685.0, 20.0, 140.0 ],
-					"outlettype" : [ "signal", "int" ],
+					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-27",
-					"numinlets" : 2,
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 24.0, 85.0, 20.0, 140.0 ],
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -7419,11 +7512,11 @@
 					"text" : "threshold can be set on initialisation (default 1.0)",
 					"linecount" : 2,
 					"patching_rect" : [ 95.0, 190.0, 150.0, 31.0 ],
+					"numoutlets" : 0,
 					"id" : "obj-30",
 					"fontname" : "Verdana",
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"numoutlets" : 0
+					"numinlets" : 1
 				}
 
 			}
@@ -7432,15 +7525,15 @@
 					"maxclass" : "message",
 					"text" : "open",
 					"patching_rect" : [ 167.0, 287.0, 35.0, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-14",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.501961, 0.717647, 0.764706, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 678.0, 129.0, 35.0, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -7449,15 +7542,15 @@
 					"maxclass" : "message",
 					"text" : "1",
 					"patching_rect" : [ 241.0, 287.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-12",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.501961, 0.717647, 0.764706, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 751.0, 129.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -7466,15 +7559,15 @@
 					"maxclass" : "message",
 					"text" : "0",
 					"patching_rect" : [ 206.0, 287.0, 32.5, 17.0 ],
-					"outlettype" : [ "" ],
+					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-10",
 					"fontname" : "Verdana",
+					"outlettype" : [ "" ],
 					"bgcolor" : [ 0.501961, 0.717647, 0.764706, 1.0 ],
 					"fontsize" : 10.0,
-					"numinlets" : 2,
 					"presentation_rect" : [ 716.0, 129.0, 32.5, 17.0 ],
-					"numoutlets" : 1
+					"numinlets" : 2
 				}
 
 			}
@@ -7483,12 +7576,12 @@
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
 					"patching_rect" : [ 171.0, 314.0, 48.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-8",
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "bang" ],
-					"id" : "obj-8",
-					"fontname" : "Verdana",
 					"fontsize" : 10.0,
 					"numinlets" : 2,
-					"numoutlets" : 2,
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -7497,14 +7590,14 @@
 				"box" : 				{
 					"maxclass" : "number~",
 					"patching_rect" : [ 94.0, 402.0, 56.0, 19.0 ],
+					"numoutlets" : 2,
+					"id" : "obj-3",
+					"mode" : 2,
+					"fontname" : "Verdana",
 					"outlettype" : [ "signal", "float" ],
-					"mode" : 2,
-					"id" : "obj-3",
+					"fontsize" : 10.0,
 					"sig" : 0.0,
-					"fontname" : "Verdana",
-					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"numoutlets" : 2
+					"numinlets" : 2
 				}
 
 			}
@@ -9552,6 +9645,51 @@
 				}
 
 			}
+, 			{
+				"patchline" : 				{
+					"source" : [ "obj-212", 0 ],
+					"destination" : [ "obj-222", 0 ],
+					"hidden" : 0,
+					"midpoints" : [  ]
+				}
+
+			}
+, 			{
+				"patchline" : 				{
+					"source" : [ "obj-216", 0 ],
+					"destination" : [ "obj-222", 0 ],
+					"hidden" : 0,
+					"midpoints" : [  ]
+				}
+
+			}
+, 			{
+				"patchline" : 				{
+					"source" : [ "obj-219", 0 ],
+					"destination" : [ "obj-222", 0 ],
+					"hidden" : 0,
+					"midpoints" : [  ]
+				}
+
+			}
+, 			{
+				"patchline" : 				{
+					"source" : [ "obj-221", 0 ],
+					"destination" : [ "obj-222", 0 ],
+					"hidden" : 0,
+					"midpoints" : [  ]
+				}
+
+			}
+, 			{
+				"patchline" : 				{
+					"source" : [ "obj-222", 0 ],
+					"destination" : [ "obj-66", 0 ],
+					"hidden" : 0,
+					"midpoints" : [  ]
+				}
+
+			}
  ]
 	}
 
--- a/bayesianArraySrc/DynamicVector.cpp	Thu Jun 14 23:12:36 2012 +0100
+++ b/bayesianArraySrc/DynamicVector.cpp	Tue Jul 17 22:12:20 2012 +0100
@@ -286,6 +286,8 @@
 	return millis/scalar;
 }
 
+#pragma mark -draw
+
 void DynamicVector::drawVector(const int& minIndex, const int& maxIndex){
 
 		
--- a/src/AudioEventMatcher.cpp	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/AudioEventMatcher.cpp	Tue Jul 17 22:12:20 2012 +0100
@@ -48,6 +48,7 @@
 	
 	temporal.printOutput = printInfo;
 	
+	
 //	temporal.setUpEventTimeMatrix();
 //	recordedTempoData.setUpEventTimeMatrix();
 }
@@ -177,6 +178,7 @@
 
 void AudioEventMatcher::stopPlaying(){
 	startedPlaying = false;
+	testDistributionOutput.closeFile();
 	//temporal.printEventTimes();
 }
 
@@ -544,6 +546,8 @@
 		//printf("marker %f pos %f\n", markedPoints.markers[i], markerPosition);
 		i++;
 		
+		ofDrawBitmapString(ofToString(i), markerPosition, bayesPositionWindow.y);
+		
 	}
 }
 
@@ -773,6 +777,8 @@
 void AudioEventMatcher::matchNewChromaEvent(const int& channel, float* chromaIn, const double& timeIn){
 	//start at beginning but OPTIMISE later
 
+	makeQuantisedChroma(chromaIn);
+	
 	bayesianStruct.updateBayesianDistributions(timeIn);//moves the posterior up into prior given the time interval and calculates new offsets
 	
 	//set the likelihoods by matching the pitched note
@@ -802,11 +808,19 @@
 			
 			if (millisTime >= startMatchingTime && millisTime <= endMatchingTime){
 				
+				//for cts chroma
+				/*
 				if (useChromaDotProduct)
 					quantity = getChromaDotProductDistance(chromaIn, &recordedTracks.loadedAudioFiles[channel].fileLoader.onsetDetect.chromaOnsets[i].chromaValues[0]);
 				else
 					quantity = getChromaEuclideanDistance(chromaIn, &recordedTracks.loadedAudioFiles[channel].fileLoader.onsetDetect.chromaOnsets[i].chromaValues[0]);
+				*/
+			//	printf("Distance old way %f", quantity);
 				
+				//for quantised chroma
+				quantity = recordedTracks.loadedAudioFiles[channel].fileLoader.onsetDetect.chromaOnsets[i].getChromaQuantisedDistance(&quantisedChromagramReceived[0]);
+				
+			//	printf(" quantised %f\n", quantity);
 				
 				bayesianStruct.likelihood.addGaussianShapeFromRealTime(recordedTracks.loadedAudioFiles[channel].fileLoader.onsetDetect.chromaOnsets[i].millisTime, chromaLikelihoodWidth, quantity);
 				
@@ -842,6 +856,33 @@
 	
 }
 
+void AudioEventMatcher::makeQuantisedChroma(float* chromaIn){
+	double L_norm = 0;	
+	
+	for (int i = 0;i < 12;i++){
+			L_norm += chromaIn[i];
+	}
+	
+	if (L_norm > 0){
+	for (int i = 0;i < 12;i++){
+		chromaIn[i] /= L_norm;//NB not const fn!
+			quantisedChromagramReceived[i] = 0;
+			
+			if (chromaIn[i] > 0.05)
+				quantisedChromagramReceived[i]++;
+			
+			if (chromaIn[i] > 0.1)
+				quantisedChromagramReceived[i]++;
+			
+			if (chromaIn[i] > 0.2)
+				quantisedChromagramReceived[i]++;
+			
+			if (chromaIn[i] > 0.4)
+				quantisedChromagramReceived[i]++;
+			
+		}
+	}
+}
 
 double AudioEventMatcher::getChromaDotProductDistance(float* chromaOne, float* chromaTwo){
 	double distance = 0;
@@ -888,6 +929,49 @@
 	bayesLikelihoodWindow.resized(w, h);
 }
 
+void AudioEventMatcher::writeAllDistributions(){
+	std::string filepath = "/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/priorDistbnOutput.txt";
+	eventMatcher.writeDistribution(eventMatcher.bayesianStruct.prior, filepath);
+	filepath = "/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/likelihoodDistbnOutput.txt";
+	eventMatcher.writeDistribution(eventMatcher.bayesianStruct.likelihood, filepath);
+	filepath = "/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/posteriorDistbnOutput.txt";
+	eventMatcher.writeDistribution(eventMatcher.bayesianStruct.posterior, filepath);
+	
+	ofBackground(0);
+	recordedTracks.drawTracks();
+	filepath = "/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/screenGraohics.png";
+	img.grabScreen(0, 0, ofGetWidth(), ofGetHeight());
+	img.saveImage(filepath);
+}
+
+void AudioEventMatcher::writeDistribution(DynamicVector& distribution, std::string filename){
+	testDistributionOutput.openFile(filename);
+	
+	int minIndex = distribution.getRealTermsAsIndex(screenStartTimeMillis);
+	int maxIndex = distribution.getRealTermsAsIndex(screenEndTimeMillis);
+	int minScreenIndex = 0;
+	int maxScreenIndex = ofGetWidth();
+	
+	double stepSize = (maxScreenIndex - minScreenIndex) / (double)(maxIndex - minIndex);//step size in pixels per array bin 
+	double screenHeight = ofGetHeight();
+	double maxVal = distribution.getMaximum();
+	
+	//OPTIMIZE!! XXX could just add stepsize each time
+	//not add minindex each time
+	int i = max(1,minIndex+1);
+	//	ofDrawBitmapString("i = "+ofToString(i)+"  :: screen min: "+ofToString(minScreenIndex + stepSize*(i-minIndex-1)), 20, 640);
+	
+	while ((minScreenIndex + stepSize*(i-minIndex)) < 0)
+		i++;//only draw what is on the screen
+	
+	for ( ; i < min(maxIndex+1, (int)distribution.array.size());i++){
+	
+		testDistributionOutput.writeValue(minScreenIndex + (stepSize*(i-minIndex-1)), distribution.array[i-1]);
+		
+	}
+	testDistributionOutput.closeFile();
+}
+
 /*
  
 void printPosteriorMAPinfo(){	//tmp print stuff
--- a/src/AudioEventMatcher.h	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/AudioEventMatcher.h	Tue Jul 17 22:12:20 2012 +0100
@@ -25,6 +25,8 @@
 #include "TempoFollower.h"
 #include "MatchMarkers.h"
 
+#include "OutputDataWriter.h"
+
 static const int numberOfChannels = 4;
 
 class AudioEventMatcher{
@@ -76,6 +78,8 @@
 	double getChromaDotProductDistance(float* chromaOne, float* chromaTwo);
 	double getChromaEuclideanDistance(float* chromaOne, float* chromaTwo);
 	bool useChromaDotProduct;
+	float quantisedChromagramReceived[12];
+	void makeQuantisedChroma(float* chromaIn);
 	
 	BayesianArrayStructure bayesianStruct;//hold the probability distriubtions
 	
@@ -151,6 +155,10 @@
 	
 	MatchMarkers markedPoints;
 	double markerPlaybackPosition;
-
+	
+	OutputDataWriter testDistributionOutput;
+	void writeAllDistributions();
+	void writeDistribution(DynamicVector& distribution, std::string filename);
+	ofImage img;
 };
 #endif
--- a/src/OutputDataWriter.cpp	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/OutputDataWriter.cpp	Tue Jul 17 22:12:20 2012 +0100
@@ -11,7 +11,11 @@
 
 OutputDataWriter::OutputDataWriter(){
 	filepath = "../../../data/output.txt";
-	openFile();
+	//openFile();
+}
+
+OutputDataWriter::~OutputDataWriter(){
+	closeFile();
 }
 
 void OutputDataWriter::writeOutput(const int& liveTime, const int& rehearsalTime, const int& playedRehearsalTime){
@@ -21,12 +25,38 @@
 	}
 }
 
+void OutputDataWriter::writeValue(const double& valueOne, const double& valueTwo){
+	
+	if (outputFile.is_open()){
+		outputFile << valueOne << "\t" << valueTwo << endl;
+		printf("write value %f %f\n", valueOne, valueTwo);
+	} else{
+		printf("trying to write value but file closed\n");
+	}
+}
+
+
+void OutputDataWriter::openFile(std::string pathname){
+//	closeFile();
+	filepath = pathname;
+	printf("opening file '%s'\n", pathname.c_str());
+	openFile();
+}
+
 void OutputDataWriter::openFile(){
-	if (!outputFile.is_open())
-	outputFile.open(filepath.c_str());
+	if (!outputFile.is_open()){
+		outputFile.open(filepath.c_str());
+		//printf("opening file %s\n", filepath.c_str());
+	}else{
+		printf("file already open! %s\n", filepath.c_str());
+	}
 }
 
 void OutputDataWriter::closeFile(){
-	if (outputFile.is_open())
+	if (outputFile.is_open()){
 		outputFile.close();
+		printf("closing file '%s'\n", filepath.c_str());
+	}else {
+	printf("but file is not open to be closed\n");
+	}
 }
\ No newline at end of file
--- a/src/OutputDataWriter.h	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/OutputDataWriter.h	Tue Jul 17 22:12:20 2012 +0100
@@ -23,12 +23,16 @@
 	
 	public:
 	OutputDataWriter();
+	~OutputDataWriter();
+
 	std::string filepath;
 	ofstream outputFile;
 	
 	void openFile();
+	void openFile(std::string pathname);
 	void closeFile();
 	
+	void writeValue(const double& valueOne, const double& valueTwo);
 	void writeOutput(const int& liveTime, const int& rehearsalTime, const int& playedRehearsalTime);
 };
 #endif
\ No newline at end of file
--- a/src/RecordedMultitrackAudio.cpp	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/RecordedMultitrackAudio.cpp	Tue Jul 17 22:12:20 2012 +0100
@@ -13,10 +13,12 @@
 void RecordedMultitrackAudio::loadTestAudio(){
 
 	trackScreenHeight = 0.15;
-
+	
+	numberOfAudioTracks = 4;
+	
 	printf("loaded max val  is %f\n", loadedAudioFiles[0].fileLoader.onsetDetect.onsetDetector.maximumDetectionValue);
 	
-	int multitrackToLoad = 27;
+	int multitrackToLoad = 31;
 	setDifferentMultitracks(multitrackToLoad);//command to load this set of audio files - see below
 	
 	//number 7 is problematic with memory
@@ -25,7 +27,6 @@
 	printInfo();
 
 	
-	numberOfAudioTracks = 4;
 
 	
 }
@@ -137,10 +138,10 @@
 			break;	
 		*/	
 		case 14:
-			kickfilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoFull/02Kick_bip.wav";
-			bassfilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoFull/01Bass.wav";
-			snarefilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoFull/03Snare_bip.wav";	
-			guitarfilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoFull/Ac D.I.wav";	
+			kickfilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/FinalEdits/takeTwoEdited/02Kick_bip_1.wav";
+			bassfilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/FinalEdits/takeTwoEdited/01Bass_bip_1.wav";
+			snarefilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/FinalEdits/takeTwoEdited/03Snare_bip_1.wav";	
+			guitarfilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/FinalEdits/takeTwoEdited/Ac D_1_bip.wav";	
 			break;		
 			
 	
@@ -148,7 +149,7 @@
 			kickfilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/02Kick_bip.wav";
 			bassfilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/01Bass.wav";
 			snarefilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/03Snare_bip.wav";	
-			guitarfilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/04Elec_SM57_bip.wav";	
+			guitarfilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/Ac D.I.wav";//04Elec_SM57_bip.wav";	
 			break;	
 			
 		case 16:
@@ -215,6 +216,7 @@
 			snarefilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/Festival_Multitracks/TakeThree_23/Snare_bip.wav";
 			guitarfilename = "/Volumes/Supersaurus/Gronk/Gronkn/Bounces/Festival_Multitracks/TakeThree_23/Elec SM57_bip.wav";
 			break;	
+			
 		case 25:
 			bassfilename = "/Volumes/G-FORCE X/WorkBackup/Truck/Stones 1.0/Bounces/Stones_Multitracks/TakeThree_21/Bass DI_bip.wav";
 			kickfilename = "/Volumes/G-FORCE X/WorkBackup/Truck/Stones 1.0/Bounces/Stones_Multitracks/TakeThree_21/BD_bip.wav";
@@ -228,14 +230,43 @@
 			snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/PennyArcade_Multitracks/TakeTwo_5/snare_bip.wav";
 			guitarfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/PennyArcade_Multitracks/TakeTwo_5/guitar_bip.wav";
 			break;	
-			
+	
+		//TRACTORS _ Studio Versions	
 		case 27:
 			bassfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/LewesStudioFinal/bass_DI_bip.wav";
 			kickfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/LewesStudioFinal/kick_bip.wav";
 			snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/LewesStudioFinal/snare_bip.wav";
 			guitarfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/LewesStudioFinal/guitar sm57_bip.wav";
-			break;		
+			break;	
 			
+		case 28:
+			bassfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/PennyArcadeStudio14aMultitrack/bass_DI.wav";
+			kickfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/PennyArcadeStudio14aMultitrack/kick.wav";
+			snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/PennyArcadeStudio14aMultitrack/snare.wav";
+			guitarfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDemo/Bounces/PennyArcadeStudio14aMultitrack/elec_sm57.wav";
+			break;
+			
+		case 29:
+			bassfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDiamondWhite/tractorsDiamondWhite/Bounces/DiamondWhite21aBounces/bass_di.wav";
+			kickfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDiamondWhite/tractorsDiamondWhite/Bounces/DiamondWhite21aBounces/kick_d112.wav";
+			snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDiamondWhite/tractorsDiamondWhite/Bounces/DiamondWhite21aBounces/fake_snare.wav";
+			guitarfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsDiamondWhite/tractorsDiamondWhite/Bounces/DiamondWhite21aBounces/tele_sm57.wav";
+			break;
+			
+		case 30:
+			bassfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/IdiotsDanceStudioMultitrack/bass_di.wav";
+			kickfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/IdiotsDanceStudioMultitrack/kick_d112.wav";
+			snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/IdiotsDanceStudioMultitrack/snare_bottom.wav";
+			guitarfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/IdiotsDanceStudioMultitrack/gretschMatch.wav";
+			break;
+			
+		case 31:
+			bassfilename = "/Volumes/Supersaurus/End2011BackupNewMacBook/Music/Logic/NewYearsResolution/NewYearsRes_v1/Bounces/Multitracks/Take11Studio/bass d.i.wav";
+			kickfilename = "/Volumes/Supersaurus/End2011BackupNewMacBook/Music/Logic/NewYearsResolution/NewYearsRes_v1/Bounces/Multitracks/Take11Studio/kick_bip.wav";
+			snarefilename = "/Volumes/Supersaurus/End2011BackupNewMacBook/Music/Logic/NewYearsResolution/NewYearsRes_v1/Bounces/Multitracks/Take11Studio/snare_bip.wav";
+			guitarfilename = "/Volumes/Supersaurus/End2011BackupNewMacBook/Music/Logic/NewYearsResolution/NewYearsRes_v1/Bounces/Multitracks/Take11Studio/electric_bip.wav";
+//			guitarfilename = "/Volumes/Supersaurus/End2011BackupNewMacBook/Music/Logic/NewYearsResolution/NewYearsRes_v1/Bounces/Multitracks/Take11Studio/acoustic_bip.wav";
+			break;
 			
 	}
 	if (kickfilename != NULL)
@@ -258,7 +289,8 @@
 	//kick - track type 0
 	//bass - type 1
 	//snare type 2
-	if (channel >= 0 && channel <= 4){
+	//guitar type 3
+	if (channel >= 0 && channel <= numberOfAudioTracks){
 	loadedAudioPtr = new LoadedAudioHolder;
 	//set tracktype before we do analysis
 	//so we dont do unnecessary chroma and pitch calculations
--- a/src/testApp.cpp	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/testApp.cpp	Tue Jul 17 22:12:20 2012 +0100
@@ -31,6 +31,9 @@
 	eventMatcher.loadAudioFiles();
 	
 	eventMatcher.setWindowDimensions();
+	
+	outputWriter.openFile("../../../data/output.txt");
+	
 	//audioFilePlayer.loadAudioFile(infilename);
 }
 
@@ -182,7 +185,7 @@
 		eventMatcher.addMarkerNow();
 	}
 	
-	if (key == 'c'){
+	if (key == 'f'){
 		eventMatcher.deleteMarkers();
 	}
 	if (key == 'd'){
@@ -238,6 +241,10 @@
 	
 	if (key == 'k')
 		eventMatcher.drawLikelihoods = !eventMatcher.drawLikelihoods;
+	
+	if (key == 'g'){
+		eventMatcher.writeAllDistributions();
+	}
 
 }