function [EMG]=waveformLengthAll(sig,frequency,windowEMG,windowShift)
    signalWindow=frequency*windowEMG;
    shiftProp=windowEMG/windowShift;
    EMG=zeros((floor(size(sig,1)/signalWindow)-1)*shiftProp+1,size(sig,2));
    parfor i=1:size(sig,2)
        EMG(:,i)=waveformLength(sig(:,i),frequency,windowEMG,windowShift);
    end
end