Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "boxes" : [ {
- "box" : {
- "maxclass" : "comment",
- "text" : "Objects in red are optional but can help you make things easier.",
- "textcolor" : [ 0.776470588235294, 0.094117647058824, 0.094117647058824, 1.0 ],
- "numoutlets" : 0,
- "numinlets" : 1,
- "fontface" : 1,
- "id" : "obj-57",
- "patching_rect" : [ 30.0, 14.0, 387.0, 20.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Sends \"-70\" message when patch is loaded.",
- "linecount" : 3,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-55",
- "patching_rect" : [ 30.0, 276.0, 121.0, 48.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Live.gain can be place horizontally by selecting the option in the inspector. Note I have selected the \"ignore click\" option in the inspector so the live.gain cannot be changed accidentally with your mouse.",
- "linecount" : 5,
- "presentation_linecount" : 5,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-54",
- "patching_rect" : [ 282.0, 403.0, 243.0, 75.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "\"target value\" + \"time in milliseconds\"",
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-53",
- "patching_rect" : [ 270.0, 282.0, 243.0, 20.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "\"sfplay\" is used to play sound files directly from your hard drive. The \"@loop 1\" argument make the sound play in loop so you don't have to start it again manually.",
- "linecount" : 2,
- "presentation_linecount" : 2,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-52",
- "patching_rect" : [ 630.0, 329.0, 446.0, 34.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "You now have a umenu where you can select the file to play.",
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-51",
- "patching_rect" : [ 705.0, 261.0, 446.0, 20.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Messages used to tell the umenu object how to process the incoming inputs (see reference for \"umenu\").",
- "linecount" : 2,
- "presentation_linecount" : 2,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-50",
- "patching_rect" : [ 734.0, 216.0, 446.0, 34.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Concatenates (glues together) the path and some other text. The point here is to put your audio files in an \"audio\" folder inside the folder where your patcher is.",
- "linecount" : 2,
- "presentation_linecount" : 4,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-49",
- "patching_rect" : [ 644.0, 177.0, 446.0, 34.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "\"thispatcher\" outputs the patcher's folder location right when it gets input message \"path\"",
- "linecount" : 2,
- "presentation_linecount" : 3,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-48",
- "patching_rect" : [ 591.0, 134.0, 263.0, 34.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Use \"t\" (trigger) objects as much as you can, to replace messages (easier on CPU)",
- "linecount" : 2,
- "presentation_linecount" : 2,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-47",
- "patching_rect" : [ 630.0, 97.0, 243.0, 34.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Let's you go to a value smoothly. Note the \"1.\" argument makes it so the \"line\" objects outputs floats instead of ints.",
- "linecount" : 3,
- "presentation_linecount" : 3,
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-46",
- "patching_rect" : [ 200.0, 329.0, 243.0, 48.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Only lets input through if value has changed",
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-45",
- "patching_rect" : [ 207.0, 210.0, 243.0, 20.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Outputs numbers in range left, out of range right",
- "numoutlets" : 0,
- "numinlets" : 1,
- "id" : "obj-44",
- "patching_rect" : [ 229.0, 141.0, 266.0, 20.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "combine PATH /audio",
- "numoutlets" : 2,
- "outlettype" : [ "", "" ],
- "bgcolor" : [ 0.72156862745098, 0.094117647058824, 0.094117647058824, 1.0 ],
- "numinlets" : 2,
- "id" : "obj-42",
- "patching_rect" : [ 519.0, 177.0, 123.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Audio file to play",
- "linecount" : 2,
- "presentation_rect" : [ 20.0, 78.0, 150.0, 20.0 ],
- "numoutlets" : 0,
- "presentation" : 1,
- "numinlets" : 1,
- "id" : "obj-39",
- "patching_rect" : [ 625.0, 261.0, 73.0, 34.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "comment",
- "text" : "Eye tracker value (raw)",
- "linecount" : 2,
- "presentation_rect" : [ 20.0, 13.0, 150.0, 20.0 ],
- "numoutlets" : 0,
- "presentation" : 1,
- "numinlets" : 1,
- "id" : "obj-38",
- "patching_rect" : [ 229.0, 98.0, 73.0, 34.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "message",
- "text" : "0 15000",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "numinlets" : 2,
- "id" : "obj-30",
- "patching_rect" : [ 216.0, 281.0, 52.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "message",
- "text" : "-70 5000",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "numinlets" : 2,
- "id" : "obj-28",
- "patching_rect" : [ 157.0, 281.0, 56.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "line 1.",
- "numoutlets" : 2,
- "outlettype" : [ "", "bang" ],
- "numinlets" : 3,
- "id" : "obj-22",
- "patching_rect" : [ 157.0, 328.0, 41.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "sel 0 1",
- "numoutlets" : 3,
- "outlettype" : [ "bang", "bang", "" ],
- "numinlets" : 3,
- "id" : "obj-21",
- "patching_rect" : [ 157.0, 239.0, 137.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "change",
- "numoutlets" : 3,
- "outlettype" : [ "", "int", "int" ],
- "numinlets" : 1,
- "id" : "obj-20",
- "patching_rect" : [ 157.0, 208.0, 48.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "if $f1 > 0.4 then 0 else 1",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "numinlets" : 1,
- "id" : "obj-19",
- "patching_rect" : [ 157.0, 177.0, 137.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "split 0.4 0.1",
- "numoutlets" : 2,
- "outlettype" : [ "float", "float" ],
- "numinlets" : 3,
- "id" : "obj-18",
- "patching_rect" : [ 157.0, 140.0, 70.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "loadmess -70",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "numinlets" : 1,
- "id" : "obj-15",
- "patching_rect" : [ 40.0, 328.0, 111.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "prepend open",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "bgcolor" : [ 0.741176470588235, 0.105882352941176, 0.105882352941176, 1.0 ],
- "numinlets" : 1,
- "id" : "obj-14",
- "patching_rect" : [ 519.0, 293.0, 83.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "prepend autopopulate",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "bgcolor" : [ 0.776470588235294, 0.133333333333333, 0.133333333333333, 1.0 ],
- "numinlets" : 1,
- "id" : "obj-13",
- "patching_rect" : [ 607.0, 222.0, 125.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "t path 1",
- "numoutlets" : 2,
- "outlettype" : [ "path", "int" ],
- "bgcolor" : [ 0.776470588235294, 0.133333333333333, 0.133333333333333, 1.0 ],
- "numinlets" : 1,
- "id" : "obj-12",
- "patching_rect" : [ 519.0, 103.0, 107.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "prepend prefix",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "bgcolor" : [ 0.776470588235294, 0.133333333333333, 0.133333333333333, 1.0 ],
- "numinlets" : 1,
- "id" : "obj-10",
- "patching_rect" : [ 519.0, 222.0, 85.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "umenu",
- "presentation_rect" : [ 20.0, 100.0, 100.0, 22.0 ],
- "numoutlets" : 3,
- "outlettype" : [ "int", "", "" ],
- "parameter_enable" : 0,
- "autopopulate" : 1,
- "items" : [ "2023-09-23_RMDM_telephonePourVisitse.wav", ",", "Yotto - Just Over_SONNERIE.wav" ],
- "prefix" : "~/Desktop//audio/",
- "presentation" : 1,
- "numinlets" : 1,
- "id" : "obj-9",
- "patching_rect" : [ 519.0, 261.0, 100.0, 22.0 ],
- "bgfillcolor_type" : "gradient",
- "bgfillcolor_color1" : [ 0.72156862745098, 0.094117647058824, 0.094117647058824, 1.0 ],
- "bgfillcolor_color2" : [ 0.2, 0.2, 0.2, 1.0 ],
- "bgfillcolor_color" : [ 0.72156862745098, 0.094117647058824, 0.094117647058824, 1.0 ],
- "bgfillcolor_angle" : 270.0,
- "bgfillcolor_proportion" : 0.5,
- "bgfillcolor_autogradient" : 0.0
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "loadbang",
- "numoutlets" : 1,
- "outlettype" : [ "bang" ],
- "bgcolor" : [ 0.776470588235294, 0.133333333333333, 0.133333333333333, 1.0 ],
- "numinlets" : 1,
- "id" : "obj-8",
- "patching_rect" : [ 519.0, 66.0, 58.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "thispatcher",
- "numoutlets" : 2,
- "outlettype" : [ "", "" ],
- "bgcolor" : [ 0.776470588235294, 0.133333333333333, 0.133333333333333, 1.0 ],
- "numinlets" : 1,
- "id" : "obj-7",
- "patching_rect" : [ 519.0, 135.0, 67.0, 22.0 ],
- "save" : [ "#N", "thispatcher", ";", "#Q", "end", ";" ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "sfplay~ 2 @loop 1",
- "numoutlets" : 3,
- "outlettype" : [ "signal", "signal", "bang" ],
- "bgcolor" : [ 0.741176470588235, 0.105882352941176, 0.105882352941176, 1.0 ],
- "numinlets" : 2,
- "id" : "obj-6",
- "patching_rect" : [ 519.0, 328.0, 105.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "live.gain~",
- "varname" : "live.gain~",
- "presentation_rect" : [ 20.0, 131.0, 123.0, 47.0 ],
- "numoutlets" : 5,
- "outlettype" : [ "signal", "signal", "", "float", "list" ],
- "lastchannelcount" : 0,
- "parameter_enable" : 1,
- "presentation" : 1,
- "ignoreclick" : 1,
- "numinlets" : 2,
- "id" : "obj-5",
- "orientation" : 1,
- "patching_rect" : [ 157.0, 403.0, 123.0, 47.0 ],
- "saved_attribute_attributes" : {
- "valueof" : {
- "parameter_longname" : "live.gain~",
- "parameter_mmax" : 6.0,
- "parameter_mmin" : -70.0,
- "parameter_modmode" : 3,
- "parameter_shortname" : "live.gain~",
- "parameter_type" : 0,
- "parameter_unitstyle" : 4
- }
- }
- }
- }
- , {
- "box" : {
- "maxclass" : "ezdac~",
- "presentation_rect" : [ 20.0, 190.0, 45.0, 45.0 ],
- "numoutlets" : 0,
- "presentation" : 1,
- "numinlets" : 2,
- "id" : "obj-4",
- "patching_rect" : [ 157.0, 462.0, 45.0, 45.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "flonum",
- "presentation_rect" : [ 20.0, 35.0, 50.0, 22.0 ],
- "numoutlets" : 2,
- "outlettype" : [ "", "bang" ],
- "parameter_enable" : 0,
- "bgcolor" : [ 0.741176470588235, 0.082352941176471, 0.082352941176471, 1.0 ],
- "format" : 6,
- "presentation" : 1,
- "ignoreclick" : 1,
- "numinlets" : 1,
- "id" : "obj-3",
- "patching_rect" : [ 177.0, 104.0, 50.0, 22.0 ]
- }
- }
- , {
- "box" : {
- "maxclass" : "newobj",
- "text" : "r closedeye_dx",
- "numoutlets" : 1,
- "outlettype" : [ "" ],
- "numinlets" : 0,
- "id" : "obj-1",
- "patching_rect" : [ 157.0, 66.0, 89.0, 22.0 ]
- }
- }
- ],
- "lines" : [ {
- "patchline" : {
- "source" : [ "obj-6", 0 ],
- "destination" : [ "obj-5", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-14", 0 ],
- "destination" : [ "obj-6", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-6", 1 ],
- "destination" : [ "obj-5", 1 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-42", 0 ],
- "destination" : [ "obj-10", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-7", 1 ],
- "destination" : [ "obj-42", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-22", 0 ],
- "destination" : [ "obj-5", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-30", 0 ],
- "destination" : [ "obj-22", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-21", 1 ],
- "destination" : [ "obj-30", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-21", 0 ],
- "destination" : [ "obj-28", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-28", 0 ],
- "destination" : [ "obj-22", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-20", 0 ],
- "destination" : [ "obj-21", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-18", 1 ],
- "destination" : [ "obj-19", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-19", 0 ],
- "destination" : [ "obj-20", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-1", 0 ],
- "destination" : [ "obj-18", 0 ],
- "order" : 1
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-15", 0 ],
- "destination" : [ "obj-5", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-9", 1 ],
- "destination" : [ "obj-14", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-13", 0 ],
- "destination" : [ "obj-9", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-12", 1 ],
- "destination" : [ "obj-13", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-12", 0 ],
- "destination" : [ "obj-7", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-8", 0 ],
- "destination" : [ "obj-12", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-10", 0 ],
- "destination" : [ "obj-9", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-5", 1 ],
- "destination" : [ "obj-4", 1 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-5", 0 ],
- "destination" : [ "obj-4", 0 ]
- }
- }
- , {
- "patchline" : {
- "source" : [ "obj-1", 0 ],
- "destination" : [ "obj-3", 0 ],
- "order" : 0
- }
- }
- ],
- "appversion" : {
- "major" : 8,
- "minor" : 6,
- "revision" : 5,
- "architecture" : "x64",
- "modernui" : 1
- }
- ,
- "classnamespace" : "box"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement