C++
From NoiseWiki
Revision as of 13:36, 23 November 2010 by Noisewikiadmin (talk | contribs) (Reverted edits by Ijotohywun (talk) to last revision by Gordon)
"Hello Noise" code example
#include <iostream>
#include <stdlib>
using namespace std;
int main ()
{
int hertz;
cout << "Hello Noise! \n";
randomize();
while(1){
hertz=random(22030)+20;
sound(hertz); // this may need debugging.
}
return 0;
}