10 using namespace Nsound;
30 frequencies << sin.
drawLine(0.5 * duration, 8000, 50)
31 << sin.drawLine(0.5 * duration, 50, 8000);
34 AudioStream output = lpf.filter(input, frequencies);
37 output >>
"Temperature_out.wav";
float64 getDuration() const
Returns the number of seconds of audio data in the stream.
float64 getSampleRate() const
Returns the sample rate of the stream.
A Buffer for storing audio samples.
Buffer drawLine(const float64 &duration, const float64 &litude_start, const float64 &litude_finish) const
This method draws a linear line beteween 2 points.