C++

From NoiseWiki
Revision as of 14:36, 23 November 2010 by Noisewikiadmin (talk | contribs) (Reverted edits by Ijotohywun (talk) to last revision by Gordon)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

"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; 
}

help, tutorials, etc.

http://www.cplusplus.com/doc/tutorial/