Fixed indenting bug
This commit is contained in:
parent
c45322615f
commit
133c65d9b5
@ -214,15 +214,15 @@ def microphone_update(stream):
|
|||||||
output = visualization_effect(mel)
|
output = visualization_effect(mel)
|
||||||
led.pixels = output
|
led.pixels = output
|
||||||
led.update()
|
led.update()
|
||||||
if config.USE_GUI:
|
if config.USE_GUI:
|
||||||
# Plot filterbank output
|
# Plot filterbank output
|
||||||
x = np.linspace(config.MIN_FREQUENCY, config.MAX_FREQUENCY, len(mel))
|
x = np.linspace(config.MIN_FREQUENCY, config.MAX_FREQUENCY, len(mel))
|
||||||
mel_curve.setData(x=x, y=fft_plot_filter.update(mel))
|
mel_curve.setData(x=x, y=fft_plot_filter.update(mel))
|
||||||
# Plot the color channels
|
# Plot the color channels
|
||||||
r_curve.setData(y=led.pixels[0])
|
r_curve.setData(y=led.pixels[0])
|
||||||
g_curve.setData(y=led.pixels[1])
|
g_curve.setData(y=led.pixels[1])
|
||||||
b_curve.setData(y=led.pixels[2])
|
b_curve.setData(y=led.pixels[2])
|
||||||
app.processEvents()
|
app.processEvents()
|
||||||
if config.DISPLAY_FPS:
|
if config.DISPLAY_FPS:
|
||||||
print('FPS {:.0f} / {:.0f}'.format(frames_per_second(), config.FPS))
|
print('FPS {:.0f} / {:.0f}'.format(frames_per_second(), config.FPS))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user