Detection of transients or attacks for time/frequency resolution switching