Hi,
I didn't found an equivalent to max external "selector~" , I made this
ugly abstraction for 3 inputs but I wonder if there is something more
standard and that can accept argument to set the number of inputs.
is there one?
I used 'mixer~' which is ggee to do it, so there maybe some way to do
this with some scripting... or just by making a new external by code...
let me know, so I may think about making one if necessary.
loic
#N canvas 272 176 717 638 10; #X obj 272 391 osc~ 220; #X obj 272 411 *~ 0.1; #X obj 326 411 *~ 0.1; #X floatatom 326 368 0 0 0 0 - - -; #X floatatom 272 368 0 0 0 0 - - -; #X msg 214 338 1 $1; #X floatatom 122 266 0 0 0 0 - - -; #X floatatom 79 266 0 0 0 0 - - -; #X msg 170 337 0 $1; #X obj 326 391 osc~ 330; #X obj 257 529 dac~; #X obj 147 235 expr (1 -$i1); #X obj 390 412 *~ 0.1; #X floatatom 390 369 0 0 0 0 - - -; #X floatatom 164 264 0 0 0 0 - - -; #X msg 256 336 2 $1; #X obj 262 471 mixer~ 3; #X obj 390 392 osc~ 550; #X obj 109 174 route 0 1 2 3; #X msg 110 139 0; #X msg 140 145 1; #X msg 180 140 2; #X msg 207 144 3; #X floatatom 312 266 0 0 0 0 - - -; #X floatatom 269 266 0 0 0 0 - - -; #X obj 296 232 expr (1 -$i1); #X floatatom 354 264 0 0 0 0 - - -; #X msg 152 204 1; #X msg 297 203 1; #X floatatom 463 267 0 0 0 0 - - -; #X floatatom 420 267 0 0 0 0 - - -; #X obj 447 233 expr (1 -$i1); #X floatatom 505 265 0 0 0 0 - - -; #X msg 448 204 1; #X msg 58 225 0; #X obj 140 120 loadbang; #X obj 58 134 inlet; #X obj 315 529 outlet~; #X connect 0 0 1 0; #X connect 1 0 16 0; #X connect 2 0 16 1; #X connect 3 0 9 0; #X connect 4 0 0 0; #X connect 5 0 16 0; #X connect 6 0 5 0; #X connect 7 0 8 0; #X connect 8 0 16 0; #X connect 9 0 2 0; #X connect 11 0 6 0; #X connect 11 0 14 0; #X connect 12 0 16 2; #X connect 13 0 17 0; #X connect 14 0 15 0; #X connect 15 0 16 0; #X connect 16 0 10 0; #X connect 16 0 10 1; #X connect 17 0 12 0; #X connect 18 0 34 0; #X connect 18 1 27 0; #X connect 18 2 28 0; #X connect 18 3 33 0; #X connect 19 0 18 0; #X connect 20 0 18 0; #X connect 21 0 18 0; #X connect 22 0 18 0; #X connect 23 0 5 0; #X connect 24 0 8 0; #X connect 25 0 26 0; #X connect 25 0 24 0; #X connect 26 0 15 0; #X connect 27 0 11 0; #X connect 27 0 7 0; #X connect 28 0 25 0; #X connect 28 0 23 0; #X connect 29 0 5 0; #X connect 30 0 8 0; #X connect 31 0 30 0; #X connect 31 0 29 0; #X connect 32 0 15 0; #X connect 33 0 31 0; #X connect 33 0 32 0; #X connect 34 0 8 0; #X connect 34 0 5 0; #X connect 34 0 15 0; #X connect 35 0 20 0;
Loic Kessous a écrit :
Hi,
I didn't found an equivalent to max external "selector~" , I made this ugly abstraction for 3 inputs but I wonder if there is something more standard and that can accept argument to set the number of inputs.
is there one?
not in vanilla.
i made a smaller abstraction. see attachment. Cyrille
I used 'mixer~' which is ggee to do it, so there maybe some way to do this with some scripting... or just by making a new external by code...
let me know, so I may think about making one if necessary.
loic
selector~ for 3 signal inputs:
#N canvas 272 176 717 638 10; #X obj 272 391 osc~ 220; #X obj 272 411 *~ 0.1; #X obj 326 411 *~ 0.1; #X floatatom 326 368 0 0 0 0 - - -; #X floatatom 272 368 0 0 0 0 - - -; #X msg 214 338 1 $1; #X floatatom 122 266 0 0 0 0 - - -; #X floatatom 79 266 0 0 0 0 - - -; #X msg 170 337 0 $1; #X obj 326 391 osc~ 330; #X obj 257 529 dac~; #X obj 147 235 expr (1 -$i1); #X obj 390 412 *~ 0.1; #X floatatom 390 369 0 0 0 0 - - -; #X floatatom 164 264 0 0 0 0 - - -; #X msg 256 336 2 $1; #X obj 262 471 mixer~ 3; #X obj 390 392 osc~ 550; #X obj 109 174 route 0 1 2 3; #X msg 110 139 0; #X msg 140 145 1; #X msg 180 140 2; #X msg 207 144 3; #X floatatom 312 266 0 0 0 0 - - -; #X floatatom 269 266 0 0 0 0 - - -; #X obj 296 232 expr (1 -$i1); #X floatatom 354 264 0 0 0 0 - - -; #X msg 152 204 1; #X msg 297 203 1; #X floatatom 463 267 0 0 0 0 - - -; #X floatatom 420 267 0 0 0 0 - - -; #X obj 447 233 expr (1 -$i1); #X floatatom 505 265 0 0 0 0 - - -; #X msg 448 204 1; #X msg 58 225 0; #X obj 140 120 loadbang; #X obj 58 134 inlet; #X obj 315 529 outlet~; #X connect 0 0 1 0; #X connect 1 0 16 0; #X connect 2 0 16 1; #X connect 3 0 9 0; #X connect 4 0 0 0; #X connect 5 0 16 0; #X connect 6 0 5 0; #X connect 7 0 8 0; #X connect 8 0 16 0; #X connect 9 0 2 0; #X connect 11 0 6 0; #X connect 11 0 14 0; #X connect 12 0 16 2; #X connect 13 0 17 0; #X connect 14 0 15 0; #X connect 15 0 16 0; #X connect 16 0 10 0; #X connect 16 0 10 1; #X connect 17 0 12 0; #X connect 18 0 34 0; #X connect 18 1 27 0; #X connect 18 2 28 0; #X connect 18 3 33 0; #X connect 19 0 18 0; #X connect 20 0 18 0; #X connect 21 0 18 0; #X connect 22 0 18 0; #X connect 23 0 5 0; #X connect 24 0 8 0; #X connect 25 0 26 0; #X connect 25 0 24 0; #X connect 26 0 15 0; #X connect 27 0 11 0; #X connect 27 0 7 0; #X connect 28 0 25 0; #X connect 28 0 23 0; #X connect 29 0 5 0; #X connect 30 0 8 0; #X connect 31 0 30 0; #X connect 31 0 29 0; #X connect 32 0 15 0; #X connect 33 0 31 0; #X connect 33 0 32 0; #X connect 34 0 8 0; #X connect 34 0 5 0; #X connect 34 0 15 0; #X connect 35 0 20 0;
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Loic Kessous wrote:
Hi,
I didn't found an equivalent to max external "selector~" , I made this ugly abstraction for 3 inputs but I wonder if there is something more standard and that can accept argument to set the number of inputs.
is there one?
I used 'mixer~' which is ggee to do it, so there maybe some way to do this with some scripting... or just by making a new external by code...
let me know, so I may think about making one if necessary.
hmm, i still don't know what [selector~] is supposed to do. i guess it is something like zexy's [demux~] (forwarding a selected inlet~ to the outlet~)
the problem with scripting is, that you cannot dynamically create iolets (at least not in a way that you can re-use them); you need an external for these kind of things (unless miller finally includes [initbang] :-))
mfgasd.r IOhannes
Hi Loic,
I was also going to say use [mux~] and [demux~], but then I see [mux~] in your patch already... The problem with asking "which Pd object is like this Max object?" is that many of us have never used Max. If you could describe in plain text what the function you want is, maybe we can help you better.
D.
IOhannes m zmoelnig wrote:
hmm, i still don't know what [selector~] is supposed to do. i guess it is something like zexy's [demux~] (forwarding a selected inlet~ to the outlet~)
Derek Holzer wrote:
Hi Loic,
I was also going to say use [mux~] and [demux~], but then I see [mux~] in your patch already...
you are probably looking at my patch (with [mux~]) rather than loic's patch (without it)
The problem with asking "which Pd object is like this Max object?" is that many of us have never used Max. If you could describe in plain text what the function you want is, maybe we can help you better.
fgmasdr IOhannes
Ah yes, ooops! Another reason to write things in plain text, attachments can be problematic ;-)
D.
IOhannes m zmoelnig wrote:
I was also going to say use [mux~] and [demux~], but then I see [mux~] in your patch already...
you are probably looking at my patch (with [mux~]) rather than loic's patch (without it)
On 14 sept. 09, at 11:41, IOhannes m zmoelnig wrote:
Derek Holzer wrote:
Hi Loic, I was also going to say use [mux~] and [demux~], but then I see
[mux~] in your patch already...you are probably looking at my patch (with [mux~]) rather than
loic's patch (without it)The problem with asking "which Pd object is like this Max object?"
is that many of us have never used Max. If you could describe in
plain text what the function you want is, maybe we can help you
better.
yep, that's was I was thinking to put a link to the max online
reference for this, but I forgot to send the link :)
http://www.cycling74.com/docs/max5/refpages/msp-ref/selector~.html
FYI:
basically, multiplex~ (a.k.a mux~ ) does the job, the only 2
differences are :
while for selector~ in max it means no signal (mute)
inlets that you want to use, and for mux~ each argument is an initial
value for each inlet
except this, this is the same thing.
thanks all, this was very useful. loic
fgmasdr IOhannes _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list