new sound detection algorithm