Yes, the two cases behave surprisingly differently (to me) in the
time-varying case.  Yours is more robust, so I've adopted it as
follows:

// --- lf_sawpos ---
// simple sawtooth waveform oscillator between 0 and 1
lf_sawpos(freq) = frac ~ +(freq/ml.SR) with { // Bart Brouns version
   frac(x) = x - floor(x);
};

Please let me know if you'd like to see anything written differently.

Thanks,
- Julius

On Tue, May 31, 2016 at 4:30 AM, Bart Brouns <[email protected]> wrote:
> Hi Julius,
>
> I just tested with moving frequencies and the difference becomes even
> bigger:
>
> (par(i, 1000, my_lf_sawpos(abs((i+10) *lfo) )):>_)/1000
>
> (par(i, 1000, lf_sawpos(       (i+10) *lfo  )):>_)/1000
>
> take 30 and 65 % respectively, even with the (usually unneeded) abs.
>
>
> Cheers,
> Bart.
>
>
>



-- 
Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to