function [sp,np] = variableth (w,LL,th);
% 
mlp = floor( length(w)/length(LL));

LL = resample(LL,mlp,1);
sp = w(find(LL>th));
np = w(find(LL<th));

%[w,f]=wavread('4296012469 1720 06-26-00 Port 28.wav');
%[LL, sp, ns] = speechdetector(w,f,250,10);
%[sp,ns]=variableth(w,LL,-1);
%Threshhold is shifted due to training dB being different than test
%dB.
