File: Krash - Heatwaves.milk

package info (click to toggle)
projectm 2.1.0+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 32,348 kB
  • ctags: 13,907
  • sloc: cpp: 31,087; ansic: 26,914; sh: 816; makefile: 17
file content (99 lines) | stat: -rwxr-xr-x 3,248 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[preset00]
fRating=3.000000
fGammaAdj=2.000000
fDecay=0.980000
fVideoEchoZoom=1.006596
fVideoEchoAlpha=0.000000
nVideoEchoOrientation=0
nWaveMode=3
bAdditiveWaves=0
bWaveDots=0
bModWaveAlphaByVolume=0
bMaximizeWaveColor=1
bTexWrap=0
bDarkenCenter=0
bRedBlueStereo=0
bBrighten=0
bDarken=0
bSolarize=0
bInvert=0
fWaveAlpha=0.800000
fWaveScale=1.028395
fWaveSmoothing=0.750000
fWaveParam=0.000000
fModWaveAlphaStart=0.750000
fModWaveAlphaEnd=0.950000
fWarpAnimSpeed=1.000000
fWarpScale=1.000000
fZoomExponent=1.000000
fShader=0.000000
zoom=1.000000
rot=0.000000
cx=0.500000
cy=0.500000
dx=0.000000
dy=0.000000
warp=1.000000
sx=1.000000
sy=1.000000
wave_r=0.599900
wave_g=0.200000
wave_b=0.100000
wave_x=0.500000
wave_y=0.500000
ob_size=0.010000
ob_r=0.000000
ob_g=0.000000
ob_b=0.000000
ob_a=0.099900
ib_size=0.010000
ib_r=1.000000
ib_g=0.600000
ib_b=0.000000
ib_a=0.200000
nMotionVectorsX=12.000000
nMotionVectorsY=9.000000
mv_l=0.900000
mv_r=1.000000
mv_g=1.000000
mv_b=1.000000
mv_a=0.000000
per_frame_1=warp = 0;
per_frame_2=wave_r = wave_r + 0.2*(0.6*sin(0.892*time) + 0.4*sin(1.432*time));
per_frame_3=wave_g = wave_g + 0.15*(0.6*sin(1.217*time) + 0.4*sin(0.935*time));
per_frame_4=wave_b = wave_b + 0.1*(0.6*sin(0.729*time) + 0.4*sin(1.292*time));
per_frame_5=ob_r = abs(wave_r - 0.2);
per_frame_6=ob_g = abs(wave_g - 0.1);
per_frame_7=ob_b = abs(wave_b - 0.05);
per_frame_8=ib_a = 0.9-bass;
per_frame_9=volume = 0.3*(bass+mid+att);
per_frame_10=beatrate = equal(beatrate,0) + (1-equal(beatrate,0))*(below(volume,0.01) + (1-below(volume,0.01))*beatrate);
per_frame_11=lastbeat = lastbeat + equal(lastbeat,0)*time;
per_frame_12=meanbass_att = 0.1*(meanbass_att*9 + bass_att);
per_frame_13=peakbass_att = max(bass_att,peakbass_att);
per_frame_14=beat = above(volume,0.8)*below(peakbass_att - bass_att, 0.05*peakbass_att)*above(time - lastbeat, 0.1 + 0.5*(beatrate - 0.1));
per_frame_15=beatrate = max(if(beat,if(below(time-lastbeat,2*beatrate),0.1*(beatrate*9 + time - lastbeat),beatrate),beatrate),0.1);
per_frame_16=peakbass_att = beat*bass_att + (1-beat)*peakbass_att*(above(time - lastbeat, 2*beatrate)*0.95 + (1-above(time - lastbeat, 2*beatrate))*0.995);
per_frame_17=lastbeat = beat*time + (1-beat)*lastbeat;
per_frame_18=peakbass_att = max(peakbass_att,1.1*meanbass_att);
per_frame_19=mode = if(beat,1-mode,mode);
per_frame_20=wave_x = abs(1-mode);
per_frame_21=wave_y = 0.5+(1-2*mode)*0.05;
per_frame_22=q1 = 1-2*mode;
per_frame_23=q2 = mode;
per_pixel_1=du = x*2-1 - q1*0.7;
per_pixel_2=dv = y*2-1 + q1*0.5;
per_pixel_3=dist = sqrt(du*du+dv*dv);
per_pixel_4=ang2 = atan2(du,dv);
per_pixel_5=mult = 0.008/(dist+0.4);
per_pixel_6=dx = mult*sin(ang2-1.5);
per_pixel_7=dy = mult*cos(ang2-1.5+q2*0.1);
per_pixel_8=du = x*2-1 - q1*0.7;
per_pixel_9=dv = y*2-1 - q1*0.5;
per_pixel_10=dist = sqrt(du*du+dv*dv);
per_pixel_11=ang2 = atan2(du,dv);
per_pixel_12=mult = 0.008/(dist+0.4);
per_pixel_13=dx = dx + mult*sin(ang2+1.5);
per_pixel_14=dy = dy + mult*cos(ang2+1.4+q2*0.1);
per_pixel_15=dy = dy - below(y,0.65)*above(y,0.35)*(0.1*(y-0.5) + 0.01*sin(x*30+q1*time*4));
per_pixel_16=dx = dx - above(dx,-0.01+q2*0.01)*below(dx,0+q2*0.01)*q1*0.006;