Member Avatar

Hello everyone, i am going to create a small tune though i have no idea how to go about it. I currently have a sine wave that plays for one second using a loop similar to this // loop to generate audio samples for(int n = 0; n < num_samples; n++) { int fr = 500; //Frequency data[n] = amp*sin(2*pi*fr*n/fs); cout << n << "\t" << data <<"\n"; } This generates a 500Hz tone. The next step is for me to play another tone, at a higher frequency straight after it. I am new to C++ and was wondering if …

Member Avatar
0
33
Member Avatar

Is anyone else seeing this?! There's a little musical note icon next to my Google Analytics charts, and when I click on it, Analytics "plays" my graph with synthesized piano tunes! I think this is the most useless, ridiculous feature ever to come out of Google.

Member Avatar
0
4

The End.