Hit the bar!
A standing-wave is formed on the bar, which has an irregular sinusoidal waveform.
The same bar oscillates differently if we fix one of its ends or we let both ends free, and the given sound will be different as well.