final_mix.m
Go to the documentation of this file.
1 function final_mix(arg1,arg2)
2 
3 x = wavread(arg1);
4 y = wavread(arg2);
5 
6 x = x/max(x);
7 y = y/max(y);
8 
9 if(length(x) > length(y))
10  x = x(1:length(y));
11 else
12  y = y(1:length(x));
14 w=2.5*x+y;
15 
16 if max(w)>1
17  w=0.9*w/max(w);
18 end
19 
20 wavwrite(w,44100,'MIX.wav');
if max(w)>1 w=0.9 *w/max(w)
end wavwrite(w, 44100,'MIX.wav')
end
Definition: final_mix.m:13
y
Definition: final_mix.m:4
function final_mix(arg1, arg2) x
else[Y, I2]
w
Definition: final_mix.m:14
x
Definition: final_mix.m:6
const char int length
Definition: avisynth_c.h:668
if(length(x) > length(y)) x