View Full Version : Request
21st January 2002, 18:12
Hi there all. I have been looking at some more beat reactive stuff in MD.
If you look at some of my Encounters series that I have done over a certain time period (eg. if(above(sin(time/5),0),..,..) different effects happen.
This is fine but it is not beat reactive. Is there an easy way (or any way) of on a beat doing an effect for a set time period.
Getting the beat is easy above(bass_att,1.2) or something also getting the time period is easy above(sin(time),0) but can we combine the too.
I nearly get there with some complex equations but always fails. An I missing something obvious or cannot it not be done with MD.
If it cannot be done what 'feature request' will have to be asked. Something sensible that can be easliy implemented. Some sort of scripting within MD?!?
22nd January 2002, 03:23
so what we're after, is when we detect a beat, do a particular thing for say, half a second, or whatever?
beatdetected = if(above(bass_att,1.2),time,beatdetected);
zoom = if(below(time-beatdetected,5),effect1,effect2);
feel free to substitute whatever form of beat detection you wish.
22nd January 2002, 20:51
That might be it Krash I will have a look a little later and let you know.
23rd January 2002, 03:00
That didn't work folks.
Not very clear about what I wanted.
Thanks for that but I am not sure if that really helps me.
Arrr reading back what I posted I wasn't clear.
I want say 1 sec for effect1 then on a beat change to effect2 for a least 1 sec then on the beat change back to effect 1 for at least 1 sec then on a beat,etc. Is that clear?!?!
eg zoom in for 1 sec and stay zoom in until bass_att > 1.2 then zoom out for 1 sec and stay zoomed out until bass_att>1.2 then back to zoom in for 1 sec, etc.
Sounds easy, eh?
Krash is help me at the moment but has anyone else got any ideas?
23rd January 2002, 14:22
Rova, it all makes sense to me, but I am afraid I can not help you at this time, give me another six month's to a year and then maybe. SM
23rd January 2002, 22:11
I expect the solution of you by Christmas then SM. ;)
24th January 2002, 01:40
Idea, since I don't have milkdrop handy right now I can't give you an exact solution.
Set a variable to keep track of what effect you want:
after using Krash's effect for beat detection have the effect variable become a random (or sequenced) number and keep it that way till the next time the beat changes.
24th January 2002, 02:07
Thanks Krash that it.
Krash told me:
ok_to_change = if(above(time,beat_time+1),1,0); <-- the +1 is the minimum time between swaps in seconds)
beat_time = if(above(bass_att,1.2),if(ok_to_change,time,beat_time),beat_time); <-- only detect a beat if ok_to_change is 1.
effect = if(equal(time,beat_time),abs(effect-1),effect); <-- swap effect between 0 and 1 when a beat is detected.
wave_x = effect; <-- just so you can see what's happening.
That appears to do exactly what I wanted it to do.
Now tommorrow I will write a preset based on it.
24th January 2002, 14:31
Excellent. I'm looking forward to it =]
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.