GithubHelp home page GithubHelp logo

naztronaut / dancypi-audio-reactive-led Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scottlawsonbc/audio-reactive-led-strip

238.0 238.0 87.0 35.77 MB

Real-time WS2812b LED strip music visualization using Python and the ESP8266 or Raspberry Pi.

Home Page: https://www.easyprogramming.net/raspberrypi/audio_reactive_holiday_leds.php

License: MIT License

C++ 11.79% Python 87.49% PHP 0.72%
audio-reactive-lights audio-visualization dancy-pi led-controller led-strips neopixel python python3 raspberry-pi ws2812b

dancypi-audio-reactive-led's People

Contributors

brisbaneroboticsclub avatar elyobelyob avatar george-hopkins avatar ikifar2012 avatar joeybab3 avatar kevinkellner avatar legorobotdude avatar naztronaut avatar scottlawsonbc avatar tiagonmas avatar toms42 avatar uchauhan2022 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dancypi-audio-reactive-led's Issues

Adjust for RBG strings?

I may be stupid but I didn't see an option to compensate for strings where the colors are reversed. Blue comes out green on mine, and another one i've tried has this. Would be a great feature.

ESP8266 acting strange

Hi,
I first tested with the Raspberry Pi, it looked good.
Then I decided to have a go with the ESP8266, though the lighting doesn't seem to make any perceivable pattern, yet it is reacting to sound as when I pause any music it stops.

Any ideas what would cause this?

Thanks,
Jamie

Browser setup documentation

Hi
First of all, thanks a lot for sharing your code. Made all process a lot easier. I'm trying to setup the web interface or at least call the control.php file but can't find the documentation pertaining to this setup. Do I need to create a symlink in /var/www/html or something like this ?
thanks

CircuitPython uLab port, Melbank.py

Hi, I'm trying to convert the melbank.py file and I'm struggling to understand why this code doesn't work.

for imelband, (center, lower, upper) in enumerate(zip(
        center_frequencies_hz, lower_edges_hz, upper_edges_hz))

    left_slope = (freqs >= lower) == (freqs <= center)
    melmat[imelband, left_slope] =  (freqs[left_slope] - lower)/((center - lower)

I'm getting 'IndexError: indices must be integers, slices, or Boolean lists', which is from the left_slope. Its a list of booleans?
printing the arrays shows this.
freqs array([0.0, 25.0784, 50.1567, ..., 7949.8, 7974.88, 7999.96], dtype=float32)
left_slope array([False, False, False, ..., False, False, False], dtype=bool)

I think its something to do with this line, left_slope - (freqs >= lower) == (freqs <= center)
that is where it sets the array to false. It looks like all them are set to false, so I guess my python-noobness is showing here.

If anyone can help that would be amazing!

From where you get the info about the effects?

Hi,

As far as I can see, currently there are a few effects implemented in the visualisation file: Energy, Spectrum, Scroll, Scroll In, Scroll Quad. My question is, did you looking at some page, paper or whatever to implement those effects or you're just have deep understanding about signal analyse or something like that and you know how to do them.

Thanks :)

Works, but does not work again unless I reboot after running it once

First, when I run one of the visualizations, everything works flawlessly.

However, once I close the program and try to open it again I get this error.

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock  
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock  
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock  
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock  
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 
AES2 0x0 AES3 0x2  CARD 1}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card     
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card     
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock  
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock  
Traceback (most recent call last):
  File "/home/pi/dancyPi-audio-reactive-led/python/visualization.py", line 368, in 
<module>
    microphone.start_stream(microphone_update)
  File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 14, in start_stream
    frames_per_buffer=frames_per_buffer)
  File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 750, in open      
    stream = Stream(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 441, in __init__  
    self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid input device (no default output device)

Is there something I'm missing? I'm running this on a Raspberry Pi 3 b+ with the Raspbian OS. Also, I apologize if this should be obvious, I'm a bit of a noob.

error while running sudo python3 visualization.py scroll

pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo python3 visualization.py scroll
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hos
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Annotation 2020-09-05 013812

Pi 4b

I have followed your video to the letter. I just got a new usb mic and set it to the correct 192000 (this is a test for proof of concept), but my speakers and mic don't work anywhere on my computer. It all draws down to my alsa.conf. here are the errors showing up. The only change I made in Alsa was the cards to a 1.
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
Expression 'alsa_snd_config_update()' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1354
Expression 'BuildDeviceList( alsaHostApi )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 767
Traceback (most recent call last):
File "visualization.py", line 370, in
microphone.start_stream(microphone_update)
File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 8, in start_stream
p = pyaudio.PyAudio()
File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 677, in init
pa.initialize()
IOError: [Errno -9999] Unanticipated host error

I plan on developing this into a large project in a Jamaican rum bar that dances to the Reggae music pumped continuously. eventually I will dumb down the mic, but am using a studio mic for now.

THX !!!

Well, naztronaut, you saved my weekend.
This expand for scott's version is AWESOME.
I'am not a coder and can never do that - Scroll makes me really really happy :-)) THX
May more effects in the future ?
keuschebub
320x200_scroll.zip

FPS not reaching target set in config.py

So, I've noticed that even though I can easily get 75 FPS when set to 90 in config, the LEDs reach only 35-ish when set to 50. My Pi is clearly able to reach given target so I wonder is there some headroom left or is it a bug in the software?

It doesn't matter whether I'm in GUI mode or TTY mode, both don't reach target values. Also, neither mode (spectrum, energy etc) nor no. bands and target frequencies matter, checked on def and custom settings, same thing happens. The visualization is "lacking" roughly 15% of target value.

Incl some screenshots below.

Set FPS to 90:
image

Set FPS to 50:
image

Support for RGBW

Hi,

Got this up and running with a 60 pixel strip, only to find 45/60 LEDs would light. After a lot of searching I found this was because I’m running RGB code on a RGBW strip. Some alterations to the test code for neopixels confirmed all the LEDs to be working.

Is there a plan, or a way I can myself, adapt the code to support RGBW strips and not just RGB ones?

Thanks!

Visual looks like it's hearing a feedback loop - Music not detected

Hi!

I'm trying to get this to work without a microphone, but I'm having some issues with I'm guessing is the audio source.

When I run the visualization.py script, I get a flood of error messages about ALSA and whatnot,
but I'm aweful when it comes to audio on Linux, so I have no idea where to start.
Output - Pastebin

I've edited /etc/asound.conf as instructed.

RPi 3B+ /w USB Audio Card
Confirmed working LED strip with strandtest.

pi@raspberrypi:~/dancyPi-audio-reactive-led/python/install $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I feel like I'm missing something. Let me know if you need any more info, and I'll reply as soon as I can.
Any help would be much appreciated!

Led Visulizer mid offset

Hello my led strip is on the wall and the roof like that ┐ and i want that __________ __________
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀I
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀I

here is the mid and not ________________ ___ here i use the Spectrum LG
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ I
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ I

Autorun

is it possible to make this program to autorun after booting up the pi?

PHP URL commands not activating visualizations.

I was able to successfully implement Scotts original and everything works fine. I stumbled across your fork which solved the issue of controlling the on/off state of the LED strip and visualizations. Thank you kindly for that! Very handy feature. I'm having a problem however with getting the visualization('s) to execute via the URL. Everything works as intended using the command line arguments to change the visualization. I do have Apache2 and PHP installed. I did test a couple simple "hello world" and print date PHP index files to insure that Apache could run PHP scripts, which were successful. The http://ip-address/control.php?on=spectrum returns nothing on the page (expected) but does not start the visualization (unexpected). http://ip-address/control.php?off=1 reutrns sudo: no tty present and no askpass program specifiednada, not sure why... Any suggestions? Thanks!

no_mic Version loopback to hdmi not working

Hi,

i just got the program to work, but only if I use the "Loopback" Audio Output. If I choose hdmi, it won't work.
Is it possible to address the strips & hdmi too (so maybe both "loopback and hdmi)? Currently im building a karaoke machine and it uses the hdmi output to bring sound to an external source (like tv, mixer, etc.) and I'd like to have the leds listening on the sound as well. (I need it on both outputs).

regards,
Bierat

RGBW help

Firstly - this is such a great library and is already looking very cool as it is on my RGBW strip. Thank you so much!

I was hoping you might be able to point me in the right direction to adapt this for an rgbw Neopixels strip. I'm obviously getting some quite weird colour results as I need that extra 'W' value. This may also be why not all my pixels are lighting up (I've changed the numbers in the config and that hasn't done the job).

Any pointers you can give would be massively appreciated!!

version of nodemcu to use

I'm new to electronics,but have all the components to create this setup except the nodemcu version 3(I have nodemcu version 2).
will there be a problem if i use version 2?

sudo usage

in the docs there's a suggestion to use sudo to overcome permission issues:

www-data ALL = NOPASSWD: /usr/bin/python

this is basically allowing the web server to run absolutely everything as root.

it might be better to set the target writeable using group permissions.
I know it's just a home project but once you teach someone to do this wrong, they got the wrong approach in their toolbox.

install.py scipy issue on rpi3b+

Hello. I'm getting this error on a Raspberry Pi 3b+. I did a manual build of scipy and still had issues. This was the original error from install.py

/_lib/_uarray
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
building 'mach' library
error: library mach has Fortran sources but no Fortran compiler found
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy, which is required to install pyproject.toml-based projects
================== Completed Installing Numpy, Scipy, PyAudio, PyQtgraph ==================

visualization.py

Hi Champ!

Thanks for this awesome tool! Every time I try to run a visualisation I get the following error message:
Traceback (most recent call last): File "visualization.py", line 12, in visType = sys.argv[1] IndexError: list index out of range

Strandtests work without any issues.
Could you help me out? New to programming, so pls be patient :)

Cheers,
Szu

Can't Run even after disabling pcm

Tried disabling like the video tutorials did, followed almost every step from the video and the thread.
Tested the lights by running the examples files and it works fine. Connection is for sure right.

Please help, I'm not a super experience coder and it will be great if you could explain to me with written directions!
I am currently working on a light experience relating to how lights would affect an individual for school. This is a basic opening for us to see how it will work for our testing only.

The following is code prompt after trying to run visualization. Thank you very much

pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo python visualization.py scroll
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2719
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843
Traceback (most recent call last):
File "visualization.py", line 370, in
microphone.start_stream(microphone_update)
File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 14, in start_stream
frames_per_buffer=frames_per_buffer)
File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
IOError: [Errno -9997] Invalid sample rate

Visualization.py rennt auf Fehler

Hallo,

ich habe die Anleitung von Dir abgearbeitet und über Dein Setup Script installiert.
An meinem Raspberry 3b Plus sind insgesamt 4 LED Strips mit 503 LED angeschlossen. Externe Stromversorgung für jeden Strip.
Zusätzlich eine USB Soundkarte und ein Headset mit 3,5 Klinke für Lautsprecher und Mikrofon. Die Soundkarte funktioniert einwandfrei; getestet mit aplay und arecord. Das Mikrofon liegt direkt auf dem Echo DOT.

Wenn ich jetzt python3 visualization.py scroll ausführe kommen folgende Fehlermeldungen:

pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo python3 visualization.py scroll
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 1}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Traceback (most recent call last):
File "visualization.py", line 368, in
microphone.start_stream(microphone_update)
File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 22, in start_stream
callback(y)
File "visualization.py", line 229, in microphone_update
led.update()
File "/home/pi/dancyPi-audio-reactive-led/python/led.py", line 144, in update
_update_pi()
File "/home/pi/dancyPi-audio-reactive-led/python/led.py", line 105, in _update_pi
if np.array_equal(p[:, i], _prev_pixels[:, i]):
IndexError: index 502 is out of bounds for axis 1 with size 502

was mach ich falsch ??

Danke für Deine Hilfe...
Gruß,
Max

LED Strip is not lighting...dancyPi-audio-reactive-led

##@joni B13 If there are no errors then the problem may be hardware.

How much current is your power source applying? I usually recommend running at least 2.5A of current if you are powering the lights straight from the Pi.

WS2812x lights are also directional. Make sure you have them connected the right way. There should be an arrow indicating which way the current should flow. If they are connected backwards then the lights won't turn on.

Thirdly, make sure your GPIO pins are connected correctly. If you want me to take a look, you can post a comment on Easy Programming or on the GitHub repo where you can post pictures, I'm happy to take a look. Links to both are in the video description.##


I have a 12V/33A power supply. I think this should be enough. xD

The GPIO pins should be connected correctly. I tried a test with the project of "Core Electronics" (https://core-electronics.com.au/tutor...) and it worked.

The green cable is "Din", I soldered it together with the green-yellow cable.
The white one is "GND" which I soldered together with the blue-white one.
The red and the white wire go to "V+" and "Common GND" of the power supply.

Where is the quantity of pixels defined?

GPIO pins_LI
Raspi GPIO
wires Powersupply
wires LED strip
LED Strip is working

LED update performance on Raspberry Pi

Hey!

I've been playing around with this on a raspberry pi for the last few days, and I've spent some time doing some basic profiling, trying to figure out where the performance bottleneck might be. I noticed that the update cycle was falling behind, pretty consistently taking about 0.03 seconds to complete, regardless of what the FPS is set to.

From what I can tell, the main bottleneck is in led.py when setting the strip._led_data values. If you remove the prev_pixels comparison, the led.update function drops from about 0.02 seconds to 0.0075 seconds (so a little over 2.5x faster).

It looks like most of the led code is from the scottlawsonbc repo, and hasn't been touched since its initial commit like 4 years ago. I don't know if there's just been updates to the rpi_ws281x library in that time or what, but I'm honestly not sure what that check is trying to achieve. I'm pretty sure the underlying library would still send update signals to all of the leds in the strip regardless of whether their rgb value has changed.

Microphone not detected when quitting visualization.py

Hi
When running the visualization.py with an effect, and then hitting ctrl+z to quit, I cannot run the visualization again. Gives me this error
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924 ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Traceback (most recent call last): File "visualization.py", line 368, in <module> microphone.start_stream(microphone_update) File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 14, in start_stream frames_per_buffer=frames_per_buffer) File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 750, in open stream = Stream(self, *args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 441, in __init__ self._stream = pa.open(**arguments) OSError: [Errno -9996] Invalid input device (no default output device)

If I take out the USB soundcard and plug it back in, I'm then able to run the command and start the lights again.

Not that I have any idea what it could be, maybe there could be a function re-adding the sound device when running the visualization?
I'm running on the Raspberry Pi 4 with power from a USB in my computer.
Side note: If I don't put a resistor between the Pi and the LED strip, the first two LED's will blink white non-stop.

Virtual audio playback

Hi,
Is it possible to define a mp3 player as audio source ?
For example, airplay or mp3 player directly on raspberry
Tks in advance.

only a few LEDs working

Thanks for your work. I am attempting to use this program for car audio LEDs so plays for bass only (set frequency to 0-50hz). So I have the pi hooked up to a test strip of 10 LEDs (changed config.py to 10 leds). I have music hooked up and scroll works with the bass of music playing all 10 LEDs. Now i want to do different visualizations but when i switch to spectrum or one of your custom visualizations like scroll_in, scroll_quad. Only two LEDs light up doing the color changes etc. Not sure what to do Ive been editing the colors and stuff, thats been going well. Thanks again hope someone or you can help me out. (P.S. why i dont use mic LEDs is because when my subwoofer bass hits the microphone doesn't pick up bass and blacks out also like to customize) :) edit: also energy doesn't output anything but im not worried bout it too much

issue with running the program on a Pi ZeroW

Hello! I want to preface this by saying that I have absolutely no programing experience, so this guide has been very helpful. I've run into an issue though.

First off, I am running the setup somewhat unconventionally. I am using a pi zero W. I've found that when I run the microphone off of the USB port of the pi, I don't actually have enough power to boot. My solution is this: run the microphone off of a powered USB bank, and, since I don't have the proper conversion cable, run that powered bank into my unpowered bank which has a micro connector to my pi.

I've found that I am able to plug my keyboard and mouse into the powered bank and use it on the pi just fine, so on some level it's working at least somewhat. After a lot of troubleshooting, I managed to get it to the point where it runs the code just as it shows in the video.

Here is the problem. The LEDs do not light, and the FPS only updated 3 times before everything just stopped.

What should I do here? Is this just a limitation of the zero? Is there anything I could try to do to fix it? Any help would be appreciated. This was just a "getting my toes wet" sort of project, so it's no big deal if it will be impossible to run on my Zero. Thanks in advance for any assistance!

Attached is a photo of what my command prompt was displaying when it stopped working.
github example

Persistent bug with code

Hi,
Total noob with code, so huge thanks for doing this and saving me days if not weeks of trouble learning python to run my LEDs.
So I keep running into this error;

Traceback (most recent call last):
  File "visualization.py", line 12, in <module>
    visualization_type = sys.argv[1]
IndexError: list index out of range

I have no idea what I am doing wrong with this. I set up just like you specify, and for a mic I am running a USB audio jack spliter, followed by a 3.5mm audio jack combiner (IE Mic/Audio -> 3.5mm combined jack) to the audio output of my computer set to dual playback. (attached is a diagram).

Any idea what could be causing the error?

image

Exiting arecord in shell script?

So I'm utilizing dancyPi in sync with Raspotify / Librespot. Librespot has hooks so I'm using the follow script:

#!/bin/bash
if [ "$PLAYER_EVENT" = "start" ]; then
  sudo python3 home/pi/dancyPi-audio-reactive-led/python/visualization.py scroll
elif [ "$PLAYER_EVENT" = "stop" ]; then
  sudo python3 home/pi/dancyPi-audio-reactive-led/python/off.py
else
  :
fi

However, I did not realize that the "off.py" script did not kill the mic recording. What would be the best way of freeing up the mic after Spotify stops?

WS2801

Is it possible to use WS2801 type LED strips? How do I connect this? Does the program have to be changed?

THANK YOU

For updating Scott Lawson's work. I was toiling with his code for a day or so before I found yours which works directly out of the box on my pi 4. Brilliant, tysm. I'm putting this code on my retropi, I'll try to post up a video when I get it mounted.

Music driven lights fades out to louder noises (voices, cough, doors closing...)

I managed to get it up and running in no time! Thank you for the repo! =) I'm using it as a reactive lights for the TV and Home Theater (where I reproduce heaps of videos and music).

I'm currently using a Mini USB Microphone as the input. I'm having a problems with the background noises. i.e.: I'm reproducing a song/video on the TV and the lights work perfectly, BUT as soon as there is another sound (people talking for example) the mic isolate their voice and removes the "background noise" (the music in this scenario) and the light starts to fade out (or to bright to something other than the music). This happens as well for loud noises (or louder than the music playing such as door closing, laughs, somebody coughing). I already move the microphone right next to the sound bar / tv but the problem persists.
Please let me know if you need more details.

I would like to know if you have tried to have a Sound Sensor as the input (instead of a mic which filters out background noise). Or do you have any idea how can I solve this issue?

[Errno -9996]

Hey guys! So I'm a noob at this and I need your help,

so when I do the command:
sudo python3 visualization.py scroll
This pops up, can someone help me fix this?

ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_headpho.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_headpho.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib conf.c:5200:(snd_config_expand) Unknown parameters {AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_dmix.c:1009:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_direct.c:1846:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
ALSA lib pcm_direct.c:1846:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
ALSA lib pcm_dmix.c:1009:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_direct.c:1846:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_direct.c:1846:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
connect(2) call to /dev/shm/jack-0/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
Traceback (most recent call last):
File "/home/pi/dancyPi-audio-reactive-led/python/visualization.py", line 420, in
microphone.start_stream(microphone_update)
File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 10, in start_stream
stream = p.open(format=pyaudio.paInt16,
File "/usr/lib/python3/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid input device (no default output device)

LEDs laggy FPS normal

Hey mate, thanks for being so responsive to everyone so far. What I've found so far has helped me get lights on and seems somewhat responsive to music. I have similar issues to others where the lights are laggy, however in my case the FPS is consistently at 50/80

I have tried the 3 modes (Spectrum, scroll and energy and they all behave the same way.

Setup is Raspberry Pi charger > Rpi > Jumper cables (power, data, ground) > Neopixel Strip 60 (now 55 LEDs) due to learning to solder).

By laggy what I mean is that the lights may stay on one colour for 2-3secs before changing / become blank. The LEDs tend to display a rainbow of colours rather than having a gradual change from eg. red to orange to yellow
I have tried switching from GPIO 18 to GPIO 12 with slight improvement (more consistent lighting up), but still nowhere close to the video.

Strangely when I increase the amount of processes on the RPi, the LED strip behaves closer to a 50FPS flashing of lights but is limited to maybe the first 10 LEDs, LEDs after this only light up intermittently and are the laggy variety. Best performance occurred when the OS was frozen due to running multiple browsers incl youtube

I've tried leaving unplugged for a while which didnt change anything, tried rewiring parts of my connection without much change. I thought if I unplugged HDMI and decreased brightness it might reduce power usage and therefore improve performance but this did not help

I've also tested on another RPi with the same result and a different SD card with same result. I thought this would be more a hardware issue / bad soldering job, until the extra processes helped. The only way I could conceptualise it is if there is too much data input to the strip at normal conditions, then when RPi processor is overloaded, it slows things down so the strip behaves closer to normal? But even this I would expect to be choppy improvements.

I tried running this remotely with SSH but ended up with a 'Invalid Sample rate error' so thought I'd leave the remote access till lights are working.

Jack music source

It would be great to have the signal source be the jack output. If the RPi was playing the music, it would remove the need for an external microphone and give a cleaner audio signal.

Problem changing number of leds.

I have roughly 300 LEDs in a strip. The program works great but only for 144 LEDs. When I tried to change the number of LEDs in both config.py and off.py, I encountered these issues.

.. /led.py, line 105, in _update_pi
if np.array_equal(p[:, I], _prev_pixels[:, I]):
IndexError: index 330 is out of bounds for axis 1 with size 330

I've been trying for a while now to fix it but no luck. If anyone could help with a solution that would be great. Love the project otherwise.

How to change colors?

I would like to change the colors that are output in the spectrum effect. The effect is currently displayed in blue, but I would like to have everything in red. How can I make that happen?

Actually, I was hoping that I could figure it out myself, but unfortunately it seems my lack of python knowledge prevents me from doing so. Thanks for your help

edit: when i start led.py, the order of the colors is not as it should be. Instead of red, green, blue the pixels are blue, red, green.

Pi crashes

Hi! I was able to make the Pi work, but from time to time the Pi crashes and shuts down (and the energy program always crashes from the start), is it because of audio or power overload? Would soldering a resistance to one of the cables or something like that solves the issue?

Loop thru visualizations

Is there a way to run a single script to automatically change the visualization type every few minutes? Ive tried a few things but as soon as the visualization is running, I can only quit it with a keyboard interrupt so I'm not sure how to stop it and start another one via a single script

Lots of stuff I don't understand!

I'm extremely new to raspberry pi. Can anyone help?

pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo python3 visualization.py scroll
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Traceback (most recent call last):
File "visualization.py", line 368, in
microphone.start_stream(microphone_update)
File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 14, in start_stream
frames_per_buffer=frames_per_buffer)
File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid input device (no default output device)

and prior to that when I installed Python 3, warning near the end.

Collecting numpy
Downloading https://www.piwheels.org/simple/numpy/numpy-1.21.2-cp37-cp37m-linux_armv7l.whl (12.3 MB)
|████████████████████████████████| 12.3 MB 7.8 kB/s
Collecting scipy==1.4.1
Downloading https://www.piwheels.org/simple/scipy/scipy-1.4.1-cp37-cp37m-linux_armv7l.whl (50.7 MB)
|████████████████████████████████| 50.7 MB 185 bytes/s
Collecting pyaudio
Downloading https://www.piwheels.org/simple/pyaudio/PyAudio-0.2.11-cp37-cp37m-linux_armv7l.whl (53 kB)
|████████████████████████████████| 53 kB 17 kB/s
Collecting pyqtgraph
Downloading https://www.piwheels.org/simple/pyqtgraph/pyqtgraph-0.12.2-py3-none-any.whl (959 kB)
|████████████████████████████████| 959 kB 346 kB/s
Installing collected packages: numpy, scipy, pyqtgraph, pyaudio
Successfully installed numpy-1.21.2 pyaudio-0.2.11 pyqtgraph-0.12.2 scipy-1.4.1
**WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
================== Compl
**eted Installing Numpy, Scipy, PyAudio, PyQtgraph ==================
================== Start Installing rpi_ws281x ==================
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting rpi_ws281x
Downloading https://www.piwheels.org/simple/rpi-ws281x/rpi_ws281x-4.3.0-cp37-cp37m-linux_armv7l.whl (116 kB)
|████████████████████████████████| 116 kB 355 kB/s
Installing collected packages: rpi-ws281x
Successfully installed rpi-ws281x-4.3.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
================== Completed Installing rpi_ws281x ==================
================== Copying asound.conf ==================
================== Completed copying to /etc/asound.conf ==================
================== Creating backup of alsa.conf ==================
================== Completed backup of alsa.conf -> alsa.conf.bak ==================
================== Replacing text in alsa.conf ==================
================== Completed replacing text in alsa.conf =============

Please help out a noob lol

Error running program

pi@raspberrypi:/home/dancyPi-audio-reactive-led/python $ sudo python3 visualization.py scroll

Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
File "visualization.py", line 7, in
import microphone
File "/home/dancyPi-audio-reactive-led/python/microphone.py", line 3, in
import pyaudio
File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 116, in
import _portaudio as pa

ImportError: libportaudio.so.2: cannot open shared object file: No such file or directory

Any ideas on how to solve this I am very new to this and not sure what this means stack overflow recommended uninstalling and reinstalling py audio but I am unsure of how to do that through the headless pi

python3 compatible

I'm having problems install pyaudio. I had similar problems installing SciPy.... is this Python3 compatible?

No audio detected

Hi, I'm trying to run the no_mic version and I'm running into some issues. Here is the log:

pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo python3 visualization.py scroll
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib conf.c:5014:(snd_config_expand) Unknown parameters {AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1043:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1043:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1043:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1086:(snd_pcm_dmix_open) unable to create IPC shm instance
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
No audio input. Volume below threshold. Volume: 9.998333e-17
FPS 40 / 50
No audio input. Volume below threshold. Volume: 0.0

It then just repeats the last line about volume being 0.0 forever, with 33-36 FPS logs in between.
Is something not installed?
Thanks for any help :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.