GstBtEnvelopeD

GstBtEnvelopeD — decay envelope generator

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GstBtEnvelope
        ╰── GstBtEnvelopeD

Includes

#include <libgstbuzztrax/envelope-d.h>

Description

Simple decay envelope.

Functions

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.

Parameters

self

the envelope

 

samplerate

the audio sampling rate

 

decay_time

the decay time in sec

 

peak_level

peak volume level (0.0 -> 1.0)

 

Types and Values

struct GstBtEnvelopeD

struct GstBtEnvelopeD;

Class instance data.