Class ELEnvironment
java.lang.Object
|
+--ELEnvironment
- public class ELEnvironment
- extends java.lang.Object
The environment in which an operator is applied. This contains
information such as global animation parameters used by some
operators.
These values should be read by expressions, but never set by expressions.
Field Summary |
double[] |
filteredFrequency
Block averages over the frequencies. |
double[] |
frequency
Frequency decomposition. |
boolean |
multiThreadEvaluation
When true, evaluation of a single expression is multithreaded for
performance. |
boolean |
multiThreadInterpolation
When true, evaluation of an ELMorphInterpolator expression is
multithreaded for performance. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
frequency
public double[] frequency
- Frequency decomposition. Values range from 0 - 1.
filteredFrequency
public double[] filteredFrequency
- Block averages over the frequencies. Values range from 0 - 1.
multiThreadEvaluation
public boolean multiThreadEvaluation
- When true, evaluation of a single expression is multithreaded for
performance. Setting this to false may improve performance on
machines with a small number of processors.
multiThreadInterpolation
public boolean multiThreadInterpolation
- When true, evaluation of an ELMorphInterpolator expression is
multithreaded for performance. Setting this to false may improve
performance on a single processor machine.
ELEnvironment
public ELEnvironment()
setTime
public void setTime(double s)
getTime
public double getTime()
setMorphInterpolationParameter
public void setMorphInterpolationParameter(double m)
getMorphInterpolationParameter
public double getMorphInterpolationParameter()
simulateFrequencies
public void simulateFrequencies()
- Sets frequencies using a simulated audio input.
recomputeFilteredFrequencies
public void recomputeFilteredFrequencies()
- Recomputes the filtered frequencies from the unfiltered ones
hash
public int hash()
- Returns a hash code. This hash is unique for each environment
and changes each time the environment changes. If a behavior is
evaluated twice with an environment where the hash has not changed,
it can safely assume that any cached values are still valid.