debug wierd constellation results due to bad indexing

This commit is contained in:
Roman Zeyde
2014-07-12 08:27:26 +03:00
parent 7f1941c6b4
commit 39199d8e04
4 changed files with 10 additions and 13 deletions

View File

@@ -22,14 +22,8 @@ class Filter(object):
class FreqLoop(object):
def __init__(self, x, freqs, prefix=0.0):
def __init__(self, src, freqs):
interp = sampling.Interpolator()
if prefix is None:
prefix = []
else:
prefix = [prefix] * (interp.width - 1)
src = itertools.chain(prefix, x)
self.sampler = sampling.Sampler(src, interp)
self.gens = []