I'm writing a code in Matlab with a simple windowing function in order to apply a simple overlap and add algorithm to my input signal.
So far this is what I have written:
[s_a,Fs] = audioread('a.wav');
frame_dur = 0.04; %length of my window in time
frame_stride = 0.01; %shift of every single window in time
frame_len = round(frame_dur * Fs);
frame_step = round(frame_stride*Fs);
win = hamming(frame_len);
The window overlapping is given by shift in time instead of a percentage value of its length (so every 10ms I have a window that ends 40ms later.
How do i calculate the number of windows in my signal?
I found this solution but i do not have the overlap r
. Can I find my number of windows starting from the data I have?