% This is a wrapper for the do_ops function after windowing was implemented
function do_ops_wrapper(magF, angF, realF, imagF, f, sr)

%get max
maxx = 0;
%maxx = max(max(abs(realF)));

size_f = size(f);
window_size = size_f(1);
num_windows = size_f(2);

y = zeros(window_size*num_windows,1);

for i=1:num_windows
   y((i-1)*window_size+1:i*window_size,1) = do_ops(magF(:,i),angF(:,i),realF(:,i),imagF(:,i),f(:,i),sr,maxx);
end

sound(y,44100);
wavwrite(y,44100,16,'gummi_C.wav')

