gstbtoscsynth

gstbtoscsynth — synthetic waveform oscillator

Synopsis

struct              GstBtOscSynth;
enum                GstBtOscSynthWave;
GstBtOscSynth *     gstbt_osc_synth_new                 (void);

Object Hierarchy

  GObject
   +----GstBtOscSynth

Properties

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

Description

An audio generator producing classic oscillator waveforms.

Details

struct GstBtOscSynth

struct GstBtOscSynth;

Class instance data.


enum GstBtOscSynthWave

typedef enum {
  GSTBT_OSC_SYNTH_WAVE_SINE,
  GSTBT_OSC_SYNTH_WAVE_SQUARE,
  GSTBT_OSC_SYNTH_WAVE_SAW,
  GSTBT_OSC_SYNTH_WAVE_TRIANGLE,
  GSTBT_OSC_SYNTH_WAVE_SILENCE,
  GSTBT_OSC_SYNTH_WAVE_WHITE_NOISE,
  GSTBT_OSC_SYNTH_WAVE_PINK_NOISE,
  GSTBT_OSC_SYNTH_WAVE_GAUSSIAN_WHITE_NOISE,
  GSTBT_OSC_SYNTH_WAVE_RED_NOISE,
  GSTBT_OSC_SYNTH_WAVE_BLUE_NOISE,
  GSTBT_OSC_SYNTH_WAVE_VIOLET_NOISE
} GstBtOscSynthWave;

Oscillator wave forms.

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

gstbt_osc_synth_new ()

GstBtOscSynth *     gstbt_osc_synth_new                 (void);

Create a new instance

Returns :

the new instance

Property Details

The "frequency" property

  "frequency"                gdouble               : Read / Write

Frequency of tone.

Allowed values: >= 0

Default value: 0


The "sample-rate" property

  "sample-rate"              gint                  : Read / Write

Sampling rate.

Allowed values: >= 1

Default value: 44100


The "volume-envelope" property

  "volume-envelope"          GstBtEnvelope*        : Read / Write

Volume envelope of tone.


The "wave" property

  "wave"                     GstBtOscSynthWave     : Read / Write

Oscillator waveform.

Default value: Sine