public class EnvelopePoints
extends java.util.Vector
Constructor and Description |
---|
EnvelopePoints() |
Modifier and Type | Method and Description |
---|---|
void |
add(double dur,
double value) |
double |
getDuration(int index) |
double |
getMaximumValue() |
java.lang.String |
getName() |
double[] |
getPoint(int index) |
int |
getReleaseBegin() |
int |
getReleaseEnd() |
int |
getReleaseSize() |
int |
getSustainBegin() |
int |
getSustainEnd() |
int |
getSustainSize() |
double |
getTotalDuration() |
double |
getValue(int index) |
void |
insert(int index,
double dur,
double y)
Insert point without changing total duration by reducing next points duration.
|
boolean |
isDirty() |
void |
removePoint(int index)
Remove indexed point and update sustain and release loops if necessary.
|
void |
setDirty(boolean b) |
void |
setMaximumValue(double maximumValue) |
void |
setName(java.lang.String name) |
void |
setReleaseLoop(int startFrame,
int endFrame)
Set location of Release Loop in units of Frames.
|
void |
setSustainLoop(int startFrame,
int endFrame)
Set location of Sustain Loop in units of Frames.
|
void |
updateEnvelope(SegmentedEnvelope envelope)
The editor works on a vector of points, not a real envelope.
|
void |
updateEnvelopeIfDirty(SegmentedEnvelope envelope)
Update only if points or loops were modified.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
public void updateEnvelopeIfDirty(SegmentedEnvelope envelope)
public void updateEnvelope(SegmentedEnvelope envelope)
public void setName(java.lang.String name)
public java.lang.String getName()
public void setMaximumValue(double maximumValue)
public double getMaximumValue()
public void add(double dur, double value)
public void insert(int index, double dur, double y)
public void removePoint(int index)
public double getDuration(int index)
public double getValue(int index)
public double[] getPoint(int index)
public double getTotalDuration()
public void setSustainLoop(int startFrame, int endFrame)
public int getSustainBegin()
public int getSustainEnd()
public int getSustainSize()
public void setReleaseLoop(int startFrame, int endFrame)
public int getReleaseBegin()
public int getReleaseEnd()
public int getReleaseSize()
public boolean isDirty()
public void setDirty(boolean b)