public class Instrument
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[] |
key_to_sample |
java.lang.String |
name |
private Envelope |
panning_envelope |
boolean |
panning_envelope_active |
private Sample[] |
samples |
int |
vibrato_depth |
int |
vibrato_rate |
int |
vibrato_sweep |
int |
vibrato_type |
private Envelope |
volume_envelope |
boolean |
volume_envelope_active |
int |
volume_fade_out |
Constructor and Description |
---|
Instrument() |
Modifier and Type | Method and Description |
---|---|
int |
get_num_samples() |
Envelope |
get_panning_envelope() |
Sample |
get_sample_from_key(int key) |
Sample |
get_sample(int sample_index) |
Envelope |
get_volume_envelope() |
void |
set_key_to_sample(int key,
int sample) |
void |
set_num_samples(int num_samples) |
void |
set_panning_envelope(Envelope envelope) |
void |
set_sample(int sample_index,
Sample sample) |
void |
set_volume_envelope(Envelope envelope) |
public java.lang.String name
public int vibrato_type
public int vibrato_sweep
public int vibrato_depth
public int vibrato_rate
public boolean volume_envelope_active
public boolean panning_envelope_active
public int volume_fade_out
private Envelope volume_envelope
private Envelope panning_envelope
private int[] key_to_sample
private Sample[] samples
public Envelope get_volume_envelope()
public void set_volume_envelope(Envelope envelope)
public Envelope get_panning_envelope()
public void set_panning_envelope(Envelope envelope)
public Sample get_sample_from_key(int key)
public void set_key_to_sample(int key, int sample)
public int get_num_samples()
public void set_num_samples(int num_samples)
public Sample get_sample(int sample_index)
public void set_sample(int sample_index, Sample sample)