avoid positive values in waveform->x()