Wallpaper Engine

Wallpaper Engine

Audio Visualizer
Only left audio channel
Hello guys. i noticed something odd...
The visualizer only reacts to the left audio channel, but even with its right output. So it displays my music as if the left channel was mirrored :/
Its nothing major, but now that i know it keeps bugging me so damn much ...


Thanks in advance for your help.
< >
Showing 1-2 of 2 comments
Nagnalt 30 Dec, 2024 @ 7:11am 
>5 years later. (:
Baldr 25 Aug @ 1:56pm 
I have fixed it, but I don't feel right in re-uploading the visualizer without the original creators consent, but it's the wallpaperAudioListener in main.js, it's only using half the audio inputs.

var pinkNoise = [1.054860848...... sum = 0; for(var i=0; i<128; i++){ sum += audioArray;
if(noiseOption){
smoothSample = audioArray/pinkNoise[i%64];
}else{
smoothSample = audioArray;
}
}
for(var i=0; i<128; i++){
if(normalizeBars){
if((i == 0) || (i == 64)){
smooth =(smoothSample + smoothSample[i+1])/2;
}else if((i == 63) || (i == 127)){
smooth = (smoothSample[i-1] + smoothSample)/2;
}else{
smooth = (smoothSample[i-1] + 2 * smoothSample + smoothSample[i+1])/4;
}
}else{
smooth = smoothSample;
}
}
for(var i=0; i<64; i++){
audioSampleA = smooth * (normaliseReposiveness) + audioSampleA * (1 - normaliseReposiveness);
audioSampleA[i+64] = smooth[i+64] * (normaliseReposiveness) + audioSampleA[i+64] * (1 - normaliseReposiveness);
audioSample = audioSampleA[i+64];
if(reverseRight){
audioSample[64+i] = audioSampleA;
}else{
audioSample[128-i-1] = audioSampleA;
}
}
Last edited by Baldr; 25 Aug @ 1:56pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50