Wallpaper Engine:壁纸引擎

Wallpaper Engine:壁纸引擎

Audio Visualizer
mhhhhh DRAY -.- 2019 年 4 月 26 日 上午 6:45
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.
< >
正在显示第 1 - 2 条,共 2 条留言
Nagnalt 2024 年 12 月 30 日 上午 7:11 
>5 years later. (:
Baldr 8 月 25 日 下午 1:56 
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;
}
}
最后由 Baldr 编辑于; 8 月 25 日 下午 1:56
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50