0

Hi, I have a question 'bout c++ beep...It's very simple...Where can I find Music Scales for C++ ? I've searched google up'n'down without succes...thanks for any help :?:

3
Contributors
5
Replies
6
Views
10 Years
Discussion Span
Last Post by bRutal!
0

The C++ beep is all you get. If you want different notes, you need to go lower (and try to access the hardware, which isn't portable and probably won't work) or go higher (and use a library that lets you produce notes from the sound card rather than the internal speaker).

0

#include<iostream>
#include<windows.h>

using namespace std;

int main()

{
Beep(523,500);
Beep(587,500);
Beep(659,500);
Beep(698,500);
Beep(784,500);
Beep(876,500);
Beep(982,500);
Beep(1050,500);
system("pause");
return 0;
}

that's actually what I was looking 4 oO... =D Problem solved with many many efforts..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.