I started with c++ 6 months back in school and have a grasp over the basics,selection statements,iterations,arrays,functions.
I have no knowledge of graphics,structures.
My desire is to create a virtual piano using c++.I don't want the whole code or anything, but I would like some help to start.I don't exactly know the areas where i should be familiar with to create this.I am willing to learn but need guidance as to what to learn.
I've tried to use the help section in c++ to learn a little graphics.
The main objectives and problems as per my conclusion are:
1) drawing the piano using graphics.h and coloring it.
2) connecting the keyboard to the program.
3) playing the required frequencies when the keys are pressed.(I think the sound() function will help?)
4) naming the keys( A,B,C)as pert he notes and also turning them a different shade of color when the respective key is pressed.
5)To make the duration of each sound for as long as the user is pressing the key. The sound must stop when the user removes his finger from the key.
6) What happens when you press more than one key ie. multiple sounds(I think this is not required as my piano will be quite primitive anyway)
I have absolutely no idea how to proceed.I think drawing the piano and naming the keys are relatively easier,but the rest I am blank.
Our teachers will not help us and have asked us to learn ourselves and we have about 2 weeks as the time limit.Because of the limited time and my approaching exams, I just want to know what functions to use so I can go read up about them and what is the extent of things c++can do, which is turning out to be very hard to find out myself. It doesn't have to be a perfect piano as there are better programming languages to do that, but since this is our syllabus,I am expected to produce the best c++ can do.
I am using the Turboc3 version for windows 7.
I desperately need help. And excuse me for the seemingly stupidity but my knowledge is poor although I am eager to learn.Please give me guidance and some sort of direction.