I would love to see the speed of Music Tunnel get changed based on the BPM.
I have seen this done before in Circle Audio Visualize
That wallpaper used a code like this:
let star_speed = 4;
function livelyAudioListener(audioArray) {
// Set overall level
let average = audioArray.reduce((acc, val) => acc + val) / audioArray.length;
star_speed = average * 32;
}
You could also take a look at how LedFX has done this kinda effect: https://github.com/LedFx/LedFx/blob/main/ledfx/effects/scan.py
They seem to also use the average, but they also filter for specific frequencies, which might be a good idea to filter for bass/beats:
https://github.com/LedFx/LedFx/blob/12e28c87f5023a91e3558da889ab54451c4c533a/ledfx/effects/audio.py#L758-L776
If you were to add this, please add it as a toggle.
I would love to see the speed of Music Tunnel get changed based on the BPM.
I have seen this done before in Circle Audio Visualize
That wallpaper used a code like this:
You could also take a look at how LedFX has done this kinda effect: https://github.com/LedFx/LedFx/blob/main/ledfx/effects/scan.py
They seem to also use the average, but they also filter for specific frequencies, which might be a good idea to filter for bass/beats:
https://github.com/LedFx/LedFx/blob/12e28c87f5023a91e3558da889ab54451c4c533a/ledfx/effects/audio.py#L758-L776
If you were to add this, please add it as a toggle.