mirror of
https://github.com/romanz/amodem.git
synced 2026-03-24 03:11:15 +08:00
rename iterator
This commit is contained in:
6
recv.py
6
recv.py
@@ -54,8 +54,10 @@ def take(symbols, i, n):
|
||||
|
||||
def receive(x, freqs):
|
||||
x = list(x)
|
||||
symbols = loop.FreqLoop(x, freqs, prefix=0.0)
|
||||
symbols.sampler.freq += -3e-6
|
||||
lp = loop.FreqLoop(x, freqs, prefix=0.0)
|
||||
lp.sampler.freq += -3e-6
|
||||
|
||||
symbols = iter(lp)
|
||||
|
||||
prefix = [1]*300 + [0]*100
|
||||
S = take(symbols, carrier_index, len(prefix))
|
||||
|
||||
Reference in New Issue
Block a user