Archive: Headbanging !


6th August 2007 22:29 UTC

Headbanging !
Hi !

I want to do a headbanging animation. I have got a headbanger on avi, how do I have to proceed to make him headbang to the music - please give me/us something made-ready or a real step-by-step guide.

Greetings

Yeah

PS: Is there a better beat detection available ?


7th August 2007 08:45 UTC

http://forums.winamp.com/showthread....hreadid=209060

not as easy as it looks.


7th August 2007 20:41 UTC

I don't see an answer on the site.


7th August 2007 21:19 UTC

A really very simple way of doing it could be by adding an effects list. Disable enabled and enabled on beat for, then set how ever many frames you want it to play for in the text box.
Then add render:AVI in the effects list. Find you AVI from the list (fyi avi's need to be in the avs root folder, generally C:\program files\winamp\plugins\avs)
Then set the speed for the AVI to play.
It's quite cheap but it would play the AVI on beat, thus lame head banging (ish).

As for better beat detection, if you don't want to use either of the two built in ones then you will need to learn AVS and write your own or find a nice preset which has it's own code and use that.

You could also just use as a picture and some DM skills to make an image headbang.


7th August 2007 21:25 UTC

There's no way, as far as I know to manipulate the display of frames of a video in avs. It can be inputted, but it will only play at its normal speed. A crazy way I can think of off the top of my head would be to have all the necessary frames for a good animation of it, then write a beat prediction code (AVS beat detection isn't that great, but can be coded to be better within itself), then display the frames as this proceeds and then, roughly at best the head will bang to the beat.

Seems an awful lot of arseing about for something like that, but it is doable. AVS isn't really the thing for it, I wouldn't know of alternatives though. AVS is more of an abstract program, there are infinite possibilities of specific things you can build in it but it takes a lot of time and patience to gain the skills for it.


7th August 2007 22:02 UTC

Hahaha, an ultimately cheap thing I just did.


8th August 2007 01:16 UTC

Originally posted by Raz
Hahaha, an ultimately cheap thing I just did.
It is good in so far that it prooves that at first someone has to optimize the beat detection.

8th August 2007 01:25 UTC

For more information: This is my headbanger: wwwDOTyoutubeDOTcom/watch?v=s7_EEtHKf9g


8th August 2007 12:34 UTC

OMMFG thats hilarious!

The only good way I can think of, if you want to have control over the frames, is have multiple effect lists with a render/picture in each, all displaying different frames, then dissable and enable the effect lists accordingly. Im order to manipulate the frames with the beat, you could probably find the bpm and use it to adjust the frame rate.


8th August 2007 22:15 UTC

Originally posted by J.Melo
OMMFG thats hilarious!

The only good way I can think of, if you want to have control over the frames, is have multiple effect lists with a render/picture in each, all displaying different frames, then dissable and enable the effect lists accordingly. Im order to manipulate the frames with the beat, you could probably find the bpm and use it to adjust the frame rate.
Idea.
Remember Raz's little spectrum analyser preset with the picture animation from Raz 3?
Well if you do then the principle of syncing pictures to a simple beat counter that activates with each beat and removes each picture then resets.

try this for a start.

make a superscope and empty it or use the gvm.ape and put this code in it
Frame:
reg01=0;
// this makes a counter.
reg00=bb;

Beat:
bb=if(equal(bb,13),0,bb+1);
/* this is the counter that will reset when bb reachs the value of beats. there are 13 texers with a active picture so you use 13 as your value*/

Next you take the number each beat the counter detects and use this.

Make a new TexerII
Frame:
reg01=reg01+1;
// this will go up by 1 for every TexerII you make.

on=if(equal(reg00,1),1,0);
n=on;
/* this will turn one image on each time with the texerII
when the registers value reachs the value of the equal and turn it off when it is not.*/

I hope this helps.

i'll post a example.


make sure when you save the file you save it as "beatanimation.avs" be sure to add the quotes.

11th August 2007 19:38 UTC

I think Raz's headbanger is hilarious.
A++


14th August 2007 11:17 UTC

I have a hard time understanding what you wrote, Nanakiwurkz.

I downloaded your sample and included frames of the animation. It does not do the job.

Please upload a file for me to include

a) frames of the animation

or

b) an avi

What is more, the beat detection does anything but detecting the beat. And there's a winamp plugin, called MP3-Remix. It detects the beat perfectly but it is closed source.

Lastly winamp.com's search option does not offer any spectrum analyser preset from Raz. Where do I find this and also his Raz3 ?

Or do it yourself if you publish it. You got the bird...


14th August 2007 14:14 UTC

My Three.

Also, i did this, and i don't know why. Shouldn't expect other people to do things like this for you, but this time it beat doing work for another 20 minutes.

Put the first frame in the picture2 outside the effect lists. And each picture2 in the subsequent effect lists gets the next frame of animation. There's 10 frames available.


14th August 2007 14:15 UTC

Forgot the damn attachment.

Anyone who cries "double post!!" gets cancer.


14th August 2007 16:52 UTC

Two things:

Everytime on beat the head should be down. Which part of the animation should be in which module ?

What do we do with this preinstalled beat detection ?

BTW: There is no picture2 here. I replaced it with render/picture.


14th August 2007 17:10 UTC

The first picture should be head up. The last picture should be head down. And if you're without picture 2, then i expect global vars won't work on yours. Get winamp 5.


14th August 2007 17:30 UTC

I got winamp 5. What about the beat detection alg.

This is the main problem right now, I cannot figure out whether it works. I just see the bird banging for no reason...

I want my bird to be always visible. So if the beat is 'slow', ie 60 bpm then the bird should be down - up - down in one second. If 180 bpm I want it to go down - up - down in 1/3 second, i hope you get the idea.

Just as a normal headbanger would. But this is of secondary importance, how do we improve beat detection - or should we not use AVS but milkdrop instead ?


17th August 2007 10:32 UTC

push


19th August 2007 15:21 UTC

problem solved. Thanks for your support