From 2824695fc754c1dbbfc1a3b0c3b1cee20f7e7f1b Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Thu, 8 May 2025 17:20:32 -0700 Subject: [PATCH] added safeguard against a non-entry for voice id --- spat_trajectory_group.maxpat | 97 +++++++++++++++++++++++++++++------- 1 file changed, 78 insertions(+), 19 deletions(-) diff --git a/spat_trajectory_group.maxpat b/spat_trajectory_group.maxpat index 325f81a..90ed7eb 100644 --- a/spat_trajectory_group.maxpat +++ b/spat_trajectory_group.maxpat @@ -10,9 +10,31 @@ } , "classnamespace" : "box", - "rect" : [ 89.0, 99.0, 531.0, 594.0 ], + "rect" : [ 227.0, 144.0, 525.0, 466.0 ], "gridsize" : [ 15.0, 15.0 ], "boxes" : [ { + "box" : { + "id" : "obj-9", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 379.0, 233.0, 101.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 317.0, 184.0, 101.0, 22.0 ] + } + + } +, { "box" : { "id" : "obj-18", "maxclass" : "newobj", @@ -30,16 +52,28 @@ } , "classnamespace" : "box", - "rect" : [ 59.0, 106.0, 1000.0, 780.0 ], + "rect" : [ 840.0, 167.0, 469.0, 562.0 ], "gridsize" : [ 15.0, 15.0 ], "boxes" : [ { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 2, + "outlettype" : [ "bang", "" ], + "patching_rect" : [ 326.0, 229.0, 34.0, 22.0 ], + "text" : "sel 0" + } + + } +, { "box" : { "id" : "obj-1", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 310.0, 114.0, 92.0, 22.0 ], + "patching_rect" : [ 326.0, 136.0, 92.0, 22.0 ], "text" : "mute 1, 0, bang" } @@ -51,7 +85,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 59.0, 241.0, 82.0, 22.0 ], + "patching_rect" : [ 90.0, 336.0, 82.0, 22.0 ], "text" : "prepend set 1" } @@ -63,7 +97,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 154.0, 241.0, 72.0, 22.0 ], + "patching_rect" : [ 185.0, 336.0, 72.0, 22.0 ], "text" : "prepend set" } @@ -75,7 +109,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], - "patching_rect" : [ 310.0, 67.0, 58.0, 22.0 ], + "patching_rect" : [ 326.0, 89.0, 58.0, 22.0 ], "text" : "loadbang" } @@ -87,7 +121,7 @@ "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 154.0, 208.0, 175.0, 22.0 ], + "patching_rect" : [ 185.0, 303.0, 175.0, 22.0 ], "text" : "combine /source/ 0 @triggers 1" } @@ -99,7 +133,7 @@ "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "int", "int" ], - "patching_rect" : [ 310.0, 172.0, 56.0, 22.0 ], + "patching_rect" : [ 326.0, 194.0, 56.0, 22.0 ], "text" : "thispoly~" } @@ -112,7 +146,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 59.0, 323.0, 30.0, 30.0 ] + "patching_rect" : [ 90.0, 418.0, 30.0, 30.0 ] } } @@ -124,7 +158,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 154.0, 323.0, 30.0, 30.0 ] + "patching_rect" : [ 185.0, 418.0, 30.0, 30.0 ] } } @@ -146,6 +180,13 @@ , { "patchline" : { "destination" : [ "obj-7", 1 ], + "source" : [ "obj-2", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], "source" : [ "obj-3", 0 ] } @@ -183,8 +224,8 @@ ] } , - "patching_rect" : [ 230.0, 104.0, 34.0, 22.0 ], - "text" : "p init" + "patching_rect" : [ 348.0, 107.0, 70.0, 22.0 ], + "text" : "p init_setup" } } @@ -195,7 +236,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "FullPacket" ], - "patching_rect" : [ 49.0, 147.0, 99.0, 22.0 ], + "patching_rect" : [ 133.0, 156.0, 99.0, 22.0 ], "text" : "o.route /source/0" } @@ -207,7 +248,7 @@ "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 155.0, 39.0, 28.0, 22.0 ], + "patching_rect" : [ 133.0, 58.0, 28.0, 22.0 ], "text" : "in 1" } @@ -218,7 +259,7 @@ "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 243.0, 556.0, 35.0, 22.0 ], + "patching_rect" : [ 191.0, 388.0, 35.0, 22.0 ], "text" : "out 1" } @@ -230,7 +271,7 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 133.0, 230.0, 100.0, 22.0 ], + "patching_rect" : [ 133.0, 190.0, 100.0, 22.0 ], "text" : "spat5.trajectories" } @@ -242,8 +283,8 @@ "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], - "patching_rect" : [ 133.0, 373.0, 160.0, 22.0 ], - "text" : "spat5.osc.prepend /source/0" + "patching_rect" : [ 133.0, 246.0, 107.0, 22.0 ], + "text" : "spat5.osc.prepend" } } @@ -268,7 +309,7 @@ "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 133.0, 543.0, 30.0, 30.0 ] + "patching_rect" : [ 100.0, 380.0, 30.0, 30.0 ] } } @@ -290,6 +331,7 @@ , { "patchline" : { "destination" : [ "obj-5", 0 ], + "order" : 1, "source" : [ "obj-18", 1 ] } @@ -297,9 +339,26 @@ , { "patchline" : { "destination" : [ "obj-6", 0 ], + "order" : 1, "source" : [ "obj-18", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-8", 1 ], + "order" : 0, + "source" : [ "obj-18", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-9", 1 ], + "order" : 0, + "source" : [ "obj-18", 1 ] + } + } , { "patchline" : { -- 2.34.1