mirror of
https://github.com/polyfloyd/ledcat-nyancat.git
synced 2025-07-05 00:30:15 +02:00
Allow frame delays to be overridden
This commit is contained in:
parent
02274c9a7c
commit
587598e8c5
2 changed files with 48 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue