Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smoothly continuous speed controller, working



The first time you run this patch after quitting and restarting QC the output of the _javascript_ returns NaN, then when I stop the composition and start it again it works correctly.  Bug or am I doing something wrong?

Problem is that inputs[0] is undefined the first time the script runs although it should not. Found the bug in the source code - good catch :)

you can do something like that to work around the issue:

if(inputs[0] == undefined)
...
else
...

Secondly patch time stopping at zero is causing me a problem.  QC Compositions are continuous realtime compositions in both directions, so they should be able to keep going indefinitely in forward or backward time.

I can kind of get around this by setting the start patch time to some arbitrary large number but it will still eventually
"hit a wall" and stop if I leave it running backwards forever.

could patch time wrap around to some large number when it goes below zero, or at least this be an option settable
per composition?

Just pass the time value through a Range Patch with a min of 0 and a max fairly high - you might still get a discontinuity when going through 0 though


________________________________________________________

Pierre-Olivier Latour                            email@hidden

Quartz Composer Architect                Graphic & Imaging Team


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >smoothly continuous speed controller? (From: Roger Bolton <email@hidden>)
 >Re: smoothly continuous speed controller? (From: Pierre-Olivier Latour <email@hidden>)
 >Re: smoothly continuous speed controller? (From: Roger Bolton <email@hidden>)
 >Re: smoothly continuous speed controller? (From: Pierre-Olivier Latour <email@hidden>)
 >Re: smoothly continuous speed controller? (From: Roger Bolton <email@hidden>)
 >Re: smoothly continuous speed controller? (From: Pierre-Olivier Latour <email@hidden>)
 >smoothly continuous speed controller, working (From: Roger Bolton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.