We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65d591c + 7dbea72 commit 1a3e5e9Copy full SHA for 1a3e5e9
ulab_Crunch_Numbers_Fast/waterfall.py
@@ -8,7 +8,7 @@
8
import audiobusio
9
import displayio
10
import ulab
11
-import ulab.fft
+import ulab.extras
12
import ulab.vector
13
14
display = board.DISPLAY
@@ -76,7 +76,7 @@ def main():
76
while True:
77
mic.record(samples_bit, len(samples_bit))
78
samples = ulab.array(samples_bit[3:])
79
- spectrogram1 = ulab.fft.spectrum(samples)
+ spectrogram1 = ulab.extras.spectrogram(samples)
80
# spectrum() is always nonnegative, but add a tiny value
81
# to change any zeros to nonzero numbers
82
spectrogram1 = ulab.vector.log(spectrogram1 + 1e-7)
0 commit comments