ah yes, Tiger is missing that patch.
Try this (untested!) in a javascript patch - world's simplest low
pass filter.
Adjust the number of inputs to get the right amount of slow-down.
num_samples = 10; /* must be <= the number of outputs - 1 ! */
total = 0;
for (i = num_samples; i > 0; i--) {
outputs[i] = outputs[i - 1];
total += outputs[i];
}
outputs[0] = inputs[0];
total += outputs[0];
outputs[num_samples + 1] = total/num_samples;
You could also do something fancier ...
This is also untested, but I believe it'll work.
/*
A simple script that takes two input values, sums them and returns
the result.
*/
SlowOutput = outputs[0]; /* this is your output */
/* need to use outputs to hold values from one iteration to the next */
targetVal = outputs[1]; /* don't connect this to anything */
StartVal = outputs[2]; /* don't connect this to anything */
prevInputVal = outputs[3]; /* don't connect this to anything */
startTime = outputs[4]; /* don't connect this to anything */
newInput = inputs[0]; /* this is your input */
duration = inputs[1]; /* set this to the desired time */
patchTime = inputs[2]; /* connect this to patch time */
if (prevInputVal != newInput) {
/* starting new movement */
StartVal = SlowOutput;
targetVal = newInput;
prevInputVal = newInput;
startTime = patchTime;
}
if (SlowOutput != targetVal) {
deltaTime = patchTime - startTime;
percentMoved = deltaTime/duration;
amountToMove = (targetVal - StartVal);
SlowOutput += percentMoved * amountToMove;
}
On Jan 17, 2008, at Jan 17, 2008 | 4:01 PM, Joel Ibbetson wrote:
Is that new with Leopard, I've been running in Tiger and can't see it?
J
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-
[EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/
jack.hayward%40comcast.net
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]