I am doing a project in which I am using the OMAP L138 to make a piano of sorts. It is supposed to play a sine wave of a specified frequency when a particular button is pressed on the keyboard. These cases are separated by a switch case. So when you press a key the corresponding sine wave is produced. My problem is that I can only play 1 sine wave. I want to know what is needed so that I can play another sine wave when I press another key without having to stop and debug again. I would also like to be able to record some notes played by the piano and be able to play it back.
↧