changeset 15:780def3a1f36

Changed to have any definition - re midi matcher bug fix - and bringing in start and stop functions
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sun, 05 Feb 2012 22:08:50 +0000
parents 0a52258accec
children 680ba08e9925
files MaxPatchToPlayFiles/aubioOnsetPitchSender3.maxpat README.txt bayesianArraySrc/BayesianArrayStructure.cpp bayesianArraySrc/DynamicVector.cpp bayesianArraySrc/DynamicVector.h src/AudioEventMatcher.cpp src/AudioEventMatcher.h src/RecordedMultitrackAudio.cpp src/testApp.cpp
diffstat 9 files changed, 1360 insertions(+), 1276 deletions(-) [+]
line wrap: on
line diff
--- a/MaxPatchToPlayFiles/aubioOnsetPitchSender3.maxpat	Sun Feb 05 09:58:56 2012 +0000
+++ b/MaxPatchToPlayFiles/aubioOnsetPitchSender3.maxpat	Sun Feb 05 22:08:50 2012 +0000
@@ -1,9 +1,9 @@
 {
 	"patcher" : 	{
 		"fileversion" : 1,
-		"rect" : [ 152.0, 55.0, 1528.0, 909.0 ],
+		"rect" : [ 152.0, 46.0, 1528.0, 909.0 ],
 		"bglocked" : 0,
-		"defrect" : [ 152.0, 55.0, 1528.0, 909.0 ],
+		"defrect" : [ 152.0, 46.0, 1528.0, 909.0 ],
 		"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
 		"openinpresentation" : 0,
 		"default_fontsize" : 10.0,
@@ -21,14 +21,47 @@
 		"boxes" : [ 			{
 				"box" : 				{
 					"maxclass" : "message",
+					"text" : "\"Macintosh HD:/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/sound/UistLive2/keys_bip.wav\"",
+					"linecount" : 25,
+					"id" : "obj-68",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
+					"fontsize" : 10.0,
+					"numoutlets" : 1,
+					"patching_rect" : [ 1046.0, 273.0, 50.0, 308.0 ]
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "message",
+					"text" : "prefix \"Macintosh HD:/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/sound/UistLive2/\"",
+					"linecount" : 4,
+					"presentation_linecount" : 4,
+					"presentation" : 1,
+					"id" : "obj-23",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"presentation_rect" : [ 766.0, 24.0, 325.0, 53.0 ],
+					"numinlets" : 2,
+					"fontsize" : 10.0,
+					"numoutlets" : 1,
+					"patching_rect" : [ 1094.0, 65.0, 325.0, 53.0 ]
+				}
+
+			}
+, 			{
+				"box" : 				{
+					"maxclass" : "message",
 					"text" : "/start",
+					"id" : "obj-116",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 469.0, 284.0, 38.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-116",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 469.0, 284.0, 38.0, 17.0 ]
 				}
 
 			}
@@ -36,14 +69,14 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "snare",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-114",
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 134.0, 232.0, 42.0, 19.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 340.0, 251.0, 150.0, 19.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 0,
-					"presentation" : 1,
-					"id" : "obj-114",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 340.0, 251.0, 150.0, 19.0 ]
 				}
 
 			}
@@ -51,14 +84,14 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "bass",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-111",
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 24.0, 232.0, 35.0, 19.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 325.0, 236.0, 150.0, 19.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 0,
-					"presentation" : 1,
-					"id" : "obj-111",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 325.0, 236.0, 150.0, 19.0 ]
 				}
 
 			}
@@ -66,14 +99,14 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "kick",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-109",
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 78.0, 232.0, 35.0, 19.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 310.0, 221.0, 150.0, 19.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 0,
-					"presentation" : 1,
-					"id" : "obj-109",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 310.0, 221.0, 150.0, 19.0 ]
 				}
 
 			}
@@ -82,14 +115,14 @@
 					"maxclass" : "comment",
 					"text" : "drag and drop foler - number them, 01bass, 02kick, 03snare",
 					"linecount" : 3,
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-106",
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 484.0, 2.0, 346.0, 19.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 758.0, 14.0, 150.0, 43.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 0,
-					"presentation" : 1,
-					"id" : "obj-106",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 1160.0, -52.0, 150.0, 43.0 ]
 				}
 
 			}
@@ -97,24 +130,24 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "prepend prefix",
+					"id" : "obj-93",
+					"outlettype" : [ "" ],
+					"fontname" : "Arial",
+					"numinlets" : 1,
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"patching_rect" : [ 856.0, 37.0, 85.0, 20.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-93",
-					"fontname" : "Arial",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 856.0, 37.0, 85.0, 20.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"id" : "obj-94",
+					"outlettype" : [ "bang" ],
 					"numinlets" : 1,
-					"patching_rect" : [ 714.0, 14.0, 20.0, 20.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-94",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 714.0, 14.0, 20.0, 20.0 ]
 				}
 
 			}
@@ -122,29 +155,29 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "prepend set",
+					"id" : "obj-95",
+					"outlettype" : [ "" ],
+					"fontname" : "Arial",
+					"numinlets" : 1,
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"patching_rect" : [ 714.0, -11.0, 72.0, 20.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-95",
-					"fontname" : "Arial",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 714.0, -11.0, 72.0, 20.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "dropfile",
-					"presentation_rect" : [ 523.0, 24.0, 270.0, 19.0 ],
+					"presentation" : 1,
+					"rounded" : 0.0,
+					"id" : "obj-96",
+					"outlettype" : [ "", "" ],
 					"border" : 0.0,
+					"presentation_rect" : [ 488.0, 24.0, 270.0, 19.0 ],
 					"numinlets" : 1,
 					"types" : [ "fold" ],
-					"patching_rect" : [ 809.0, -11.0, 270.0, 19.0 ],
 					"numoutlets" : 2,
-					"presentation" : 1,
-					"id" : "obj-96",
-					"rounded" : 0.0,
-					"outlettype" : [ "", "" ]
+					"patching_rect" : [ 809.0, -11.0, 270.0, 19.0 ]
 				}
 
 			}
@@ -152,33 +185,33 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "route text",
+					"id" : "obj-97",
+					"outlettype" : [ "", "" ],
+					"fontname" : "Arial",
+					"numinlets" : 1,
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"patching_rect" : [ 856.0, 16.0, 59.0, 20.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-97",
-					"fontname" : "Arial",
-					"outlettype" : [ "", "" ]
+					"patching_rect" : [ 856.0, 16.0, 59.0, 20.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "textedit",
-					"text" : "\"Macintosh HD:/Users/andrew/Documents/work/programming/MadMax/AudioFiles/DiamondMatch2/\"",
-					"linecount" : 3,
-					"presentation_linecount" : 3,
+					"text" : "\"Macintosh HD:/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/sound/UistLive2/\"",
+					"linecount" : 5,
+					"presentation_linecount" : 5,
+					"presentation" : 1,
+					"rounded" : 6.0,
+					"id" : "obj-98",
+					"outlettype" : [ "", "int", "", "" ],
+					"border" : 1.0,
+					"fontname" : "Arial",
+					"presentation_rect" : [ 490.0, 26.0, 270.0, 19.0 ],
+					"numinlets" : 1,
 					"fontsize" : 11.595187,
-					"presentation_rect" : [ 525.0, 26.0, 270.0, 19.0 ],
-					"border" : 1.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 809.0, -12.0, 270.0, 19.0 ],
 					"numoutlets" : 4,
-					"presentation" : 1,
-					"id" : "obj-98",
-					"fontname" : "Arial",
-					"rounded" : 6.0,
-					"outlettype" : [ "", "int", "", "" ]
+					"patching_rect" : [ 809.0, -12.0, 270.0, 19.0 ]
 				}
 
 			}
@@ -186,32 +219,32 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "autopopulate 1",
+					"id" : "obj-99",
+					"outlettype" : [ "" ],
+					"fontname" : "Arial",
+					"numinlets" : 2,
 					"fontsize" : 11.595187,
-					"numinlets" : 2,
-					"patching_rect" : [ 760.0, 38.0, 87.0, 18.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-99",
-					"fontname" : "Arial",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 760.0, 38.0, 87.0, 18.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "umenu",
-					"fontsize" : 11.595187,
-					"presentation_rect" : [ 522.0, 59.0, 243.0, 20.0 ],
-					"prefix" : "Macintosh HD:/Users/andrew/Documents/work/programming/MadMax/AudioFiles/DiamondMatch2/",
-					"items" : [ "01bass_bip.wav", ",", "02kick_bip.wav", ",", "03snare_bip.wav", ",", "coles_bip.wav", ",", "elec_bip.wav", ",", "keys_bip.wav", ",", "neumann_bip.wav", ",", "vox_bip.wav" ],
-					"numinlets" : 1,
-					"autopopulate" : 1,
-					"types" : [  ],
-					"patching_rect" : [ 760.0, 62.0, 243.0, 20.0 ],
-					"numoutlets" : 3,
 					"presentation" : 1,
 					"id" : "obj-100",
+					"outlettype" : [ "int", "", "" ],
+					"prefix" : "Macintosh HD:/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/MultipleAudioMatcher/bin/data/sound/UistLive2/",
+					"autopopulate" : 1,
 					"fontname" : "Arial",
-					"outlettype" : [ "int", "", "" ]
+					"presentation_rect" : [ 523.0, 77.0, 243.0, 20.0 ],
+					"numinlets" : 1,
+					"items" : [ "01bass_bip.wav", ",", "02kick_bip.wav", ",", "03snare_bip.wav", ",", "coles_bip.wav", ",", "elec_bip.wav", ",", "keys_bip.wav", ",", "neumann_bip.wav", ",", "vox_bip.wav" ],
+					"types" : [  ],
+					"fontsize" : 11.595187,
+					"numoutlets" : 3,
+					"patching_rect" : [ 760.0, 62.0, 243.0, 20.0 ]
 				}
 
 			}
@@ -219,12 +252,12 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "drag and drop a folder on the textedit to populate the umenu!",
+					"id" : "obj-101",
+					"fontname" : "Arial",
+					"numinlets" : 1,
 					"fontsize" : 11.595187,
-					"numinlets" : 1,
-					"patching_rect" : [ 770.0, -36.0, 336.0, 20.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-101",
-					"fontname" : "Arial"
+					"patching_rect" : [ 770.0, -36.0, 336.0, 20.0 ]
 				}
 
 			}
@@ -232,13 +265,13 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "/stop",
+					"id" : "obj-92",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 434.0, 587.0, 36.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-92",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 434.0, 587.0, 36.0, 17.0 ]
 				}
 
 			}
@@ -247,49 +280,49 @@
 					"maxclass" : "comment",
 					"text" : "start offset time (to test recovery..)",
 					"linecount" : 2,
+					"id" : "obj-89",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 196.0, -147.0, 150.0, 31.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-89",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 196.0, -147.0, 150.0, 31.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"id" : "obj-87",
+					"outlettype" : [ "bang" ],
 					"numinlets" : 1,
-					"patching_rect" : [ 137.0, -131.0, 20.0, 20.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-87",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 137.0, -131.0, 20.0, 20.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number",
+					"id" : "obj-85",
+					"outlettype" : [ "int", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 190.0, -114.0, 50.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-85",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "bang" ]
+					"patching_rect" : [ 190.0, -114.0, 50.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number",
+					"id" : "obj-83",
+					"outlettype" : [ "int", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 138.0, -79.0, 50.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-83",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "bang" ]
+					"patching_rect" : [ 138.0, -79.0, 50.0, 19.0 ]
 				}
 
 			}
@@ -297,13 +330,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "i 0",
+					"id" : "obj-79",
+					"outlettype" : [ "int" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 138.0, -103.0, 32.5, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-79",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int" ]
+					"patching_rect" : [ 138.0, -103.0, 32.5, 19.0 ]
 				}
 
 			}
@@ -311,13 +344,13 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "20",
+					"id" : "obj-70",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 183.0, 399.0, 32.5, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-70",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 183.0, 399.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -325,13 +358,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "loadbang",
+					"id" : "obj-61",
+					"outlettype" : [ "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 102.0, 364.0, 56.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-61",
-					"fontname" : "Verdana",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 102.0, 364.0, 56.0, 19.0 ]
 				}
 
 			}
@@ -339,25 +372,25 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "135",
+					"id" : "obj-26",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 68.0, 398.0, 37.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-26",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 68.0, 398.0, 37.0, 17.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "newobj",
+					"id" : "obj-9",
+					"fontname" : "Verdana",
+					"numinlets" : 0,
 					"fontsize" : 10.0,
-					"numinlets" : 0,
-					"patching_rect" : [ 88.0, 440.0, 100.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-9",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 88.0, 440.0, 100.0, 19.0 ]
 				}
 
 			}
@@ -365,13 +398,13 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "/Users/andrew/Documents/work/programming/MadMax/AudioFiles/LiveDuesVerse2/",
+					"id" : "obj-7",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 693.0, -64.0, 436.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-7",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 693.0, -64.0, 436.0, 17.0 ]
 				}
 
 			}
@@ -379,13 +412,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "counter 0 0 5",
+					"id" : "obj-60",
+					"outlettype" : [ "int", "", "", "int" ],
+					"fontname" : "Verdana",
+					"numinlets" : 5,
 					"fontsize" : 10.0,
-					"numinlets" : 5,
-					"patching_rect" : [ 541.0, 1.0, 78.0, 19.0 ],
 					"numoutlets" : 4,
-					"id" : "obj-60",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "", "", "int" ]
+					"patching_rect" : [ 541.0, 1.0, 78.0, 19.0 ]
 				}
 
 			}
@@ -393,13 +426,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
+					"id" : "obj-1",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 353.0, 225.0, 68.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-1",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 353.0, 225.0, 68.0, 19.0 ]
 				}
 
 			}
@@ -407,12 +440,12 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "s startTime",
+					"id" : "obj-65",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 359.0, 699.0, 67.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-65",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 359.0, 699.0, 67.0, 19.0 ]
 				}
 
 			}
@@ -420,41 +453,41 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "loadmess 1",
+					"id" : "obj-64",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 715.0, 525.0, 68.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-64",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 715.0, 525.0, 68.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number~",
+					"mode" : 2,
+					"id" : "obj-62",
+					"outlettype" : [ "signal", "float" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
+					"sig" : 0.0,
 					"fontsize" : 10.0,
-					"mode" : 2,
-					"numinlets" : 2,
-					"patching_rect" : [ 133.0, 494.0, 56.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-62",
-					"sig" : 0.0,
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "float" ]
+					"patching_rect" : [ 133.0, 494.0, 56.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "gain~",
+					"presentation" : 1,
+					"id" : "obj-63",
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 141.0, 85.0, 20.0, 140.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 128.0, 531.0, 20.0, 140.0 ],
 					"numoutlets" : 2,
-					"presentation" : 1,
-					"id" : "obj-63",
-					"outlettype" : [ "signal", "int" ]
+					"patching_rect" : [ 128.0, 531.0, 20.0, 140.0 ]
 				}
 
 			}
@@ -462,13 +495,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "prepend open",
+					"id" : "obj-59",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 695.0, 135.0, 80.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-59",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 695.0, 135.0, 80.0, 19.0 ]
 				}
 
 			}
@@ -476,28 +509,28 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "open",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-58",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 714.0, 285.0, 35.0, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 786.0, 134.0, 35.0, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-58",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 786.0, 134.0, 35.0, 17.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "toggle",
+					"presentation" : 1,
+					"id" : "obj-39",
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 141.0, 253.0, 20.0, 20.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 835.0, 583.0, 20.0, 20.0 ],
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-39",
-					"outlettype" : [ "int" ]
+					"patching_rect" : [ 835.0, 583.0, 20.0, 20.0 ]
 				}
 
 			}
@@ -505,13 +538,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "gate",
+					"id" : "obj-40",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 846.0, 610.0, 33.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-40",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 846.0, 610.0, 33.0, 19.0 ]
 				}
 
 			}
@@ -519,38 +552,38 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "udpsend 127.0.0.1 10874",
+					"id" : "obj-42",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 860.0, 640.0, 141.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-42",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 860.0, 640.0, 141.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"id" : "obj-45",
+					"outlettype" : [ "bang" ],
 					"numinlets" : 1,
-					"patching_rect" : [ 823.0, 325.0, 59.0, 59.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-45",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 823.0, 325.0, 59.0, 59.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "umenu",
+					"id" : "obj-46",
+					"outlettype" : [ "int", "", "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
+					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
+					"types" : [  ],
 					"fontsize" : 10.0,
-					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numinlets" : 1,
-					"types" : [  ],
-					"patching_rect" : [ 823.0, 256.0, 100.0, 19.0 ],
 					"numoutlets" : 3,
-					"id" : "obj-46",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "", "" ]
+					"patching_rect" : [ 823.0, 256.0, 100.0, 19.0 ]
 				}
 
 			}
@@ -558,13 +591,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "switch 2",
+					"id" : "obj-47",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 3,
 					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"patching_rect" : [ 823.0, 290.0, 52.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-47",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 823.0, 290.0, 52.0, 19.0 ]
 				}
 
 			}
@@ -572,13 +605,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "p aubioOnsetDeetection",
+					"id" : "obj-48",
+					"outlettype" : [ "signal", "bang", "float", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"numoutlets" : 4,
 					"patching_rect" : [ 797.0, 207.0, 131.0, 19.0 ],
-					"numoutlets" : 4,
-					"id" : "obj-48",
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "bang", "float", "bang" ],
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
@@ -602,12 +635,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "<number>: output period in msecs (will be rounded up to control rate)",
+									"id" : "obj-62",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-62",
-									"fontname" : "Arial"
+									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ]
 								}
 
 							}
@@ -615,12 +648,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "<number>: minimum frequency in Hz",
+									"id" : "obj-64",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-64",
-									"fontname" : "Arial"
+									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ]
 								}
 
 							}
@@ -629,38 +662,38 @@
 									"maxclass" : "comment",
 									"text" : "estimation quality factor",
 									"linecount" : 2,
+									"id" : "obj-82",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-82",
-									"fontname" : "Arial"
+									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-68",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-68",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-40",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 359.0, 334.0, 47.0, 47.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-40",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ]
 								}
 
 							}
@@ -668,13 +701,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "/medianOnset",
+									"id" : "obj-39",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-39",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ]
 								}
 
 							}
@@ -682,13 +715,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /medianAubioData",
+									"id" : "obj-37",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-37",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ]
 								}
 
 							}
@@ -696,13 +729,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /rawAubioData",
+									"id" : "obj-5",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-5",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ]
 								}
 
 							}
@@ -711,25 +744,25 @@
 									"maxclass" : "comment",
 									"text" : "raw detection function value",
 									"linecount" : 2,
+									"id" : "obj-32",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-32",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-24",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-24",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ]
 								}
 
 							}
@@ -737,27 +770,27 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "reset axis /mode ",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-23",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 109.0, 137.0, 150.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-23",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-2",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 127.0, 159.0, 20.0, 20.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-2",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ]
 								}
 
 							}
@@ -765,13 +798,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "hfc",
+									"id" : "obj-34",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-34",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ]
 								}
 
 							}
@@ -779,12 +812,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "or send mode as a as message",
+									"id" : "obj-33",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-33",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ]
 								}
 
 							}
@@ -792,13 +825,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /mode",
+									"id" : "obj-31",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-31",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ]
 								}
 
 							}
@@ -806,31 +839,31 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "detection mode",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-29",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 143.0, 184.0, 91.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-29",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "umenu",
-									"fontsize" : 10.0,
-									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
-									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
-									"numinlets" : 1,
-									"types" : [  ],
-									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ],
-									"numoutlets" : 3,
 									"presentation" : 1,
 									"id" : "obj-15",
+									"outlettype" : [ "int", "", "" ],
 									"fontname" : "Verdana",
-									"outlettype" : [ "int", "", "" ]
+									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
+									"numinlets" : 1,
+									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
+									"types" : [  ],
+									"fontsize" : 10.0,
+									"numoutlets" : 3,
+									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ]
 								}
 
 							}
@@ -839,12 +872,12 @@
 									"maxclass" : "comment",
 									"text" : "send osc data to aubioOnsetVisualiser in openFrameworks",
 									"linecount" : 3,
+									"id" : "obj-28",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-28",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ]
 								}
 
 							}
@@ -853,23 +886,23 @@
 									"maxclass" : "comment",
 									"text" : "print detection function value at onsets",
 									"linecount" : 2,
+									"id" : "obj-26",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-26",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "toggle",
+									"id" : "obj-18",
+									"outlettype" : [ "int" ],
 									"numinlets" : 1,
-									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-18",
-									"outlettype" : [ "int" ]
+									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ]
 								}
 
 							}
@@ -877,13 +910,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "gate",
+									"id" : "obj-13",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-13",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ]
 								}
 
 							}
@@ -891,14 +924,14 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "detection function as float",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-11",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 407.0, 303.0, 150.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-11",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ]
 								}
 
 							}
@@ -906,13 +939,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "/onset",
+									"id" : "obj-22",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-22",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ]
 								}
 
 							}
@@ -920,13 +953,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "energy",
+									"id" : "obj-25",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-25",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ]
 								}
 
 							}
@@ -934,13 +967,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioData",
+									"id" : "obj-21",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-21",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ]
 								}
 
 							}
@@ -948,12 +981,12 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "udpsend 127.0.0.1 12345",
+									"id" : "obj-20",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-20",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ]
 								}
 
 							}
@@ -961,13 +994,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "float 0.",
+									"id" : "obj-16",
+									"outlettype" : [ "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-16",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float" ]
+									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ]
 								}
 
 							}
@@ -975,27 +1008,27 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "print",
+									"id" : "obj-19",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-19",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-17",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 356.0, 304.0, 49.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 2,
-									"presentation" : 1,
-									"id" : "obj-17",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ]
 								}
 
 							}
@@ -1003,44 +1036,44 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "threshold",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-6",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 62.0, 182.0, 58.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-6",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-9",
+									"outlettype" : [ "float", "bang" ],
+									"minimum" : 0.1,
+									"maximum" : 10.0,
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 2,
-									"presentation" : 1,
-									"id" : "obj-9",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ],
-									"minimum" : 0.1,
-									"maximum" : 10.0
+									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-7",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 354.0, 247.0, 47.0, 47.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-7",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ]
 								}
 
 							}
@@ -1048,24 +1081,24 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "aubioOnsetDetect~ 0.4",
+									"id" : "obj-1",
+									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ],
 									"numoutlets" : 6,
-									"id" : "obj-1",
-									"fontname" : "Verdana",
-									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ]
+									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-121",
 									"outlettype" : [ "signal" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -1073,11 +1106,11 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-122",
 									"outlettype" : [ "" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -1085,10 +1118,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-123",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 254.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-123",
 									"comment" : ""
 								}
 
@@ -1096,10 +1129,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-124",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 287.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-124",
 									"comment" : ""
 								}
 
@@ -1107,10 +1140,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-125",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 382.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-125",
 									"comment" : ""
 								}
 
@@ -1118,10 +1151,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-126",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 569.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-126",
 									"comment" : ""
 								}
 
@@ -1446,13 +1479,13 @@
 					}
 ,
 					"saved_object_attributes" : 					{
-						"fontface" : 0,
-						"fontsize" : 12.0,
 						"default_fontface" : 0,
 						"default_fontname" : "Arial",
+						"globalpatchername" : "",
 						"fontname" : "Arial",
 						"default_fontsize" : 12.0,
-						"globalpatchername" : ""
+						"fontface" : 0,
+						"fontsize" : 12.0
 					}
 
 				}
@@ -1462,12 +1495,12 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "snare channel",
+					"id" : "obj-49",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 824.0, 182.0, 150.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-49",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 824.0, 182.0, 150.0, 19.0 ]
 				}
 
 			}
@@ -1475,15 +1508,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "1",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-50",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 794.0, 285.0, 32.5, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 866.0, 134.0, 32.5, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-50",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 866.0, 134.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -1491,15 +1524,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "0",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-51",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 759.0, 285.0, 32.5, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 831.0, 134.0, 32.5, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-51",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 831.0, 134.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -1507,13 +1540,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
+					"id" : "obj-52",
+					"outlettype" : [ "signal", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"numoutlets" : 2,
 					"patching_rect" : [ 796.0, 161.0, 48.0, 19.0 ],
-					"numoutlets" : 2,
-					"id" : "obj-52",
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "bang" ],
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -1521,27 +1554,27 @@
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "/snare 2 2249",
+					"text" : "/snare 2 82832",
+					"id" : "obj-53",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 924.0, 604.0, 130.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-53",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 924.0, 604.0, 130.0, 17.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number",
+					"id" : "obj-54",
+					"outlettype" : [ "int", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 823.0, 460.0, 60.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-54",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "bang" ]
+					"patching_rect" : [ 823.0, 460.0, 60.0, 19.0 ]
 				}
 
 			}
@@ -1549,13 +1582,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "- 0.",
+					"id" : "obj-55",
+					"outlettype" : [ "float" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 823.0, 431.0, 32.5, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-55",
-					"fontname" : "Verdana",
-					"outlettype" : [ "float" ]
+					"patching_rect" : [ 823.0, 431.0, 32.5, 19.0 ]
 				}
 
 			}
@@ -1563,13 +1596,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "cpuclock",
+					"id" : "obj-56",
+					"outlettype" : [ "float" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 823.0, 399.0, 53.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-56",
-					"fontname" : "Verdana",
-					"outlettype" : [ "float" ]
+					"patching_rect" : [ 823.0, 399.0, 53.0, 19.0 ]
 				}
 
 			}
@@ -1577,28 +1610,28 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "/snare 2 $1",
+					"id" : "obj-57",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 858.0, 582.0, 69.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-57",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 858.0, 582.0, 69.0, 17.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "umenu",
+					"id" : "obj-35",
+					"outlettype" : [ "int", "", "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
+					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
+					"types" : [  ],
 					"fontsize" : 10.0,
-					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numinlets" : 1,
-					"types" : [  ],
-					"patching_rect" : [ 164.0, 686.0, 100.0, 19.0 ],
 					"numoutlets" : 3,
-					"id" : "obj-35",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "", "" ]
+					"patching_rect" : [ 164.0, 686.0, 100.0, 19.0 ]
 				}
 
 			}
@@ -1606,40 +1639,41 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "switch 2",
+					"id" : "obj-38",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 3,
 					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"patching_rect" : [ 164.0, 720.0, 52.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-38",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 164.0, 720.0, 52.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "/aubioPitch 1 0. 2679",
+					"text" : "/aubioPitch 1 0. 83356",
+					"linecount" : 2,
+					"id" : "obj-31",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 420.0, 613.0, 120.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-31",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 420.0, 613.0, 120.0, 29.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "toggle",
+					"presentation" : 1,
+					"id" : "obj-22",
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 30.0, 256.0, 20.0, 20.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 385.0, 600.0, 20.0, 20.0 ],
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-22",
-					"outlettype" : [ "int" ]
+					"patching_rect" : [ 385.0, 600.0, 20.0, 20.0 ]
 				}
 
 			}
@@ -1647,13 +1681,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "gate",
+					"id" : "obj-24",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 385.0, 627.0, 33.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-24",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 385.0, 627.0, 33.0, 19.0 ]
 				}
 
 			}
@@ -1661,49 +1695,49 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "udpsend 127.0.0.1 10874",
+					"id" : "obj-20",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 385.0, 652.0, 141.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-20",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 385.0, 652.0, 141.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"id" : "obj-44",
+					"outlettype" : [ "bang" ],
 					"numinlets" : 1,
-					"patching_rect" : [ 36.0, -23.0, 20.0, 20.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-44",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 36.0, -23.0, 20.0, 20.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number",
+					"id" : "obj-41",
+					"outlettype" : [ "int", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 195.0, 33.0, 61.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-41",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "bang" ]
+					"patching_rect" : [ 195.0, 33.0, 61.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "toggle",
+					"presentation" : 1,
+					"id" : "obj-37",
+					"outlettype" : [ "int" ],
 					"presentation_rect" : [ 81.0, 256.0, 20.0, 20.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 539.0, 580.0, 20.0, 20.0 ],
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-37",
-					"outlettype" : [ "int" ]
+					"patching_rect" : [ 539.0, 580.0, 20.0, 20.0 ]
 				}
 
 			}
@@ -1711,13 +1745,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "gate",
+					"id" : "obj-34",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 550.0, 607.0, 33.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-34",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 550.0, 607.0, 33.0, 19.0 ]
 				}
 
 			}
@@ -1725,14 +1759,14 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "start",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-33",
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 103.0, -1.0, 45.0, 19.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 308.0, -8.0, 45.0, 19.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 0,
-					"presentation" : 1,
-					"id" : "obj-33",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 308.0, -8.0, 45.0, 19.0 ]
 				}
 
 			}
@@ -1740,40 +1774,40 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "stop",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-32",
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 159.0, -1.0, 31.0, 19.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 435.0, -9.0, 31.0, 19.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 0,
-					"presentation" : 1,
-					"id" : "obj-32",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 435.0, -9.0, 31.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"presentation" : 1,
+					"id" : "obj-29",
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 155.0, 14.0, 45.0, 45.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 422.0, 10.0, 45.0, 45.0 ],
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-29",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 422.0, 10.0, 45.0, 45.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"presentation" : 1,
+					"id" : "obj-28",
+					"outlettype" : [ "bang" ],
 					"presentation_rect" : [ 93.0, 14.0, 45.0, 45.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 302.0, 9.0, 45.0, 45.0 ],
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-28",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 302.0, 9.0, 45.0, 45.0 ]
 				}
 
 			}
@@ -1781,13 +1815,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "p signal Info",
+					"id" : "obj-25",
+					"outlettype" : [ "", "int" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
+					"numoutlets" : 2,
 					"patching_rect" : [ 35.61554, 5.19075, 246.38446, 19.0 ],
-					"numoutlets" : 2,
-					"id" : "obj-25",
-					"fontname" : "Verdana",
-					"outlettype" : [ "", "int" ],
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 25.0, 69.0, 640.0, 480.0 ],
@@ -1810,11 +1844,11 @@
 						"boxes" : [ 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 76.0, 60.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-2",
 									"outlettype" : [ "bang" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 76.0, 60.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -1822,10 +1856,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-1",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 204.717804, 391.809265, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-1",
 									"comment" : ""
 								}
 
@@ -1833,30 +1867,30 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "number",
-									"fontsize" : 11.595187,
+									"id" : "obj-55",
+									"outlettype" : [ "int", "bang" ],
+									"fontname" : "Arial",
+									"triscale" : 0.9,
 									"presentation_rect" : [ 45.0, 45.0, 50.0, 20.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 171.523865, 285.404633, 50.0, 20.0 ],
+									"fontsize" : 11.595187,
 									"numoutlets" : 2,
-									"id" : "obj-55",
-									"fontname" : "Arial",
-									"outlettype" : [ "int", "bang" ],
-									"triscale" : 0.9
+									"patching_rect" : [ 171.523865, 285.404633, 50.0, 20.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "number",
-									"fontsize" : 11.595187,
+									"id" : "obj-54",
+									"outlettype" : [ "int", "bang" ],
+									"fontname" : "Arial",
+									"triscale" : 0.9,
 									"presentation_rect" : [ 30.0, 30.0, 50.0, 20.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 175.523865, 212.445099, 50.0, 20.0 ],
+									"fontsize" : 11.595187,
 									"numoutlets" : 2,
-									"id" : "obj-54",
-									"fontname" : "Arial",
-									"outlettype" : [ "int", "bang" ],
-									"triscale" : 0.9
+									"patching_rect" : [ 175.523865, 212.445099, 50.0, 20.0 ]
 								}
 
 							}
@@ -1864,13 +1898,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /ioVectorSize",
+									"id" : "obj-53",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 151.38446, 309.809265, 122.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-53",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 151.38446, 309.809265, 122.0, 19.0 ]
 								}
 
 							}
@@ -1878,13 +1912,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /signalVectorSize",
+									"id" : "obj-52",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 154.38446, 239.809265, 142.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-52",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 154.38446, 239.809265, 142.0, 19.0 ]
 								}
 
 							}
@@ -1892,13 +1926,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /samplingRate",
+									"id" : "obj-51",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 98.38446, 155.809265, 128.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-51",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 98.38446, 155.809265, 128.0, 19.0 ]
 								}
 
 							}
@@ -1906,28 +1940,28 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "adstatus iovs",
+									"id" : "obj-38",
+									"outlettype" : [ "", "int" ],
+									"fontname" : "Arial",
+									"numinlets" : 2,
 									"fontsize" : 11.595187,
-									"numinlets" : 2,
-									"patching_rect" : [ 92.0, 285.404633, 78.0, 20.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-38",
-									"fontname" : "Arial",
-									"outlettype" : [ "", "int" ]
+									"patching_rect" : [ 92.0, 285.404633, 78.0, 20.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "number",
-									"fontsize" : 11.595187,
+									"id" : "obj-42",
+									"outlettype" : [ "int", "bang" ],
+									"fontname" : "Arial",
+									"triscale" : 0.9,
 									"presentation_rect" : [ 15.0, 15.0, 50.0, 20.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 134.523865, 131.445099, 50.0, 20.0 ],
+									"fontsize" : 11.595187,
 									"numoutlets" : 2,
-									"id" : "obj-42",
-									"fontname" : "Arial",
-									"outlettype" : [ "int", "bang" ],
-									"triscale" : 0.9
+									"patching_rect" : [ 134.523865, 131.445099, 50.0, 20.0 ]
 								}
 
 							}
@@ -1935,24 +1969,24 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "adstatus sigvs",
+									"id" : "obj-45",
+									"outlettype" : [ "", "int" ],
+									"fontname" : "Arial",
+									"numinlets" : 2,
 									"fontsize" : 11.595187,
-									"numinlets" : 2,
-									"patching_rect" : [ 89.0, 213.406555, 84.0, 20.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-45",
-									"fontname" : "Arial",
-									"outlettype" : [ "", "int" ]
+									"patching_rect" : [ 89.0, 213.406555, 84.0, 20.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"id" : "obj-49",
+									"outlettype" : [ "bang" ],
 									"numinlets" : 1,
-									"patching_rect" : [ 50.0, 104.192688, 20.0, 20.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-49",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 50.0, 104.192688, 20.0, 20.0 ]
 								}
 
 							}
@@ -1960,13 +1994,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "adstatus sr",
+									"id" : "obj-50",
+									"outlettype" : [ "", "int" ],
+									"fontname" : "Arial",
+									"numinlets" : 2,
 									"fontsize" : 11.595187,
-									"numinlets" : 2,
-									"patching_rect" : [ 50.0, 131.445099, 67.0, 20.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-50",
-									"fontname" : "Arial",
-									"outlettype" : [ "", "int" ]
+									"patching_rect" : [ 50.0, 131.445099, 67.0, 20.0 ]
 								}
 
 							}
@@ -1974,22 +2008,22 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "report sampling rate choices",
+									"id" : "obj-63",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 11.595187,
-									"numinlets" : 1,
-									"patching_rect" : [ 92.457458, 100.000015, 154.0, 20.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-63",
-									"fontname" : "Arial"
+									"patching_rect" : [ 92.457458, 100.000015, 154.0, 20.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-24",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 129.717804, 388.809265, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-24",
 									"comment" : ""
 								}
 
@@ -2125,13 +2159,13 @@
 					}
 ,
 					"saved_object_attributes" : 					{
-						"fontface" : 0,
-						"fontsize" : 12.0,
 						"default_fontface" : 0,
 						"default_fontname" : "Arial",
+						"globalpatchername" : "",
 						"fontname" : "Arial",
 						"default_fontsize" : 12.0,
-						"globalpatchername" : ""
+						"fontface" : 0,
+						"fontsize" : 12.0
 					}
 
 				}
@@ -2140,13 +2174,13 @@
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
-					"presentation_rect" : [ 495.0, 60.0, 20.0, 20.0 ],
-					"numinlets" : 1,
-					"patching_rect" : [ 535.0, -46.0, 20.0, 20.0 ],
-					"numoutlets" : 1,
 					"presentation" : 1,
 					"id" : "obj-21",
-					"outlettype" : [ "bang" ]
+					"outlettype" : [ "bang" ],
+					"presentation_rect" : [ 496.0, 78.0, 20.0, 20.0 ],
+					"numinlets" : 1,
+					"numoutlets" : 1,
+					"patching_rect" : [ 535.0, -46.0, 20.0, 20.0 ]
 				}
 
 			}
@@ -2154,13 +2188,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "uzi 5",
+					"id" : "obj-19",
+					"outlettype" : [ "bang", "bang", "int" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 541.0, -21.0, 46.0, 19.0 ],
 					"numoutlets" : 3,
-					"id" : "obj-19",
-					"fontname" : "Verdana",
-					"outlettype" : [ "bang", "bang", "int" ]
+					"patching_rect" : [ 541.0, -21.0, 46.0, 19.0 ]
 				}
 
 			}
@@ -2168,15 +2202,15 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "prepend open",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-18",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 152.0, 285.0, 80.0, 19.0 ],
 					"numinlets" : 1,
-					"patching_rect" : [ 224.0, 128.0, 80.0, 19.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-18",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 224.0, 128.0, 80.0, 19.0 ]
 				}
 
 			}
@@ -2184,13 +2218,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "prepend open",
+					"id" : "obj-17",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 340.0, 131.0, 80.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-17",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 340.0, 131.0, 80.0, 19.0 ]
 				}
 
 			}
@@ -2199,13 +2233,13 @@
 					"maxclass" : "message",
 					"text" : "\"Macintosh HD:/Users/andrew/Documents/work/programming/MadMax/AudioFiles/LiveDues/01_bass_upsideLive.wav\"",
 					"linecount" : 3,
+					"id" : "obj-16",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 958.0, 133.0, 297.0, 41.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-16",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 958.0, 133.0, 297.0, 41.0 ]
 				}
 
 			}
@@ -2213,13 +2247,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "route 0 1 2",
+					"id" : "obj-13",
+					"outlettype" : [ "", "", "", "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 343.0, 91.0, 67.0, 19.0 ],
 					"numoutlets" : 4,
-					"id" : "obj-13",
-					"fontname" : "Verdana",
-					"outlettype" : [ "", "", "", "" ]
+					"patching_rect" : [ 343.0, 91.0, 67.0, 19.0 ]
 				}
 
 			}
@@ -2227,13 +2261,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "pack 0 s",
+					"id" : "obj-11",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 369.0, 63.0, 52.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-11",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 369.0, 63.0, 52.0, 19.0 ]
 				}
 
 			}
@@ -2241,13 +2275,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "loadbang",
+					"id" : "obj-6",
+					"outlettype" : [ "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 825.0, -148.0, 56.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-6",
-					"fontname" : "Verdana",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 825.0, -148.0, 56.0, 19.0 ]
 				}
 
 			}
@@ -2255,13 +2289,13 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "autopopulate 1",
+					"id" : "obj-5",
+					"outlettype" : [ "" ],
+					"fontname" : "Arial",
+					"numinlets" : 2,
 					"fontsize" : 11.595187,
-					"numinlets" : 2,
-					"patching_rect" : [ 810.0, -117.0, 87.0, 18.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-5",
-					"fontname" : "Arial",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 810.0, -117.0, 87.0, 18.0 ]
 				}
 
 			}
@@ -2270,13 +2304,13 @@
 					"maxclass" : "message",
 					"text" : "prefix /Users/andrew/Documents/work/programming/MadMax/AudioFiles/LiveDues/",
 					"linecount" : 3,
+					"id" : "obj-2",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 1160.0, -117.0, 372.0, 41.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-2",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 1160.0, -117.0, 372.0, 41.0 ]
 				}
 
 			}
@@ -2284,79 +2318,79 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "udpsend 127.0.0.1 10874",
+					"id" : "obj-66",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 564.0, 637.0, 141.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-66",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 564.0, 637.0, 141.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "flonum",
+					"id" : "obj-154",
+					"outlettype" : [ "float", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 320.0, 621.0, 50.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-154",
-					"fontname" : "Verdana",
-					"outlettype" : [ "float", "bang" ]
+					"patching_rect" : [ 320.0, 621.0, 50.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number~",
+					"mode" : 2,
+					"id" : "obj-152",
+					"outlettype" : [ "signal", "float" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
+					"sig" : 0.0,
 					"fontsize" : 10.0,
-					"mode" : 2,
-					"numinlets" : 2,
-					"patching_rect" : [ 69.0, 490.0, 56.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-152",
-					"sig" : 0.0,
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "float" ]
+					"patching_rect" : [ 69.0, 490.0, 56.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "gain~",
+					"presentation" : 1,
+					"id" : "obj-151",
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 82.0, 85.0, 20.0, 140.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 69.0, 531.0, 20.0, 140.0 ],
 					"numoutlets" : 2,
-					"presentation" : 1,
-					"id" : "obj-151",
-					"outlettype" : [ "signal", "int" ]
+					"patching_rect" : [ 69.0, 531.0, 20.0, 140.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"id" : "obj-147",
+					"outlettype" : [ "bang" ],
 					"numinlets" : 1,
-					"patching_rect" : [ 527.0, 322.0, 59.0, 59.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-147",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 527.0, 322.0, 59.0, 59.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "umenu",
+					"id" : "obj-148",
+					"outlettype" : [ "int", "", "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
+					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
+					"types" : [  ],
 					"fontsize" : 10.0,
-					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numinlets" : 1,
-					"types" : [  ],
-					"patching_rect" : [ 527.0, 253.0, 100.0, 19.0 ],
 					"numoutlets" : 3,
-					"id" : "obj-148",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "", "" ]
+					"patching_rect" : [ 527.0, 253.0, 100.0, 19.0 ]
 				}
 
 			}
@@ -2364,13 +2398,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "switch 2",
+					"id" : "obj-149",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 3,
 					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"patching_rect" : [ 527.0, 287.0, 52.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-149",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 527.0, 287.0, 52.0, 19.0 ]
 				}
 
 			}
@@ -2378,13 +2412,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "p aubioOnsetDeetection",
+					"id" : "obj-141",
+					"outlettype" : [ "signal", "bang", "float", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"numoutlets" : 4,
 					"patching_rect" : [ 501.0, 204.0, 131.0, 19.0 ],
-					"numoutlets" : 4,
-					"id" : "obj-141",
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "bang", "float", "bang" ],
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
@@ -2408,12 +2442,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "<number>: output period in msecs (will be rounded up to control rate)",
+									"id" : "obj-62",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-62",
-									"fontname" : "Arial"
+									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ]
 								}
 
 							}
@@ -2421,12 +2455,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "<number>: minimum frequency in Hz",
+									"id" : "obj-64",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-64",
-									"fontname" : "Arial"
+									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ]
 								}
 
 							}
@@ -2435,38 +2469,38 @@
 									"maxclass" : "comment",
 									"text" : "estimation quality factor",
 									"linecount" : 2,
+									"id" : "obj-82",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-82",
-									"fontname" : "Arial"
+									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-68",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-68",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-40",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 359.0, 334.0, 47.0, 47.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-40",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ]
 								}
 
 							}
@@ -2474,13 +2508,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "/medianOnset",
+									"id" : "obj-39",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-39",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ]
 								}
 
 							}
@@ -2488,13 +2522,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /medianAubioData",
+									"id" : "obj-37",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-37",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ]
 								}
 
 							}
@@ -2502,13 +2536,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /rawAubioData",
+									"id" : "obj-5",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-5",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ]
 								}
 
 							}
@@ -2517,25 +2551,25 @@
 									"maxclass" : "comment",
 									"text" : "raw detection function value",
 									"linecount" : 2,
+									"id" : "obj-32",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-32",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-24",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-24",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ]
 								}
 
 							}
@@ -2543,27 +2577,27 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "reset axis /mode ",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-23",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 109.0, 137.0, 150.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-23",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-2",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 127.0, 159.0, 20.0, 20.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-2",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ]
 								}
 
 							}
@@ -2571,13 +2605,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "hfc",
+									"id" : "obj-34",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-34",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ]
 								}
 
 							}
@@ -2585,12 +2619,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "or send mode as a as message",
+									"id" : "obj-33",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-33",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ]
 								}
 
 							}
@@ -2598,13 +2632,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /mode",
+									"id" : "obj-31",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-31",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ]
 								}
 
 							}
@@ -2612,31 +2646,31 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "detection mode",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-29",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 143.0, 184.0, 91.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-29",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "umenu",
-									"fontsize" : 10.0,
-									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
-									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
-									"numinlets" : 1,
-									"types" : [  ],
-									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ],
-									"numoutlets" : 3,
 									"presentation" : 1,
 									"id" : "obj-15",
+									"outlettype" : [ "int", "", "" ],
 									"fontname" : "Verdana",
-									"outlettype" : [ "int", "", "" ]
+									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
+									"numinlets" : 1,
+									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
+									"types" : [  ],
+									"fontsize" : 10.0,
+									"numoutlets" : 3,
+									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ]
 								}
 
 							}
@@ -2645,12 +2679,12 @@
 									"maxclass" : "comment",
 									"text" : "send osc data to aubioOnsetVisualiser in openFrameworks",
 									"linecount" : 3,
+									"id" : "obj-28",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-28",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ]
 								}
 
 							}
@@ -2659,23 +2693,23 @@
 									"maxclass" : "comment",
 									"text" : "print detection function value at onsets",
 									"linecount" : 2,
+									"id" : "obj-26",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-26",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "toggle",
+									"id" : "obj-18",
+									"outlettype" : [ "int" ],
 									"numinlets" : 1,
-									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-18",
-									"outlettype" : [ "int" ]
+									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ]
 								}
 
 							}
@@ -2683,13 +2717,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "gate",
+									"id" : "obj-13",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-13",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ]
 								}
 
 							}
@@ -2697,14 +2731,14 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "detection function as float",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-11",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 407.0, 303.0, 150.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-11",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ]
 								}
 
 							}
@@ -2712,13 +2746,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "/onset",
+									"id" : "obj-22",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-22",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ]
 								}
 
 							}
@@ -2726,13 +2760,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "energy",
+									"id" : "obj-25",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-25",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ]
 								}
 
 							}
@@ -2740,13 +2774,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioData",
+									"id" : "obj-21",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-21",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ]
 								}
 
 							}
@@ -2754,12 +2788,12 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "udpsend 127.0.0.1 12345",
+									"id" : "obj-20",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-20",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ]
 								}
 
 							}
@@ -2767,13 +2801,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "float 0.",
+									"id" : "obj-16",
+									"outlettype" : [ "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-16",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float" ]
+									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ]
 								}
 
 							}
@@ -2781,27 +2815,27 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "print",
+									"id" : "obj-19",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-19",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-17",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 356.0, 304.0, 49.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 2,
-									"presentation" : 1,
-									"id" : "obj-17",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ]
 								}
 
 							}
@@ -2809,44 +2843,44 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "threshold",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-6",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 62.0, 182.0, 58.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-6",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-9",
+									"outlettype" : [ "float", "bang" ],
+									"minimum" : 0.1,
+									"maximum" : 10.0,
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 2,
-									"presentation" : 1,
-									"id" : "obj-9",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ],
-									"minimum" : 0.1,
-									"maximum" : 10.0
+									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-7",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 354.0, 247.0, 47.0, 47.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-7",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ]
 								}
 
 							}
@@ -2854,24 +2888,24 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "aubioOnsetDetect~ 0.4",
+									"id" : "obj-1",
+									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ],
 									"numoutlets" : 6,
-									"id" : "obj-1",
-									"fontname" : "Verdana",
-									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ]
+									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-121",
 									"outlettype" : [ "signal" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -2879,11 +2913,11 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-122",
 									"outlettype" : [ "" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -2891,10 +2925,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-123",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 254.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-123",
 									"comment" : ""
 								}
 
@@ -2902,10 +2936,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-124",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 287.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-124",
 									"comment" : ""
 								}
 
@@ -2913,10 +2947,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-125",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 382.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-125",
 									"comment" : ""
 								}
 
@@ -2924,10 +2958,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-126",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 569.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-126",
 									"comment" : ""
 								}
 
@@ -3252,13 +3286,13 @@
 					}
 ,
 					"saved_object_attributes" : 					{
-						"fontface" : 0,
-						"fontsize" : 12.0,
 						"default_fontface" : 0,
 						"default_fontname" : "Arial",
+						"globalpatchername" : "",
 						"fontname" : "Arial",
 						"default_fontsize" : 12.0,
-						"globalpatchername" : ""
+						"fontface" : 0,
+						"fontsize" : 12.0
 					}
 
 				}
@@ -3268,12 +3302,12 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "soundfile load",
+					"id" : "obj-142",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 472.0, 104.0, 150.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-142",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 472.0, 104.0, 150.0, 19.0 ]
 				}
 
 			}
@@ -3281,15 +3315,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "open",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-143",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 424.0, 285.0, 35.0, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 496.0, 131.0, 35.0, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-143",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 496.0, 131.0, 35.0, 17.0 ]
 				}
 
 			}
@@ -3297,15 +3331,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "1",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-144",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 498.0, 285.0, 32.5, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 570.0, 131.0, 32.5, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-144",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 570.0, 131.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -3313,15 +3347,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "0",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-145",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 463.0, 285.0, 32.5, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 535.0, 131.0, 32.5, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-145",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 535.0, 131.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -3329,13 +3363,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
+					"id" : "obj-146",
+					"outlettype" : [ "signal", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"numoutlets" : 2,
 					"patching_rect" : [ 500.0, 158.0, 48.0, 19.0 ],
-					"numoutlets" : 2,
-					"id" : "obj-146",
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "bang" ],
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -3344,13 +3378,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "p pitchChannel_0",
+					"id" : "obj-140",
+					"outlettype" : [ "float", "float", "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 3,
 					"fontsize" : 10.0,
-					"numinlets" : 3,
+					"numoutlets" : 3,
 					"patching_rect" : [ 320.0, 575.0, 98.0, 19.0 ],
-					"numoutlets" : 3,
-					"id" : "obj-140",
-					"fontname" : "Verdana",
-					"outlettype" : [ "float", "float", "" ],
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 25.0, 69.0, 640.0, 480.0 ],
@@ -3373,10 +3407,10 @@
 						"boxes" : [ 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-2",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 378.0, 416.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-2",
 									"comment" : ""
 								}
 
@@ -3384,10 +3418,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-1",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 244.0, 417.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-1",
 									"comment" : ""
 								}
 
@@ -3395,13 +3429,13 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-47",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 224.0, 131.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-47",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 224.0, 131.0, 50.0, 19.0 ]
 								}
 
 							}
@@ -3409,13 +3443,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "- 0.",
+									"id" : "obj-88",
+									"outlettype" : [ "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 273.0, 218.0, 32.5, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-88",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float" ]
+									"patching_rect" : [ 273.0, 218.0, 32.5, 19.0 ]
 								}
 
 							}
@@ -3423,13 +3457,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "cpuclock",
+									"id" : "obj-87",
+									"outlettype" : [ "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 326.0, 191.0, 53.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-87",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float" ]
+									"patching_rect" : [ 326.0, 191.0, 53.0, 19.0 ]
 								}
 
 							}
@@ -3437,25 +3471,25 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "sending osc of pitch",
+									"id" : "obj-86",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 293.0, 273.0, 150.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-86",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 293.0, 273.0, 150.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "number",
+									"id" : "obj-83",
+									"outlettype" : [ "int", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 273.0, 245.0, 72.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-83",
-									"fontname" : "Verdana",
-									"outlettype" : [ "int", "bang" ]
+									"patching_rect" : [ 273.0, 245.0, 72.0, 19.0 ]
 								}
 
 							}
@@ -3463,27 +3497,27 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioPitch 1",
+									"id" : "obj-77",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 248.0, 304.0, 122.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-77",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 248.0, 304.0, 122.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "message",
-									"text" : "0. 2679",
+									"text" : "0. 83356",
+									"id" : "obj-65",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 50.0, 305.0, 187.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-65",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 50.0, 305.0, 187.0, 17.0 ]
 								}
 
 							}
@@ -3491,13 +3525,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "pack 0. 0",
+									"id" : "obj-60",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 220.0, 270.0, 61.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-60",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 220.0, 270.0, 61.0, 19.0 ]
 								}
 
 							}
@@ -3505,13 +3539,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "cpuclock",
+									"id" : "obj-59",
+									"outlettype" : [ "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 273.0, 190.0, 53.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-59",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float" ]
+									"patching_rect" : [ 273.0, 190.0, 53.0, 19.0 ]
 								}
 
 							}
@@ -3519,26 +3553,26 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "delay 100",
+									"id" : "obj-58",
+									"outlettype" : [ "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 127.0, 124.0, 60.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-58",
-									"fontname" : "Verdana",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 127.0, 124.0, 60.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-57",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 220.0, 218.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-57",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 220.0, 218.0, 50.0, 19.0 ]
 								}
 
 							}
@@ -3546,13 +3580,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "f 0.",
+									"id" : "obj-48",
+									"outlettype" : [ "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 260.0, 156.0, 32.5, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-48",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float" ]
+									"patching_rect" : [ 260.0, 156.0, 32.5, 19.0 ]
 								}
 
 							}
@@ -3560,24 +3594,24 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "aubiopitch~",
+									"id" : "obj-44",
+									"outlettype" : [ "signal", "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 221.0, 100.0, 71.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-44",
-									"fontname" : "Verdana",
-									"outlettype" : [ "signal", "float" ]
+									"patching_rect" : [ 221.0, 100.0, 71.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 308.0, 45.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-135",
 									"outlettype" : [ "" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 308.0, 45.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -3585,11 +3619,11 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 221.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-136",
 									"outlettype" : [ "signal" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 221.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -3597,11 +3631,11 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 385.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-138",
 									"outlettype" : [ "bang" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 385.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -3609,10 +3643,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-139",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 326.0, 413.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-139",
 									"comment" : ""
 								}
 
@@ -3784,13 +3818,13 @@
 					}
 ,
 					"saved_object_attributes" : 					{
-						"fontface" : 0,
-						"fontsize" : 12.0,
 						"default_fontface" : 0,
 						"default_fontname" : "Arial",
+						"globalpatchername" : "",
 						"fontname" : "Arial",
 						"default_fontsize" : 12.0,
-						"globalpatchername" : ""
+						"fontface" : 0,
+						"fontsize" : 12.0
 					}
 
 				}
@@ -3799,11 +3833,11 @@
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"id" : "obj-130",
+					"outlettype" : [ "bang" ],
 					"numinlets" : 1,
-					"patching_rect" : [ 240.0, 546.0, 59.0, 59.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-130",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 240.0, 546.0, 59.0, 59.0 ]
 				}
 
 			}
@@ -3811,13 +3845,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "p aubioOnsetDeetection",
+					"id" : "obj-128",
+					"outlettype" : [ "signal", "bang", "float", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"numoutlets" : 4,
 					"patching_rect" : [ 108.0, 206.0, 131.0, 19.0 ],
-					"numoutlets" : 4,
-					"id" : "obj-128",
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "bang", "float", "bang" ],
 					"patcher" : 					{
 						"fileversion" : 1,
 						"rect" : [ 0.0, 0.0, 640.0, 480.0 ],
@@ -3841,12 +3875,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "<number>: output period in msecs (will be rounded up to control rate)",
+									"id" : "obj-62",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-62",
-									"fontname" : "Arial"
+									"patching_rect" : [ 181.0, 168.0, 343.0, 17.0 ]
 								}
 
 							}
@@ -3854,12 +3888,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "<number>: minimum frequency in Hz",
+									"id" : "obj-64",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-64",
-									"fontname" : "Arial"
+									"patching_rect" : [ 181.0, 156.0, 343.0, 17.0 ]
 								}
 
 							}
@@ -3868,38 +3902,38 @@
 									"maxclass" : "comment",
 									"text" : "estimation quality factor",
 									"linecount" : 2,
+									"id" : "obj-82",
+									"fontname" : "Arial",
+									"numinlets" : 1,
 									"fontsize" : 9.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-82",
-									"fontname" : "Arial"
+									"patching_rect" : [ 50.0, 287.0, 70.0, 27.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-68",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-68",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 647.0, 253.0, 50.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-40",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 359.0, 334.0, 47.0, 47.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-40",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 569.0, 218.0, 47.0, 47.0 ]
 								}
 
 							}
@@ -3907,13 +3941,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "/medianOnset",
+									"id" : "obj-39",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-39",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 508.0, 373.0, 81.0, 17.0 ]
 								}
 
 							}
@@ -3921,13 +3955,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /medianAubioData",
+									"id" : "obj-37",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-37",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 627.0, 214.0, 149.0, 19.0 ]
 								}
 
 							}
@@ -3935,13 +3969,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /rawAubioData",
+									"id" : "obj-5",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-5",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 451.0, 281.0, 130.0, 19.0 ]
 								}
 
 							}
@@ -3950,25 +3984,25 @@
 									"maxclass" : "comment",
 									"text" : "raw detection function value",
 									"linecount" : 2,
+									"id" : "obj-32",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-32",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 415.0, 208.0, 150.0, 31.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
+									"id" : "obj-24",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ],
 									"numoutlets" : 2,
-									"id" : "obj-24",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 366.0, 209.0, 50.0, 19.0 ]
 								}
 
 							}
@@ -3976,27 +4010,27 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "reset axis /mode ",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-23",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 109.0, 137.0, 150.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-23",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 150.0, 104.0, 97.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-2",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 127.0, 159.0, 20.0, 20.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-2",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 129.0, 100.0, 20.0, 20.0 ]
 								}
 
 							}
@@ -4004,13 +4038,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "hfc",
+									"id" : "obj-34",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-34",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 289.0, 116.0, 45.0, 17.0 ]
 								}
 
 							}
@@ -4018,12 +4052,12 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "or send mode as a as message",
+									"id" : "obj-33",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-33",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 308.0, 141.0, 176.0, 19.0 ]
 								}
 
 							}
@@ -4031,13 +4065,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /mode",
+									"id" : "obj-31",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-31",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 171.0, 288.0, 88.0, 19.0 ]
 								}
 
 							}
@@ -4045,31 +4079,31 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "detection mode",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-29",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 143.0, 184.0, 91.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-29",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 145.0, 125.0, 91.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "umenu",
-									"fontsize" : 10.0,
-									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
-									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
-									"numinlets" : 1,
-									"types" : [  ],
-									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ],
-									"numoutlets" : 3,
 									"presentation" : 1,
 									"id" : "obj-15",
+									"outlettype" : [ "int", "", "" ],
 									"fontname" : "Verdana",
-									"outlettype" : [ "int", "", "" ]
+									"presentation_rect" : [ 127.0, 204.0, 100.0, 19.0 ],
+									"numinlets" : 1,
+									"items" : [ "complex", ",", "energy", ",", "hfc", ",", "specdiff", ",", "phase", ",", "kl", ",", "mkl" ],
+									"types" : [  ],
+									"fontsize" : 10.0,
+									"numoutlets" : 3,
+									"patching_rect" : [ 129.0, 145.0, 100.0, 19.0 ]
 								}
 
 							}
@@ -4078,12 +4112,12 @@
 									"maxclass" : "comment",
 									"text" : "send osc data to aubioOnsetVisualiser in openFrameworks",
 									"linecount" : 3,
+									"id" : "obj-28",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-28",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 449.0, 310.0, 117.0, 43.0 ]
 								}
 
 							}
@@ -4092,23 +4126,23 @@
 									"maxclass" : "comment",
 									"text" : "print detection function value at onsets",
 									"linecount" : 2,
+									"id" : "obj-26",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-26",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 256.0, 375.0, 150.0, 31.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "toggle",
+									"id" : "obj-18",
+									"outlettype" : [ "int" ],
 									"numinlets" : 1,
-									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-18",
-									"outlettype" : [ "int" ]
+									"patching_rect" : [ 221.0, 321.0, 20.0, 20.0 ]
 								}
 
 							}
@@ -4116,13 +4150,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "gate",
+									"id" : "obj-13",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-13",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 221.0, 364.0, 33.0, 19.0 ]
 								}
 
 							}
@@ -4130,14 +4164,14 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "detection function as float",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-11",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 407.0, 303.0, 150.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-11",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 409.0, 244.0, 150.0, 19.0 ]
 								}
 
 							}
@@ -4145,13 +4179,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "/onset",
+									"id" : "obj-22",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-22",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 287.0, 282.0, 43.0, 17.0 ]
 								}
 
 							}
@@ -4159,13 +4193,13 @@
 								"box" : 								{
 									"maxclass" : "message",
 									"text" : "energy",
+									"id" : "obj-25",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-25",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 262.0, 142.0, 45.0, 17.0 ]
 								}
 
 							}
@@ -4173,13 +4207,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "prepend /aubioData",
+									"id" : "obj-21",
+									"outlettype" : [ "" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-21",
-									"fontname" : "Verdana",
-									"outlettype" : [ "" ]
+									"patching_rect" : [ 336.0, 280.0, 111.0, 19.0 ]
 								}
 
 							}
@@ -4187,12 +4221,12 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "udpsend 127.0.0.1 12345",
+									"id" : "obj-20",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-20",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 441.0, 399.0, 141.0, 19.0 ]
 								}
 
 							}
@@ -4200,13 +4234,13 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "float 0.",
+									"id" : "obj-16",
+									"outlettype" : [ "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 2,
 									"fontsize" : 10.0,
-									"numinlets" : 2,
-									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ],
 									"numoutlets" : 1,
-									"id" : "obj-16",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float" ]
+									"patching_rect" : [ 235.0, 343.0, 46.0, 19.0 ]
 								}
 
 							}
@@ -4214,27 +4248,27 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "print",
+									"id" : "obj-19",
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ],
 									"numoutlets" : 0,
-									"id" : "obj-19",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 221.0, 386.0, 34.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-17",
+									"outlettype" : [ "float", "bang" ],
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 356.0, 304.0, 49.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 2,
-									"presentation" : 1,
-									"id" : "obj-17",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ]
+									"patching_rect" : [ 358.0, 245.0, 49.0, 19.0 ]
 								}
 
 							}
@@ -4242,44 +4276,44 @@
 								"box" : 								{
 									"maxclass" : "comment",
 									"text" : "threshold",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-6",
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 62.0, 182.0, 58.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 0,
-									"presentation" : 1,
-									"id" : "obj-6",
-									"fontname" : "Verdana"
+									"patching_rect" : [ 64.0, 123.0, 58.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "flonum",
-									"fontsize" : 10.0,
+									"presentation" : 1,
+									"id" : "obj-9",
+									"outlettype" : [ "float", "bang" ],
+									"minimum" : 0.1,
+									"maximum" : 10.0,
+									"fontname" : "Verdana",
 									"presentation_rect" : [ 66.0, 203.0, 50.0, 19.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ],
+									"fontsize" : 10.0,
 									"numoutlets" : 2,
-									"presentation" : 1,
-									"id" : "obj-9",
-									"fontname" : "Verdana",
-									"outlettype" : [ "float", "bang" ],
-									"minimum" : 0.1,
-									"maximum" : 10.0
+									"patching_rect" : [ 68.0, 144.0, 50.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "button",
+									"presentation" : 1,
+									"id" : "obj-7",
+									"outlettype" : [ "bang" ],
 									"presentation_rect" : [ 354.0, 247.0, 47.0, 47.0 ],
 									"numinlets" : 1,
-									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ],
 									"numoutlets" : 1,
-									"presentation" : 1,
-									"id" : "obj-7",
-									"outlettype" : [ "bang" ]
+									"patching_rect" : [ 287.0, 219.0, 47.0, 47.0 ]
 								}
 
 							}
@@ -4287,24 +4321,24 @@
 								"box" : 								{
 									"maxclass" : "newobj",
 									"text" : "aubioOnsetDetect~ 0.4",
+									"id" : "obj-1",
+									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ],
+									"fontname" : "Verdana",
+									"numinlets" : 1,
 									"fontsize" : 10.0,
-									"numinlets" : 1,
-									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ],
 									"numoutlets" : 6,
-									"id" : "obj-1",
-									"fontname" : "Verdana",
-									"outlettype" : [ "signal", "bang", "float", "float", "bang", "float" ]
+									"patching_rect" : [ 254.0, 182.0, 340.0, 19.0 ]
 								}
 
 							}
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-121",
 									"outlettype" : [ "signal" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 254.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -4312,11 +4346,11 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "inlet",
-									"numinlets" : 0,
-									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
-									"numoutlets" : 1,
 									"id" : "obj-122",
 									"outlettype" : [ "" ],
+									"numinlets" : 0,
+									"numoutlets" : 1,
+									"patching_rect" : [ 441.0, 40.0, 25.0, 25.0 ],
 									"comment" : ""
 								}
 
@@ -4324,10 +4358,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-123",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 254.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-123",
 									"comment" : ""
 								}
 
@@ -4335,10 +4369,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-124",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 287.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-124",
 									"comment" : ""
 								}
 
@@ -4346,10 +4380,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-125",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 382.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-125",
 									"comment" : ""
 								}
 
@@ -4357,10 +4391,10 @@
 , 							{
 								"box" : 								{
 									"maxclass" : "outlet",
+									"id" : "obj-126",
 									"numinlets" : 1,
+									"numoutlets" : 0,
 									"patching_rect" : [ 569.0, 478.0, 25.0, 25.0 ],
-									"numoutlets" : 0,
-									"id" : "obj-126",
 									"comment" : ""
 								}
 
@@ -4685,13 +4719,13 @@
 					}
 ,
 					"saved_object_attributes" : 					{
-						"fontface" : 0,
-						"fontsize" : 12.0,
 						"default_fontface" : 0,
 						"default_fontname" : "Arial",
+						"globalpatchername" : "",
 						"fontname" : "Arial",
 						"default_fontsize" : 12.0,
-						"globalpatchername" : ""
+						"fontface" : 0,
+						"fontsize" : 12.0
 					}
 
 				}
@@ -4700,27 +4734,27 @@
 , 			{
 				"box" : 				{
 					"maxclass" : "message",
-					"text" : "/kick 0 1762",
+					"text" : "/kick 0 83030",
+					"id" : "obj-112",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 628.0, 601.0, 130.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-112",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 628.0, 601.0, 130.0, 17.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number",
+					"id" : "obj-110",
+					"outlettype" : [ "int", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 527.0, 457.0, 60.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-110",
-					"fontname" : "Verdana",
-					"outlettype" : [ "int", "bang" ]
+					"patching_rect" : [ 527.0, 457.0, 60.0, 19.0 ]
 				}
 
 			}
@@ -4728,12 +4762,12 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "start button",
+					"id" : "obj-108",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 333.0, 436.0, 75.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-108",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 333.0, 436.0, 75.0, 19.0 ]
 				}
 
 			}
@@ -4741,13 +4775,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "- 0.",
+					"id" : "obj-105",
+					"outlettype" : [ "float" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 527.0, 428.0, 32.5, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-105",
-					"fontname" : "Verdana",
-					"outlettype" : [ "float" ]
+					"patching_rect" : [ 527.0, 428.0, 32.5, 19.0 ]
 				}
 
 			}
@@ -4755,13 +4789,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "cpuclock",
+					"id" : "obj-104",
+					"outlettype" : [ "float" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 527.0, 396.0, 53.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-104",
-					"fontname" : "Verdana",
-					"outlettype" : [ "float" ]
+					"patching_rect" : [ 527.0, 396.0, 53.0, 19.0 ]
 				}
 
 			}
@@ -4769,24 +4803,24 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "/kick 0 $1",
+					"id" : "obj-103",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 562.0, 579.0, 61.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-103",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 562.0, 579.0, 61.0, 17.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "button",
+					"id" : "obj-91",
+					"outlettype" : [ "bang" ],
 					"numinlets" : 1,
-					"patching_rect" : [ 398.0, 437.0, 20.0, 20.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-91",
-					"outlettype" : [ "bang" ]
+					"patching_rect" : [ 398.0, 437.0, 20.0, 20.0 ]
 				}
 
 			}
@@ -4794,29 +4828,29 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "soundfile load",
+					"id" : "obj-81",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 79.0, 106.0, 150.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-81",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 79.0, 106.0, 150.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "umenu",
-					"fontsize" : 10.0,
-					"presentation_rect" : [ 27.0, 309.0, 100.0, 19.0 ],
-					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
-					"numinlets" : 1,
-					"types" : [  ],
-					"patching_rect" : [ 360.0, 471.0, 100.0, 19.0 ],
-					"numoutlets" : 3,
 					"presentation" : 1,
 					"id" : "obj-80",
+					"outlettype" : [ "int", "", "" ],
 					"fontname" : "Verdana",
-					"outlettype" : [ "int", "", "" ]
+					"presentation_rect" : [ 27.0, 309.0, 100.0, 19.0 ],
+					"numinlets" : 1,
+					"items" : [ "click", "off", ",", "slope", "detect", ",", "threshold", "detect" ],
+					"types" : [  ],
+					"fontsize" : 10.0,
+					"numoutlets" : 3,
+					"patching_rect" : [ 360.0, 471.0, 100.0, 19.0 ]
 				}
 
 			}
@@ -4824,13 +4858,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "switch 2",
+					"id" : "obj-78",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 3,
 					"fontsize" : 10.0,
-					"numinlets" : 3,
-					"patching_rect" : [ 360.0, 505.0, 52.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-78",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 360.0, 505.0, 52.0, 19.0 ]
 				}
 
 			}
@@ -4838,13 +4872,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "loadmess 80",
+					"id" : "obj-127",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 271.0, 896.0, 74.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-127",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 271.0, 896.0, 74.0, 19.0 ]
 				}
 
 			}
@@ -4852,12 +4886,12 @@
 				"box" : 				{
 					"maxclass" : "comment",
 					"text" : "click sound to use",
+					"id" : "obj-113",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 204.0, 770.0, 108.0, 19.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-113",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 204.0, 770.0, 108.0, 19.0 ]
 				}
 
 			}
@@ -4865,13 +4899,13 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "1",
+					"id" : "obj-36",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 204.0, 825.0, 32.5, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-36",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 204.0, 825.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -4879,27 +4913,27 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "loadmess open cow2.wav",
+					"id" : "obj-72",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 227.0, 795.0, 139.0, 19.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-72",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 227.0, 795.0, 139.0, 19.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "gain~",
-					"presentation_rect" : [ 197.0, 85.0, 20.0, 140.0 ],
-					"interp" : 100.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 184.0, 527.0, 20.0, 140.0 ],
-					"numoutlets" : 2,
 					"presentation" : 1,
 					"id" : "obj-73",
-					"outlettype" : [ "signal", "int" ]
+					"outlettype" : [ "signal", "int" ],
+					"presentation_rect" : [ 197.0, 85.0, 20.0, 140.0 ],
+					"numinlets" : 2,
+					"interp" : 100.0,
+					"numoutlets" : 2,
+					"patching_rect" : [ 184.0, 527.0, 20.0, 140.0 ]
 				}
 
 			}
@@ -4907,13 +4941,13 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "open",
+					"id" : "obj-74",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 237.0, 825.0, 35.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-74",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 237.0, 825.0, 35.0, 17.0 ]
 				}
 
 			}
@@ -4921,13 +4955,13 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "0",
+					"id" : "obj-75",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 273.0, 825.0, 32.5, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-75",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 273.0, 825.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -4935,13 +4969,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
+					"id" : "obj-76",
+					"outlettype" : [ "signal", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"numoutlets" : 2,
 					"patching_rect" : [ 235.0, 856.0, 48.0, 19.0 ],
-					"numoutlets" : 2,
-					"id" : "obj-76",
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "bang" ],
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -4950,26 +4984,26 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "seek $1",
+					"id" : "obj-43",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
-					"patching_rect" : [ 138.0, -55.0, 50.0, 17.0 ],
 					"numoutlets" : 1,
-					"id" : "obj-43",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 138.0, -55.0, 50.0, 17.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "gain~",
+					"presentation" : 1,
+					"id" : "obj-27",
+					"outlettype" : [ "signal", "int" ],
 					"presentation_rect" : [ 28.0, 85.0, 20.0, 140.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 15.0, 531.0, 20.0, 140.0 ],
 					"numoutlets" : 2,
-					"presentation" : 1,
-					"id" : "obj-27",
-					"outlettype" : [ "signal", "int" ]
+					"patching_rect" : [ 15.0, 531.0, 20.0, 140.0 ]
 				}
 
 			}
@@ -4978,12 +5012,12 @@
 					"maxclass" : "comment",
 					"text" : "threshold can be set on initialisation (default 1.0)",
 					"linecount" : 2,
+					"id" : "obj-30",
+					"fontname" : "Verdana",
+					"numinlets" : 1,
 					"fontsize" : 10.0,
-					"numinlets" : 1,
-					"patching_rect" : [ 31.0, 36.0, 150.0, 31.0 ],
 					"numoutlets" : 0,
-					"id" : "obj-30",
-					"fontname" : "Verdana"
+					"patching_rect" : [ 31.0, 36.0, 150.0, 31.0 ]
 				}
 
 			}
@@ -4991,15 +5025,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "open",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-14",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 31.0, 285.0, 35.0, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 103.0, 133.0, 35.0, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-14",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 103.0, 133.0, 35.0, 17.0 ]
 				}
 
 			}
@@ -5007,15 +5041,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "1",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-12",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 105.0, 285.0, 32.5, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 177.0, 133.0, 32.5, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-12",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 177.0, 133.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -5023,15 +5057,15 @@
 				"box" : 				{
 					"maxclass" : "message",
 					"text" : "0",
-					"fontsize" : 10.0,
+					"presentation" : 1,
+					"id" : "obj-10",
+					"outlettype" : [ "" ],
+					"fontname" : "Verdana",
 					"presentation_rect" : [ 70.0, 285.0, 32.5, 17.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 142.0, 133.0, 32.5, 17.0 ],
+					"fontsize" : 10.0,
 					"numoutlets" : 1,
-					"presentation" : 1,
-					"id" : "obj-10",
-					"fontname" : "Verdana",
-					"outlettype" : [ "" ]
+					"patching_rect" : [ 142.0, 133.0, 32.5, 17.0 ]
 				}
 
 			}
@@ -5039,13 +5073,13 @@
 				"box" : 				{
 					"maxclass" : "newobj",
 					"text" : "sfplay~",
+					"id" : "obj-8",
+					"outlettype" : [ "signal", "bang" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
 					"fontsize" : 10.0,
-					"numinlets" : 2,
+					"numoutlets" : 2,
 					"patching_rect" : [ 107.0, 160.0, 48.0, 19.0 ],
-					"numoutlets" : 2,
-					"id" : "obj-8",
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "bang" ],
 					"save" : [ "#N", "sfplay~", "", 1, 120960, 0, "", ";" ]
 				}
 
@@ -5053,27 +5087,27 @@
 , 			{
 				"box" : 				{
 					"maxclass" : "ezdac~",
+					"presentation" : 1,
+					"id" : "obj-4",
 					"presentation_rect" : [ 31.0, 12.0, 45.0, 45.0 ],
 					"numinlets" : 2,
-					"patching_rect" : [ 33.0, 738.0, 45.0, 45.0 ],
 					"numoutlets" : 0,
-					"presentation" : 1,
-					"id" : "obj-4"
+					"patching_rect" : [ 33.0, 738.0, 45.0, 45.0 ]
 				}
 
 			}
 , 			{
 				"box" : 				{
 					"maxclass" : "number~",
+					"mode" : 2,
+					"id" : "obj-3",
+					"outlettype" : [ "signal", "float" ],
+					"fontname" : "Verdana",
+					"numinlets" : 2,
+					"sig" : 0.0,
 					"fontsize" : 10.0,
-					"mode" : 2,
-					"numinlets" : 2,
-					"patching_rect" : [ 5.0, 492.0, 56.0, 19.0 ],
 					"numoutlets" : 2,
-					"id" : "obj-3",
-					"sig" : 0.0,
-					"fontname" : "Verdana",
-					"outlettype" : [ "signal", "float" ]
+					"patching_rect" : [ 5.0, 492.0, 56.0, 19.0 ]
 				}
 
 			}
@@ -6284,6 +6318,24 @@
 				}
 
 			}
+, 			{
+				"patchline" : 				{
+					"source" : [ "obj-93", 0 ],
+					"destination" : [ "obj-23", 1 ],
+					"hidden" : 0,
+					"midpoints" : [  ]
+				}
+
+			}
+, 			{
+				"patchline" : 				{
+					"source" : [ "obj-100", 1 ],
+					"destination" : [ "obj-68", 1 ],
+					"hidden" : 0,
+					"midpoints" : [  ]
+				}
+
+			}
  ]
 	}
 
--- a/README.txt	Sun Feb 05 09:58:56 2012 +0000
+++ b/README.txt	Sun Feb 05 22:08:50 2012 +0000
@@ -12,7 +12,6 @@
 
 
 Possible MIDI JNMR
-
 when adding gaussians - need to convert to the matrix indices - currently not done??
 
 Improve pitch distance by checking for octaves etc
--- a/bayesianArraySrc/BayesianArrayStructure.cpp	Sun Feb 05 09:58:56 2012 +0000
+++ b/bayesianArraySrc/BayesianArrayStructure.cpp	Sun Feb 05 22:08:50 2012 +0000
@@ -375,7 +375,7 @@
 		//	printf("speed [%i](val[%f]) gives %f moved %i in %f units \n", i, relativeSpeedPosterior.array[i], speedValue, distanceMoved, timeDifferenceInPositionVectorUnits);
 			
 			//1/2/12 deleted line
-			newPriorIndex = posterior.offset - prior.offset + distanceMoved;//i.e. where post[0] goes to in terms of prior at this speed
+			newPriorIndex = (int)posterior.millisToVectorUnits(posterior.offset - prior.offset) + distanceMoved;//i.e. where post[0] goes to in terms of prior at this speed
 			int postIndex = 0;//index of posterior that will contribute
 			
 			while (postIndex < posterior.arraySize && newPriorIndex < prior.arraySize){
@@ -429,7 +429,7 @@
 			
 			for (int postIndex = 0;postIndex < posterior.arraySize;postIndex++){
 				//old posterior contributing to new prior
-				newPriorIndex = postIndex + posterior.offset - prior.offset + distanceMoved;
+				newPriorIndex = (int)round(posterior.millisToVectorUnits(posterior.offset - prior.offset)) + postIndex  + distanceMoved;
 				if (newPriorIndex >= 0 && newPriorIndex < prior.arraySize){
 					prior.addToIndex(newPriorIndex, posterior.array[postIndex]*speedContribution);
 				}
--- a/bayesianArraySrc/DynamicVector.cpp	Sun Feb 05 09:58:56 2012 +0000
+++ b/bayesianArraySrc/DynamicVector.cpp	Sun Feb 05 22:08:50 2012 +0000
@@ -278,6 +278,11 @@
 			return 0;
 }
 
+
+double DynamicVector::millisToVectorUnits(const double& millis){
+	return millis/scalar;
+}
+
 void DynamicVector::drawVector(const int& minIndex, const int& maxIndex){
 
 		
--- a/bayesianArraySrc/DynamicVector.h	Sun Feb 05 09:58:56 2012 +0000
+++ b/bayesianArraySrc/DynamicVector.h	Sun Feb 05 22:08:50 2012 +0000
@@ -49,7 +49,7 @@
 	void addGaussianShapeFromRealTime(const double& actualTime, const double& StdDev, double factor);
 		
 
-		
+	
 	void addTriangularShape(double mean, double width, double factor);
 	void addToIndex(const int& index, const double& constant);
 	
@@ -58,6 +58,7 @@
 	double getIndexInRealTerms(const int& index);
 	double getRealTermsAsIndex(double value);
 	double getValueAtMillis(const double& millis);
+	double millisToVectorUnits(const double& millis);
 	
 	void printArray();
 	void zero();
--- a/src/AudioEventMatcher.cpp	Sun Feb 05 09:58:56 2012 +0000
+++ b/src/AudioEventMatcher.cpp	Sun Feb 05 22:08:50 2012 +0000
@@ -14,6 +14,11 @@
 
 AudioEventMatcher::AudioEventMatcher(){
 
+	
+	pitchLikelihoodToNoise = 0.4;//more noise
+	onsetLikelihoodToNoise = 0.3;
+	onsetLikelihoodWidth = 20;//in ms
+	
 	setArraySizes();
 	
 	usingRealTime = false;
@@ -21,9 +26,10 @@
 	recentPitch = 0;
 	currentAlignmentPosition = 0;
 
-	onsetLikelihoodWidth = 20;
+
 	
 	followingLiveInput = true;
+	startedPlaying = false;
 }
 
 
@@ -56,14 +62,19 @@
 	startTime = ofGetElapsedTimeMillis();
 	
 	projectedPrior = bayesianStruct.prior;
+	startedPlaying = true;
 	//bayesianStruct.posterior.printArray();
 }
 
 
+void AudioEventMatcher::stopPlaying(){
+	startedPlaying = false;
+}
+
 void AudioEventMatcher::updatePosition(){
 	if (!followingLiveInput)
 		recordedTracks.updatePosition();
-	else
+	else if (startedPlaying)
 		recordedTracks.updatePositionToMillis(currentAlignmentPosition);
 		
 	updateBestAlignmentPosition();
@@ -228,7 +239,7 @@
 	bayesianStruct.updateBayesianDistributions(timeIn);//moves the posterior up into prior given the time interval and calculates new offsets
 
 	//start at beginning but OPTIMISE later
-	double onsetLikelihoodToNoise = 0.3;
+	
 	
 	bayesianStruct.likelihood.offset = bayesianStruct.prior.offset;
 	bayesianStruct.likelihood.zero();//set to zero
@@ -282,7 +293,7 @@
 
 	//set the lielihoods by matching the pitched note
 	
-	double pitchLikelihoodToNoise = 0.7;//more noise
+	
 	int numberOfMatches = 0;
 	bayesianStruct.likelihood.zero();//set to zero
 	
--- a/src/AudioEventMatcher.h	Sun Feb 05 09:58:56 2012 +0000
+++ b/src/AudioEventMatcher.h	Sun Feb 05 22:08:50 2012 +0000
@@ -59,6 +59,8 @@
 	double getPitchDistance(const double& pitchOne, const double& pitchTwo, const double& scale);
 	
 	void startPlaying();
+	void stopPlaying();
+	bool startedPlaying;
 	
 	bool usingRealTime;
 	double recentPitch, recentTime;
@@ -81,5 +83,7 @@
 	
 	//params
 	double onsetLikelihoodWidth;
+	double onsetLikelihoodToNoise;
+	double pitchLikelihoodToNoise;//more noise
 };
 #endif
--- a/src/RecordedMultitrackAudio.cpp	Sun Feb 05 09:58:56 2012 +0000
+++ b/src/RecordedMultitrackAudio.cpp	Sun Feb 05 22:08:50 2012 +0000
@@ -17,11 +17,17 @@
 //	const char	*bassfilename = "../../../data/sound/LiveDues/bass_upsideLive.wav";	
 //	const char	*snarefilename = "../../../data/sound/LiveDues/snare_liveDues.wav";	
 	
-	const char	*kickfilename = "../../../data/sound/DiamondMatch1/kick_bip.wav";	
-	const char	*bassfilename = "../../../data/sound/DiamondMatch1/bass_bip.wav";	
-	const char	*snarefilename = "../../../data/sound/DiamondMatch1/snare_bip.wav";	
+//	const char	*kickfilename = "../../../data/sound/DiamondMatch1/kick_bip.wav";	
+//	const char	*bassfilename = "../../../data/sound/DiamondMatch1/bass_bip.wav";	
+//	const char	*snarefilename = "../../../data/sound/DiamondMatch1/snare_bip.wav";	
 	
+//	const char	*kickfilename = "../../../data/sound/LiveIdiot2/02kick_bip.wav";	
+//	const char	*bassfilename = "../../../data/sound/LiveIdiot2/01bass_bip.wav";	
+//	const char	*snarefilename = "../../../data/sound/LiveIdiot2/03snare_bip.wav";	
 	
+	const char	*kickfilename = "../../../data/sound/UistLive1/02kick_bip.wav";	
+	const char	*bassfilename = "../../../data/sound/UistLive1/01bass_bip.wav";	
+	const char	*snarefilename = "../../../data/sound/UistLive1/03snare_bip.wav";		
 	
 	//"../../../data/sound/basicClavScale.wav";	
 	
--- a/src/testApp.cpp	Sun Feb 05 09:58:56 2012 +0000
+++ b/src/testApp.cpp	Sun Feb 05 22:08:50 2012 +0000
@@ -86,6 +86,12 @@
 			eventMatcher.startPlaying();
 			printf("TIME OUT %i\n", ofGetElapsedTimeMillis());
 		}
+		
+		if ( m.getAddress() == "/stop" ){
+			printf("stop!\n");
+			eventMatcher.stopPlaying();
+		}
+		
 	}
 }