Discussion forum for G-Force users
Moderators: BTT , andy55 , b.dwall , juxtiphi
ShohS
Posts: 76 Joined: Fri Apr 06, 2018 11:46 am
Location: no one must know shhhh
Post
by ShohS » Tue Jan 28, 2025 3:43 pm
I tried making WMP classic's version of the radar sweep waveshape you know the one from WMP's battery visualizers. However I can't seem to get the jittery glitching right. I'm currently stuck with 2 versions at the moment. I'll merge them soon.
Here's one where I nailed the glitching motion (kinda):
Code: Select all
// Radar Sweep - Glitched Author: ShohS
stps=1000
Aspc=1
A0=".4+rnd(2.5)"
A1="2 * pi"
A2=""
A3="choice({-1, 1})"
A4="choice({1.2, 5})"
A5="choice({0, 1})"
B0="mag(1)*.5"
B1="rnd(5)"
B2="choice({-1, 1})"
B3=".3 * log( 10 + 1 ) + .05" // amplitude
B4="rnd(4) * ( rnd(2) - (rnd(5)) * abs(mag(1))*5 )" // freq
B5="abs(.07*bass)"
B6="1.1 * cos( t * A0*A3-B0 + A1 + 2 * pi * ID / NUM )"
B7="1.1 * sin( t * A0*A3-B0 + A1 + 2 * pi * ID / NUM )"
C0="s*(abs(mag(1))*15 * .8 * (1-abs(sin(s*B4*pi))*B5)+bass*.25)"
C1="(B3 * ((trwv ( s * B4 ))*(mag(1)*10))*1.5)"
C2="c0*sin(c1 *(1-round(fft(.5)*.85)-round(fft(1)*.85)-round(fft(.25)*.85)-round(fft(.75)*.85))+cos(2*pi*s-t*2)*trwv(t)*round(fft(.5)*.85)+cos(2*pi*s+t*4)*trwv(t)*round(fft(1)*.85)-cos(2*pi*s-t*2)*trwv(t)*round(fft(.25)*.85)-cos(2*pi*s+t*4)*trwv(t)*round(fft(.75)*.85)"
C3="c0*cos(c1 *(1-round(fft(.5)*.85)-round(fft(1)*.85)-round(fft(.25)*.85)-round(fft(.75)*.85))))+sin(2*pi*s-t*2)*trwv(t)*round(fft(.5)*.85)+sin(2*pi*s+t*4)*trwv(t)*round(fft(1)*.85)-sin(2*pi*s-t*2)*trwv(t)*round(fft(.25)*.85)-sin(2*pi*s+t*4)*trwv(t)*round(fft(.75)*.85)"
C4="c0*sin(c1 *(1-round(fft(.625)*.85)-round(fft(.125)*.85)-round(fft(.375)*.85)-round(fft(.875)*.85)))+cos(2*pi*s-t*2)*trwv(t)*round(fft(.625)*.85)+cos(2*pi*s+t*4)*trwv(t)*round(fft(.125)*.85)-cos(2*pi*s-t*2)*trwv(t)*round(fft(.375)*.85)-cos(2*pi*s+t*4)*trwv(t)*round(fft(.875)*.85)"
C5="c0*cos(c1 *(1-round(fft(.625)*.85)-round(fft(.125)*.85)-round(fft(.375)*.85)-round(fft(.875)*.85))))+sin(2*pi*s-t*2)*trwv(t)*round(fft(.625)*.85)+sin(2*pi*s+t*4)*trwv(t)*round(fft(.125)*.85)-sin(2*pi*s-t*2)*trwv(t)*round(fft(.375)*.85)-sin(2*pi*s+t*4)*trwv(t)*round(fft(.875)*.85)"
X0="B6 * c2 - B7 * C3"
Y0="B6 * c3 + B7 * C2"
X1="-1*(B6 * c4 - B7 * C5)*A5"
Y1="-1*(B6 * c5 + B7 * C4)*A5"
Pen="A4-trwv(s*5*bass)*.75"
LWdt="2"
ConB=1
Meta="reactive=4 detail=4 density=5 morphable=4"
Vers=270
Nut
VisuallFreak
Posts: 14 Joined: Tue Oct 08, 2024 8:43 am
Post
by VisuallFreak » Thu Feb 06, 2025 1:06 pm
hmm getting errors on this one while processing C2 C3 & C5
ShohS
Posts: 76 Joined: Fri Apr 06, 2018 11:46 am
Location: no one must know shhhh
Post
by ShohS » Thu Feb 06, 2025 1:30 pm
VisuallFreak wrote: ↑ Thu Feb 06, 2025 1:06 pm
hmm getting errors on this one while processing C2 C3 & C5
Here's a fix
Code: Select all
// Radar Sweep - Glitched Author: ShohS
stps=1000
Aspc=1
A0=".4+rnd(2.5)"
A1="2 * pi"
A2=""
A3="choice({-1, 1})"
A4="choice({1.2, 5})"
A5="choice({0, 1})"
B0="mag(1)*.5"
B1="rnd(5)"
B2="choice({-1, 1})"
B3=".3 * log( 10 + 1 ) + .05" // amplitude
B4="rnd(4) * ( rnd(2) - (rnd(5)) * abs(mag(1))*5 )" // freq
B5="abs(.07*bass)"
B6="1.1 * cos( t * A0*A3-B0 + A1 + 2 * pi * ID / NUM )"
B7="1.1 * sin( t * A0*A3-B0 + A1 + 2 * pi * ID / NUM )"
C0="s*(abs(mag(1))*15 * .8 * (1-abs(sin(s*B4*pi))*B5)+bass*.25)"
C1="(B3 * ((trwv ( s * B4 ))*(mag(1)*10))*1.5)"
C2="c0*sin(c1 *(1-round(fft(.5)*.85)-round(fft(1)*.85)-round(fft(.25)*.85)-round(fft(.75)*.85)))+cos(2*pi*s-t*2)*trwv(t)*round(fft(.5)*.85)+cos(2*pi*s+t*4)*trwv(t)*round(fft(1)*.85)-cos(2*pi*s-t*2)*trwv(t)*round(fft(.25)*.85)-cos(2*pi*s+t*4)*trwv(t)*round(fft(.75)*.85)"
C3="c0*cos(c1 *(1-round(fft(.5)*.85)-round(fft(1)*.85)-round(fft(.25)*.85)-round(fft(.75)*.85)))+sin(2*pi*s-t*2)*trwv(t)*round(fft(.5)*.85)+sin(2*pi*s+t*4)*trwv(t)*round(fft(1)*.85)-sin(2*pi*s-t*2)*trwv(t)*round(fft(.25)*.85)-sin(2*pi*s+t*4)*trwv(t)*round(fft(.75)*.85)"
C4="c0*sin(c1 *(1-round(fft(.625)*.85)-round(fft(.125)*.85)-round(fft(.375)*.85)-round(fft(.875)*.85)))+cos(2*pi*s-t*2)*trwv(t)*round(fft(.625)*.85)+cos(2*pi*s+t*4)*trwv(t)*round(fft(.125)*.85)-cos(2*pi*s-t*2)*trwv(t)*round(fft(.375)*.85)-cos(2*pi*s+t*4)*trwv(t)*round(fft(.875)*.85)"
C5="c0*cos(c1 *(1-round(fft(.625)*.85)-round(fft(.125)*.85)-round(fft(.375)*.85)-round(fft(.875)*.85)))+sin(2*pi*s-t*2)*trwv(t)*round(fft(.625)*.85)+sin(2*pi*s+t*4)*trwv(t)*round(fft(.125)*.85)-sin(2*pi*s-t*2)*trwv(t)*round(fft(.375)*.85)-sin(2*pi*s+t*4)*trwv(t)*round(fft(.875)*.85)"
X0="B6 * c2 - B7 * C3"
Y0="B6 * c3 + B7 * C2"
X1="-1*(B6 * c4 - B7 * C5)*A5"
Y1="-1*(B6 * c5 + B7 * C4)*A5"
Pen="A4-trwv(s*5*bass)*.75"
LWdt="2"
ConB=1
Meta="reactive=4 detail=4 density=5 morphable=4"
Vers=270
Nut
VisuallFreak
Posts: 14 Joined: Tue Oct 08, 2024 8:43 am
Post
by VisuallFreak » Thu Feb 06, 2025 1:59 pm
noice, it works!!
thanks for sharing and the lightning reply