Well, I made some sort of sound (can't call it music yet), but it's more like someone dialing a number on a digital home phone with a rhythm.
Here's the code if anyone is interested (It's better if you're not) (You've been warned, the sound is Not pleasant!)
#include <windows.h>
int main()
{
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Sleep(200);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Sleep(200);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(800,150);
Beep(800,150);
Beep(900,150);
Beep(600,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(800,150);
Beep(800,150);
Beep(900,150);
Beep(600,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Sleep(200);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Sleep(200);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(800,150);
Beep(800,150);
Beep(900,150);
Beep(600,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(600,150);
Beep(600,150);
Beep(700,150);
Beep(800,150);
Beep(800,150);
Beep(900,150);
Beep(600,150);
return 0;
}
This C++ code will compile on windows only, but the pascal version of the same code will compile on everything except windows
For linux, gcc I believe has beep() and sleep()...
Now what I don't understand is the delay between each beep. It's really annoying.
Also the Beep sound will just be played through regular speakers in a laptop. On desktops, it'll probably be played through the internal pc speakers, but I haven't tested.