As Keith hinted:
If an external patch time is being used on interpolation patch you
can't assume patch time will ever take an exact value. I'm thinking
when one interpolation patch output is feeding the patchtime of a
second interpolation patch. So calculations may require tolerances
ie. in a Math Expression patch
(( patchTime >= targetTime - tolerance) & (patchTime <= targetTime +
tolerance))? 1:0
I had to do exactly that kind of test once.
Best
Alastair
On 02/11/2010, at 4:27 PM, Christopher Wright wrote:
In loop mode, something is on the backside of the loop if patch
time after it passes .5 in relation to any integer.
It's actually not quite that simple: in mirrored loop mode, the
duration from start to start is 2x duration. It's still manageable,
just a bit more complex than checking against 0.5.
I think you can make yourself a custom virtual macro that did this
exact function you desire using existing patches, and load it into
your patch library.
Basically, I often want to know when an Interpolation patch has just
'bounced' from one of it's Start or End values, and sometimes, which
direction it's heading in.
This would be useful for triggering events at the end of the
interpolation, loop, etc.
clean way:
If loop mode is none, and patch time is 0, it just hit start. if
patch time == duration, it just ended. (you should check if the
interval between the current frame and the last frame includes the
end time, instead of expecting to have a frame land exactly on the
end time)
If loop mode is repeat, check last frame time and current frame
time, see if the interval contains the duration, and if so, you just
ended.
If loop mode is mirrored repeat,… you get the idea.
It's totally addressable with built-in patches, as long as you're
mindful of the duration and do interval math correctly.
--
Christopher Wright
[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/qc.student.au%40gmail.com
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]