pizzicato icon indicating copy to clipboard operation
pizzicato copied to clipboard

when called a new song volume is getting way harder and destorted

Open ItzKevin01 opened this issue 3 years ago • 2 comments

who can help

ItzKevin01 avatar Dec 27 '20 12:12 ItzKevin01

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");
}

ItzKevin01 avatar Dec 27 '20 13:12 ItzKevin01

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.

grommas avatar Feb 08 '21 16:02 grommas