Forum Topic: bpm counter?

(237 views • 6 replies)

This topic is 1 page long.

<< < > >>
None

Numenos

Reply To Post Reply & Quote

Posted at: 1/20/08 10:50 AM

Numenos NEUTRAL LEVEL 13

Sign-Up: 10/05/04

Posts: 94

im just wondering if this is possible:

i always have trouble schyncing up flash to music, it;s always agitated me as i could never get it right. i believe it would be easier for me if i could figure out the bpm of a song I'm trying to sync, then make the fps in the flash a respective multiple, but how would i go about doing this?

firstly, i thought the internet could solve all my problems. amazingly it didn't, i couldn't find anything for counting bpms in a song, so then my mind came up with an idea: if i could program something that counted how many times i pressed a button in a minute, i could push that button to the bea of a song and figure out the bpm! ahah! so simple! but...

i am clueless when it comes to AS to do with time, and i have no idea where to start. i wouldn't even know where to go in the as main...

so, could someone either get me on the right track and point me in the right direction, or tell me where i can find a bpm counter on the internet? thanks!


None

Numenos

Reply To Post Reply & Quote

Posted at: 1/20/08 11:50 AM

Numenos NEUTRAL LEVEL 13

Sign-Up: 10/05/04

Posts: 94

hmm, bedtime for me, ill check here in the morning.


None

Numenos

Reply To Post Reply & Quote

Posted at: 1/21/08 03:43 AM

Numenos NEUTRAL LEVEL 13

Sign-Up: 10/05/04

Posts: 94

ugh... bump...


None

GuyWithHisComp

Reply To Post Reply & Quote

Posted at: 1/21/08 05:03 AM

GuyWithHisComp LIGHT LEVEL 27

Sign-Up: 11/10/05

Posts: 4,008

Hi,
you can do like this:

var keyObj:Object = new Object();
var counter:Number = 0;
keyObj.onKeyDown = function():Void {
	trace(++counter);
}
Key.addListener(keyObj);

Now, if you put that in the frames actions, you'll output an increasing number every time you press any key on your keyboard. So when the song is done just stop pressing and check the latest output.

BBS Signature

None

Numenos

Reply To Post Reply & Quote

Posted at: 1/21/08 06:46 AM

Numenos NEUTRAL LEVEL 13

Sign-Up: 10/05/04

Posts: 94

At 1/21/08 05:03 AM, GuyWithHisComp wrote: Hi,
you can do like this:

var keyObj:Object = new Object();
var counter:Number = 0;
keyObj.onKeyDown = function():Void {
trace(++counter);
}
Key.addListener(keyObj);

Now, if you put that in the frames actions, you'll output an increasing number every time you press any key on your keyboard. So when the song is done just stop pressing and check the latest output.

hmm, a lot more "low tech" than i was thinking of, but it works all the same, thanks muchly. i can prolly expend on that myself :3

thanks again!


None

Acerbic

Reply To Post Reply & Quote

Posted at: 1/21/08 07:27 AM

Acerbic DARK LEVEL 35

Sign-Up: 11/07/04

Posts: 2,117

If you download a trial of DJ software (virtualdj for example) when you drag songs into it, most will tell your the BPM so you can synk the second song. This way you can set the FPS accordingly.


None

eggatron

Reply To Post Reply & Quote

Posted at: 1/21/08 10:30 AM

eggatron DARK LEVEL 31

Sign-Up: 07/19/00

Posts: 2,092

Tap Tempo by Analog X counts bmp based on 2 presses of the space bar. It's not high tech, but it works.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 11:49 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!