|
-
Senior Member
Sound Player
Hello everyone,
I've been trying to figure out a way to make a little drum machine in flash. I'm trying to use the keyboard keys to control the different drums.
What I have tried so far is...
Creating a movie clip. Make 2 frames. 1st from in the movie clip has a stop action on it. the 2nd frame of the movie clip has the sound attached as an event. Then I put a code on the movie clip to play frame 2 of the movie clip when Z is pressed.
Also Ive done it this way...
I created a new sound. Attached the sound from the library onto it. Then put a code on the movie clip to play my newly created sound when Z is pressed.
They both work. But not good enough. My overall goal is to make the sound play instantaneous after I press Z.
So, if I press Z once. it is fairly instantaneous. But the problem comes when I hit the Z key a couple times in a row. The sound gets delayed.
Does anyone have any advice they can give me. I'm just slightly annoyed by this, and for some reason my gut is saying that in flash, there is no way around the delaying... But hopefully someone smart out there can help me in this troubled time, lol..
Well, any help is greatly appreciated.
Thanks in advance,
~Bill
So many Ideas
So little Time
-
What do you mean by "sound is delayed"?
if you press z a few times, each of them "overrides" the previous one, so only the last call is actualy executed. What are you trying to achieve by pressing it a few times?
There's probably another way to do that...
-
It's a long way to the middle
He's trying to play drums with the keyboard. This requires 0 latency for it to be effective. That's what the 'delayed' means.
What I think is your sound file for each drum is too long and must finish before playing the same sound again. Which puts a damper on having sound tails like reverb and delay on the actual sound file (making it sound realistic).
I could be way off base here but that's what I gather from this.
 Originally Posted by Atarsh
What do you mean by "sound is delayed"?
if you press z a few times, each of them "overrides" the previous one, so only the last call is actualy executed. What are you trying to achieve by pressing it a few times?
There's probably another way to do that...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|