| Top |
GstBtEnvelopeADSR *
gstbt_envelope_adsr_new (void);
Create a new instance
void gstbt_envelope_adsr_setup (GstBtEnvelopeADSR *self,gint samplerate,gdouble attack_time,gdouble decay_time,gdouble note_time,gdouble release_time,gdouble peak_level,gdouble sustain_level);
Initialize the envelope for a new cycle. note_time
is the length of the
note. attack_time
+ decay_time
must be < note_time
otherwise they get
scaled down.