replaced int(floor()) with int()

This commit is contained in:
András Veres-Szentkirályi 2013-07-02 13:51:06 +02:00
parent 649a4b2140
commit 92fda0cd1f

View file

@ -78,8 +78,8 @@ class SSTV(object):
factor = 2 * pi / self.samples_per_sec
for freq, msec in self.gen_freq_bits():
samples += spms * msec
tx = floor(samples)
for sample in xrange(int(tx)):
tx = int(samples)
for sample in xrange(tx):
yield sin(sample * freq * factor + offset)
offset = sample * freq * factor + offset
samples -= tx