From c005849bfedc16045e6863ebf762a123f6ff514c Mon Sep 17 00:00:00 2001 From: omarcostahamido <18335360+omarcostahamido@users.noreply.github.com> Date: Mon, 24 Oct 2022 03:23:31 +0100 Subject: [PATCH] Create #03.maxpat - example with: offset video in 2 devices --- examples/#03.maxpat | 577 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 577 insertions(+) create mode 100644 examples/#03.maxpat diff --git a/examples/#03.maxpat b/examples/#03.maxpat new file mode 100644 index 0000000..e7ae300 --- /dev/null +++ b/examples/#03.maxpat @@ -0,0 +1,577 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 8, + "minor" : 3, + "revision" : 3, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 360.0, 107.0, 507.0, 480.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" : "", + "assistshowspatchername" : 0, + "boxes" : [ { + "box" : { + "hidden" : 1, + "id" : "obj-42", + "linecount" : 2, + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 415.0, 265.714285714285722, 52.0, 35.0 ], + "presentation_linecount" : 2, + "text" : "set_position $1" + } + + } +, { + "box" : { + "id" : "obj-39", + "maxclass" : "button", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 301.0, 185.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "id" : "obj-36", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 153.833333333333343, 378.0, 64.0, 22.0 ], + "text" : "pvm_send" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-34", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 3, + "outlettype" : [ "", "", "" ], + "patching_rect" : [ 301.0, 331.0, 56.0, 22.0 ], + "text" : "route 1 2" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-29", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 301.0, 265.714285714285722, 41.0, 22.0 ], + "text" : "file $1" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-30", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 373.0, 265.714285714285722, 46.0, 22.0 ], + "text" : "port $1" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-16", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 337.0, 265.714285714285722, 35.0, 22.0 ], + "text" : "ip $1" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-32", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 4, + "outlettype" : [ "", "", "", "" ], + "patching_rect" : [ 301.0, 241.532467532467535, 127.0, 22.0 ], + "text" : "unjoin 3" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-28", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 433.499999999999943, 241.532467532467535, 41.0, 22.0 ], + "text" : "set $1" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-26", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 301.0, 304.714285714285722, 53.0, 22.0 ], + "text" : "prepend" + } + + } +, { + "box" : { + "coll_data" : { + "count" : 2, + "data" : [ { + "key" : 1, + "value" : [ "pattern01_prores422.mov", "192.168.1.108", 8001, 0.0 ] + } +, { + "key" : 2, + "value" : [ "pattern01_prores422.mov", "192.168.0.102", 8001, 5.0 ] + } + ] + } +, + "id" : "obj-25", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 4, + "outlettype" : [ "", "", "", "" ], + "patching_rect" : [ 301.0, 215.714285714285722, 89.0, 22.0 ], + "saved_object_attributes" : { + "embed" : 1, + "precision" : 6 + } +, + "text" : "coll @embed 1" + } + + } +, { + "box" : { + "id" : "obj-24", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 133.0, 279.0, 201.0, 20.0 ], + "text" : "start/stop playback at the same time" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-21", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 123.0, 329.0, 31.0, 22.0 ], + "text" : "stop" + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-22", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], + "patching_rect" : [ 85.0, 305.0, 57.0, 22.0 ], + "text" : "sel 1" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 85.0, 279.0, 24.0, 24.0 ] + } + + } +, { + "box" : { + "hidden" : 1, + "id" : "obj-3", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 85.0, 329.0, 32.0, 22.0 ], + "text" : "start" + } + + } +, { + "box" : { + "fontsize" : 17.681085534312444, + "id" : "obj-14", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 85.0, 143.818181818181813, 197.0, 26.0 ], + "text" : "offset video in 2 devices" + } + + } +, { + "box" : { + "id" : "obj-12", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 133.0, 185.0, 167.0, 33.0 ], + "text" : "edit contents of the coll object\nand then trigger with the bang" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 85.0, 378.0, 64.0, 22.0 ], + "text" : "pvm_send" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 85.0, 83.714285714285722, 305.0, 20.0 ], + "text" : "download video `pattern01`: go.och.pw/pvm_downloads" + } + + } +, { + "box" : { + "fontface" : 2, + "id" : "obj-35", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 85.0, 61.714285714285715, 195.0, 20.0 ], + "text" : "github.com/omarcostahamido/PVM" + } + + } +, { + "box" : { + "id" : "obj-33", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 249.0, 427.0, 156.0, 20.0 ], + "text" : "Omar Costa Hamido (2022)" + } + + } +, { + "box" : { + "fontsize" : 26.930346777893671, + "id" : "obj-31", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 85.0, 22.714285714285715, 229.0, 37.0 ], + "text" : "PVM example #03" + } + + } +, { + "box" : { + "background" : 1, + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontface" : 1, + "hint" : "", + "id" : "obj-93", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 110.5, 185.0, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "1", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } +, { + "box" : { + "background" : 1, + "bgcolor" : [ 1.0, 0.788235, 0.470588, 1.0 ], + "fontface" : 1, + "hint" : "", + "id" : "obj-10", + "ignoreclick" : 1, + "legacytextcolor" : 1, + "maxclass" : "textbutton", + "numinlets" : 1, + "numoutlets" : 3, + "outlettype" : [ "", "", "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 111.0, 279.0, 20.0, 20.0 ], + "rounded" : 60.0, + "text" : "2", + "textcolor" : [ 0.34902, 0.34902, 0.34902, 1.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "hidden" : 1, + "source" : [ "obj-16", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-22", 0 ], + "hidden" : 1, + "source" : [ "obj-17", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "hidden" : 1, + "order" : 0, + "source" : [ "obj-21", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "hidden" : 1, + "order" : 1, + "source" : [ "obj-21", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-21", 0 ], + "hidden" : 1, + "source" : [ "obj-22", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-3", 0 ], + "hidden" : 1, + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-28", 0 ], + "hidden" : 1, + "source" : [ "obj-25", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 0 ], + "hidden" : 1, + "source" : [ "obj-25", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-34", 0 ], + "hidden" : 1, + "source" : [ "obj-26", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "hidden" : 1, + "source" : [ "obj-28", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "hidden" : 1, + "source" : [ "obj-29", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "hidden" : 1, + "order" : 0, + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "hidden" : 1, + "order" : 1, + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "hidden" : 1, + "source" : [ "obj-30", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-16", 0 ], + "hidden" : 1, + "source" : [ "obj-32", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-29", 0 ], + "hidden" : 1, + "source" : [ "obj-32", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-30", 0 ], + "hidden" : 1, + "source" : [ "obj-32", 2 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-42", 0 ], + "hidden" : 1, + "source" : [ "obj-32", 3 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-36", 0 ], + "hidden" : 1, + "source" : [ "obj-34", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-5", 0 ], + "hidden" : 1, + "source" : [ "obj-34", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-25", 0 ], + "source" : [ "obj-39", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-26", 0 ], + "hidden" : 1, + "source" : [ "obj-42", 0 ] + } + + } + ], + "dependency_cache" : [ { + "name" : "pvm_send.maxpat", + "bootpath" : "~/Documents/GitHub/PVM", + "patcherrelativepath" : "..", + "type" : "JSON", + "implicit" : 1 + } + ], + "autosave" : 0 + } + +}