MusicVisualizer | A music visualizer based on the ATMEGA328P-AU | Data Visualization library
kandi X-RAY | MusicVisualizer Summary
kandi X-RAY | MusicVisualizer Summary
A music visualizer based on the ATMEGA328P-AU
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MusicVisualizer
MusicVisualizer Key Features
MusicVisualizer Examples and Code Snippets
Community Discussions
Trending Discussions on MusicVisualizer
QUESTION
So for the last week, I have been dealing with an issue with my ESP32. For background information, I am working on a Music Meter project. My goal is to have the ESP32 sample two audio signals, and have two set of LED strings react to the two respective audio signals. The issue that I have been having when I'm using both cores at the same time (with the Arduino IDE), one of the cores often freezes when I'm sampling audio. I know the core is freezing and it isn't getting stuck in the loop since I placed a condition to where one of the LED's will change colors if there hasn't been any activity for a extended period of time, and it never changed color.
What's also strange is as a baseline test, I wanted to see if I could just control the LED's but having a simple for loop turn each strip on and off, and that worked just fine. It's only when I start to sample audio on multiple cores and have the LED's react is where it becomes a problem. If I do each core individually, then the core never freezes, and it works the way I want it to.
...ANSWER
Answered 2021-Oct-14 at 01:03After troubleshooting, I think I found the issue, and I want to post it for anyone that may come across this post in the future.
In my program, I needed to add a 1ms delay to both music_visualizer functions in both cores to keep the CPU's from being starved of runtime (I believe this is what is happening). Doing this massively improved to success rate of the firmware. I noticed that if Blynk (the app that is controlling the lamp) is uncommented, and free to run as many times, the chance of one of the CPU's starving increases. To fix this, what I did was use the millis() timer to keep track of how much time passes before Blynk is called. After 1000ms, the Blynk function will be called once, and will wait another 1000ms. Since I proved this can work, WIFI_MODE_NULL is not needed since the WiFi does not need to be disabled.
QUESTION
I have been trying to make a music visualizer app using Vue and P5, and after tinkering with P5 using this article as my guide (https://medium.com/js-dojo/experiment-with-p5-js-on-vue-7ebc05030d33), I managed to get a Canvas rendered with some cool looking graphics.
Now, I am trying to create a link between the waveform/amplitude of a given song and the visuals rendered in the canvas. I have been trying to get the constructors/functions from the P5.sound library to load a song from a file path, and then use the output from a FFT object to control the visuals rendering in the canvas.
Now, my research has indicated that the P5 library must be run in instance mode in order to function (https://github.com/processing/p5.js/wiki/Global-and-instance-mode), and I have done my very best to adhere to this approach in my Vue project. But although the visual rendering works, none of the P5.sound functionalities do.
Here is the code to my model which sets up the P5 objects:
...ANSWER
Answered 2020-May-24 at 17:41Thanks to help I received on the Github issues page (https://github.com/processing/p5.js-sound/issues/453), I figured out how to get the P5.sound library to import.
First, I uninstalled the P5.js in the node_modules, then installed P5.js version 0.9.0:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MusicVisualizer
Connect a 3.5mm jack from your music source to the IN port of the visualizer
Connect another 3.5mm jack from the OUT port of the visualizer to the output spearkers of your choice
Connect a strip of WS2812B RG LEDs no greater than 255 LEDs in length to the JST connector extending from the side of the visualizer
Power the visualizer using a Micro USB cable connected to a 5v power source
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page