gstbtenveloped

gstbtenveloped — decay envelope generator

Synopsis

struct              GstBtEnvelopeD;
GstBtEnvelopeD *    gstbt_envelope_d_new                (void);
void                gstbt_envelope_d_setup              (GstBtEnvelopeD *self,
                                                         gint samplerate,
                                                         gdouble decay_time,
                                                         gdouble peak_level);

Object Hierarchy

  GObject
   +----GstBtEnvelope
         +----GstBtEnvelopeD

Description

Simple decay envelope.

Details

struct GstBtEnvelopeD

struct GstBtEnvelopeD;

Class instance data.


gstbt_envelope_d_new ()

GstBtEnvelopeD *    gstbt_envelope_d_new                (void);

Create a new instance

Returns :

the new instance or NULL in case of an error

gstbt_envelope_d_setup ()

void                gstbt_envelope_d_setup              (GstBtEnvelopeD *self,
                                                         gint samplerate,
                                                         gdouble decay_time,
                                                         gdouble peak_level);

Initialize the envelope for a new cycle. Adds a short attack (~0.001 s) to avoid clicks.

self :

the envelope

samplerate :

the audio sampling rate

decay_time :

the decay time in sec

peak_level :

peak volume level (0.0 -> 1.0)