mohayonao / timbre.js

JavaScript library for objective sound programming
http://mohayonao.github.io/timbre.js/
MIT License
963 stars 74 forks source link

Frequency modification in realtime dephases oscillators. #67

Open pedrosanguineti opened 6 years ago

pedrosanguineti commented 6 years ago

Hello, First of all, thanks for all the hard work. I really like timbre.js. The issue:

  1. Create 2 oscillators (wave:sin, freq:440, mul:0.1, phase:0).
  2. Play them.
  3. Modify the phase of an oscillator to Math.PI. Result: The waves cancel out.
  4. Modify the frequency of oscillator 1 to 600.
  5. Modify the frequency of oscillator 2 to 600. Result: The waves DO NOT cancel out.

Am I missing something?, some physics class maybe?, I think they should cancel out, but they don't.

Thanks,

Cheers.