pizzicato
pizzicato copied to clipboard
when called a new song volume is getting way harder and destorted
who can help
audioPlayer = new Pizzicato.Sound("./songs/"+e.data.songname); console.log("started timeout"); myVar = setTimeout(alertFunc, 3000); function alertFunc() { audioPlayer.volume = 0.0; lowPassFilter.peak = 0; audioPlayer.addEffect(reverb); audioPlayer.addEffect(lowPassFilter);
audioPlayer.play();
console.log("started music");
}
It would be easier to help with a provided Codepen, so I’m not sure about your setup. But try to group your sounds and add the effects to the group instead of applying them to the sounds directly. Instead of turning down the volume to zero, you could probably pause them while inactive. I detected the distortion on sounds e.g. when adding multiple groups to one effect. Besides of that the peak of your LPF can’t be 0 (min: 0.0001), but that shouldn’t cause your problem.