Topic: NEED HELP ON SIMPLE TONE PLAYER QUICK Pages that link to <a href="https://ozoneasylum.com/backlink?for=23829" title="Pages that link to Topic: NEED HELP ON SIMPLE TONE PLAYER QUICK" rel="nofollow" >Topic: NEED HELP ON SIMPLE TONE PLAYER QUICK\

 
Author Thread
paritycheck
Bipolar (III) Inmate

From:
Insane since: Mar 2004

IP logged posted posted 10-27-2004 19:48 Edit Quote

Hi guys
I need some help here quick like. I'm making a simple keyboard simulator thing. The idea is that I have these buttons on the screen that correspond to a paritcular tone. when I click on a button it sets the tone corresponding to that button to be ON. I then click a PLAY button and it plays the tones in order corresponding to the buttons that are in the ON position. I need some help on this, so any form of smaple code or snippets woudl be greatly welcomed

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 10-27-2004 19:57 Edit Quote

No need to shout

First, I think you should put a RECORD button in your interface to notice the users when the application is recording their melodies. Once the record button is pressed you must set a variable with the current timestamp, then whenever a key of the virtual keyboard is pressed you must append the value of key and the time ( current timestamp - timestamp when the record button have been pressed ). Then when the user hits the PLAY button, you have to read the list of keys and timestamp differences to replay the notes.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu