pizzicato icon indicating copy to clipboard operation
pizzicato copied to clipboard

Multiple sine waves sound distorted

Open flappix opened this issue 4 years ago • 0 comments

Hi,
thanks for providing this library, it's pretty nice.

I'm just facing the problem that multiple sine wave generators are sounding very distorted when played together while playing them once at time sound good.

let s = [1,2,3].map ( x => { return new Pizzicato.Sound () } );
s[0].frequency = 440;
s[1].frequency = 554.37;
s[2].frequency = 659.26;

s.forEach ( (x) => { x.play() } );

This is an A major chord and should sound very harmonic but the sound I get is very disgusting.

Any help would be appreciated, thanks.

flappix avatar Oct 08 '21 23:10 flappix