diff options
author | Luke Iannini <lukeiannini@users.sourceforge.net> | 2008-07-24 09:37:10 +0000 |
---|---|---|
committer | Luke Iannini <lukeiannini@users.sourceforge.net> | 2008-07-24 09:37:10 +0000 |
commit | c3fea1398705a3109f741cab53c7897f305af25b (patch) | |
tree | b3b52b89d4313cb5966c4566579a9b15b1e0dd4c | |
parent | 071329a3953232dd4aaeaba312f37497de7a0ed5 (diff) |
renaming semento and its abstractions
svn path=/trunk/abstractions/senderfruit/; revision=10214
-rw-r--r-- | semento/sft.commun.ez.pd | 6 | ||||
-rw-r--r-- | semento/sft.commun.sc-help.pd | 10 | ||||
-rw-r--r-- | semento/sft.commun.sc.constrain.pd | 189 | ||||
-rw-r--r-- | semento/sft.commun.sc.ez.pd | 4 | ||||
-rw-r--r-- | semento/sft.commun.sc.pd | 154 | ||||
-rw-r--r-- | semento/sft.commun.x-help.pd | 6 | ||||
-rw-r--r-- | semento/sft.originator.pd | 4 |
7 files changed, 226 insertions, 147 deletions
diff --git a/semento/sft.commun.ez.pd b/semento/sft.commun.ez.pd index 2a202f2..da1c549 100644 --- a/semento/sft.commun.ez.pd +++ b/semento/sft.commun.ez.pd @@ -1,13 +1,13 @@ #N canvas 32 487 626 210 10; -#X obj 21 62 sft.commun \$2-\$3 \$1; +#X obj 21 62 commun-c \$2-\$3 \$1; #X obj 21 28 r \$1\$3; #X obj 21 92 s \$1\$3R; -#X text 154 18 Use like sft.commun.ez \$0 "uniqueID" paramName; +#X text 154 18 Use like commun-c.ez \$0 "uniqueID" paramName; #X text 154 34 UniqueID is a /ID used to allow multiple units of one type; #X text 174 53 e.g. sft.cfm /sfs1 /busA /unitA = unitA is the uniqueID ; -#X text 205 68 thus you'd call as sft.commun.ez \$0 \$3 paramName; +#X text 205 68 thus you'd call as commun-c.ez \$0 \$3 paramName; #X text 157 123 paramName is mapped to the local xers* that would usually be defined in the GUIcontrol. So a paramName of "baseFreq" will result in "\$0baseFreq" and "\$0baseFreqR" \, which is 99% of cases.; diff --git a/semento/sft.commun.sc-help.pd b/semento/sft.commun.sc-help.pd index 80d7785..f181f47 100644 --- a/semento/sft.commun.sc-help.pd +++ b/semento/sft.commun.sc-help.pd @@ -9,15 +9,15 @@ #X text 340 552 2008 Luke Iannini; #X text 2 573 Originally based on [commun-scale] by Frank Barknecht ; -#X text 13 26 Use sft.commun.sc(ale) so that 0-1 values coming out +#X text 13 26 Use commun-c-scale(ale) so that 0-1 values coming out of OSC stuff (like Controctopus) can be rescaled appropriately.; -#X text 14 145 sft.commun.sc's first and second args are swapped from -sft.commun (i.e. \$0 and /parametername); +#X text 14 145 commun-c-scale's first and second args are swapped from +commun-c (i.e. \$0 and /parametername); #X text 15 182 Optionally prepend a unique ID to the parameter when using with an abstraction that will have multiple copies; -#X obj 31 327 sft.commun.sc \$0 \$3/parameter 5 37; +#X obj 31 327 commun-c-scale \$0 \$3/parameter 5 37; #X text 13 109 Don't use this for communs that are meant to store symbolic -or list data (use regular sft.commun for that).; +or list data (use regular commun-c for that).; #X text 34 404 * Argument 5 and 6 can be "round" and/or "hide" (the order doesn't matter).; #X text 34 434 * "hide" hides the parameter from Controctopus sniffing diff --git a/semento/sft.commun.sc.constrain.pd b/semento/sft.commun.sc.constrain.pd new file mode 100644 index 0000000..0336c48 --- /dev/null +++ b/semento/sft.commun.sc.constrain.pd @@ -0,0 +1,189 @@ +#N canvas 286 32 505 662 10; +#X obj 12 11 inlet; +#X obj 108 565 outlet; +#X text 5 93 RRADICAL_MEMENTO is also in originator; +#X obj 108 538 list; +#X obj 132 318 expr_scale 0 1 \$3 \$4; +#X obj 289 318 expr_scale 0 1 \$3 \$4; +#X obj 176 371 hotpack f f; +#X obj 45 437 demultiplex; +#X obj 108 459 round; +#X obj 45 370 expr_scale 0 1 \$3 \$4; +#X obj 156 11 inlet; +#X obj 286 11 inlet; +#X text 63 590 Use to constrain input to a smaller subset of the full +range. Input as relative to 0-1. Reports back what the result will +be when scaled fully; +#X obj 156 59 s \$0boundLowFull; +#X obj 286 59 s \$0boundHighFull; +#X obj 162 252 r \$0boundLowFull; +#X obj 329 252 r \$0boundHighFull; +#X obj 132 229 r \$0constrainLow; +#X obj 289 230 r \$0constrainHigh; +#X obj 329 277 t b a; +#X obj 162 279 t b a; +#X obj 108 415 r \$0round?; +#X obj 45 459 t a; +#X text 186 548 Read \$1-OSC (== \$0-OSC) \, filter by argument \$2 +; +#X obj 45 188 deeprouteOSC \$2-normalized; +#X obj 187 521 deeprouteOSC \$2; +#X obj 187 497 r \$1-RRADICAL-OSC; +#X obj 45 165 r \$1-RRADICAL-OSC; +#X obj 12 42 prepent \$2; +#X obj 12 69 s \$1-RRADICAL-MEMENTO; +#X obj 108 513 route \$2; +#X obj 108 489 r \$1-in; +#X text 191 538 ^; +#N canvas 0 22 221 199 handleArgs 0; +#X obj 26 26 loadbang; +#X msg 26 127 1; +#X obj 26 102 sel round hide; +#X obj 26 149 s \$0round?; +#X obj 26 78 list-drip; +#X obj 95 149 s \$0hide?; +#X obj 26 53 list append \$5 \$6; +#X connect 0 0 6 0; +#X connect 1 0 3 0; +#X connect 2 0 1 0; +#X connect 2 1 5 0; +#X connect 4 0 2 0; +#X connect 6 0 4 0; +#X restore 297 108 pd handleArgs; +#N canvas 0 22 390 211 listParams 0; +#X obj 31 79 spigot 1; +#X msg 161 62 0; +#X obj 161 39 r \$0hide?; +#X obj 31 49 r \$1/listParams; +#X obj 31 136 s \$1/returnParams; +#X obj 31 106 list append \$2-normalized; +#X text 16 161 listParams is used by Controctopus \, so we return a +special address for 0-1 data input only; +#X connect 0 0 5 0; +#X connect 1 0 0 1; +#X connect 2 0 1 0; +#X connect 3 0 0 0; +#X connect 5 0 4 0; +#X restore 297 133 pd listParams; +#N canvas 0 22 352 303 receiveConstraints 0; +#X obj 80 156 unpack f f; +#X obj 80 200 s \$0constrainLow; +#X obj 137 178 s \$0constrainHigh; +#X obj 16 50 loadbang; +#X msg 16 75 0 1; +#X obj 80 115 list; +#X obj 131 115 t a a; +#X obj 80 87 route get; +#X text 62 264 Used to recall the 0-1 ranged constraint; +#X obj 80 20 r \$1-RRADICAL-OSC; +#X obj 64 245 s \$1-COMMUN-RESPONSE; +#X obj 80 43 deeprouteOSC \$2-constrain; +#X obj 64 224 prepent \$2-constrained-to-0-1; +#X text 145 68 Save the constraints; +#X obj 147 87 commun \$2-constraints \$1; +#X connect 0 0 1 0; +#X connect 0 1 2 0; +#X connect 3 0 4 0; +#X connect 4 0 0 0; +#X connect 4 0 5 1; +#X connect 5 0 0 0; +#X connect 5 0 12 0; +#X connect 6 0 0 0; +#X connect 6 1 5 1; +#X connect 7 0 5 0; +#X connect 7 1 6 0; +#X connect 7 1 14 0; +#X connect 9 0 11 0; +#X connect 11 0 7 0; +#X connect 12 0 10 0; +#X connect 14 0 6 0; +#X restore 297 157 pd receiveConstraints; +#N canvas 323 119 442 277 constraintsFeedback 0; +#X obj 19 35 inlet; +#X obj 19 63 t a a b; +#X msg 58 85 1; +#X obj 19 128 spigot; +#X obj 38 107 s \$1\$2/constraint/lookup/call; +#X obj 67 129 r \$1\$2/constraint/lookup/response; +#X obj 67 151 t a b; +#X msg 94 173 0; +#X obj 19 234 s \$1-COMMUN-RESPONSE; +#X obj 19 213 prepent \$2-constrained-to; +#X text 126 164 Only allow one or the other; +#X text 79 31 Allows one to replace the "scaled output" response with +something prettier (e.g. \, if it actually corresponds to a waveform +selector \, you can return the names); +#X connect 0 0 1 0; +#X connect 1 0 3 0; +#X connect 1 1 4 0; +#X connect 1 2 2 0; +#X connect 2 0 3 1; +#X connect 3 0 9 0; +#X connect 5 0 6 0; +#X connect 6 0 9 0; +#X connect 6 1 7 0; +#X connect 7 0 3 1; +#X connect 9 0 8 0; +#X restore 176 396 pd constraintsFeedback; +#N canvas 488 62 303 238 receiveMultiplier 1; +#X obj 133 63 commun \$2-multiplier \$1; +#X obj 72 15 r \$1-RRADICAL-OSC; +#X obj 72 38 deeprouteOSC \$2-multiplier; +#X obj 72 63 route get; +#X obj 72 98 f; +#X obj 38 171 prepent \$2-multiplier-is; +#X obj 38 194 s \$1-COMMUN-RESPONSE; +#X obj 72 134 s \$0multiplier; +#X obj 123 98 t a a; +#X obj 7 17 loadbang; +#X msg 7 42 1; +#X connect 0 0 8 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 1 0 0; +#X connect 3 1 8 0; +#X connect 4 0 7 0; +#X connect 4 0 5 0; +#X connect 5 0 6 0; +#X connect 8 0 7 0; +#X connect 8 1 4 1; +#X connect 9 0 10 0; +#X connect 10 0 7 0; +#X restore 297 181 pd receiveMultiplier; +#X obj 81 391 r \$0multiplier; +#X obj 45 408 *; +#X connect 0 0 28 0; +#X connect 3 0 1 0; +#X connect 4 0 6 0; +#X connect 4 0 9 3; +#X connect 5 0 6 1; +#X connect 5 0 9 4; +#X connect 6 0 36 0; +#X connect 7 0 22 0; +#X connect 7 1 8 0; +#X connect 8 0 22 0; +#X connect 9 0 39 0; +#X connect 10 0 13 0; +#X connect 11 0 14 0; +#X connect 15 0 20 0; +#X connect 16 0 19 0; +#X connect 17 0 4 0; +#X connect 18 0 5 0; +#X connect 19 0 5 0; +#X connect 19 1 5 4; +#X connect 19 1 4 4; +#X connect 20 0 4 0; +#X connect 20 1 5 3; +#X connect 20 1 4 3; +#X connect 21 0 7 1; +#X connect 22 0 3 0; +#X connect 24 0 9 0; +#X connect 25 0 3 0; +#X connect 26 0 25 0; +#X connect 27 0 24 0; +#X connect 28 0 29 0; +#X connect 30 0 3 0; +#X connect 31 0 30 0; +#X connect 38 0 39 1; +#X connect 39 0 7 0; diff --git a/semento/sft.commun.sc.ez.pd b/semento/sft.commun.sc.ez.pd index 87f61d7..679717c 100644 --- a/semento/sft.commun.sc.ez.pd +++ b/semento/sft.commun.sc.ez.pd @@ -4,10 +4,10 @@ #X text 47 201 Receives from \$0paramName and sends to \$0paramNameR ; #X text 330 223 *optional; -#X obj 106 66 sft.commun.sc \$1 \$2/\$3 \$4 \$5 \$6 \$7; +#X obj 106 66 commun-c-scale \$1 \$2/\$3 \$4 \$5 \$6 \$7; #X text 47 171 \$3 is uniqueID like /chptrA. In Bathyscaphe that's \$3 \, in FXS it's \$2.; -#X text 46 153 [sft.commun.sc.ez \$0 \$3 paramName 0 5000 round* hide*] +#X text 46 153 [commun-c-scale-ez \$0 \$3 paramName 0 5000 round* hide*] ; #X connect 0 0 4 0; #X connect 4 0 1 0; diff --git a/semento/sft.commun.sc.pd b/semento/sft.commun.sc.pd index 0336c48..0efb334 100644 --- a/semento/sft.commun.sc.pd +++ b/semento/sft.commun.sc.pd @@ -3,9 +3,6 @@ #X obj 108 565 outlet; #X text 5 93 RRADICAL_MEMENTO is also in originator; #X obj 108 538 list; -#X obj 132 318 expr_scale 0 1 \$3 \$4; -#X obj 289 318 expr_scale 0 1 \$3 \$4; -#X obj 176 371 hotpack f f; #X obj 45 437 demultiplex; #X obj 108 459 round; #X obj 45 370 expr_scale 0 1 \$3 \$4; @@ -16,12 +13,8 @@ range. Input as relative to 0-1. Reports back what the result will be when scaled fully; #X obj 156 59 s \$0boundLowFull; #X obj 286 59 s \$0boundHighFull; -#X obj 162 252 r \$0boundLowFull; -#X obj 329 252 r \$0boundHighFull; -#X obj 132 229 r \$0constrainLow; -#X obj 289 230 r \$0constrainHigh; -#X obj 329 277 t b a; -#X obj 162 279 t b a; +#X obj 132 252 r \$0boundLowFull; +#X obj 162 282 r \$0boundHighFull; #X obj 108 415 r \$0round?; #X obj 45 459 t a; #X text 186 548 Read \$1-OSC (== \$0-OSC) \, filter by argument \$2 @@ -49,7 +42,7 @@ be when scaled fully; #X connect 2 1 5 0; #X connect 4 0 2 0; #X connect 6 0 4 0; -#X restore 297 108 pd handleArgs; +#X restore 348 118 pd handleArgs; #N canvas 0 22 390 211 listParams 0; #X obj 31 79 spigot 1; #X msg 161 62 0; @@ -64,126 +57,23 @@ special address for 0-1 data input only; #X connect 2 0 1 0; #X connect 3 0 0 0; #X connect 5 0 4 0; -#X restore 297 133 pd listParams; -#N canvas 0 22 352 303 receiveConstraints 0; -#X obj 80 156 unpack f f; -#X obj 80 200 s \$0constrainLow; -#X obj 137 178 s \$0constrainHigh; -#X obj 16 50 loadbang; -#X msg 16 75 0 1; -#X obj 80 115 list; -#X obj 131 115 t a a; -#X obj 80 87 route get; -#X text 62 264 Used to recall the 0-1 ranged constraint; -#X obj 80 20 r \$1-RRADICAL-OSC; -#X obj 64 245 s \$1-COMMUN-RESPONSE; -#X obj 80 43 deeprouteOSC \$2-constrain; -#X obj 64 224 prepent \$2-constrained-to-0-1; -#X text 145 68 Save the constraints; -#X obj 147 87 commun \$2-constraints \$1; -#X connect 0 0 1 0; -#X connect 0 1 2 0; -#X connect 3 0 4 0; -#X connect 4 0 0 0; -#X connect 4 0 5 1; -#X connect 5 0 0 0; -#X connect 5 0 12 0; -#X connect 6 0 0 0; -#X connect 6 1 5 1; -#X connect 7 0 5 0; -#X connect 7 1 6 0; -#X connect 7 1 14 0; -#X connect 9 0 11 0; -#X connect 11 0 7 0; -#X connect 12 0 10 0; -#X connect 14 0 6 0; -#X restore 297 157 pd receiveConstraints; -#N canvas 323 119 442 277 constraintsFeedback 0; -#X obj 19 35 inlet; -#X obj 19 63 t a a b; -#X msg 58 85 1; -#X obj 19 128 spigot; -#X obj 38 107 s \$1\$2/constraint/lookup/call; -#X obj 67 129 r \$1\$2/constraint/lookup/response; -#X obj 67 151 t a b; -#X msg 94 173 0; -#X obj 19 234 s \$1-COMMUN-RESPONSE; -#X obj 19 213 prepent \$2-constrained-to; -#X text 126 164 Only allow one or the other; -#X text 79 31 Allows one to replace the "scaled output" response with -something prettier (e.g. \, if it actually corresponds to a waveform -selector \, you can return the names); -#X connect 0 0 1 0; -#X connect 1 0 3 0; -#X connect 1 1 4 0; -#X connect 1 2 2 0; -#X connect 2 0 3 1; -#X connect 3 0 9 0; -#X connect 5 0 6 0; -#X connect 6 0 9 0; -#X connect 6 1 7 0; -#X connect 7 0 3 1; -#X connect 9 0 8 0; -#X restore 176 396 pd constraintsFeedback; -#N canvas 488 62 303 238 receiveMultiplier 1; -#X obj 133 63 commun \$2-multiplier \$1; -#X obj 72 15 r \$1-RRADICAL-OSC; -#X obj 72 38 deeprouteOSC \$2-multiplier; -#X obj 72 63 route get; -#X obj 72 98 f; -#X obj 38 171 prepent \$2-multiplier-is; -#X obj 38 194 s \$1-COMMUN-RESPONSE; -#X obj 72 134 s \$0multiplier; -#X obj 123 98 t a a; -#X obj 7 17 loadbang; -#X msg 7 42 1; -#X connect 0 0 8 0; -#X connect 1 0 2 0; -#X connect 2 0 3 0; -#X connect 3 0 4 0; -#X connect 3 1 0 0; -#X connect 3 1 8 0; -#X connect 4 0 7 0; -#X connect 4 0 5 0; -#X connect 5 0 6 0; -#X connect 8 0 7 0; -#X connect 8 1 4 1; -#X connect 9 0 10 0; -#X connect 10 0 7 0; -#X restore 297 181 pd receiveMultiplier; -#X obj 81 391 r \$0multiplier; -#X obj 45 408 *; -#X connect 0 0 28 0; +#X restore 347 143 pd listParams; +#X connect 0 0 21 0; #X connect 3 0 1 0; -#X connect 4 0 6 0; -#X connect 4 0 9 3; -#X connect 5 0 6 1; -#X connect 5 0 9 4; -#X connect 6 0 36 0; -#X connect 7 0 22 0; -#X connect 7 1 8 0; -#X connect 8 0 22 0; -#X connect 9 0 39 0; -#X connect 10 0 13 0; -#X connect 11 0 14 0; -#X connect 15 0 20 0; -#X connect 16 0 19 0; -#X connect 17 0 4 0; -#X connect 18 0 5 0; -#X connect 19 0 5 0; -#X connect 19 1 5 4; -#X connect 19 1 4 4; -#X connect 20 0 4 0; -#X connect 20 1 5 3; -#X connect 20 1 4 3; -#X connect 21 0 7 1; -#X connect 22 0 3 0; -#X connect 24 0 9 0; -#X connect 25 0 3 0; -#X connect 26 0 25 0; -#X connect 27 0 24 0; -#X connect 28 0 29 0; -#X connect 30 0 3 0; -#X connect 31 0 30 0; -#X connect 38 0 39 1; -#X connect 39 0 7 0; +#X connect 4 0 15 0; +#X connect 4 1 5 0; +#X connect 5 0 15 0; +#X connect 6 0 4 0; +#X connect 7 0 10 0; +#X connect 8 0 11 0; +#X connect 12 0 6 3; +#X connect 13 0 6 4; +#X connect 14 0 4 1; +#X connect 15 0 3 0; +#X connect 17 0 6 0; +#X connect 18 0 3 0; +#X connect 19 0 18 0; +#X connect 20 0 17 0; +#X connect 21 0 22 0; +#X connect 23 0 3 0; +#X connect 24 0 23 0; diff --git a/semento/sft.commun.x-help.pd b/semento/sft.commun.x-help.pd index e5ad3fd..b00d04d 100644 --- a/semento/sft.commun.x-help.pd +++ b/semento/sft.commun.x-help.pd @@ -1,12 +1,12 @@ #N canvas 797 415 454 304 10; -#X text 25 26 sft.commun.x - Make a control visible to the OSC system +#X text 25 26 commun-c-justosc - Make a control visible to the OSC system of Memento \, without state-saving.; #X text 25 62 Mostly this is for buttons \, but could also work for other controls whose state is transient in nature.; #X obj 24 219 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; -#X obj 110 277 sft.originator /system1 \$0; -#X obj 24 143 sft.commun.x /button1 \$0; +#X obj 110 277 originator-p /system1 \$0; +#X obj 24 143 commun-c-justosc /button1 \$0; #X msg 229 133 /system1/button1 bang; #X obj 229 159 s PDOSC; #X obj 229 239 s /system1/OSC; diff --git a/semento/sft.originator.pd b/semento/sft.originator.pd index 579b6da..e3ccb9f 100644 --- a/semento/sft.originator.pd +++ b/semento/sft.originator.pd @@ -162,7 +162,7 @@ by a number.; #X msg 818 270 set \$1; #X obj 818 298 s \$2-parentstate; #X msg 745 513 /preset \$1; -#X obj 563 351 sft.rradical.state \$1; +#X obj 563 351 rradical.state-p \$1; #X obj 262 77 r \$2-localSave; #X text 14 47 global send to do something crazy with!; #X obj 262 56 r \$1-localSetsub; @@ -173,7 +173,7 @@ by a number.; #X obj 731 308 r PDOSC; #X obj 77 580 r \$1/getParams; #X obj 77 619 s \$2/listParams; -#X text 85 599 Dispatch to sft.communs; +#X text 85 599 Dispatch to commun-cs; #X obj 563 419 prepent RRADICAL.dummy; #X obj 535 300 prepent set; #X obj 448 493 prepent RRADICAL.dummy; |