def generate(self):
		sample_n = 0

		# in samples
		cycle_length = self.sample_rate / float(self.freq)
		pulse_length = cycle_length * self.duty_cycle

		while True:
			if pulse_length < (sample_n % cycle_length):
				yield 1.0
			else:
				yield -1.0
			sample_n += 1
dataset/ETHPy150Open jiaaro/pydub/pydub/generators.py/Pulse.generate/swapped operands of `<`