[Pythonsound-devel] Oscillators broken
Status: Beta
Brought to you by:
mupuxeddu
From: Maurizio U. P. <um...@ti...> - 2001-10-29 18:53:12
|
Hello Paul. OMDE oscillators function were broken for non-constant frequency values. For this reason, temporarily, they work with constant frequencies. The problem is due to the main difference between Cmask and pmask algorithms. In Pmask the interpreter has total control on time flow. The author is always sure that if t2 > t1 he will never evaluate a generator at t1 after he evaluated it at t2. Hence he can pick a reasonable small dt and integrate all functions by this step. OMDE functions can be evaluate randomly so, in theory, each time I want the value of an oscillator at some time t1, I have to calculate its phase at t1, integrating the phase value from the beginning. Do you know any better method? Of course I could add some phase value caching and speed up things in most of the cases (most of the times, using pmask algorithms, the things work just like with Cmask)... Any ideas? Maurizio Umberto Puxeddu. |