GstBtOscSynth

GstBtOscSynth — synthetic waveform oscillator

Functions

Properties

gdouble frequency Read / Write
gint sample-rate Read / Write
GstBtEnvelope * volume-envelope Read / Write
GstBtOscSynthWave wave Read / Write

Types and Values

Object Hierarchy

    GEnum
    ╰── GstBtOscSynthWave
    GObject
    ╰── GstBtOscSynth

Includes

#include <libgstbuzztrax/osc-synth.h>

Description

An audio generator producing classic oscillator waveforms.

Functions

gstbt_osc_synth_new ()

GstBtOscSynth *
gstbt_osc_synth_new (void);

Create a new instance

Returns

the new instance

Types and Values

enum GstBtOscSynthWave

Oscillator wave forms.

Members

GSTBT_OSC_SYNTH_WAVE_SINE

sine wave

 

GSTBT_OSC_SYNTH_WAVE_SQUARE

square wave

 

GSTBT_OSC_SYNTH_WAVE_SAW

saw wave

 

GSTBT_OSC_SYNTH_WAVE_TRIANGLE

triangle wave

 

GSTBT_OSC_SYNTH_WAVE_SILENCE

silence

 

GSTBT_OSC_SYNTH_WAVE_WHITE_NOISE

white noise

 

GSTBT_OSC_SYNTH_WAVE_PINK_NOISE

pink noise

 

GSTBT_OSC_SYNTH_WAVE_GAUSSIAN_WHITE_NOISE

white (zero mean) Gaussian noise; volume sets the standard deviation of the noise in units of the range of values of the sample type, e.g. volume=0.1 produces noise with a standard deviation of 0.1*32767=3277 with 16-bit integer samples, or 0.1*1.0=0.1 with floating-point samples.

 

GSTBT_OSC_SYNTH_WAVE_RED_NOISE

red (brownian) noise

 

GSTBT_OSC_SYNTH_WAVE_BLUE_NOISE

spectraly inverted pink noise

 

GSTBT_OSC_SYNTH_WAVE_VIOLET_NOISE

spectraly inverted red (brownian) noise

 

struct GstBtOscSynth

struct GstBtOscSynth;

Class instance data.

Property Details

The “frequency” property

  “frequency”                gdouble

Frequency of tone.

Flags: Read / Write

Allowed values: >= 0

Default value: 0


The “sample-rate” property

  “sample-rate”              gint

Sampling rate.

Flags: Read / Write

Allowed values: >= 1

Default value: 44100


The “volume-envelope” property

  “volume-envelope”          GstBtEnvelope *

Volume envelope of tone.

Flags: Read / Write


The “wave” property

  “wave”                     GstBtOscSynthWave

Oscillator waveform.

Flags: Read / Write

Default value: Sine