![]() |
![]() |
![]() |
GStreamer Buzztard Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct GstBtEnvelopeADSR; GstBtEnvelopeADSR * gstbt_envelope_adsr_new (void
); 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
);
GstBtEnvelopeADSR * gstbt_envelope_adsr_new (void
);
Create a new instance
Returns : |
the new instance or NULL in case of an error |
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.
|
the envelope |
|
the audio sampling rate |
|
the attack time in sec |
|
the decay time in sec |
|
the duration of the note in sec |
|
the decay time in sec |
|
peak volume level (0.0 -> 1.0) |
|
sustain volume level (0.0 -> 1.0) |