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: audio input (maintaining state)



What would be the quickest way of maintaining state in a Quartz Composer animation?

Ex: if there is high volume signal coming in through the audio input interface i'd like that signal to be expressed longer then a quiet signal. This is mainly for visual requirements, but i'm sure there are other examples.

To do memory-like operations in Quartz Composer, you have to use _javascript_ and store your global variables into some of the patch outputs.

var myGlobalVariable = outputs[1];

//do some operation on myGlobalVariable using various inputs
myGlobalVariable = myGlobalVariable * inputs[0] + inputs[1];

outputs[0] = result
outputs[1] = myGlobalVariable;


________________________________________________________

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: 
 >audio input (maintaining state) (From: Robert Spychala <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.