The energy of each wave train is only proportional to the frequency.
Let us carefully locate the position of the spectrum-line of the wave train.