C # Playing the moon represents my heart

Source: Internet
Author: User

C # Playing the moon represents my heart
You are welcome to join me with music lovers.

// Racket defines the cycle
Const int one = 600; // one shot
Const int half = 300; // half shot
Const int four_one = 150; // 1/4 shot
Const int onedot = 450; // note
/// Note
// Const int mnote1 = 440; // do
// Const int mnote2 = 495; // re
// Const int mnote3 = 550; // mi
// Const int mnote4 = 587; // fa
// Const int mnote5 = 660; // so
// Const int mnote6 = 733; // la
// Const int mnote7 = 825; // si

// Const int lnote5 = 325;

# Region
// Low note subwoofer
Const int lnote1 = 262;
Const int lnote2 = 294;
Const int lnote3 = 330;
Const int lnote4 = 349;
Const int lnote5 = 392;
Const int lnote6 = 440;
Const int lnote7 = 494;
// Mid note
Const int mnote1 = 523;
Const int mnote2 = 578;
Const int mnote3 = 659;
Const int mnote4 = 698;
Const int mnote5 = 784;
Const int mnote6 = 880;
Const int mnote7 = 988;
// HT note tweeter
Const int hnote1 = 1046;
Const int hnote2 = 1175;
Const int hnote3 = 1318;
Const int hnote4 = 1397;
Const int hnote5 = 1568;
Const int hnote6 = 1760;
Const int hnote7 = 1976;
# Endregion

// The moon represents my heart
Console. Beep (lnote5, half );

Console. Beep (mnote1, onedot );
Console. Beep (mnote3, half );
Console. Beep (mnote5, onedot );
Console. Beep (mnote1, half );

Console. Beep (lnote7, onedot );
Console. Beep (mnote3, half );
Console. Beep (mnote5, onedot );
Console. Beep (mnote5, half );


Console. Beep (mnote6, onedot );
Console. Beep (mnote7, half );
Console. Beep (hnote1, onedot );
Console. Beep (mnote6, half );

Console. Beep (mnote5, one );
System. Threading. Thread. Sleep (one );
System. Threading. Thread. Sleep (one );
Console. Beep (mnote3, half );
Console. Beep (mnote2, half );

Console. Beep (mnote1, onedot );
Console. Beep (mnote1, half );
Console. Beep (mnote1, half );
Console. Beep (mnote1, one );
Console. Beep (mnote3, half );
Console. Beep (mnote2, half );

Console. Beep (mnote1, onedot );
Console. Beep (mnote1, half );
Console. Beep (mnote1, half );
Console. Beep (mnote1, one );
Console. Beep (mnote2, half );
Console. Beep (mnote3, half );


Console. Beep (mnote2, onedot );
Console. Beep (mnote1, half );
Console. Beep (lnote6, one );
Console. Beep (mnote2, half );
Console. Beep (mnote3, half );

Console. Beep (mnote2, one );

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.