delay machine


    Dec 07 2012 | 7:56 pm
    Hi I am new to max and I trIed to make a delay machine but it does not work can anyone help please.
    { "boxes" : [ { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 3211.0, 1102.0, 50.0, 20.0 ], "id" : "obj-891", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "comment", "text" : "Looks okay", "numoutlets" : 0, "patching_rect" : [ 3597.0, 1012.0, 164.0, 20.0 ], "id" : "obj-889", "frgb" : 0.0, "fontname" : "Arial", "fontface" : 1, "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "dial", "numoutlets" : 1, "patching_rect" : [ 3371.799805, 1037.499878, 40.0, 40.0 ], "presentation" : 1, "id" : "obj-619", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "parameter_enable" : 0, "fgcolor" : [ 1.0, 0.4, 0.4, 1.0 ], "outlettype" : [ "float" ], "needlecolor" : [ 0.0, 0.0, 0.0, 1.0 ], "outlinecolor" : [ 1.0, 1.0, 1.0, 0.0 ], "presentation_rect" : [ 338.699982, 233.490005, 40.0, 40.0 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "button", "numoutlets" : 1, "patching_rect" : [ 3746.599609, 1037.499878, 39.799999, 39.799999 ], "blinkcolor" : [ 0.0, 1.0, 0.0, 1.0 ], "presentation" : 1, "id" : "obj-621", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "fgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "outlettype" : [ "bang" ], "outlinecolor" : [ 0.0, 1.0, 0.0, 1.0 ], "presentation_rect" : [ 445.799957, 218.490005, 39.799999, 39.799999 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "button", "numoutlets" : 1, "patching_rect" : [ 3594.499756, 1037.499878, 39.799999, 39.799999 ], "presentation" : 1, "id" : "obj-622", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "fgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "outlettype" : [ "bang" ], "outlinecolor" : [ 1.0, 0.890196, 0.090196, 1.0 ], "presentation_rect" : [ 364.799957, 218.490005, 39.799999, 39.799999 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "button", "numoutlets" : 1, "patching_rect" : [ 3447.799805, 1037.499878, 39.799999, 39.799999 ], "blinkcolor" : [ 1.0, 0.0, 0.0, 1.0 ], "presentation" : 1, "id" : "obj-623", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "fgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "outlettype" : [ "bang" ], "outlinecolor" : [ 1.0, 0.0, 0.0, 1.0 ], "presentation_rect" : [ 283.799988, 218.490005, 39.799999, 39.799999 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "dial", "numoutlets" : 1, "patching_rect" : [ 3670.499756, 1037.499878, 40.0, 40.0 ], "presentation" : 1, "id" : "obj-624", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "parameter_enable" : 0, "fgcolor" : [ 0.4, 1.0, 0.4, 1.0 ], "outlettype" : [ "float" ], "needlecolor" : [ 0.0, 0.0, 0.0, 1.0 ], "outlinecolor" : [ 1.0, 1.0, 1.0, 0.0 ], "presentation_rect" : [ 404.699982, 218.490005, 40.0, 40.0 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "dial", "numoutlets" : 1, "patching_rect" : [ 3523.399658, 1037.499878, 40.0, 40.0 ], "presentation" : 1, "id" : "obj-828", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "parameter_enable" : 0, "fgcolor" : [ 1.0, 1.0, 0.4, 1.0 ], "outlettype" : [ "float" ], "needlecolor" : [ 0.0, 0.0, 0.0, 1.0 ], "outlinecolor" : [ 1.0, 1.0, 1.0, 0.0 ], "presentation_rect" : [ 323.699982, 218.490005, 40.0, 40.0 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "newobj", "text" : "gate~ 3", "numoutlets" : 3, "patching_rect" : [ 3218.0, 1163.0, 51.0, 20.0 ], "id" : "obj-494", "fontname" : "Arial", "outlettype" : [ "signal", "signal", "signal" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "message", "text" : "130", "numoutlets" : 1, "patching_rect" : [ 2985.328369, 1164.336914, 32.5, 18.0 ], "id" : "obj-442", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 2985.328369, 1188.737061, 50.0, 20.0 ], "id" : "obj-444", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "button", "numoutlets" : 1, "patching_rect" : [ 2985.328369, 1138.336914, 20.0, 20.0 ], "blinkcolor" : [ 0.4, 1.0, 0.8, 1.0 ], "id" : "obj-445", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "fgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "outlettype" : [ "bang" ], "outlinecolor" : [ 0.4, 1.0, 0.8, 1.0 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "button", "numoutlets" : 1, "patching_rect" : [ 3001.328369, 1029.336914, 20.0, 20.0 ], "blinkcolor" : [ 0.0, 1.0, 0.501961, 1.0 ], "id" : "obj-635", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "fgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "outlettype" : [ "bang" ], "outlinecolor" : [ 0.0, 1.0, 0.501961, 1.0 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "flonum", "numoutlets" : 2, "patching_rect" : [ 3100.828369, 1081.336914, 50.0, 20.0 ], "id" : "obj-636", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "toggle", "numoutlets" : 1, "patching_rect" : [ 3100.828369, 1029.336914, 20.0, 20.0 ], "id" : "obj-637", "parameter_enable" : 0, "outlettype" : [ "int" ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "message", "text" : "loop $1", "numoutlets" : 1, "patching_rect" : [ 3100.828369, 1056.336914, 50.0, 18.0 ], "id" : "obj-638", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "message", "text" : "0", "numoutlets" : 1, "patching_rect" : [ 3001.328369, 1081.336914, 32.5, 18.0 ], "id" : "obj-639", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "message", "text" : "1", "numoutlets" : 1, "patching_rect" : [ 3001.328369, 1056.336914, 32.5, 18.0 ], "id" : "obj-640", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "message", "text" : "open pianonotesound9.wav", "numoutlets" : 1, "patching_rect" : [ 3043.328369, 1005.136902, 157.0, 18.0 ], "id" : "obj-641", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "newobj", "text" : "sfplay~ 2", "numoutlets" : 3, "patching_rect" : [ 3044.328369, 1098.336914, 59.0, 20.0 ], "id" : "obj-642", "fontname" : "Arial", "outlettype" : [ "signal", "signal", "bang" ], "fontsize" : 12.0, "numinlets" : 2, "save" : [ "#N", "sfplay~", "", 2, 120960, 0, "", ";" ] }
    } , { "box" : { "maxclass" : "meter~", "numoutlets" : 1, "patching_rect" : [ 3114.828369, 1138.336914, 22.0, 140.0 ], "presentation" : 1, "id" : "obj-643", "outlettype" : [ "float" ], "presentation_rect" : [ 2008.0, 619.0, 22.0, 140.0 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "meter~", "numoutlets" : 1, "patching_rect" : [ 3091.828369, 1138.336914, 22.0, 140.0 ], "presentation" : 1, "id" : "obj-644", "outlettype" : [ "float" ], "presentation_rect" : [ 1985.0, 619.0, 22.0, 140.0 ], "numinlets" : 1 }
    } , { "box" : { "maxclass" : "gain~", "numoutlets" : 2, "patching_rect" : [ 3067.328369, 1138.336914, 22.0, 140.0 ], "presentation" : 1, "id" : "obj-645", "parameter_enable" : 0, "outlettype" : [ "signal", "int" ], "presentation_rect" : [ 1960.5, 619.0, 22.0, 140.0 ], "numinlets" : 2 }
    } , { "box" : { "maxclass" : "gain~", "numoutlets" : 2, "patching_rect" : [ 3043.828369, 1138.336914, 22.0, 140.0 ], "presentation" : 1, "id" : "obj-646", "parameter_enable" : 0, "outlettype" : [ "signal", "int" ], "presentation_rect" : [ 1937.0, 619.0, 22.0, 140.0 ], "numinlets" : 2 }
    } , { "box" : { "maxclass" : "message", "text" : "500", "numoutlets" : 1, "patching_rect" : [ 3746.599609, 1093.736816, 32.5, 18.0 ], "id" : "obj-499", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "message", "text" : "300", "numoutlets" : 1, "patching_rect" : [ 3594.499756, 1093.736816, 32.5, 18.0 ], "id" : "obj-500", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "message", "text" : "150", "numoutlets" : 1, "patching_rect" : [ 3447.799805, 1092.736816, 32.5, 18.0 ], "id" : "obj-519", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 2 }
    } , { "box" : { "maxclass" : "newobj", "text" : "scale 0 127 0 1000", "numoutlets" : 1, "patching_rect" : [ 3670.499756, 1138.336914, 112.0, 20.0 ], "id" : "obj-553", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 6 }
    } , { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 3670.499756, 1093.736816, 50.0, 20.0 ], "id" : "obj-566", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "newobj", "text" : "scale 0 127 0 750", "numoutlets" : 1, "patching_rect" : [ 3523.399658, 1138.336914, 105.0, 20.0 ], "id" : "obj-572", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 6 }
    } , { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 3523.399658, 1092.736816, 50.0, 20.0 ], "id" : "obj-581", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "newobj", "text" : "scale 0 127 0 500", "numoutlets" : 1, "patching_rect" : [ 3371.799805, 1138.336914, 105.0, 20.0 ], "id" : "obj-594", "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 12.0, "numinlets" : 6 }
    } , { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 3371.799805, 1092.736816, 50.0, 20.0 ], "id" : "obj-596", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 3670.499756, 1178.336914, 50.0, 20.0 ], "id" : "obj-598", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 3523.399658, 1178.336914, 50.0, 20.0 ], "id" : "obj-599", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "number", "numoutlets" : 2, "patching_rect" : [ 3371.799805, 1178.336914, 50.0, 20.0 ], "id" : "obj-600", "fontname" : "Arial", "parameter_enable" : 0, "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "numinlets" : 1 }
    } , { "box" : { "maxclass" : "newobj", "text" : "tapout~ 150 300 500", "numoutlets" : 3, "patching_rect" : [ 3349.799805, 1293.836914, 121.0, 20.0 ], "id" : "obj-608", "fontname" : "Arial", "outlettype" : [ "signal", "signal", "signal" ], "fontsize" : 12.0, "numinlets" : 3 }
    } , { "box" : { "maxclass" : "newobj", "text" : "tapin~ 3000", "numoutlets" : 1, "patching_rect" : [ 3351.799805, 1231.336914, 74.0, 20.0 ], "id" : "obj-609", "fontname" : "Arial", "outlettype" : [ "tapconnect" ], "fontsize" : 12.0, "numinlets" : 1 }
    } ], "lines" : [ { "patchline" : { "source" : [ "obj-442", 0 ], "destination" : [ "obj-444", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-444", 1 ], "destination" : [ "obj-645", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-444", 0 ], "destination" : [ "obj-646", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-445", 0 ], "destination" : [ "obj-442", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-494", 1 ], "destination" : [ "obj-609", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-494", 0 ], "destination" : [ "obj-645", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-494", 0 ], "destination" : [ "obj-646", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-499", 0 ], "destination" : [ "obj-608", 2 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-500", 0 ], "destination" : [ "obj-608", 1 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-519", 0 ], "destination" : [ "obj-608", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-553", 0 ], "destination" : [ "obj-598", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-566", 0 ], "destination" : [ "obj-553", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-572", 0 ], "destination" : [ "obj-599", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-581", 0 ], "destination" : [ "obj-572", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-594", 0 ], "destination" : [ "obj-600", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-596", 0 ], "destination" : [ "obj-594", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-598", 0 ], "destination" : [ "obj-608", 2 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-599", 0 ], "destination" : [ "obj-608", 1 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-600", 0 ], "destination" : [ "obj-608", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-608", 1 ], "destination" : [ "obj-645", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-608", 2 ], "destination" : [ "obj-646", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-608", 0 ], "destination" : [ "obj-646", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-609", 0 ], "destination" : [ "obj-608", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-619", 0 ], "destination" : [ "obj-596", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-621", 0 ], "destination" : [ "obj-499", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-622", 0 ], "destination" : [ "obj-500", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-623", 0 ], "destination" : [ "obj-519", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-624", 0 ], "destination" : [ "obj-566", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-635", 0 ], "destination" : [ "obj-640", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-636", 0 ], "destination" : [ "obj-642", 1 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-637", 0 ], "destination" : [ "obj-638", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-638", 0 ], "destination" : [ "obj-642", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-639", 0 ], "destination" : [ "obj-642", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-640", 0 ], "destination" : [ "obj-642", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-641", 0 ], "destination" : [ "obj-642", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-642", 1 ], "destination" : [ "obj-494", 1 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-642", 0 ], "destination" : [ "obj-494", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-645", 0 ], "destination" : [ "obj-643", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-646", 0 ], "destination" : [ "obj-644", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-646", 1 ], "destination" : [ "obj-645", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-828", 0 ], "destination" : [ "obj-581", 0 ], "hidden" : 0, "disabled" : 0 }
    } , { "patchline" : { "source" : [ "obj-891", 0 ], "destination" : [ "obj-494", 0 ], "hidden" : 0, "disabled" : 0 }
    } ], "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 }
    }