(octave spectrum) Reduce code duplication

Exponential smoothing parameters are set in one place only