[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Re: inner calls inside a class for kr ugen



thank you very much Daniel, that is really helpful

On Sun, Dec 7, 2014 at 2:31 PM, Daniel Mayer [via New SuperCollider Mailing Lists Forums (Use These!!!)] <[hidden email]> wrote:

Am 07.12.2014 um 04:41 schrieb Edmar O. Soria <[hidden email]>:

> thank you very much Daniel, i understand the isssues. Let me explain a little more about what I am trying to do.
>
> I use LFO´s pretty much for live parameter modulation. I have found that when I nest LFO I get results that fit better for my purposes for example:
>
> LFBrownNoise0.kr(
> LFNoise1.kr(freq).range(low,high)).range(LFBrownNoise1.kr(freq2).range(low1,low2),LFBrownNoise1.kr(freq2).range(high1,high2))
>
> what I am trying to do is a class that automatically generates this kind of nested LFO


Ok, basic desicion would be if you're using mainly a defined nesting structure (1)
or you'd want to make an iterated nesting with variable depth (2).
(2) would be harder as ranges would have to be taken into account.
With both you can build in choices for LFO type.

Here an example for (1) folllowing your posted nesting structure,
I haven't installed LFBrownNoise,
so taking LFDNoise ugens here

// only types 0,1,3 with LFDNoise ugens

LFDNest {
        *kr { |outType = 3, freqType = 3, loType = 3, hiType = 3,
                freqFreq = 1, freqLo = 1, freqHi = 10,
                loFreq = 1, loLo = 100, loHi = 200,
                hiFreq = 1, hiLo = 300, hiHi = 500|
                var type = { |i| switch(i, 0, LFDNoise0, 1, LFDNoise1, 3, LFDNoise3) };
                ^type.(outType).kr(
                        type.(freqType).kr(freqFreq).range(freqLo, freqHi)
                ).range(
                        type.(loType).kr(loFreq).range(loLo, loHi),
                        type.(hiType).kr(hiFreq).range(hiLo, hiHi),
                )
        }
}


s.boot;

x = { SinOsc.ar(LFDNest.kr(0, hiLo: 500, hiHi: 2000).lag(0.03), 0, 0.3) }.play;

x.release;



Greetings

Daniel

-----------------------------
www.daniel-mayer.at
-----------------------------





_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/



If you reply to this email, your message will be added to the discussion below:
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/inner-calls-inside-a-class-for-kr-ugen-tp7615202p7615234.html
To unsubscribe from inner calls inside a class for kr ugen, click here.
NAML



View this message in context: Re: inner calls inside a class for kr ugen
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.