how to overlapp and add the frames after applying some modification in time domain
1 次查看(过去 30 天)
显示 更早的评论
I am trying to apply Dynamic range compression (DRC) in time domain in matlab. But I am having problem in overlapping and adding the frames. Somebody please help. Here is my work-
[x,fs] = audioread('1.wav');
windowLen = 512; % Window length in samples
start = 1; % Window start index
halfwin = windowLen / 2; % Half window for calculating overlaps
win = hamming(windowLen); % Generate window
frames = floor(length(x)/halfwin)-1; % Calc number of frames in x
% --- process frames ---
for i =1:1:frames
m=1;
signal = y(start:start+windowLen-1); % Samples in current frame
winsignal = signal .* win % Apply window function
------process winsignal by applying DRC-----
start = start + halfwin; % Move to start of next window
end
Now i don't know how to overlapp and add these processed frames (winsignal) for getting my desired output signal. Any kind of improvement in above code or further help is appreciated. Thanks in advance
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!