create a chorus-effect
10 次查看(过去 30 天)
显示 更早的评论
I've been trying to create a chorus effect in matlab. But there's something that doesn't work. I want to use this: y(n)=a*x(n) + b(x(n-t))
t= t0 + Asin(2*pi*f*n)
t0 is the delay
This is my attempt:
[x,fs]=wavread('filename.wav');
f=0.25;
delay_in_sampels=0.05*fs;%50 ms delay
index=1:length(x);
sincurve = 1*sin(2*pi*index*f);
y = zeros(length(x):1);
y(1:delay_in_sampels)=x(1:delay_in_sampels);
a=1;
b=5;
for i =(delay_in_sampels+1):length(x)
sink=abs(sincurve(i));
delay=(delay_in_sampels+sink);
o=ceil(i-delay);
y(i)=(a*x(i)) + b*(x(o));
end
soundsc(y,fs)
What's wrong? cause it doesn't sound like a chorus effect imo.
4 个评论
回答(1 个)
Aravinth Ananth
2020-9-2
hello cany any one give a correct code for chorus effect in math lab please?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vibration Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!