Module audio_visualizer::util::sine [−][src]
Functions
Creates a sine (sinus) wave function for a given frequency.
Don’t forget to scale up the value to the audio resolution.
So far, amplitude is in interval [-1; 1]
. The parameter
of the returned function is the point in time in seconds.
Like sine_wave_audio_data
but puts multiple sinus waves on top of each other.
Returns a audio signal encoded in 16 bit audio resolution which is the sum of
multiple sine waves on top of each other. The amplitudes will be scaled from
[-1; 1]
to [i16::min_value(); i16::max_value()]