this's daoremon's song code
i hope you ever see doraemon's movie...
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{ cout<<"Program Lagu Doraemon ; By : Gabriel Sebastian Wangsadipura / 0522084";
Beep(220,300);
Beep(294,300);
Beep(294,300);
Beep(370,300);
Beep(494,300);
Beep(370,300);
Beep(440,800);
/* */
Beep(440,300);
Beep(494,300);
Beep(440,300);
Beep(370,300);
Beep(392,300);
Beep(370,300);
Beep(330,800);
/* */
Beep(247,300);
Beep(330,300);
Beep(330,300);
Beep(370,300);
Beep(555,300);
Beep(555,300);
Beep(494,300);
Beep(440,300);
Beep(392,800);
Beep(392,300);
Beep(370,300);
Beep(247,800);
Beep(278,300);
Beep(294,300);
Beep(330,2600);
/* */
Beep(220,300);
Beep(294,300);
Beep(294,300);
Beep(370,300);
Beep(494,300);
Beep(370,300);
Beep(440,800);
/* */
Beep(440,300);
Beep(494,300);
Beep(440,300);
Beep(370,300);
Beep(392,300);
Beep(370,300);
Beep(330,800);
/* */
Beep(247,300);
Beep(330,300);
Beep(330,300);
Beep(370,300);
Beep(555,300);
Beep(555,300);
Beep(494,300);
Beep(440,300);
Beep(392,800);
Beep(392,300);
Beep(370,300);
Beep(278,600);
Beep(330,600);
Beep(294,2600);
/*Reff : */
Beep(494,300);
Beep(494,300);
Beep(494,300);
Beep(440,300);
Beep(392,200);
Beep(440,200);
Beep(494,200);
Beep(440,800);
Beep(330,300);
Beep(370,300);
Beep(416,300);
Beep(330,300);
Beep(440,2000);
/* */
Beep(494,800);
Beep(440,800);
Beep(392,1600);
/* */
Beep(555,300);
Beep(555,300);
Beep(555,300);
Beep(494,300);
Beep(440,300);
Beep(494,300);
Beep(440,300);
Beep(392,1400);
/* */
Beep(440,300);
Beep(494,300);
Beep(370,1100);
Beep(330,300);
Beep(294,1800);
/* */
Beep(494,800);
Beep(440,800);
Beep(392,1600);
/* */
Beep(555,300);
Beep(555,300);
Beep(555,300);
Beep(494,300);
Beep(440,300);
Beep(494,300);
Beep(440,300);
Beep(392,1400);
/* */
Beep(440,300);
Beep(494,300);
Beep(370,1100);
Beep(330,300);
Beep(294,1800);
cin.get();
return 0;
}
Has been taken care of, thanks for the notification once again.
okey, thank you for your comment. i still beginner ini programing. I hope, my programming skill can be good... :cheesy:
Glad to see someone is interested in music! You can simplify your code a little by calculating the frequency for a given musical note. See this snippet:
http://www.daniweb.com/code/snippet359.html
It is written in Python and should be very easy to understand.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.