ampf   mmmmmeta      ptchëM  {"patcher":{"fileversion":1,"appversion":{"major":8,"minor":3,"revision":3,"architecture":"x64","modernui":1},"classnamespace":"box","rect":[34,87,853,722],"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,"bubblepoint":0.18,"bubbleside":0,"bubbleusescolors":1,"fontsize":11,"id":"obj-7","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[654,324,131,65],"suppressinlet":1,"text":"The randomness is now applied as a deviation from the incoming value.","textjustification":0}},{"box":{"bubble":1,"bubbleusescolors":1,"fontsize":11,"id":"obj-5","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[249,396.5,116,37],"suppressinlet":1,"text":"Instead of -1 to 1, go from 0 to 2.","textjustification":0}},{"box":{"bubble":1,"bubblepoint":0.1,"bubbleside":0,"bubbleusescolors":1,"fontsize":11,"id":"obj-17","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[680,630,141,65],"suppressinlet":1,"text":"Notice how we moved out the velocity indicators for cleaner encapsulation.","textjustification":0}},{"box":{"id":"obj-16","maxclass":"newobj","numinlets":1,"numoutlets":2,"outlettype":["int","int"],"patching_rect":[654,48,60,20],"text":"unpack 0 0"}},{"box":{"id":"obj-11","maxclass":"newobj","numinlets":1,"numoutlets":2,"outlettype":["int","int"],"patching_rect":[645,600,60,20],"text":"unpack 0 0"}},{"box":{"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"elementcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"id":"obj-13","knobcolor":[1,0.694117647058824,0,1],"knobshape":5,"maxclass":"slider","numinlets":1,"numoutlets":1,"outlettype":[""],"parameter_enable":0,"patching_rect":[718,48,46,10],"presentation":1,"presentation_rect":[51,106,30,47],"saved_attribute_attributes":{"bgcolor":{"expression":"themecolor.live_lcd_bg"},"elementcolor":{"expression":"themecolor.live_lcd_bg"},"knobcolor":{"expression":"themecolor.live_lcd_control_fg"}}}},{"box":{"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"elementcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"id":"obj-20","knobcolor":[1,0.694117647058824,0,1],"knobshape":5,"maxclass":"slider","numinlets":1,"numoutlets":1,"outlettype":[""],"parameter_enable":0,"patching_rect":[711,600,46,10],"presentation":1,"presentation_rect":[85,106,30,47],"saved_attribute_attributes":{"bgcolor":{"expression":"themecolor.live_lcd_bg"},"elementcolor":{"expression":"themecolor.live_lcd_bg"},"knobcolor":{"expression":"themecolor.live_lcd_control_fg"}}}},{"box":{"id":"obj-18","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["float"],"patching_rect":[213,405,30,20],"text":"+ 1."}},{"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-9","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[356,659,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":"3/3","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[1]"}},{"box":{"bubble":1,"bubbleside":0,"fontsize":11,"id":"obj-10","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[70,606,298,65],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Select all objects above this comment, go to the Edit menu and choose Encapsulate to create a subpatcher. After the \"p\", type a descriptive name, like RandomizeVelocity.","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],"fontsize":10,"id":"obj-6","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[408,263,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"},"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","parameter_mmax":1,"parameter_shortname":"live.text","parameter_type":2}},"text":"1/3","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text"}},{"box":{"bubble":1,"bubblepoint":0.39,"bubbleside":2,"fontsize":11,"id":"obj-2","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[235,237,185,52],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"Lock the patch, then double-click this subpatch to see its contents.","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"bubble":1,"bubbleusescolors":1,"fontsize":11,"id":"obj-3","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[239,167.5,177,37],"suppressinlet":1,"text":"First trigger the random value, then pass on the number.","textjustification":0}},{"box":{"bubble":1,"bubbleusescolors":1,"fontsize":11,"id":"obj-84","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[253,352,160,37],"suppressinlet":1,"text":"Scale the random velocity offset with the dial value.","textjustification":0}},{"box":{"color":[1,0.694117647058824,0,1],"id":"obj-83","maxclass":"newobj","numinlets":1,"numoutlets":1,"outlettype":["float"],"patcher":{"fileversion":1,"appversion":{"major":8,"minor":3,"revision":3,"architecture":"x64","modernui":1},"classnamespace":"box","rect":[34,87,741,421],"bglocked":0,"openinpresentation":0,"default_fontsize":12,"default_fontface":0,"default_fontname":"Arial","gridonopen":1,"gridsize":[15,15],"gridsnaponopen":1,"objectsnaponopen":1,"statusbarvisible":2,"toolbarvisible":1,"lefttoolbarpinned":0,"toptoolbarpinned":0,"righttoolbarpinned":0,"bottomtoolbarpinned":0,"toolbars_unpinned_last_save":0,"tallnewobj":0,"boxanimatetime":200,"enablehscroll":1,"enablevscroll":1,"devicewidth":0,"description":"","digest":"","tags":"","style":"","subpatcher_template":"","assistshowspatchername":0,"boxes":[{"box":{"bubble":1,"bubbleside":2,"bubbleusescolors":1,"fontsize":11,"id":"obj-4","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[433,260,194,52],"suppressinlet":1,"text":"For more about floating point values, see Simple Math in the Max tutorials.","textjustification":0}},{"box":{"bubble":1,"bubbleusescolors":1,"fontsize":11,"id":"obj-3","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[153,123,178,50],"suppressinlet":1,"text":"By default, subpatchers use the same font as when making patches in Max outside of Live.","textjustification":0}},{"box":{"bubble":1,"bubbleusescolors":1,"fontsize":11,"id":"obj-2","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[117,260,217,50],"suppressinlet":1,"text":"Notice the dot after 1000. This means we are performing a floating point operation, enabling fractional values.","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],"fontsize":10,"id":"obj-9","ignoreclick":1,"maxclass":"live.text","mode":0,"numinlets":1,"numoutlets":2,"outlettype":["",""],"parameter_enable":1,"parameter_mappable":0,"patching_rect":[333,86,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"},"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":"2/3","textcolor":[1,0.694117647058824,0,1],"textoffcolor":[1,0.694117647058824,0,1],"varname":"live.text[1]"}},{"box":{"bubble":1,"fontsize":11,"id":"obj-1","linecount":3,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[104,49,243,50],"saved_attribute_attributes":{"textcolor":{"expression":"themecolor.live_meter_bg"}},"suppressinlet":1,"text":"In the Inspector of the inlet or outlet object, read the value of the Comment attribute. It describes what this patch does.","textcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"textjustification":0}},{"box":{"border":4,"evaluatehref":1,"fontface":0,"fontname":"Arial","fontsize":12,"id":"obj-19","linkbold":1,"linkcolor":[0,0,0,1],"maxclass":"markup","numinlets":1,"numoutlets":1,"outlettype":[""],"patching_rect":[433,314,208,19],"saved_attribute_attributes":{"linkcolor":{"expression":"themecolor.live_control_fg"},"textcolor":{"expression":"themecolor.live_control_fg"}},"text":"<link href=\"; max showdoc 00_maxindex.maxtut.xml\">Have a look at the Max tutorials.</link>"}},{"box":{"id":"obj-70","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["int"],"patching_rect":[67,206,43,22],"text":"- 1000"}},{"box":{"id":"obj-69","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["float"],"patching_rect":[67,275,45,22],"text":"/ 1000."}},{"box":{"id":"obj-55","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["int"],"patching_rect":[67,137,79,22],"text":"random 2000"}},{"box":{"comment":"(bang) generate a random number between -1 and 1","id":"obj-81","index":1,"maxclass":"inlet","numinlets":0,"numoutlets":1,"outlettype":["bang"],"patching_rect":[67,61,30,30]}},{"box":{"comment":"(float) a random number between -1 and 1","id":"obj-82","index":1,"maxclass":"outlet","numinlets":1,"numoutlets":0,"patching_rect":[67,344,30,30]}}],"lines":[{"patchline":{"destination":["obj-70",0],"source":["obj-55",0]}},{"patchline":{"destination":["obj-82",0],"source":["obj-69",0]}},{"patchline":{"destination":["obj-69",0],"source":["obj-70",0]}},{"patchline":{"destination":["obj-55",0],"source":["obj-81",0]}}],"saved_attribute_attributes":{"default_plcolor":{"expression":""}}},"patching_rect":[213,297,107,20],"saved_attribute_attributes":{"default_plcolor":{"expression":""}},"saved_object_attributes":{"description":"","digest":"","editing_bgcolor":[0.56078431372549,0.56078431372549,0.56078431372549,1],"globalpatchername":"","locked_bgcolor":[0.56078431372549,0.56078431372549,0.56078431372549,1],"tags":""},"text":"p RandomScale-1to1"}},{"box":{"bubble":1,"bubbleusescolors":1,"fontsize":11,"id":"obj-80","linecount":2,"maxclass":"live.comment","numinlets":0,"numoutlets":0,"patching_rect":[249,442.5,113,37],"suppressinlet":1,"text":"Multiply this with the note velocity.","textjustification":0}},{"box":{"id":"obj-77","maxclass":"newobj","numinlets":3,"numoutlets":1,"outlettype":[""],"patching_rect":[157,481,54,20],"text":"clip 1 127"}},{"box":{"id":"obj-65","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["float"],"patching_rect":[213,359,30,20],"text":"* 0."}},{"box":{"id":"obj-64","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["float"],"patching_rect":[157,451,75,20],"text":"* 1."}},{"box":{"id":"obj-8","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":["float"],"patching_rect":[654,293,34,20],"text":"/ 100."}},{"box":{"id":"obj-4","maxclass":"newobj","numinlets":2,"numoutlets":2,"outlettype":["",""],"patching_rect":[111,146,65,20],"text":"routepass 0"}},{"box":{"id":"obj-1","maxclass":"newobj","numinlets":7,"numoutlets":2,"outlettype":["int",""],"patching_rect":[557,600,82,20],"text":"midiformat"}},{"box":{"id":"obj-32","maxclass":"newobj","numinlets":2,"numoutlets":1,"outlettype":[""],"patching_rect":[70,543,60,20],"text":"pack 0 0"}},{"box":{"id":"obj-31","maxclass":"newobj","numinlets":1,"numoutlets":2,"outlettype":["int","bang"],"patching_rect":[157,176,75,20],"text":"t i b"}},{"box":{"id":"obj-30","maxclass":"newobj","numinlets":1,"numoutlets":2,"outlettype":["int","int"],"patching_rect":[70,115,60,20],"text":"unpack 0 0"}},{"box":{"id":"obj-29","maxclass":"newobj","numinlets":1,"numoutlets":8,"outlettype":["","","","int","int","","int",""],"patching_rect":[557,48,92,20],"text":"midiparse"}},{"box":{"activedialcolor":[0.427451,0.843137,1,1],"activefgdialcolor":[0.156863,0.156863,0.156863,1],"activeneedlecolor":[0.156863,0.156863,0.156863,1],"bordercolor":[0.352941,0.352941,0.352941,1],"fgdialcolor":[0.411765,0.411765,0.411765,1],"focusbordercolor":[0.313725,0.313725,0.313725,1],"fontname":"Ableton Sans","fontsize":10,"id":"obj-12","maxclass":"live.dial","needlecolor":[0.411765,0.411765,0.411765,1],"numinlets":1,"numoutlets":2,"outlettype":["","float"],"panelcolor":[0.647059,0.647059,0.647059,1],"parameter_enable":1,"patching_rect":[654,237,68,46],"presentation":1,"presentation_rect":[10,27,146,46],"saved_attribute_attributes":{"activedialcolor":{"expression":""},"activefgdialcolor":{"expression":""},"activeneedlecolor":{"expression":""},"bordercolor":{"expression":""},"fgdialcolor":{"expression":""},"focusbordercolor":{"expression":""},"needlecolor":{"expression":""},"panelcolor":{"expression":""},"tricolor":{"expression":""},"valueof":{"parameter_initial":[0],"parameter_initial_enable":1,"parameter_longname":"Randomness","parameter_mmax":100,"parameter_modmode":1,"parameter_order":1,"parameter_shortname":"Randomness","parameter_type":0,"parameter_unitstyle":5}},"tricolor":[0.156863,0.156863,0.156863,1],"varname":"live.dial"}},{"box":{"id":"obj-27","maxclass":"newobj","numinlets":1,"numoutlets":0,"patching_rect":[557,636,47,20],"text":"midiout"}},{"box":{"id":"obj-28","maxclass":"newobj","numinlets":1,"numoutlets":1,"outlettype":["int"],"patching_rect":[557,14,40,20],"text":"midiin"}},{"box":{"angle":270,"bgcolor":[0.098039215686275,0.098039215686275,0.098039215686275,1],"id":"obj-21","maxclass":"panel","mode":0,"numinlets":1,"numoutlets":0,"patching_rect":[645,636,20,20],"presentation":1,"presentation_rect":[47,102,72,55],"proportion":0.39,"saved_attribute_attributes":{"bgfillcolor":{"expression":"themecolor.live_lcd_bg"}}}},{"box":{"angle":270,"background":1,"bgcolor":[0.831372549019608,0.831372549019608,0.831372549019608,0],"border":1,"bordercolor":[0.313725490196078,0.313725490196078,0.313725490196078,1],"id":"obj-53","maxclass":"panel","mode":0,"numinlets":1,"numoutlets":0,"patching_rect":[48,75,420,529],"proportion":0.39,"saved_attribute_attributes":{"bgfillcolor":{"expression":""},"bordercolor":{"expression":"themecolor.live_lcd_frame"}}}}],"lines":[{"patchline":{"destination":["obj-27",0],"source":["obj-1",0]}},{"patchline":{"destination":["obj-20",0],"source":["obj-11",1]}},{"patchline":{"destination":["obj-8",0],"source":["obj-12",0]}},{"patchline":{"destination":["obj-13",0],"source":["obj-16",1]}},{"patchline":{"destination":["obj-64",1],"source":["obj-18",0]}},{"patchline":{"destination":["obj-29",0],"source":["obj-28",0]}},{"patchline":{"destination":["obj-1",6],"source":["obj-29",6]}},{"patchline":{"destination":["obj-1",5],"source":["obj-29",5]}},{"patchline":{"destination":["obj-1",4],"source":["obj-29",4]}},{"patchline":{"destination":["obj-1",3],"source":["obj-29",3]}},{"patchline":{"destination":["obj-1",2],"source":["obj-29",2]}},{"patchline":{"destination":["obj-1",1],"source":["obj-29",1]}},{"patchline":{"destination":["obj-16",0],"order":0,"source":["obj-29",0]}},{"patchline":{"destination":["obj-30",0],"order":1,"source":["obj-29",0]}},{"patchline":{"destination":["obj-32",0],"source":["obj-30",0]}},{"patchline":{"destination":["obj-4",0],"source":["obj-30",1]}},{"patchline":{"destination":["obj-64",0],"source":["obj-31",0]}},{"patchline":{"destination":["obj-83",0],"source":["obj-31",1]}},{"patchline":{"destination":["obj-1",0],"order":1,"source":["obj-32",0]}},{"patchline":{"destination":["obj-11",0],"order":0,"source":["obj-32",0]}},{"patchline":{"destination":["obj-31",0],"source":["obj-4",1]}},{"patchline":{"destination":["obj-32",1],"source":["obj-4",0]}},{"patchline":{"destination":["obj-77",0],"source":["obj-64",0]}},{"patchline":{"destination":["obj-18",0],"source":["obj-65",0]}},{"patchline":{"destination":["obj-32",1],"source":["obj-77",0]}},{"patchline":{"destination":["obj-65",1],"source":["obj-8",0]}},{"patchline":{"destination":["obj-65",0],"source":["obj-83",0]}}],"parameters":{"obj-12":["Randomness","Randomness",1],"obj-6":["live.text","live.text",0],"obj-83::obj-9":["live.text[3]","live.text",0],"obj-9":["live.text[2]","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":""}}}}