Skip to content

Commit 1a3e5e9

Browse files
authored
Merge pull request adafruit#1060 from jepler/ulab
waterfall: adjust to changed name of function
2 parents 65d591c + 7dbea72 commit 1a3e5e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ulab_Crunch_Numbers_Fast/waterfall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import audiobusio
99
import displayio
1010
import ulab
11-
import ulab.fft
11+
import ulab.extras
1212
import ulab.vector
1313

1414
display = board.DISPLAY
@@ -76,7 +76,7 @@ def main():
7676
while True:
7777
mic.record(samples_bit, len(samples_bit))
7878
samples = ulab.array(samples_bit[3:])
79-
spectrogram1 = ulab.fft.spectrum(samples)
79+
spectrogram1 = ulab.extras.spectrogram(samples)
8080
# spectrum() is always nonnegative, but add a tiny value
8181
# to change any zeros to nonzero numbers
8282
spectrogram1 = ulab.vector.log(spectrogram1 + 1e-7)

0 commit comments

Comments
 (0)