Yes, a filtered downsampled noise sequence would better fit the main
signal-processing paradigm in Faust. For example:
import("oscillator.lib"); // pulls in music & filter.lib
lfnoiseN(N,freq) = noise : latch(oscrs(freq)) : lowpass(N,freq);
process = lfnoiseN(5,SR/500.0); // view in faust2octave
I just added lfnoiseN to oscillator.lib, so you can omit the second
line after doing a git pull. :-)
- Julius
At 08:38 AM 11/29/2013, urban wrote:
>Hi,
>
>I did lots of tests with lfnoises. Did you have a look at the resulting
>waveform after applying smoothing values from, say, .994 ... .999 ? The
>endresult will look *very* much the same, compared to cosine or other
>more expensive functions.
>
>Cheers,
>urban
>
>
> > Hi,
> >
> > Someone helped me once to make this random LFO, similar to
> > supercollider's LFNoise1:
> >
> > line (value, time) = state~(_,_):!,_
> > with {
> > state (t, c) = nt, if (nt <= 0, value, c+(value - c) / nt)
> > with {
> > nt = if( value != value', samples, t-1);
> > samples = time*SR/1000.0;
> > };
> > };
> > reduc(n) = compute ~ (_,_,_) : (!,!,_)
> > with {
> > compute (acc, count, val) =
> > if(count<n, noise, 0), // new acc
> > if(count<n, count+1, 1), // new count
> > if(count<n, val, acc); // new val
> > if (c, then, else) = select2(c, else, then);
> > };
> > lfnoise(freq) = reduc(samps), time_ms : line with {
> > samps = SR/freq;
> > time_ms = 1000/freq;
> > };
> >
> > Now I would like to try to use cosine instead of linear interpolation,
> > and I have this:
> >
> > cosint (y1,y2,mu) = y1*(1-mu2)+y2*mu2 with {
> > mu2 = (1-cos(mu*PI))/2;
> > };
> >
> > I just can't figure out how to insert it so that it gets both the
> > original (old) and target (new) value for the line. Anyone feels up to
> > helping me out?
> >
>
>
>------------------------------------------------------------------------------
>Rapidly troubleshoot problems before they affect your business. Most IT
>organizations don't have a clear picture of how application performance
>affects their revenue. With AppDynamics, you get 100% visibility into your
>Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>_______________________________________________
>Faudiostream-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/faudiostream-users
Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users