Instrument Neutral Distributed Interface INDI  1.9.5
Functions
signals.c File Reference
#include "dsp.h"

Go to the source code of this file.

Functions

void dsp_signals_whitenoise (dsp_stream_p stream)
 Generate white noise. More...
 
void dsp_signals_sinewave (dsp_stream_p stream, double samplefreq, double freq)
 Generate a sinusoidal wave. More...
 
void dsp_signals_sawtoothwave (dsp_stream_p stream, double samplefreq, double freq)
 Generate a sawtooth wave. More...
 
void dsp_signals_triwave (dsp_stream_p stream, double samplefreq, double freq)
 Generate a triangular wave. More...
 
void dsp_modulation_frequency (dsp_stream_p stream, double samplefreq, double freq, double bandwidth)
 Generate a frequency modulated wave. More...
 
void dsp_modulation_amplitude (dsp_stream_p stream, double samplefreq, double freq)
 Generate an amplitude modulated wave. More...
 

Function Documentation

◆ dsp_modulation_amplitude()

void dsp_modulation_amplitude ( dsp_stream_p  stream,
double  samplefreq,
double  freq 
)

Generate an amplitude modulated wave.

Parameters
streamthe target DSP stream.
samplefreqthe sampling reference frequency
freqthe carrier wave frequency

Definition at line 97 of file signals.c.

◆ dsp_modulation_frequency()

void dsp_modulation_frequency ( dsp_stream_p  stream,
double  samplefreq,
double  freq,
double  bandwidth 
)

Generate a frequency modulated wave.

Parameters
streamthe target DSP stream.
samplefreqthe sampling reference frequency
freqthe carrier wave frequency
bandwidththe bandwidth of the frequency modulation

Definition at line 81 of file signals.c.

◆ dsp_signals_sawtoothwave()

void dsp_signals_sawtoothwave ( dsp_stream_p  stream,
double  samplefreq,
double  freq 
)

Generate a sawtooth wave.

Parameters
streamthe target DSP stream.
samplefreqthe sampling reference frequency
freqthe sawtooth wave frequency

Definition at line 47 of file signals.c.

◆ dsp_signals_sinewave()

void dsp_signals_sinewave ( dsp_stream_p  stream,
double  samplefreq,
double  freq 
)

Generate a sinusoidal wave.

Parameters
streamthe target DSP stream.
samplefreqthe sampling reference frequency
freqthe sine wave frequency

Definition at line 30 of file signals.c.

◆ dsp_signals_triwave()

void dsp_signals_triwave ( dsp_stream_p  stream,
double  samplefreq,
double  freq 
)

Generate a triangular wave.

Parameters
streamthe target DSP stream.
samplefreqthe sampling reference frequency
freqthe triangular wave frequency

Definition at line 63 of file signals.c.

◆ dsp_signals_whitenoise()

void dsp_signals_whitenoise ( dsp_stream_p  stream)

Generate white noise.

Parameters
streamthe target DSP stream.

Definition at line 21 of file signals.c.