10 using namespace Nsound;
46 out <<
softTones(sr, 0.25, 261.63, 523.25, 0.90)
47 <<
softTones(sr, 0.25, 493.87, 293.66, 0.90)
48 <<
softTones(sr, 0.25, 329.61, 439.96, 0.90)
49 <<
softTones(sr, 0.25, 391.97, 349.22, 0.90)
50 <<
softTones(sr, 0.25, 349.22, 391.97, 0.90)
51 <<
softTones(sr, 0.25, 439.96, 329.61, 0.90)
52 <<
softTones(sr, 0.25, 293.66, 493.87, 0.90)
53 <<
softTones(sr, 0.25, 523.25, 261.63, 0.90)
54 <<
softTones(sr, 0.25, 261.63, 523.25, 0.90)
55 <<
softTones(sr, 0.25, 493.87, 293.66, 0.90)
56 <<
softTones(sr, 0.25, 329.61, 439.96, 0.90)
57 <<
softTones(sr, 0.25, 391.97, 349.22, 0.90)
58 <<
softTones(sr, 0.25, 349.22, 391.97, 0.90)
59 <<
softTones(sr, 0.25, 439.96, 329.61, 0.90)
60 <<
softTones(sr, 0.25, 293.66, 493.87, 0.90)
61 <<
softTones(sr, 0.25, 523.25, 261.63, 0.90)
64 out <<
softTones(sr, 0.25, 261.63, 523.25, 0.30)
65 <<
softTones(sr, 0.25, 493.87, 293.66, 0.30)
66 <<
softTones(sr, 0.25, 329.61, 439.96, 0.30)
67 <<
softTones(sr, 0.25, 391.97, 349.22, 0.30)
68 <<
softTones(sr, 0.25, 349.22, 391.97, 0.30)
69 <<
softTones(sr, 0.25, 439.96, 329.61, 0.30)
70 <<
softTones(sr, 0.25, 293.66, 493.87, 0.30)
71 <<
softTones(sr, 0.25, 523.25, 261.63, 0.30)
72 <<
softTones(sr, 0.25, 261.63, 523.25, 0.30)
73 <<
softTones(sr, 0.25, 493.87, 293.66, 0.30)
74 <<
softTones(sr, 0.25, 329.61, 439.96, 0.30)
75 <<
softTones(sr, 0.25, 391.97, 349.22, 0.30)
76 <<
softTones(sr, 0.25, 349.22, 391.97, 0.30)
77 <<
softTones(sr, 0.25, 439.96, 329.61, 0.30)
78 <<
softTones(sr, 0.25, 293.66, 493.87, 0.30)
79 <<
softTones(sr, 0.25, 523.25, 261.63, 0.30)
84 out >>
"example6.wav";
91 out2 >>
"example6_reverb.wav";
102 cerr <<
"Could not play audio: " << e.
what() << endl;
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...
AudioStream filter(const AudioStream &x)
Buffer silence(const float64 &duration) const
This method generates silence.
const char * what() const
virtual float64 generate(const float64 &frequency)
This is a real-time method for the wavetable oscillator.
AudioStream softTones(const float64 sr, const float64 duration, const float64 f1, const float64 f2, const float64 gaussian_width)
A Buffer for storing audio samples.