Hi MJ,
I looked for the same functionality a few weeks ago. Although it
somehow didn't work for me when the composition is controlled by a
Cocoa app, the following JavaScript works in QC like a "gate 16"
object in Max/MSP. Hope that helps!
Chris
----------
// input[0]: selects output (Index)
// input[1]: values (Boolean, Index, Number, String or Structure)
var i;
/* init */
if(Object.array == undefined) {
Object.count = 16;
Object.array = new Array(16);
for (i = 0; i < Object.count; i++) {
Object.array[i] = null;
} }
/* assign input */
if ((inputs[0] >= 0) && (inputs[0] < Object.count))
Object.array[inputs[0]] = inputs[1];
/* output */
for (i = 0; i < Object.count; i++) {
if (Object.array[i] != null)
outputs[i] = Object.array[i];
}
----------
On May 4, 2006, at 10:59 AM, MJ wrote:
hi list
i'm new to this list
before playing with quartzcomposer i used to code in max/msp
but somehow quartzcomposer is a bit faster on graphics.
so trying to make some patch'es in here.
question:
is there a inversed multiplexer object
so one input for a source one input for a choice
and N outputs to choose from
or speeking max/msp is there a "gate" object?
-mj
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-
email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/toepfner%
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-
email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/asabatelli
%40apple.com
This email sent to email@hidden