java.lang.Object
org.praxislive.code.CodeDelegate
org.praxislive.code.DefaultCodeDelegate
org.praxislive.core.code.DataCodeDelegate
- All Implemented Interfaces:
DefaultDelegateAPI
Basic data code delegate base class.
-
Field Summary
Fields inherited from class org.praxislive.code.DefaultCodeDelegate
RND -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.praxislive.code.DefaultCodeDelegate
random, random, randomOf, randomOf, randomOfMethods inherited from class org.praxislive.code.CodeDelegate
ask, ask, async, find, getLookup, isLoggable, log, log, log, log, millis, self, self, tell, tell, tell, tellIn, tellIn, tellIn, time, transmit, transmit, transmitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.code.DefaultDelegateAPI
abs, acos, array, array, array, asin, atan, atan2, B, constrain, constrain, cos, D, D, degrees, dist, dist, exp, I, I, lerp, log, map, max, max, max, max, max, max, min, min, min, min, min, min, norm, pow, radians, round, S, sin, sq, sqrt, tan, V
-
Constructor Details
-
DataCodeDelegate
public DataCodeDelegate()
-
-
Method Details
-
init
public void init()Hook called whenever the delegate needs to be initialized. Will be called when the root is started, on adding a component to a running root, and any time the code is updated. Because this code is called in a running root, the code should be suitable for real-time usage. -
starting
public void starting()Hook called whenever the root is started. This method will be called afterinit(). It is not called on code updates. -
update
public void update()Hook called on every clock update. This will vary depending on the root the component is installed into - it may correspond to every buffer or frame. If a component reacts solely to input and doesn't need to be called every cycle, do not override this method so that the delegate does not have to be connected to the clock (for efficiency). -
stopping
public void stopping()Hook called when the root is stopping.
-