ampf   mmmmmeta      ptchÍM  {"patcher":{"fileversion":1,"appversion":{"major":8,"minor":3,"revision":3,"architecture":"x64","modernui":1},"classnamespace":"box","rect":[181,94,1055,628],"openrect":[0,0,0,169],"bglocked":0,"openinpresentation":1,"default_fontsize":10,"default_fontface":0,"default_fontname":"Arial Bold","gridonopen":1,"gridsize":[8,8],"gridsnaponopen":1,"objectsnaponopen":1,"statusbarvisible":2,"toolbarvisible":1,"lefttoolbarpinned":0,"toptoolbarpinned":0,"righttoolbarpinned":0,"bottomtoolbarpinned":0,"toolbars_unpinned_last_save":0,"tallnewobj":0,"boxanimatetime":500,"enablehscroll":1,"enablevscroll":1,"devicewidth":0,"description":"","digest":"","tags":"","style":"","subpatcher_template":"","assistshowspatchername":0,"boxes":[{"box":{"bubble":1,"bubbleside":3,"bubbleusescolors":1,"fontsize":11,"id":"obj-32","maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[217,329,188,24],"suppressinlet":1,"text":"Join back with velocity.","textjustification":0}},{"box":{"bubble":1,"bubbleside":3,"bubbleusescolors":1,"fontsize":11,"id":"obj-30","maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[208,253,197,24],"suppressinlet":1,"text":"Split notes into velocity and pitch.","textjustification":0}},{"box":{"bubble":1,"bubbleside":3,"bubbleusescolors":1,"fontsize":11,"id":"obj-25","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[228,81,189,37],"suppressinlet":1,"text":"Multiply the octave value with 12 to get the offset in semitones.","textjustification":0}},{"box":{"activebgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activebgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activetextcolor":[1,0.694117647058824,0,1],"activetextoncolor":[1,0.694117647058824,0,1],"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bordercolor":[0,0,0,1],"fontsize":10,"id":"obj-17","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[969,569,24,24],"saved_attribute_attributes":{"activebgcolor":{"expression":"themecolor.live_lcd_bg"},"activebgoncolor":{"expression":"themecolor.live_lcd_bg"},"activetextcolor":{"expression":"themecolor.live_lcd_control_fg"},"activetextoncolor":{"expression":"themecolor.live_lcd_control_fg"},"bgcolor":{"expression":"themecolor.live_lcd_bg"},"bgoncolor":{"expression":"themecolor.live_lcd_bg"},"bordercolor":{"expression":"themecolor.live_control_text_selection"},"textcolor":{"expression":"themecolor.live_lcd_control_fg"},"textoffcolor":{"expression":"themecolor.live_lcd_control_fg"},"valueof":{"parameter_enum":["val1","val2"],"parameter_invisible":2,"parameter_longname":"live.text[7]","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"7/7","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[4]"}},{"box":{"bubble":1,"bubbleside":3,"bubbletextmargin":4,"fontface":1,"fontsize":11,"id":"obj-18","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[629,533,366,48],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Clear the Max Console with the X button. With the clip playing, match the note on events to the note off events (second value is 0). Compare the outputs for the \"Isolated\" clip and the \"No issue\" clip.","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"bubble":1,"bubbleside":2,"bubbleusescolors":1,"fontsize":11,"id":"obj-19","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[591,11,288,65],"suppressinlet":1,"text":"The order of events is from right to left. When order matters, make sure to use [t ] objects so the position of objects doesn't change how the patch behaves.","textjustification":0}},{"box":{"activebgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activebgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activetextcolor":[1,0.694117647058824,0,1],"activetextoncolor":[1,0.694117647058824,0,1],"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bordercolor":[0,0,0,1],"fontsize":10,"id":"obj-15","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[470,482,24,24],"saved_attribute_attributes":{"activebgcolor":{"expression":"themecolor.live_lcd_bg"},"activebgoncolor":{"expression":"themecolor.live_lcd_bg"},"activetextcolor":{"expression":"themecolor.live_lcd_control_fg"},"activetextoncolor":{"expression":"themecolor.live_lcd_control_fg"},"bgcolor":{"expression":"themecolor.live_lcd_bg"},"bgoncolor":{"expression":"themecolor.live_lcd_bg"},"bordercolor":{"expression":"themecolor.live_control_text_selection"},"textcolor":{"expression":"themecolor.live_lcd_control_fg"},"textoffcolor":{"expression":"themecolor.live_lcd_control_fg"},"valueof":{"parameter_enum":["val1","val2"],"parameter_invisible":2,"parameter_longname":"live.text[8]","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"2/7","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[7]"}},{"box":{"bubble":1,"bubbleside":0,"bubbletextmargin":4,"fontface":1,"fontsize":11,"id":"obj-16","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[358,444,124,50],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Connect a [print out] to the outlet of [pack].","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"activebgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activebgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activetextcolor":[1,0.694117647058824,0,1],"activetextoncolor":[1,0.694117647058824,0,1],"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bordercolor":[0,0,0,1],"fontsize":10,"id":"obj-29","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[999,333,24,24],"saved_attribute_attributes":{"activebgcolor":{"expression":"themecolor.live_lcd_bg"},"activebgoncolor":{"expression":"themecolor.live_lcd_bg"},"activetextcolor":{"expression":"themecolor.live_lcd_control_fg"},"activetextoncolor":{"expression":"themecolor.live_lcd_control_fg"},"bgcolor":{"expression":"themecolor.live_lcd_bg"},"bgoncolor":{"expression":"themecolor.live_lcd_bg"},"bordercolor":{"expression":"themecolor.live_control_text_selection"},"textcolor":{"expression":"themecolor.live_lcd_control_fg"},"textoffcolor":{"expression":"themecolor.live_lcd_control_fg"},"valueof":{"parameter_enum":["val1","val2"],"parameter_invisible":2,"parameter_longname":"live.text[2]","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"6/7","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[6]"}},{"box":{"bubble":1,"bubbletextmargin":4,"fontface":1,"fontsize":11,"id":"obj-28","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[697,297,314,48],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Use [t l l] objects to ensure that the prints happen in the correct order: first the print, using the right outlet of [t l l], then continuing to the patch, using the left outlet.","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"activebgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activebgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activetextcolor":[1,0.694117647058824,0,1],"activetextoncolor":[1,0.694117647058824,0,1],"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bordercolor":[0,0,0,1],"fontsize":10,"id":"obj-26","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[911,126,24,24],"saved_attribute_attributes":{"activebgcolor":{"expression":"themecolor.live_lcd_bg"},"activebgoncolor":{"expression":"themecolor.live_lcd_bg"},"activetextcolor":{"expression":"themecolor.live_lcd_control_fg"},"activetextoncolor":{"expression":"themecolor.live_lcd_control_fg"},"bgcolor":{"expression":"themecolor.live_lcd_bg"},"bgoncolor":{"expression":"themecolor.live_lcd_bg"},"bordercolor":{"expression":"themecolor.live_control_text_selection"},"textcolor":{"expression":"themecolor.live_lcd_control_fg"},"textoffcolor":{"expression":"themecolor.live_lcd_control_fg"},"valueof":{"parameter_enum":["val1","val2"],"parameter_invisible":2,"parameter_longname":"live.text[1]","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"5/7","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[5]"}},{"box":{"bubble":1,"bubblepoint":0.14,"bubbleside":2,"bubbletextmargin":4,"fontface":1,"fontsize":11,"id":"obj-27","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[582,89,341,63],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Notice that with [print in] positioned to the left of [midiparse], the \"out\" prints in the Max Console happen before the \"in\" prints. After moving [print in] to the right of [midiparse], the order is correct.","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"id":"obj-24","maxclass":"comment","numinlets":1,"numoutlets":0,"patching_rect":[0,602,156,18],"presentation":1,"presentation_rect":[0,602,156,18]}},{"box":{"activebgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activebgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activetextcolor":[1,0.694117647058824,0,1],"activetextoncolor":[1,0.694117647058824,0,1],"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bordercolor":[0,0,0,1],"fontsize":10,"id":"obj-13","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[1006,443,24,24],"saved_attribute_attributes":{"activebgcolor":{"expression":"themecolor.live_lcd_bg"},"activebgoncolor":{"expression":"themecolor.live_lcd_bg"},"activetextcolor":{"expression":"themecolor.live_lcd_control_fg"},"activetextoncolor":{"expression":"themecolor.live_lcd_control_fg"},"bgcolor":{"expression":"themecolor.live_lcd_bg"},"bgoncolor":{"expression":"themecolor.live_lcd_bg"},"bordercolor":{"expression":"themecolor.live_control_text_selection"},"textcolor":{"expression":"themecolor.live_lcd_control_fg"},"textoffcolor":{"expression":"themecolor.live_lcd_control_fg"},"valueof":{"parameter_enum":["val1","val2"],"parameter_invisible":2,"parameter_longname":"live.text[6]","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"3/7","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[2]"}},{"box":{"bubble":1,"bubbleside":3,"bubbletextmargin":4,"fontface":1,"fontsize":11,"id":"obj-14","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[819,407,215,48],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Open the Max Console (Cmd/Ctrl+M). Play the clip called \"Isolate\" and watch the events that are printed.","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"activebgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activebgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activetextcolor":[1,0.694117647058824,0,1],"activetextoncolor":[1,0.694117647058824,0,1],"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bordercolor":[0,0,0,1],"fontsize":10,"id":"obj-7","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[475,205,24,24],"saved_attribute_attributes":{"activebgcolor":{"expression":"themecolor.live_lcd_bg"},"activebgoncolor":{"expression":"themecolor.live_lcd_bg"},"activetextcolor":{"expression":"themecolor.live_lcd_control_fg"},"activetextoncolor":{"expression":"themecolor.live_lcd_control_fg"},"bgcolor":{"expression":"themecolor.live_lcd_bg"},"bgoncolor":{"expression":"themecolor.live_lcd_bg"},"bordercolor":{"expression":"themecolor.live_control_text_selection"},"textcolor":{"expression":"themecolor.live_lcd_control_fg"},"textoffcolor":{"expression":"themecolor.live_lcd_control_fg"},"valueof":{"parameter_enum":["val1","val2"],"parameter_invisible":2,"parameter_longname":"live.text[5]","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"1/7","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[1]"}},{"box":{"bubble":1,"bubbleside":3,"bubbletextmargin":4,"fontface":1,"fontsize":11,"id":"obj-8","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[204,182,297,35],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Now that the patch is cleaner, let's start tracing events. Connect a [print in] to the left outlet of [midiparse]. ","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"activebgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activebgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"activetextcolor":[1,0.694117647058824,0,1],"activetextoncolor":[1,0.694117647058824,0,1],"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bgoncolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"bordercolor":[0,0,0,1],"fontsize":10,"id":"obj-22","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[386,399,24,24],"saved_attribute_attributes":{"activebgcolor":{"expression":"themecolor.live_lcd_bg"},"activebgoncolor":{"expression":"themecolor.live_lcd_bg"},"activetextcolor":{"expression":"themecolor.live_lcd_control_fg"},"activetextoncolor":{"expression":"themecolor.live_lcd_control_fg"},"bgcolor":{"expression":"themecolor.live_lcd_bg"},"bgoncolor":{"expression":"themecolor.live_lcd_bg"},"bordercolor":{"expression":"themecolor.live_control_text_selection"},"textcolor":{"expression":"themecolor.live_lcd_control_fg"},"textoffcolor":{"expression":"themecolor.live_lcd_control_fg"},"valueof":{"parameter_enum":["val1","val2"],"parameter_invisible":2,"parameter_longname":"live.text[3]","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"4/7","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[3]"}},{"box":{"bubble":1,"bubblepoint":0.15,"bubbleside":3,"bubbletextmargin":4,"fontface":1,"fontsize":11,"id":"obj-20","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[45,363,367,48],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Notice that there is an unused inlet in [pack]. Since [midiformat]'s left inlet expects only two values, we can remove the third argument from [pack]. The \"out\" prints are cleaner now, but the bug is not fixed.","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"id":"obj-11","maxclass":"newobj","numinlets":3,"numoutlets":1,"outlettype":[""],"patching_rect":[413,331,118,20],"text":"pack 0 0 0"}},{"box":{"id":"obj-10","maxclass":"newobj","numinlets":1,"numoutlets":2,"outlettype":["int","int"],"patching_rect":[413,255,69,20],"text":"unpack 0 0"}},{"box":{"id":"obj-9","maxclass":"newobj","numinlets":7,"numoutlets":2,"outlettype":["int",""],"patching_rect":[510,381,167,20],"text":"midiformat"}},{"box":{"id":"obj-6","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["int"],"patching_rect":[413,301,30,20],"text":"+"}},{"box":{"id":"obj-5","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["int"],"patching_rect":[424,89,30,20],"text":"* 12"}},{"box":{"id":"obj-4","maxclass":"live.dial","numinlets":1,"numoutlets":2,"outlettype":["","float"],"parameter_enable":1,"patching_rect":[424,27,36,54],"presentation":1,"presentation_rect":[64,53,36,54],"saved_attribute_attributes":{"valueof":{"parameter_longname":"Octave","parameter_mmax":4,"parameter_mmin":-4,"parameter_shortname":"Octave","parameter_type":1,"parameter_unitstyle":0}},"triangle":1,"varname":"live.dial"}},{"box":{"id":"obj-3","maxclass":"newobj","numinlets":1,"numoutlets":8,"outlettype":["","","","int","int","","int",""],"patching_rect":[510,189,192,20],"text":"midiparse"}},{"box":{"id":"obj-2","maxclass":"newobj","numinlets":1,"numoutlets":0,"patching_rect":[510,417,47,20],"text":"midiout"}},{"box":{"id":"obj-1","maxclass":"newobj","numinlets":1,"numoutlets":1,"outlettype":["int"],"patching_rect":[510,155,40,20],"text":"midiin"}}],"lines":[{"patchline":{"destination":["obj-3",0],"source":["obj-1",0]}},{"patchline":{"destination":["obj-11",1],"source":["obj-10",1]}},{"patchline":{"destination":["obj-6",0],"source":["obj-10",0]}},{"patchline":{"destination":["obj-9",0],"source":["obj-11",0]}},{"patchline":{"destination":["obj-10",0],"source":["obj-3",0]}},{"patchline":{"destination":["obj-9",6],"source":["obj-3",6]}},{"patchline":{"destination":["obj-9",5],"source":["obj-3",5]}},{"patchline":{"destination":["obj-9",4],"source":["obj-3",4]}},{"patchline":{"destination":["obj-9",3],"source":["obj-3",3]}},{"patchline":{"destination":["obj-9",2],"source":["obj-3",2]}},{"patchline":{"destination":["obj-9",1],"source":["obj-3",1]}},{"patchline":{"destination":["obj-5",0],"source":["obj-4",0]}},{"patchline":{"destination":["obj-6",1],"source":["obj-5",0]}},{"patchline":{"destination":["obj-11",0],"source":["obj-6",0]}},{"patchline":{"destination":["obj-2",0],"source":["obj-9",0]}}],"parameters":{"obj-13":["live.text[6]","live.text",0],"obj-15":["live.text[8]","live.text",0],"obj-17":["live.text[7]","live.text",0],"obj-22":["live.text[3]","live.text",0],"obj-26":["live.text[1]","live.text",0],"obj-29":["live.text[2]","live.text",0],"obj-4":["Octave","Octave",0],"obj-7":["live.text[5]","live.text",0],"parameterbanks":{"0":{"index":0,"name":"","parameters":["-","-","-","-","-","-","-","-"]}},"inherited_shortname":1},"dependency_cache":[],"latency":0,"is_mpe":0,"minimum_live_version":"","minimum_max_version":"","platform_compatibility":0,"project":{"version":1,"creationdate":3590052786,"modificationdate":3590052786,"viewrect":[0,0,300,500],"autoorganize":0,"hideprojectwindow":1,"showdependencies":1,"autolocalize":0,"contents":{"patchers":{}},"layout":{},"searchpath":{},"detailsvisible":0,"amxdtype":1835887981,"readonly":0,"devpathtype":0,"devpath":".","sortmode":0,"viewmode":0},"autosave":0,"saved_attribute_attributes":{"default_plcolor":{"expression":""}}}}