A waveform adjusting system for a music file suitable in hand held devices
is described. A music file includes a plurality of tones, and the
waveform adjusting system includes a maximum magnitude estimating module
and an adjusting module. The waveform adjusting system is capable of
analyzing the whole music file, superposing the magnitudes of all the
tones, and calculating a scale factor according to the maximum superposed
magnitude and a predetermined level. The adjusting module multiplies the
magnitude of each tone by the scale factor K, thus the volume of the
music is kept to a suitable level without suffering from too small volume
problem or signal distortion due to too large volume.