function wavout = normwav(wavin, maxsiz)
% normalize all wavin entries to between +1 maxsiz
maxwav = max(max(abs(wavin)));
wavout = wavin* (maxsiz/maxwav);
end

