Skip to content
Forum Archive

tapping beats?

10 posts

GXTi#

tapping beats?

I would like it if there were a button on the beat detection config where you can just click out beats. It would be nice if the beat detector could hold up whatever bpm you're tapping out, or even try to align it to the nearest big peak, etc, but at least just be able to hit a button to generate a beat event.
horse-fly#
You can actually right that into the AVS preset code, but that requires a lot of coding and universal variables.

It would probably use the getkbmouse(3) (For the left mouse button) function to some extent, along with using another variable to keep track of the frame count.

So something like:

Frame
t=t+1;
reg01=t/(bt+1);
Pixel
bt=bt+getkbmouse(3);

That would get a relation between the amount of taps compared to time in respects to frame count.

If someone can come up with a better way of doing it, go ahead.
UnConeD#
horsefly: nope, because you have to track the transition of getkbmouse from 0 to 1. No-one can hold the mouse button for only 1 frame.
AvsManDan#
Simply use the bnot trick.

I made a preset that will let me tap out the beats so I can compare it to a custom beat detection I am making. It is included without the custom beat detection. Press "a" when you have a beat and compare it to Winamp's default detection.

I would like to note that the volume level scale is based on someone else's work but I can't remember the name.
jheriko#
Originally posted by Mr_Nudge
you would have to do it for a solid minute if you wanted to get a custom bpm
rofl

because you cant use division to calculate a rate?
PAK-9#
because you cant use division to calculate a rate?
No because people are crap at keeping a beat so you'd need to take an average. A minute might be stretching it a bit tho, 20 seconds would probably be enough.
Boktor#
It requires some skill, but if you can keep a beat this preset could be handy. You should tap with the beat not to it.

Any better ways to do this?

Did AvsManDan ever finish his custom beat detection?