PDA

View Full Version : Preset


StudioMusic
30th October 2001, 02:44
Fluctuation from one of my others. SM

~~~~~~~~~~~~~~~~
Bizarre
~~~~~~~~~~~~~~~~

[preset00]
fRating=3.000000
fGammaAdj=1.900000
fVideoEchoZoom=3.200000
fVideoEchoAlpha=1.800000
nVideoEchoOrientation=1
fDecay=0.960000
nWaveMode=1
bAdditiveWaves=1
bWaveDots=0
bModWaveAlphaByVolume=0
bMaximizeWaveColor=1
bTexWrap=1
bDarkenCenter=1
bMotionVectorsOn=0
nMotionVectorsX=13
nMotionVectorsY=8
bBrighten=1
bDarken=0
bSolarize=0
fWaveAlpha=1.500000
fWaveScale=1.605000
fWaveSmoothing=0.700000
fWaveParam=0.300000
fModWaveAlphaStart=1.550000
fModWaveAlphaEnd=0.850000
fWarpAnimSpeed=1.000000
fWarpScale=4.853000
fZoomExponent=0.330000
fShader=0.300000
zoom=1.564000
rot=0.500000
cx=0.500000
cy=0.500000
dx=0.100000
dy=0.100000
warp=2.200000
sx=0.500000
sy=1.000000
wave_r=0.300000
wave_g=0.200000
wave_b=0.500000
wave_x=0.500000
wave_y=0.500000
per_frame_1=wave_r = wave_r + 0.500*( 0.60*sin(0.833*time) + 0.40*sin(1.045*time) );
per_frame_2=wave_g = wave_g + 0.500*( 0.60*sin(0.700*time) + 0.40*sin(0.756*time) );
per_frame_3=wave_b = wave_b + 0.500*( 0.60*sin(0.810*time) + 0.40*sin(0.920*time) );
per_frame_4=decay = decay - 0.02*equal(frame%50,0);
per_frame_5=bass_thresh = above(bass_att,bass_thresh)*2.5 + (1-above(bass_att,bass_thresh))*((bass_thresh-1.4)*0.98+2.6);

Krash
30th October 2001, 07:57
Do you realise you have a bass threshold equation in there that you're not using? Either do something that uses the bass_thresh variable (a zoom, or a rotation, or make q1=bass thresh and translate it to per_pixel and do something there), or delete the line and save a couple cpu cycles and a couple bytes of memory.

- Krash

Krash
30th October 2001, 09:25
After I took out the video echo, and the texture wrap, That shape that's being formed reminded me of an apple. So I went and made it MORE like an apple. Bass will make it a Red Delicious, and Treble will turn it to a Granny Smith. =]

I don't know whether I'll keep this myself, but getting the colour switching right was worth posting it here.

Krash and Studiomusic - Apple

[preset00]
fRating=3.000000
fGammaAdj=1.900000
fDecay=0.960000
fVideoEchoZoom=3.200000
fVideoEchoAlpha=0.000000
nVideoEchoOrientation=1
nWaveMode=3
bAdditiveWaves=1
bWaveDots=0
bModWaveAlphaByVolume=0
bMaximizeWaveColor=0
bTexWrap=0
bDarkenCenter=1
bMotionVectorsOn=0
bRedBlueStereo=0
nMotionVectorsX=13
nMotionVectorsY=8
bBrighten=1
bDarken=0
bSolarize=0
bInvert=0
fWaveAlpha=1.500000
fWaveScale=0.799700
fWaveSmoothing=0.700000
fWaveParam=0.300000
fModWaveAlphaStart=1.550000
fModWaveAlphaEnd=0.850000
fWarpAnimSpeed=1.000000
fWarpScale=4.853000
fZoomExponent=0.330000
fShader=0.300000
zoom=1.564000
rot=0.500000
cx=0.500000
cy=0.500000
dx=0.100000
dy=0.100000
warp=2.200000
sx=0.500000
sy=1.000000
wave_r=0.000000
wave_g=0.500000
wave_b=0.000000
wave_x=0.350000
wave_y=0.750000
ob_size=0.005000
ob_r=0.000000
ob_g=0.000000
ob_b=0.000000
ob_a=1.000000
ib_size=0.010000
ib_r=0.770000
ib_g=0.250000
ib_b=0.250000
ib_a=0.010000
per_frame_1=bass_thresh = above(bass_att,bass_thresh)*2 + (1-above(bass_att,bass_thresh))*((bass_thresh-1.3)*0.7+1);
per_frame_2=treb_thresh = above(treb_att,treb_thresh)*2 + (1-above(treb_att,treb_thresh))*((treb_thresh-1.3)*0.7+1);
per_frame_3=swapcolour = above(bass_thresh,treb_thresh*0.93)*2 -1;
per_frame_4=red = red + swapcolour*0.05*bass_thresh;
per_frame_5=green = green - swapcolour*0.05*treb_thresh;
per_frame_6=red = if(above(red,0.5),0.5,if(below(red,0),0,red));
per_frame_7=green = if(above(green,0.5),0.5,if(below(green,0),0,green));
per_frame_8=wave_r = red;
per_frame_9=wave_g = green;
per_frame_10=decay = decay - 0.02*equal(frame%50,0);

unchained
30th October 2001, 14:50
<sniff> Too proud to use MY color swapping code?

C'mon, I don't mind borrowing from wherever I find it. I'm busting my ass on all this "effect engine" code in the hopes that somebody else will use it or (even more hopefully) help me improve it.

I'm about at the limits of what I can do with milkdrop without input/inspiration from other people. I'd write my own vis engine, which is what I'd have to do to get all of the effects I want, but I'm just too damn lazy.

Krash
31st October 2001, 06:55
To be honest, I didn't even think about it =]

And to be fair, there's some slight differences. Though I agree it probably would have been faster if I'd borrowed from you =]

- Krash