{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 7, "minor" : 0, "revision" : 1, "architecture" : "x86", "modernui" : 1 } , "rect" : [ 653.0, 376.0, 846.0, 591.0 ], "bgcolor" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "editing_bgcolor" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 1, "gridsize" : [ 15.0, 15.0 ], "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.0, "description" : "", "digest" : "", "tags" : "", "style" : "", "subpatcher_template" : "IceCubeTray", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 561.0, 85.0, 51.0, 22.0 ], "presentation_rect" : [ 664.0, 109.0, 0.0, 0.0 ], "style" : "", "text" : "resume" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-27", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 501.0, 85.0, 43.0, 22.0 ], "presentation_rect" : [ 604.0, 109.0, 0.0, 0.0 ], "style" : "", "text" : "pause" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-28", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 622.0, 85.0, 127.0, 33.0 ], "presentation_rect" : [ 604.0, 64.0, 0.0, 0.0 ], "style" : "", "text" : "Control playback with messages" } } , { "box" : { "id" : "obj-24", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 222.0, 123.0, 347.0, 33.0 ], "style" : "", "text" : "In Max 7, connect the playlist~ object to gain~ objects (to control volume) and then to ezdac~ to output the sound" } } , { "box" : { "id" : "obj-21", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 173.0, 214.5, 85.0, 33.0 ], "style" : "", "text" : "This works for Max 6, too" } } , { "box" : { "data" : { "clips" : [ { "filename" : "jongly.aif", "filekind" : "audiofile", "loop" : 1, "content_state" : { "basictuning" : [ 440 ], "originallengthms" : [ 0.0 ], "slurtime" : [ 0.0 ], "originaltempo" : [ 120.0 ], "pitchcorrection" : [ 0 ], "play" : [ 0 ], "originallength" : [ 0.0, "ticks" ], "formantcorrection" : [ 0 ], "pitchshiftcent" : [ 0 ], "followglobaltempo" : [ 0 ], "mode" : [ "basic" ], "pitchshift" : [ 1.0 ], "speed" : [ 1.0 ], "formant" : [ 1.0 ], "timestretch" : [ 0 ], "quality" : [ "basic" ] } } ] } , "id" : "obj-12", "maxclass" : "playlist~", "numinlets" : 1, "numoutlets" : 5, "outlettype" : [ "signal", "signal", "signal", "", "dictionary" ], "patching_rect" : [ 61.0, 126.0, 150.0, 30.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-45", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 450.0, 495.0, 261.0, 33.0 ], "style" : "", "text" : "There is a matching MSP object for recording audio files called sfrecord~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-43", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 450.0, 450.0, 261.0, 33.0 ], "style" : "", "text" : "MSP has a number of other objects for audio playback, including play~ buffer~ and groove~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-41", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 295.0, 175.0, 35.0, 33.0 ], "style" : "", "text" : "On /\nOff" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-39", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 450.0, 363.0, 261.0, 60.0 ], "style" : "", "text" : "Audio files have to be AIFF, AU, WAV or Raw Data. If necessary, you can convert other formats (such as MP3) using Audacity\nhttp://audacity.sourceforge.net" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-37", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 636.0, 220.0, 50.0, 22.0 ], "style" : "", "text" : "loop $1" } } , { "box" : { "id" : "obj-35", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 636.0, 175.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-33", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 671.0, 175.0, 78.0, 33.0 ], "style" : "", "text" : "Turn looping on or off" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 363.0, 225.0, 60.0 ], "style" : "", "text" : "A pair of gain~ objects allow you to adjust stereo volume. The level of each channel is displayed with a meter~ object." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "hidden" : 1, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 189.0, 265.0, 85.0, 22.0 ], "style" : "", "text" : "loadmess 128" } } , { "box" : { "id" : "obj-16", "maxclass" : "meter~", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 30.0, 345.0, 13.0, 110.0 ], "style" : "" } } , { "box" : { "id" : "obj-7", "maxclass" : "meter~", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 127.0, 345.0, 13.0, 110.0 ], "style" : "" } } , { "box" : { "id" : "obj-19", "interpinlet" : 1, "maxclass" : "gain~", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "int" ], "parameter_enable" : 0, "patching_rect" : [ 87.0, 345.0, 21.0, 110.0 ], "style" : "" } } , { "box" : { "id" : "obj-1", "interpinlet" : 1, "maxclass" : "gain~", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "int" ], "parameter_enable" : 0, "patching_rect" : [ 61.0, 345.0, 21.0, 110.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "hidden" : 1, "id" : "obj-23", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 105.0, 465.0, 43.0, 22.0 ], "style" : "", "text" : "set $1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 120.0, 495.0, 273.0, 33.0 ], "style" : "", "text" : "This is the MSP ezdac~ object. It is an audio on / off button. You need to click it to hear audio." } } , { "box" : { "id" : "obj-20", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 295.0, 220.0, 20.0, 20.0 ], "style" : "" } } , { "box" : { "id" : "obj-18", "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 60.0, 495.0, 45.0, 45.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 561.0, 220.0, 51.0, 22.0 ], "style" : "", "text" : "resume" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-15", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 501.0, 220.0, 43.0, 22.0 ], "style" : "", "text" : "pause" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-13", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 501.0, 175.0, 127.0, 33.0 ], "style" : "", "text" : "Control playback with messages" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-11", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 340.0, 175.0, 150.0, 33.0 ], "style" : "", "text" : "Control playback with the playbar object" } } , { "box" : { "id" : "obj-9", "maxclass" : "playbar", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "int" ], "patching_rect" : [ 340.0, 220.0, 150.0, 16.0 ], "style" : "" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-8", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 120.0, 220.0, 37.0, 22.0 ], "style" : "", "text" : "open" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-6", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 3, "outlettype" : [ "signal", "signal", "bang" ], "patching_rect" : [ 120.0, 265.0, 59.0, 22.0 ], "saved_object_attributes" : { "basictuning" : 440, "followglobaltempo" : 0, "formantcorrection" : 0, "mode" : "basic", "originallength" : [ 0.0, "ticks" ], "originaltempo" : 120.0, "pitchcorrection" : 0, "quality" : "basic", "timestretch" : [ 0 ] } , "style" : "", "text" : "sfplay~ 2" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-4", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 120.0, 175.0, 172.0, 33.0 ], "style" : "", "text" : "You can also play audio files with the MSP sfplay~ object." } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 315.0, 51.0 ], "style" : "", "text" : "Playing Audio\nWilliam J Turkel\nhttp://williamjturkel.net/code/#exhibit" } } , { "box" : { "angle" : 270.0, "grad1" : [ 0.011765, 0.396078, 0.752941, 0.26 ], "grad2" : [ 0.011765, 0.396078, 0.752941, 0.25 ], "id" : "obj-30", "maxclass" : "panel", "mode" : 1, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 100.0, 167.0, 678.0, 135.0 ], "proportion" : 0.39, "style" : "" } } , { "box" : { "angle" : 0.0, "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "mode" : 0, "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 76.0, 810.0, 495.0 ], "proportion" : 0.39, "rounded" : 20, "style" : "" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 1, "midpoints" : [ 70.5, 469.0, 50.0, 469.0, 50.0, 331.0, 37.0, 331.0 ], "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-19", 0 ], "disabled" : 0, "hidden" : 1, "midpoints" : [ 73.5, 456.0, 114.0, 456.0, 114.0, 327.0, 96.5, 327.0 ], "source" : [ "obj-1", 1 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-12", 0 ] } } , { "patchline" : { "destination" : [ "obj-19", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-12", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 1, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 510.5, 251.0, 129.5, 251.0 ], "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 570.5, 251.0, 129.5, 251.0 ], "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-19", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 1, "source" : [ "obj-19", 1 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 1, "midpoints" : [ 96.5, 457.0, 120.0, 457.0, 120.0, 327.0, 134.0, 327.0 ], "source" : [ "obj-19", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 304.5, 250.0, 129.5, 250.0 ], "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 1, "midpoints" : [ 114.5, 483.0, 102.0, 483.0, 102.0, 483.0, 55.0, 483.0, 55.0, 330.0, 70.5, 330.0 ], "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 570.5, 116.0, 70.5, 116.0 ], "source" : [ "obj-25", 0 ] } } , { "patchline" : { "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 510.5, 115.0, 70.5, 115.0 ], "source" : [ "obj-27", 0 ] } } , { "patchline" : { "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 645.5, 252.0, 261.0, 252.0, 261.0, 251.0, 129.5, 251.0 ], "source" : [ "obj-37", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] } } , { "patchline" : { "destination" : [ "obj-19", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 1 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-8", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 349.5, 250.0, 129.5, 250.0 ], "source" : [ "obj-9", 0 ] } } ], "dependency_cache" : [ ], "embedsnapshot" : 0, "default_bgcolor" : [ 0.207843, 0.215686, 0.278431, 1.0 ], "color" : [ 0.901961, 0.901961, 0.901961, 1.0 ], "elementcolor" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "accentcolor" : [ 0.552941, 0.588235, 0.85098, 1.0 ], "selectioncolor" : [ 0.552941, 0.588235, 0.85098, 1.0 ], "textcolor" : [ 0.090196, 0.07451, 0.07451, 1.0 ], "textcolor_inverse" : [ 0.721569, 0.737255, 0.85098, 1.0 ], "patchlinecolor" : [ 0.207843, 0.215686, 0.278431, 0.9 ], "bgfillcolor_type" : "gradient", "bgfillcolor_color1" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "bgfillcolor_color2" : [ 0.376471, 0.407843, 0.619608, 1.0 ], "bgfillcolor_color" : [ 0.290196, 0.309804, 0.301961, 1.0 ], "bgfillcolor_angle" : 270.0, "bgfillcolor_proportion" : 0.39 } }