Digital musical organ playable in Windows command prompt.
Program written in C++ for Windows
Organ, C++, geii-lab-info1
This application can be considered as a tiny game, written in C++ with a command line interface. This is a simple numerical organ where the user can play, record and recognize musical notes. It can play only 1 octave of notes, including:
C - D - E - F - G - A - B (American notation)
Do - Re - Mi - Fa - Sol - La - Si (European notation)
Keyboard is set corresponding with American notes, so to play a E (or Mi), you have to press the E-key. But you can also modify this in the define section inside the "Header.h", like #define 'MI_KEY' 'e'. Q-key is for Quit, and other keys put a silence.
When the user runs the program, a menu appears where the user can choose between different modes and a rules/info section.
Our game has 3 independent modes:
- Free mode: the user can play the notes as long as he wants
- Record mode: the user can play until 50 notes while the program is recording them, and replay them identically
- Game mode: the software plays a random note and the user has just a few seconds to recognize it by pressing the corresponding key. One game plays 20 notes, so at the end the user will get a grade over 20, and a comment ;)
- Download the latest release on Github as .zip file
- Extract all files (keep structure as it is)
- Install Microsoft C++ Redistributables Tools (require C++ libraries) from
vcredist_vs2013_x86.exe
. You can also download this file from Microsoft Download Center - Restart your computer
- Start Organ.exe
- Download repo
- Import .cpp and .h files in an empty C++ project from your favorite IDE.
- Import also "media" directory where the sounds are stored (keep it in the same folder as your source files)
- You can now compile it. (Working on Windows but not tested on UNIX systems as Linux and macOS)
Additional information:
Our project was built with Visual Studio 2013 (building tools v12.0)
This work was done as part of a university project.
Done by Alan Bello and Maxime Marmont, 1st-year students in a 2-year university degree in Electrical Engineering and Computer Science (DUT GEII, Génie Electrique et Informatique Industrielle) in IUT Annecy, France.
December 2015
MIT License
Copyright © 2015 Alan BELLO & Maxime MARMONT