GstBtSimSyn

GstBtSimSyn — simple monophonic audio synthesizer

Synopsis

struct              GstBtSimSyn;
enum                GstBtSimSynFilter;
enum                GstBtSimSynWave;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseSrc
                     +----GstBtSimSyn

Implemented Interfaces

GstBtSimSyn implements GstBtPropertyMeta, GstBtTempo and GstPreset.

Properties

  "cut-off"                  gdouble               : Read / Write
  "decay"                    gdouble               : Read / Write
  "filter"                   GstBtSimSynFilter     : Read / Write
  "note"                     GstBtNote             : Write
  "resonance"                gdouble               : Read / Write
  "volume"                   gdouble               : Read / Write
  "wave"                     GstBtSimSynWave       : Read / Write

Description

Simple monophonic audio synthesizer with a decay envelope and a state-variable filter.

Example launch line

1
gst-launch simsyn num-buffers=1000 note="c-4" ! autoaudiosink
Render a sine wave tone.

Details

struct GstBtSimSyn

struct GstBtSimSyn;

Class instance data.


enum GstBtSimSynFilter

typedef enum {
  GSTBT_SIM_SYN_FILTER_NONE,
  GSTBT_SIM_SYN_FILTER_LOWPASS,
  GSTBT_SIM_SYN_FILTER_HIPASS,
  GSTBT_SIM_SYN_FILTER_BANDPASS,
  GSTBT_SIM_SYN_FILTER_BANDSTOP
} GstBtSimSynFilter;

Filter types.

GSTBT_SIM_SYN_FILTER_NONE

no filtering

GSTBT_SIM_SYN_FILTER_LOWPASS

low pass

GSTBT_SIM_SYN_FILTER_HIPASS

high pass

GSTBT_SIM_SYN_FILTER_BANDPASS

band pass

GSTBT_SIM_SYN_FILTER_BANDSTOP

band stop (notch)

enum GstBtSimSynWave

typedef enum {
  GSTBT_SIM_SYN_WAVE_SINE,
  GSTBT_SIM_SYN_WAVE_SQUARE,
  GSTBT_SIM_SYN_WAVE_SAW,
  GSTBT_SIM_SYN_WAVE_TRIANGLE,
  GSTBT_SIM_SYN_WAVE_SILENCE,
  GSTBT_SIM_SYN_WAVE_WHITE_NOISE,
  GSTBT_SIM_SYN_WAVE_PINK_NOISE,
  GSTBT_SIM_SYN_WAVE_SINE_TAB,
  GSTBT_SIM_SYN_WAVE_GAUSSIAN_WHITE_NOISE,
  GSTBT_SIM_SYN_WAVE_RED_NOISE,
  GSTBT_SIM_SYN_WAVE_BLUE_NOISE,
  GSTBT_SIM_SYN_WAVE_VIOLET_NOISE
} GstBtSimSynWave;

Oscillator wave forms.

GSTBT_SIM_SYN_WAVE_SINE

sine wave

GSTBT_SIM_SYN_WAVE_SQUARE

square wave

GSTBT_SIM_SYN_WAVE_SAW

saw wave

GSTBT_SIM_SYN_WAVE_TRIANGLE

triangle wave

GSTBT_SIM_SYN_WAVE_SILENCE

silence

GSTBT_SIM_SYN_WAVE_WHITE_NOISE

white noise

GSTBT_SIM_SYN_WAVE_PINK_NOISE

pink noise

GSTBT_SIM_SYN_WAVE_SINE_TAB

sine wave (precalculated)

GSTBT_SIM_SYN_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_SIM_SYN_WAVE_RED_NOISE

red (brownian) noise

GSTBT_SIM_SYN_WAVE_BLUE_NOISE

spectraly inverted pink noise

GSTBT_SIM_SYN_WAVE_VIOLET_NOISE

spectraly inverted red (brownian) noise

Property Details

The "cut-off" property

  "cut-off"                  gdouble               : Read / Write

Audio filter cut-off frequency.

Allowed values: [0,1]

Default value: 0.8


The "decay" property

  "decay"                    gdouble               : Read / Write

Volume decay of the tone in seconds.

Allowed values: [0.001,4]

Default value: 0.5


The "filter" property

  "filter"                   GstBtSimSynFilter     : Read / Write

Type of audio filter.

Default value: LowPass


The "note" property

  "note"                     GstBtNote             : Write

Musical note (e.g. 'c-3', 'd#4').

Default value: NONE


The "resonance" property

  "resonance"                gdouble               : Read / Write

Audio filter resonance.

Allowed values: [0.7,25]

Default value: 0.8


The "volume" property

  "volume"                   gdouble               : Read / Write

Volume of tone.

Allowed values: [0,1]

Default value: 0.8


The "wave" property

  "wave"                     GstBtSimSynWave       : Read / Write

Oscillator waveform.

Default value: Sine