Frequency analysis and modification