Coffin Meme Song - Using C Programming Language



"Coffin Song" has been the renown song in the meme world. Whenever I started any project, idea of making this project always hit my mind. This project is all about that song where I have included graphical program also for making this project more attractive. It is simple to make and takes no time.

I have created separate files for graphical and sound interface and combined those files for YouTube video.


How to download source code?

  • Click here for source code.
  • New window will open where there is a source code of this project. Download both files.
  • Remember to run this code in Turbo C++ compiler.

 

Demo of the game

Check out the following video for the demo of this project. 

 
 

For more source code and tutorial, SUBSCRBE to my YouTube channel. 

 

Development platform

Computer programming language has been used to develop this project.

 

Compiler

Turbo C has been used as compiler. The compiler version for Turbo C that is used is 3.7.8.9.

 

Header files used

The header files used in this project are as follows :

  1. Conio
  2. Dos
  3. Graphics
  4. Stdio

 

Library functions

The following library functions has been used

  1. Under conio header file
    1. Clrscr
    2. Getch
  2. Under dos.h header file
    1. Sound
    2. Nosound
    3. Sound
  3. Under graphics header file
    1. Circle
    2. Closegraph
    3. Initgraph
    4. Rectangle
  4. Under stdio header file
    1. Main 


Concepts used

Topics/ concepts of this language that you need to know for making this type of game :

  1. For looping statement

 

Logic description

To understand this project, at first you need to know about the frequencies of some musical notes. The most important task in this project is to produce musical notes. I have used following frequencies as parameter for sound function in this project.


Musical Note

Frequency (Lower)

Frequency (Higher)

E

659.3

1319

F#

740.0

1480

G#

830.6

1661

A

880.6

1760

B

987.8

 

C#

1109

 

For making sound feel melodious, it is necessary to manage the play duration of each musical notes. Parameter inside delay function should be manipulated for that purpose.

No comments:

Post a Comment

Article Ad1