hanfrunz
15th December 2015, 15:07
Here's the traditional christmas script. This year it's wide. Wide as in Tarantino's new Movie. :cool:
function p(float len, float freq){return audiodub(BlankClip(length=int(len*24), width=800,height=288, pixel_type="rgb32",fps=24, color=int((freq-271.0)/1.72)),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
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
g2=g*2.0
N1=1.0
N2=0.5
N4=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= Animate(0,576,"Bicubicresize",stackhorizontal(last,last,last), 800,288, 1./3.,1./3., 576./3., 1256.-288.-200.,800,288, stackhorizontal(last,last,last), 800,288, 1./3.,1./3., 0., 0.,800,280)
sn2=sn.crop(100,100,0,0).bicubicresize(800,288)
mixaudio(p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,G2)+p(N4,C)+p(N4,D2)+p(N1,E2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,D2)+p(N4,D2)+p(N4,E2)+p(N2,D2)+p(N2,G2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,G2)+p(N4,C)+p(N4,D2)+p(N1,E2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,G2)+p(N4,G2)+p(N4,F2)+p(N4,D2)+p(N1,C),q(N2,C)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,g)+q(N2,a)+q(N2,g)+q(N2,C)+q(N2,A)+q(N2,B)+q(N2,g)+q(N2,g)+q(N2,a)+q(N2,g)+q(N4,b)+q(N4,g)+q(N4,a)+q(N4,b)+q(N2,C)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,a)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,b)+q(N2,g)+q(N2,C)+q(N2,g)+q(N4,b)+q(N4,g)+q(N4,a)+q(N4,b)+q(N1,c2)).subtitle("I wish all avisynth developers and users\n a merry christmas and a happy new year!\n\n(hanfrunz 2015)", align=5, lsp=10, text_color=$ffff00, halo_color=$ff0000)
audiodub(mixaudio(tone(5.0, 400.0,channels=1), mixaudio(tone(5.0, 200.0,type="Triangle",channels=1),tone(5.0, 300.0,type="Triangle",channels=1)) ).fadein(100).fadeout(30), BlankClip(length=24*5,width=800-4,height=288-4, pixel_type="rgb32",fps=24, color=$000000).subtitle("presented in Ultra Panavision 70",align=5,size=28,text_color=$dfdfdf).fadeIO2(25).addborders(2,2,2,2, color=$dfdfdf)) + overlay(last, sn ,mode="blend", opacity=0.25 ).overlay(sn2,mode="blend", opacity=0.25).crop(2,2,-2,-2).addborders(2,2,2,2, color=$dfdfdf)
#
function p(float len, float freq){return audiodub(BlankClip(length=int(len*24), width=800,height=288, pixel_type="rgb32",fps=24, color=int((freq-271.0)/1.72)),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
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
g2=g*2.0
N1=1.0
N2=0.5
N4=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= Animate(0,576,"Bicubicresize",stackhorizontal(last,last,last), 800,288, 1./3.,1./3., 576./3., 1256.-288.-200.,800,288, stackhorizontal(last,last,last), 800,288, 1./3.,1./3., 0., 0.,800,280)
sn2=sn.crop(100,100,0,0).bicubicresize(800,288)
mixaudio(p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,G2)+p(N4,C)+p(N4,D2)+p(N1,E2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,D2)+p(N4,D2)+p(N4,E2)+p(N2,D2)+p(N2,G2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,G2)+p(N4,C)+p(N4,D2)+p(N1,E2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,G2)+p(N4,G2)+p(N4,F2)+p(N4,D2)+p(N1,C),q(N2,C)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,g)+q(N2,a)+q(N2,g)+q(N2,C)+q(N2,A)+q(N2,B)+q(N2,g)+q(N2,g)+q(N2,a)+q(N2,g)+q(N4,b)+q(N4,g)+q(N4,a)+q(N4,b)+q(N2,C)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,a)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,b)+q(N2,g)+q(N2,C)+q(N2,g)+q(N4,b)+q(N4,g)+q(N4,a)+q(N4,b)+q(N1,c2)).subtitle("I wish all avisynth developers and users\n a merry christmas and a happy new year!\n\n(hanfrunz 2015)", align=5, lsp=10, text_color=$ffff00, halo_color=$ff0000)
audiodub(mixaudio(tone(5.0, 400.0,channels=1), mixaudio(tone(5.0, 200.0,type="Triangle",channels=1),tone(5.0, 300.0,type="Triangle",channels=1)) ).fadein(100).fadeout(30), BlankClip(length=24*5,width=800-4,height=288-4, pixel_type="rgb32",fps=24, color=$000000).subtitle("presented in Ultra Panavision 70",align=5,size=28,text_color=$dfdfdf).fadeIO2(25).addborders(2,2,2,2, color=$dfdfdf)) + overlay(last, sn ,mode="blend", opacity=0.25 ).overlay(sn2,mode="blend", opacity=0.25).crop(2,2,-2,-2).addborders(2,2,2,2, color=$dfdfdf)
#