class SpextrumX(Waveform): def calc(self): l = len(wf1.read()) frange(10, 100, 90/l) x = x + 0.1 return ret add_device(SinusoidWaveform("wf1"), True)