GstBtEnvelope

GstBtEnvelope — envelope base class

Functions

Properties

gdouble value Read / Write

Types and Values

struct GstBtEnvelope

Object Hierarchy

    GObject
    ╰── GstBtEnvelope
        ├── GstBtEnvelopeADSR
        ╰── GstBtEnvelopeD

Includes

#include <libgstbuzztrax/envelope.h>

Description

Base class for envelopes.

Functions

gstbt_envelope_get ()

gdouble
gstbt_envelope_get (GstBtEnvelope *self,
                    guint offset);

Get the currect envelope level and add the time-offset for the next position.

Parameters

self

the envelope

 

offset

the time offset to add

 

Returns

the current level


gstbt_envelope_is_running ()

gboolean
gstbt_envelope_is_running (GstBtEnvelope *self);

Checks if the end of the envelop has reached. Can be used to skip audio rendering once the end is reached.

Parameters

self

the envelope

 

Returns

if the envelope is still running

Types and Values

struct GstBtEnvelope

struct GstBtEnvelope {
  /* parameters */
  gdouble value;
};

Class instance data.

Members

gdouble value;

current envelope value

 

Property Details

The “value” property

  “value”                    gdouble

Current envelope value.

Flags: Read / Write

Allowed values: [0,1]

Default value: 0