Old 26th September 2008, 03:12   #1
dj_fender
Member
 
dj_fender's Avatar
 
Join Date: Apr 2006
Location: Where Maple Syrup And Liquid Gold Flow,
Posts: 52
DDR-Like AVS?

I had this Idea to implement a primitive beat detection to randomly generate arrows and have a human or the PC keep up to the music.

It stems from that little Car vis that unConed made...

I'd really like to stretch my brain around this and have some fun.

Zedtopia Forums (Now OtakuWokou)
http://www.forums-otakuwokou.uni.cc
DeviousRadioâ„¢ -Weekends @ Lunch
http://deviousradio.uni.cc
dj_fender is offline   Reply With Quote
Old 26th September 2008, 07:33   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
zamuz did something like this for a les Noobiens pack
Yathosho is offline   Reply With Quote
Old 1st October 2008, 15:28   #3
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,150
Send a message via ICQ to jheriko
certainly possible with a superscope

on beat:
ar = $PI*(rand(2001)-1000)/1000;
ax = cos(ar); ay = sin(ar);

this isn't perfect but gives you two vertices: (ax,ay),(-ax,-ay) which you can use to make the line in the direction of your arrow.

per point:
x = ax*(1-i) + (-ax)*i;
y = ay*(1-i) + (-ay)*i;

or more efficiently:
x = ax - 2*ax*i;
y = ay - 2*ay*i;

you can also use a similar ar to move a dynamic movement so you can make a nice picture of an arrow if you like...

I don't have avs at work to test, or remember the name of the code box, but try something like this in the bottom one.

d = sqrt(sqr(x)+sqr(y));
r = atan2(-y,x);
x = d*cos(r + ar);
y = d*sin(r + ar);

I can't remember but I think there is a tick box for rectangular coords as well which if you untick you can just use "r = r + ar;"

have fun.

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump