hanfrunz
21st December 2012, 18:55
i tuned my script from last year (http://forum.doom9.org/showthread.php?t=163597) (added snow!)
function p(float len, float freq){return audiodub(BlankClip(length=int(len*24), width=400,height=400, pixel_type="rgb32",fps=24, color=int((freq-271.0)/1.72)).addborders(20,20,20,20,$ffffff),tone(len,freq,channels=1,level=1.0).FadeIO0(1,0,24))}
function q(float len, float freq){return tone(len,freq,channels=1,level=0.5).FadeIO0(1,0,24)}
c=261.6255653006
D=293.6647679174
E=329.6275569129
F=349.2282314330
Gb=369.9944227116
G=391.9954359817
A=440.00000000001
B=493.8833012561
c2=c*2.0
d2=d*2.0
e2=e*2.0
f2=f*2.0
N4=0.5
N8=0.25
BlankClip(length=576, width=400,height=400, pixel_type="rgb32",fps=24, color=0).subtitle(" . * . * ",y=50,size=46,align=5, font="Courier New").subtitle(" . * . ",y=50+30*1,size=46,align=5, font="Courier New").subtitle("* . . * ",y=50+30*2,size=46,align=5, font="Courier New").subtitle(" . . .",y=50+30*3,size=46,align=5, font="Courier New").subtitle(" . . * . ",y=50+30*4,size=46,align=5, font="Courier New").subtitle(" * . * ",y=50+30*5,size=46,align=5, font="Courier New").subtitle(" . * . ",y=50+30*6,size=46,align=5, font="Courier New").subtitle("* . . * ",y=50+30*7,size=46,align=5, font="Courier New").subtitle(" . . .",y=50+30*8,size=46,align=5, font="Courier New").subtitle(" . . * . ",y=50+30*9,size=46,align=5, font="Courier New").greyscale().GeneralConvolution(0, "5 10 10 10 5 10 10 5 10 10 5 10 10 10 5 10 10 10 10 10 5 10 10 10 5 ", 200, false).crop(0,10,0,-076)
stackvertical(last,last,last,last)
sn=stackhorizontal(last,last,last)
sn=Animate(0,576,"Bicubicresize",sn, 400,400, 1./3.,1./3., 576./3., 1256.-400.,400,400, sn, 400,400, 1./3.,1./3., 0., 0.,400,400)
mixaudio(p(N4,G)+p(N4,c2)+p(N8,c2)+p(N8,d2)+p(N8,c2)+p(N8,B)+p(N4,a)+p(N4,a)+p(N4,a)+p(N4,d2)+p(N8,d2)+p(N8,e2)+p(N8,d2)+p(N8,c2)+p(N4,b)+p(N4,g)+p(N4,g)+p(N4,e2)+p(N8,e2)+p(N8,f2)+p(N8,e2)+p(N8,d2)+p(N4,c2)+p(N4,a)+p(N8,g)+p(N8,g)+p(N4,a)+p(N4,d2)+p(N4,b)+p(1,c2)+p(N4,g)+p(N4,c2)+p(N4,c2)+p(N4,c2)+p(1,b)+p(N4,b)+p(N4,c2)+p(N4,b)+p(N4,a)+p(1,g)+p(N4,d2)+p(N4,e2)+p(N8,d2)+p(N8,d2)+p(N8,c2)+p(N8,c2)+p(N4,2*g)+p(N4,g)+p(N8,g)+p(N8,g)+p(N4,a)+p(N4,d)+p(N4,b)+p(1,c2),q(N4,G)+q(1,e)+q(N4,c)+q(1,F)+q(N4,G)+q(N4,F)+q(N4,d)+q(N4,Gb)+q(N4,g)+q(N4,d)+q(N4,f)+q(N4,g)+q(N4,d)+q(N4,f)+q(N4,a)+q(N4,f)+q(N4,g)+q(N4,f)+q(N4,Gb)+q(N4,f)+q(1,e)+q(N4,e)+q(N4,c2)+q(N4,b)+q(N4,a)+q(1,g)+q(N4,g)+q(N4,a)+q(N4,g)+q(N4,f)+q(N4,e)+q(N4,f)+q(N4,g)+q(N4,c2)+q(N4,g)+q(N4,a)+q(1,g)+q(N4,e)+q(N4,f)+q(N4,Gb)+q(N4,f)+q(1,e)).subtitle("I wish all avisynth developers and users\n a merry christmas and a happy new year!\n\n(hanfrunz 2012)", align=5, lsp=10, text_color=$ffff00, halo_color=$ff0000)
overlay(last, sn,mode="blend", opacity=0.25, x=20, y=20)
#
function p(float len, float freq){return audiodub(BlankClip(length=int(len*24), width=400,height=400, pixel_type="rgb32",fps=24, color=int((freq-271.0)/1.72)).addborders(20,20,20,20,$ffffff),tone(len,freq,channels=1,level=1.0).FadeIO0(1,0,24))}
function q(float len, float freq){return tone(len,freq,channels=1,level=0.5).FadeIO0(1,0,24)}
c=261.6255653006
D=293.6647679174
E=329.6275569129
F=349.2282314330
Gb=369.9944227116
G=391.9954359817
A=440.00000000001
B=493.8833012561
c2=c*2.0
d2=d*2.0
e2=e*2.0
f2=f*2.0
N4=0.5
N8=0.25
BlankClip(length=576, width=400,height=400, pixel_type="rgb32",fps=24, color=0).subtitle(" . * . * ",y=50,size=46,align=5, font="Courier New").subtitle(" . * . ",y=50+30*1,size=46,align=5, font="Courier New").subtitle("* . . * ",y=50+30*2,size=46,align=5, font="Courier New").subtitle(" . . .",y=50+30*3,size=46,align=5, font="Courier New").subtitle(" . . * . ",y=50+30*4,size=46,align=5, font="Courier New").subtitle(" * . * ",y=50+30*5,size=46,align=5, font="Courier New").subtitle(" . * . ",y=50+30*6,size=46,align=5, font="Courier New").subtitle("* . . * ",y=50+30*7,size=46,align=5, font="Courier New").subtitle(" . . .",y=50+30*8,size=46,align=5, font="Courier New").subtitle(" . . * . ",y=50+30*9,size=46,align=5, font="Courier New").greyscale().GeneralConvolution(0, "5 10 10 10 5 10 10 5 10 10 5 10 10 10 5 10 10 10 10 10 5 10 10 10 5 ", 200, false).crop(0,10,0,-076)
stackvertical(last,last,last,last)
sn=stackhorizontal(last,last,last)
sn=Animate(0,576,"Bicubicresize",sn, 400,400, 1./3.,1./3., 576./3., 1256.-400.,400,400, sn, 400,400, 1./3.,1./3., 0., 0.,400,400)
mixaudio(p(N4,G)+p(N4,c2)+p(N8,c2)+p(N8,d2)+p(N8,c2)+p(N8,B)+p(N4,a)+p(N4,a)+p(N4,a)+p(N4,d2)+p(N8,d2)+p(N8,e2)+p(N8,d2)+p(N8,c2)+p(N4,b)+p(N4,g)+p(N4,g)+p(N4,e2)+p(N8,e2)+p(N8,f2)+p(N8,e2)+p(N8,d2)+p(N4,c2)+p(N4,a)+p(N8,g)+p(N8,g)+p(N4,a)+p(N4,d2)+p(N4,b)+p(1,c2)+p(N4,g)+p(N4,c2)+p(N4,c2)+p(N4,c2)+p(1,b)+p(N4,b)+p(N4,c2)+p(N4,b)+p(N4,a)+p(1,g)+p(N4,d2)+p(N4,e2)+p(N8,d2)+p(N8,d2)+p(N8,c2)+p(N8,c2)+p(N4,2*g)+p(N4,g)+p(N8,g)+p(N8,g)+p(N4,a)+p(N4,d)+p(N4,b)+p(1,c2),q(N4,G)+q(1,e)+q(N4,c)+q(1,F)+q(N4,G)+q(N4,F)+q(N4,d)+q(N4,Gb)+q(N4,g)+q(N4,d)+q(N4,f)+q(N4,g)+q(N4,d)+q(N4,f)+q(N4,a)+q(N4,f)+q(N4,g)+q(N4,f)+q(N4,Gb)+q(N4,f)+q(1,e)+q(N4,e)+q(N4,c2)+q(N4,b)+q(N4,a)+q(1,g)+q(N4,g)+q(N4,a)+q(N4,g)+q(N4,f)+q(N4,e)+q(N4,f)+q(N4,g)+q(N4,c2)+q(N4,g)+q(N4,a)+q(1,g)+q(N4,e)+q(N4,f)+q(N4,Gb)+q(N4,f)+q(1,e)).subtitle("I wish all avisynth developers and users\n a merry christmas and a happy new year!\n\n(hanfrunz 2012)", align=5, lsp=10, text_color=$ffff00, halo_color=$ff0000)
overlay(last, sn,mode="blend", opacity=0.25, x=20, y=20)
#