public class Envelope extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
carry |
boolean |
filter |
boolean |
loop |
boolean |
on |
boolean |
sustain |
| Constructor and Description |
|---|
Envelope()
Constructor for Envelope
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValueForPosition(int p)
get the value at the position
Returns values between 0 and 512
|
void |
setITType(int flag)
Sets the boolean values corresponding to the flag value
IT-Version (why on earth needed this to be swaped?!)
|
void |
setLoopEndPoint(int loopEndPoint) |
void |
setLoopStartPoint(int loopStartPoint) |
void |
setNPoints(int points) |
void |
setPosition(int[] position) |
void |
setSustainEndPoint(int sustainEndPoint) |
void |
setSustainPoint(int sustainPoint) |
void |
setSustainStartPoint(int sustainStartPoint) |
void |
setValue(int[] value) |
void |
setXMType(int flag)
Sets the boolean values corresponding to the flag value
XM-Version
|
int |
updatePosition(int p,
boolean keyOff)
Get the new position
|
public boolean on
public boolean sustain
public boolean loop
public boolean carry
public boolean filter
public int updatePosition(int p,
boolean keyOff)
p - keyOff - public int getValueForPosition(int p)
p - public void setXMType(int flag)
flag - public void setITType(int flag)
flag - public void setLoopEndPoint(int loopEndPoint)
loopEndPoint - The loopEndPoint to set.public void setLoopStartPoint(int loopStartPoint)
loopStartPoint - The loopStartPoint to set.public void setNPoints(int points)
points - The nPoints to set.public void setPosition(int[] position)
position - The position to set.public void setValue(int[] value)
value - The value to set.public void setSustainPoint(int sustainPoint)
sustainPoint - The sustainPoint to set. (XM-Version)public void setSustainEndPoint(int sustainEndPoint)
sustainEndPoint - the sustainEndPoint to set (IT-Version)public void setSustainStartPoint(int sustainStartPoint)
sustainStartPoint - the sustainStartPoint to set (IT-Version)Copyright © 2014. All rights reserved.