Optimised music detector