public class Envelope
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[] |
ampls |
private int |
loop_end_tick |
private int |
loop_start_tick |
boolean |
looped |
boolean |
sustain |
private int |
sustain_tick |
private int[] |
ticks |
Constructor and Description |
---|
Envelope() |
Modifier and Type | Method and Description |
---|---|
int |
calculate_ampl(int tick) |
void |
dump() |
int |
next_tick(int tick,
boolean key_on) |
void |
set_loop_points(int start,
int end) |
void |
set_num_points(int num_points) |
void |
set_point(int point,
int tick,
int ampl,
boolean delta) |
void |
set_sustain_point(int point) |
public boolean sustain
public boolean looped
private int sustain_tick
private int loop_start_tick
private int loop_end_tick
private int[] ticks
private int[] ampls
public void set_num_points(int num_points)
public void set_point(int point, int tick, int ampl, boolean delta)
public void set_sustain_point(int point)
public void set_loop_points(int start, int end)
public int next_tick(int tick, boolean key_on)
public int calculate_ampl(int tick)
public void dump()