13 using namespace Nsound;
45 cout <<
"Pitch Shifting Up" << endl;
51 out >>
"Temperature_Pitch_Shifted_Up.wav";
54 cout <<
"Time Shifting Faster" << endl;
60 out >>
"Temperature_Time_Shifted_Faster.wav";
65 cout <<
"Pitch Shifting Down" << endl;
69 out >>
"Temperature_Pitch_Shifted_Down.wav";
72 cout <<
"Time Shifting Slower" << endl;
78 out >>
"Temperature_Time_Shifted_Slower.wav";
float64 getDuration() const
Returns the number of seconds of audio data in the stream.
Buffer drawFatGaussian(const float64 &duration, const float64 &pass_band_percent=0.01) const
This method draws a standard Gaussian curve over duration seconds, with a specified pass band...
float64 getSampleRate() const
Returns the sample rate of the stream.
AudioStream pitchShift(const AudioStream &x, const float64 &factor)
uint32 getNChannels(void) const
Returns the number of audio channels in the stream.
void showProgress(boolean flag)
AudioStream timeShift(const AudioStream &x, const float64 &factor)
A Buffer for storing audio samples.