mirror of
https://github.com/dnet/pySSTV.git
synced 2026-01-10 18:49:58 +01:00
replaced int(floor()) with int()
This commit is contained in:
parent
649a4b2140
commit
92fda0cd1f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue