GstSimSyn

## GstSimSyn GstSimSyn — simple monophonic audio synthesizer |

## Synopsis

                        GstSimSyn;
    enum                GstSimSynFilter;
    enum                GstSimSynWave;

## Description

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

## Details

### GstSimSyn

    typedef struct {
      GstBaseSrc parent;

      /* parameters */
      gdouble samples_per_buffer;
      GstSimSynWave wave;
      gchar *note;
      gdouble volume;
      gdouble decay;
      GstSimSynFilter filter;
      gdouble cutoff;
      gdouble resonance;
    } GstSimSyn;

Class instance data.

### enum GstSimSynFilter

    typedef enum {
      GST_SIM_SYN_FILTER_NONE,
      GST_SIM_SYN_FILTER_LOWPASS,
      GST_SIM_SYN_FILTER_HIPASS,
      GST_SIM_SYN_FILTER_BANDPASS,
      GST_SIM_SYN_FILTER_BANDSTOP
    } GstSimSynFilter;

Filter types.

`GST_SIM_SYN_FILTER_NONE` | no filtering
`GST_SIM_SYN_FILTER_LOWPASS` | low pass
`GST_SIM_SYN_FILTER_HIPASS` | high pass
`GST_SIM_SYN_FILTER_BANDPASS` | band pass
`GST_SIM_SYN_FILTER_BANDSTOP` | band stop (notch)

### enum GstSimSynWave

    typedef enum {
      GST_SIM_SYN_WAVE_SINE,
      GST_SIM_SYN_WAVE_SQUARE,
      GST_SIM_SYN_WAVE_SAW,
      GST_SIM_SYN_WAVE_TRIANGLE,
      GST_SIM_SYN_WAVE_SILENCE,
      GST_SIM_SYN_WAVE_WHITE_NOISE,
      GST_SIM_SYN_WAVE_PINK_NOISE,
      GST_SIM_SYN_WAVE_SINE_TAB
    } GstSimSynWave;

Oscillator wave forms.

`GST_SIM_SYN_WAVE_SINE` | sine wave
`GST_SIM_SYN_WAVE_SQUARE` | square wave
`GST_SIM_SYN_WAVE_SAW` | saw wave
`GST_SIM_SYN_WAVE_TRIANGLE` | triangle wave
`GST_SIM_SYN_WAVE_SILENCE` | silence
`GST_SIM_SYN_WAVE_WHITE_NOISE` | white noise
`GST_SIM_SYN_WAVE_PINK_NOISE` | pink noise
`GST_SIM_SYN_WAVE_SINE_TAB` | sine wave (precalculated)