{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 902.0, 172.0, 838.0, 588.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-45", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 495.0, 495.0, 261.0, 33.0 ], "text" : "There is a matching MSP object for recording audio files called sfrecord~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-43", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 495.0, 450.0, 261.0, 33.0 ], "text" : "MSP has a number of other objects for audio playback, including play~ buffer~ and groove~" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-41", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 243.0, 90.0, 35.0, 33.0 ], "text" : "On /\nOff" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-39", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 495.0, 363.0, 261.0, 60.0 ], "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" : [ 495.0, 256.0, 50.0, 18.0 ], "text" : "loop $1" } } , { "box" : { "id" : "obj-35", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 495.0, 225.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-33", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 495.0, 195.0, 150.0, 20.0 ], "text" : "Turn looping on or off" } } , { "box" : { "fontname" : "Arial", "fontsize" : 13.0, "id" : "obj-29", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 243.0, 284.0, 91.0, 21.0 ], "text" : "prepend open" } } , { "box" : { "autopopulate" : 1, "fontname" : "Arial", "fontsize" : 13.0, "id" : "obj-30", "items" : [ "anton.aif", ",", "cello-f2.aif", ",", "cherokee.aif", ",", "drumLoop.aif", ",", "jongly.aif", ",", "rainstick.aif", ",", "sho0630.aif", ",", "vibes-a1.aif" ], "maxclass" : "umenu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, "patching_rect" : [ 243.0, 253.0, 100.0, 21.0 ], "prefix" : "Macintosh HD:/Applications/Max6/examples/sounds/" } } , { "box" : { "fontname" : "Arial", "fontsize" : 13.0, "id" : "obj-31", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 243.0, 225.0, 221.0, 21.0 ], "text" : "loadmess prefix ./examples/sounds/" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-28", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 243.0, 195.0, 150.0, 20.0 ], "text" : "Load sample sounds" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-26", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 165.0, 363.0, 225.0, 60.0 ], "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" : [ 105.0, 300.0, 85.0, 20.0 ], "text" : "loadmess 128" } } , { "box" : { "bordercolor" : [ 0.333333, 0.333333, 0.333333, 1.0 ], "id" : "obj-16", "maxclass" : "meter~", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 30.0, 345.0, 13.0, 110.0 ] } } , { "box" : { "bordercolor" : [ 0.333333, 0.333333, 0.333333, 1.0 ], "id" : "obj-7", "maxclass" : "meter~", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 127.0, 345.0, 13.0, 110.0 ] } } , { "box" : { "bordercolor" : [ 0.333333, 0.333333, 0.333333, 1.0 ], "id" : "obj-19", "maxclass" : "gain~", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "int" ], "parameter_enable" : 0, "patching_rect" : [ 87.0, 345.0, 21.0, 110.0 ] } } , { "box" : { "bordercolor" : [ 0.333333, 0.333333, 0.333333, 1.0 ], "id" : "obj-1", "maxclass" : "gain~", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "int" ], "parameter_enable" : 0, "patching_rect" : [ 61.0, 345.0, 21.0, 110.0 ] } } , { "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, 18.0 ], "text" : "set $1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-5", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 120.0, 495.0, 273.0, 33.0 ], "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" : [ 243.0, 135.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-18", "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 60.0, 495.0, 45.0, 45.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 708.0, 135.0, 51.0, 18.0 ], "text" : "resume" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-15", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 648.0, 135.0, 43.0, 18.0 ], "text" : "pause" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-13", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 648.0, 90.0, 150.0, 33.0 ], "text" : "Control playback with messages" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-11", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 288.0, 90.0, 150.0, 33.0 ], "text" : "Control playback with the playbar object" } } , { "box" : { "id" : "obj-9", "maxclass" : "playbar", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "int" ], "patching_rect" : [ 288.0, 135.0, 320.0, 16.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-8", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 60.0, 135.0, 37.0, 18.0 ], "text" : "open" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-6", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 3, "outlettype" : [ "signal", "signal", "bang" ], "patching_rect" : [ 60.0, 180.0, 59.0, 20.0 ], "save" : [ "#N", "sfplay~", "", 2, 120960, 0, "", ";" ], "text" : "sfplay~ 2" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-4", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 60.0, 90.0, 165.0, 33.0 ], "text" : "You can play audio files with the MSP sfplay~ object." } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 315.0, 51.0 ], "text" : "Playing Audio\nWilliam J Turkel\nhttp://williamjturkel.net/code/#exhibit" } } , { "box" : { "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 75.0, 810.0, 495.0 ], "rounded" : 20 } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 1, "midpoints" : [ 69.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, 95.5, 327.0 ], "source" : [ "obj-1", 1 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 1, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 657.5, 166.0, 69.5, 166.0 ], "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 717.5, 166.0, 69.5, 166.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" : [ 95.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" : [ 252.5, 165.0, 69.5, 165.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, 69.5, 330.0 ], "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 252.5, 306.0, 201.0, 306.0, 201.0, 165.0, 69.5, 165.0 ], "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-30", 1 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-31", 0 ] } } , { "patchline" : { "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 504.5, 315.0, 201.0, 315.0, 201.0, 166.0, 69.5, 166.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" : [ 297.5, 165.0, 69.5, 165.0 ], "source" : [ "obj-9", 0 ] } } ], "dependency_cache" : [ ] } }