MILKDROP_PRESET_VERSION=201
PSVERSION=2
PSVERSION_WARP=0
PSVERSION_COMP=2
[preset00]
fRating=4.000000
fGammaAdj=1.320
fDecay=1.000
fVideoEchoZoom=1.220
fVideoEchoAlpha=0.150
nVideoEchoOrientation=0
nWaveMode=5
bAdditiveWaves=0
bWaveDots=0
bWaveThick=0
bModWaveAlphaByVolume=0
bMaximizeWaveColor=1
bTexWrap=1
bDarkenCenter=0
bRedBlueStereo=0
bBrighten=0
bDarken=1
bSolarize=0
bInvert=0
fWaveAlpha=0.691
fWaveScale=4.778
fWaveSmoothing=0.000
fWaveParam=0.000
fModWaveAlphaStart=0.710
fModWaveAlphaEnd=1.300
fWarpAnimSpeed=1.000
fWarpScale=1.331
fZoomExponent=1.00000
fShader=1.000
zoom=0.99951
rot=0.00000
cx=0.500
cy=0.500
dx=0.00000
dy=0.00000
warp=0.01010
sx=1.00000
sy=1.00000
wave_r=0.650
wave_g=0.650
wave_b=0.650
wave_x=0.500
wave_y=0.500
ob_size=0.015
ob_r=0.000
ob_g=0.000
ob_b=0.000
ob_a=0.100
ib_size=0.000
ib_r=0.250
ib_g=0.250
ib_b=0.250
ib_a=0.000
nMotionVectorsX=12.000
nMotionVectorsY=9.000
mv_dx=0.000
mv_dy=0.000
mv_l=0.900
mv_r=1.000
mv_g=1.000
mv_b=1.000
mv_a=0.000
b1n=0.000
b2n=0.000
b3n=0.000
b1x=1.000
b2x=1.000
b3x=1.000
b1ed=0.250
wavecode_0_enabled=0
wavecode_0_samples=512
wavecode_0_sep=0
wavecode_0_bSpectrum=0
wavecode_0_bUseDots=0
wavecode_0_bDrawThick=0
wavecode_0_bAdditive=0
wavecode_0_scaling=1.00000
wavecode_0_smoothing=0.50000
wavecode_0_r=1.000
wavecode_0_g=1.000
wavecode_0_b=1.000
wavecode_0_a=1.000
wavecode_1_enabled=0
wavecode_1_samples=512
wavecode_1_sep=0
wavecode_1_bSpectrum=0
wavecode_1_bUseDots=0
wavecode_1_bDrawThick=0
wavecode_1_bAdditive=0
wavecode_1_scaling=1.00000
wavecode_1_smoothing=0.50000
wavecode_1_r=1.000
wavecode_1_g=1.000
wavecode_1_b=1.000
wavecode_1_a=1.000
wavecode_2_enabled=0
wavecode_2_samples=512
wavecode_2_sep=0
wavecode_2_bSpectrum=0
wavecode_2_bUseDots=0
wavecode_2_bDrawThick=0
wavecode_2_bAdditive=0
wavecode_2_scaling=1.00000
wavecode_2_smoothing=0.50000
wavecode_2_r=1.000
wavecode_2_g=1.000
wavecode_2_b=1.000
wavecode_2_a=1.000
wavecode_3_enabled=0
wavecode_3_samples=512
wavecode_3_sep=0
wavecode_3_bSpectrum=0
wavecode_3_bUseDots=0
wavecode_3_bDrawThick=0
wavecode_3_bAdditive=0
wavecode_3_scaling=1.00000
wavecode_3_smoothing=0.50000
wavecode_3_r=1.000
wavecode_3_g=1.000
wavecode_3_b=1.000
wavecode_3_a=1.000
shapecode_0_enabled=1
shapecode_0_sides=4
shapecode_0_additive=0
shapecode_0_thickOutline=0
shapecode_0_textured=1
shapecode_0_num_inst=1
shapecode_0_x=0.500
shapecode_0_y=1.800
shapecode_0_rad=0.10000
shapecode_0_ang=0.00000
shapecode_0_tex_ang=0.00000
shapecode_0_tex_zoom=1.00000
shapecode_0_r=1.000
shapecode_0_g=0.000
shapecode_0_b=0.000
shapecode_0_a=1.000
shapecode_0_r2=0.000
shapecode_0_g2=1.000
shapecode_0_b2=0.000
shapecode_0_a2=0.000
shapecode_0_border_r=1.000
shapecode_0_border_g=1.000
shapecode_0_border_b=1.000
shapecode_0_border_a=0.100
shapecode_1_enabled=1
shapecode_1_sides=4
shapecode_1_additive=0
shapecode_1_thickOutline=0
shapecode_1_textured=1
shapecode_1_num_inst=1
shapecode_1_x=0.500
shapecode_1_y=1.800
shapecode_1_rad=0.10000
shapecode_1_ang=0.00000
shapecode_1_tex_ang=0.00000
shapecode_1_tex_zoom=1.00000
shapecode_1_r=1.000
shapecode_1_g=0.000
shapecode_1_b=0.000
shapecode_1_a=1.000
shapecode_1_r2=0.000
shapecode_1_g2=1.000
shapecode_1_b2=0.000
shapecode_1_a2=0.000
shapecode_1_border_r=1.000
shapecode_1_border_g=1.000
shapecode_1_border_b=1.000
shapecode_1_border_a=0.100
shapecode_2_enabled=1
shapecode_2_sides=4
shapecode_2_additive=0
shapecode_2_thickOutline=0
shapecode_2_textured=1
shapecode_2_num_inst=1
shapecode_2_x=0.500
shapecode_2_y=1.800
shapecode_2_rad=0.10000
shapecode_2_ang=0.00000
shapecode_2_tex_ang=0.00000
shapecode_2_tex_zoom=1.00000
shapecode_2_r=1.000
shapecode_2_g=0.000
shapecode_2_b=0.000
shapecode_2_a=1.000
shapecode_2_r2=0.000
shapecode_2_g2=1.000
shapecode_2_b2=0.000
shapecode_2_a2=0.000
shapecode_2_border_r=1.000
shapecode_2_border_g=1.000
shapecode_2_border_b=1.000
shapecode_2_border_a=0.100
shapecode_3_enabled=0
shapecode_3_sides=4
shapecode_3_additive=0
shapecode_3_thickOutline=0
shapecode_3_textured=0
shapecode_3_num_inst=1
shapecode_3_x=0.500
shapecode_3_y=0.500
shapecode_3_rad=0.10000
shapecode_3_ang=0.00000
shapecode_3_tex_ang=0.00000
shapecode_3_tex_zoom=1.00000
shapecode_3_r=1.000
shapecode_3_g=0.000
shapecode_3_b=0.000
shapecode_3_a=1.000
shapecode_3_r2=0.000
shapecode_3_g2=1.000
shapecode_3_b2=0.000
shapecode_3_a2=0.000
shapecode_3_border_r=1.000
shapecode_3_border_g=1.000
shapecode_3_border_b=1.000
shapecode_3_border_a=0.100
per_frame_1=wave_r = wave_r + 0.5*sin(time*1.13);
per_frame_2=wave_g = wave_g + 0.5*sin(time*1.23);
per_frame_3=wave_b = wave_b + 0.5*sin(time*1.33);
per_frame_4=
per_frame_5=wave_x = wave_x + 0.2*sin(0.32*time);
per_frame_6=wave_y = wave_y + 0.2*cos(0.32*time);
per_frame_7=
per_frame_8=ob_r = wave_r;
per_frame_9=ob_g = wave_g;
per_frame_10=ob_b = wave_b;
per_frame_11=
per_frame_12=
per_frame_13=//lines below belong to the composite shader (flexis kaleidoscope)
per_frame_14=
per_frame_15=//flexi's beat detection (made for breakbeats)
per_frame_16=vol = bass*8 + mid*5 + treb*3;
per_frame_17=m = m*0.97 + vol*0.08;
per_frame_18=monitor = vol;
per_frame_19=beat = above(vol,res)*above(vol,m)*above(vol,16);
per_frame_20=diff = (1-beat)*diff + beat*(vol-res);
per_frame_21=res = beat*(vol + m*0.04) + (1-beat)*(res -  (0.1+diff*0.02)*60/fps);
per_frame_22=res = max(0,res);
per_frame_23=
per_frame_24=w = if(beat, rand(4096)/1024*asin(1),w); // on beat: randomize pos and angle of the kaleidoscope
per_frame_25=xx = if(beat, 0.1 + rand(800)/1000, xx);
per_frame_26=yy = if(beat, 0.1 + rand(800)/1000, yy);
per_frame_27=
per_frame_28=//geiss' custom beat detection code: (fps-independent; quiet songs don't freak out)
per_frame_29=decay_rate = pow(0.995, fps);  // lower # = more hasty to declare a beat
per_frame_30=min_att    = 2.2;               // lower # = quieter songs can declare beats
per_frame_31=decay_to   = 1;               // lower # = more hasty to declare a beat
per_frame_32=beat =           bass/max(min_att,bass_att);
per_frame_33=beat = max(beat, mid /max(min_att,mid_att ));
per_frame_34=beat = max(beat, treb/max(min_att,treb_att));
per_frame_35=beat = max( beat, (prev_beat-decay_to)*decay_rate + decay_to );
per_frame_36=beat_level     = (beat - prev_beat - 0.07)*24;
per_frame_37=is_beat = above(beat_level, 0.5);
per_frame_38=prev_beat = beat;
per_frame_39=
per_frame_40=w  = if(is_beat, w + (rand(256)-128)/1024, w);  // on beat: random increment of pos and angle
per_frame_41=xx = if(is_beat, xx + (rand(256)-128)/4096, xx);
per_frame_42=yy = if(is_beat, yy + (rand(256)-128)/4096, yy);
per_frame_43=
per_frame_44=
per_frame_45=q11 = sin(w); // w - angle of kaleidoscope
per_frame_46=q12 = cos(w);
per_frame_47=q13 = xx;     // center of kaleidoscope window
per_frame_48=q14 = yy;
per_frame_49=q17 = sin(-w);
per_frame_50=q18 = cos(-w);
per_pixel_1=rx=ang;//+sin(x*7);
per_pixel_2=ry=rad;//+sin(x*5);
per_pixel_3=
per_pixel_4=rot=sin(int(1+ry*2.864)*(8446669+sin(time/21774898+treb/55559599)*667777))/2+.5;
per_pixel_5=zoom=sin(int(1+rx*2.654)*(4747833+sin(time/26666825+mid/59555599)*754166))/2+.5;
per_pixel_6=//zoom=.999;
per_pixel_7=rot=sin(rot*rot*rad*88)/399;
per_pixel_8=zoom=1-sin(sqr(zoom)*ang*88)/356-.004141*(1-rad);
per_pixel_9=dx=dx;
per_pixel_10=dy=dy;
comp_1=`shader_body
comp_2=`{
comp_3=`// Flexis Kaleidoscope
comp_4=`
comp_5=`float2 cntr = float2(q13,q14);
comp_6=`float sin = q11;
comp_7=`float cos = q12;
comp_8=`
comp_9=`float2 uv_r = (uv-cntr)*aspect.xy;
comp_10=`       uv_r = 4*float2( cos*uv_r.x - sin*uv_r.y, sin*uv_r.x + cos*uv_r.y); // rotation
comp_11=`       uv_r = cntr + uv_r*aspect.zw;
comp_12=`       uv_r = 1.0 - abs( frac( uv_r * 0.5 ) * 2.0 - 1.0 ); // Eo.S' mirror code
comp_13=`
comp_14=` sin = q17;
comp_15=` cos = q18;
comp_16=`
comp_17=`float2 uv_rr = (uv_r-cntr)*aspect.xy;
comp_18=`       uv_rr = 4*float2( cos*uv_rr.x - sin*uv_rr.y, sin*uv_rr.x + cos*uv_rr.y); // counter-rotation
comp_19=`       uv_rr = cntr + (uv_rr-cntr)*aspect.zw*0.06;
comp_20=`       uv_rr = 1.0 - abs( frac( uv_rr * 0.5 ) * 2.0 - 1.0 ); // Eo.S' mirror code
comp_21=`
comp_22=`// now use uv_rr for tone-mapping
comp_23=`//uv_rr = uv;
comp_24=`ret = pow(abs(GetBlur3(uv_rr)-GetPixel(uv_rr))*3+0.1,1.5);
comp_25=`}
