Allow frame delays to be overridden

This commit is contained in:
polyfloyd 2017-10-07 23:03:06 +02:00
parent 02274c9a7c
commit 587598e8c5
2 changed files with 48 additions and 39 deletions

View file

@ -31,3 +31,6 @@ class NyancatSignal(Nyancat):
for x in range(width):
amplitude = sum(map(lambda hist: hist[x * WAVE_FACTOR], self.samples_history)) / len(self.samples_history) * 3
yield int((amplitude * .5 - .5) * self.height) + self.height
def sleep(self):
pass # Handled by a blocking read from the audio source