From 17f492186d932aebb3c8a7e07fd8626899f12b3c Mon Sep 17 00:00:00 2001 From: Marlon Schumacher <schumacher@hfm-karlsruhe.de> Date: Tue, 25 Mar 2025 18:47:42 +0100 Subject: [PATCH] feat: update max patch with dynamic osc-addressing --- Grove-UR2 test.maxpat | 311 +++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 272 insertions(+), 39 deletions(-) diff --git a/Grove-UR2 test.maxpat b/Grove-UR2 test.maxpat index 30826d6..0d29616 100644 --- a/Grove-UR2 test.maxpat +++ b/Grove-UR2 test.maxpat @@ -2,17 +2,148 @@ "patcher" : { "fileversion" : 1, "appversion" : { - "major" : 9, - "minor" : 0, + "major" : 8, + "minor" : 6, "revision" : 5, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", - "rect" : [ 549.0, 247.0, 742.0, 657.0 ], + "rect" : [ 408.0, 273.0, 869.0, 680.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" : { + "id" : "obj-43", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 505.0, 42.0, 89.0, 20.0 ], + "text" : "for local testing" + } + + } +, { + "box" : { + "id" : "obj-41", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 701.0, 135.0, 185.0, 20.0 ], + "presentation_linecount" : 2, + "text" : "use hostname of bela as address" + } + + } +, { + "box" : { + "id" : "obj-40", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 619.5, 66.0, 174.0, 20.0 ], + "text" : "Destination ip and port number" + } + + } +, { + "box" : { + "id" : "obj-34", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 623.0, 88.0, 115.0, 22.0 ], + "text" : "192.168.0.101 7474" + } + + } +, { + "box" : { + "id" : "obj-23", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 701.0, 186.0, 79.0, 22.0 ], + "text" : "prepend host" + } + + } +, { + "box" : { + "id" : "obj-22", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 701.0, 158.0, 59.0, 22.0 ], + "text" : "bela.local" + } + + } +, { + "box" : { + "id" : "obj-18", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 623.0, 226.0, 165.0, 22.0 ], + "text" : "prepend /set_osc_destination" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 623.0, 262.0, 135.0, 22.0 ], + "text" : "udpsend localhost 7562" + } + + } +, { + "box" : { + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "" ], + "patching_rect" : [ 246.0, 79.0, 70.0, 22.0 ], + "text" : "osc-route /*" + } + + } +, { "box" : { "id" : "obj-27", "lastchannelcount" : 0, @@ -21,7 +152,7 @@ "numoutlets" : 5, "outlettype" : [ "signal", "signal", "", "float", "list" ], "parameter_enable" : 1, - "patching_rect" : [ 141.0, 427.0, 56.0, 138.0 ], + "patching_rect" : [ 141.0, 457.0, 56.0, 138.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "live.gain~", @@ -83,8 +214,8 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 445.0, 71.0, 73.0, 22.0 ], - "text" : "/distance $1" + "patching_rect" : [ 445.0, 71.0, 127.0, 22.0 ], + "text" : "/bela.local/distance $1" } } @@ -107,7 +238,7 @@ "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 196.0, 262.0, 50.0, 22.0 ] + "patching_rect" : [ 196.0, 292.0, 50.0, 22.0 ] } } @@ -118,7 +249,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 187.0, 153.0, 77.0, 22.0 ], + "patching_rect" : [ 187.0, 183.0, 77.0, 22.0 ], "text" : "loadmess 50" } @@ -131,7 +262,7 @@ "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 187.0, 185.0, 50.0, 22.0 ] + "patching_rect" : [ 187.0, 215.0, 50.0, 22.0 ] } } @@ -145,8 +276,8 @@ "patcher" : { "fileversion" : 1, "appversion" : { - "major" : 9, - "minor" : 0, + "major" : 8, + "minor" : 6, "revision" : 5, "architecture" : "x64", "modernui" : 1 @@ -154,7 +285,33 @@ , "classnamespace" : "box", "rect" : [ 59.0, 119.0, 640.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" : { "fontname" : "Arial", @@ -252,11 +409,17 @@ } } - ], - "originid" : "pat-158" + ] } , - "patching_rect" : [ 141.0, 217.0, 65.0, 22.0 ], + "patching_rect" : [ 141.0, 247.0, 65.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, "text" : "p median2" } @@ -270,7 +433,7 @@ "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 274.0, 352.0, 50.0, 22.0 ] + "patching_rect" : [ 274.0, 382.0, 50.0, 22.0 ] } } @@ -283,8 +446,8 @@ "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 246.0, 430.0, 159.0, 132.0 ], - "setminmax" : [ 0.0, 10.0 ], + "patching_rect" : [ 246.0, 460.0, 159.0, 132.0 ], + "setminmax" : [ 0.0, 50.0 ], "setstyle" : 2 } @@ -299,8 +462,8 @@ "patcher" : { "fileversion" : 1, "appversion" : { - "major" : 9, - "minor" : 0, + "major" : 8, + "minor" : 6, "revision" : 5, "architecture" : "x64", "modernui" : 1 @@ -308,7 +471,33 @@ , "classnamespace" : "box", "rect" : [ 59.0, 119.0, 640.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" : { "fontname" : "Arial", @@ -433,11 +622,17 @@ } } - ], - "originid" : "pat-160" + ] } , - "patching_rect" : [ 246.0, 296.0, 65.0, 22.0 ], + "patching_rect" : [ 246.0, 326.0, 65.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "tags" : "" + } +, "text" : "p cputimer" } @@ -451,7 +646,7 @@ "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 445.0, 153.0, 159.0, 132.0 ], + "patching_rect" : [ 445.0, 183.0, 159.0, 132.0 ], "setminmax" : [ 0.0, 300.0 ], "setstyle" : 2 } @@ -464,7 +659,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], - "patching_rect" : [ 141.0, 358.0, 40.0, 22.0 ], + "patching_rect" : [ 141.0, 388.0, 40.0, 22.0 ], "text" : "*~ 10." } @@ -475,7 +670,7 @@ "maxclass" : "ezdac~", "numinlets" : 2, "numoutlets" : 0, - "patching_rect" : [ 141.0, 585.0, 45.0, 45.0 ] + "patching_rect" : [ 141.0, 615.0, 45.0, 45.0 ] } } @@ -486,7 +681,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], - "patching_rect" : [ 141.0, 393.0, 43.0, 22.0 ], + "patching_rect" : [ 141.0, 423.0, 43.0, 22.0 ], "text" : "cycle~" } @@ -498,7 +693,7 @@ "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "signal" ], - "patching_rect" : [ 141.0, 296.0, 74.0, 22.0 ], + "patching_rect" : [ 141.0, 326.0, 74.0, 22.0 ], "text" : "slide~ 10 10" } @@ -510,7 +705,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "signal" ], - "patching_rect" : [ 141.0, 262.0, 31.0, 22.0 ], + "patching_rect" : [ 141.0, 292.0, 31.0, 22.0 ], "text" : "sig~" } @@ -519,11 +714,11 @@ "box" : { "id" : "obj-6", "maxclass" : "newobj", - "numinlets" : 2, + "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 246.0, 97.0, 87.0, 22.0 ], - "text" : "route /distance" + "patching_rect" : [ 246.0, 127.0, 110.0, 22.0 ], + "text" : "osc-route /distance" } } @@ -536,7 +731,7 @@ "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, - "patching_rect" : [ 445.0, 303.0, 159.0, 132.0 ], + "patching_rect" : [ 445.0, 333.0, 159.0, 132.0 ], "setminmax" : [ 0.0, 300.0 ], "setstyle" : 2 } @@ -560,13 +755,20 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 246.0, 56.0, 97.0, 22.0 ], + "patching_rect" : [ 246.0, 32.0, 97.0, 22.0 ], "text" : "udpreceive 7474" } } ], "lines" : [ { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "source" : [ "obj-10", 0 ] + } + + } +, { "patchline" : { "destination" : [ "obj-14", 0 ], "source" : [ "obj-11", 0 ] @@ -598,8 +800,29 @@ } , { "patchline" : { + "destination" : [ "obj-15", 0 ], + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { "destination" : [ "obj-4", 0 ], "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-23", 0 ], + "source" : [ "obj-22", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-15", 0 ], + "source" : [ "obj-23", 0 ] } } @@ -642,16 +865,16 @@ } , { "patchline" : { - "destination" : [ "obj-2", 1 ], - "order" : 1, + "destination" : [ "obj-10", 0 ], + "order" : 0, "source" : [ "obj-3", 0 ] } } , { "patchline" : { - "destination" : [ "obj-6", 0 ], - "order" : 0, + "destination" : [ "obj-2", 1 ], + "order" : 1, "source" : [ "obj-3", 0 ] } @@ -669,6 +892,13 @@ "destination" : [ "obj-9", 0 ], "order" : 1, "source" : [ "obj-33", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-18", 0 ], + "source" : [ "obj-34", 0 ] } } @@ -748,7 +978,6 @@ } ], - "originid" : "pat-156", "parameters" : { "obj-27" : [ "live.gain~", "live.gain~", 0 ], "parameterbanks" : { @@ -763,7 +992,11 @@ "inherited_shortname" : 1 } , - "dependency_cache" : [ ], + "dependency_cache" : [ { + "name" : "OSC-route.mxo", + "type" : "iLaX" + } + ], "autosave" : 0 } -- Gitblit v1.9.1