Thanks! 5 sections of lowpass works well.

On Mon, Dec 2, 2013 at 9:18 PM, Julius Smith <[email protected]> wrote:
> Hi Jonatan,
>
> Yes, the Butterworth lowpass filter overshoots a bit for orders 2 or more.
> To avoid that you can stick to order 1:
>
>   N = 1;
>   freq = SR/100;
>   process = noise : latch(oscrs(freq)) <: lowpass(N,freq),_; // ->
> faust2octave
>
> and use a series of order 1 sections for more smoothing:
>
> Nsections = 3;
> process = noise : latch(oscrs(freq)) <: seq(i,Nsections,lowpass(1,freq)),_;
>
> or use any other lowpass filter type that is known for low ringing (such as
> the Bessel filter).
>
> - Julius
>
>
> At 05:25 AM 12/2/2013, Jonatan Liljedahl wrote:
>>
>> Thanks!
>> Yes, I tried running the original random line lfo through
>> smooth(tau2pole(0.5/freq)) and that seems to work very well. But just
>> downsampling and filtering noise is of course a lot simpler! However I
>> see that it overshoots above 1.0 quite often, is there away to avoid
>> this, except scaling it down a bit and/or clip it?
>>
>> On Fri, Nov 29, 2013 at 11:18 PM, Julius Smith <[email protected]>
>> wrote:
>> > 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
>>
>>
>>
>> --
>> /Jonatan
>> http://kymatica.com
>>
>>
>> ------------------------------------------------------------------------------
>> 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/



-- 
/Jonatan
http://kymatica.com

------------------------------------------------------------------------------
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

Reply via email to