updated PLM detector

samplerate migrated to params.samplerate