On Thu, May 31, 2012 at 10:57 AM, Steven Yi <
stevenyi@gmail.com> wrote:
> Hi Michael,
>
> I tried this example with a sco that just had "i1 0 10" and I didn't
> hear much. Do you have a complete CSD example?
>
> Thanks!
> steven
>
> On Thu, May 31, 2012 at 7:36 AM, Michael Gogins
> <
michael.gogins@gmail.com> wrote:
>> You can use the chuap opcode. This implements Chua's oscillator, which
>> demonstrates many different kinds of chaotic attractors.
>>
>> It's also possible to implement various dynamical systems in pretty
>> simple Csound code as UDOs. The following implements the circle map
>> with control channels and reverb to make the sound thicker and more
>> interesting:
>>
>> sr = 44100
>> ksmps = 100
>> nchnls = 2
>> 0dbfs = 1000
>> ; Set up global control channels for use by Csound API.
>> giy0 init 1.0
>> giy0 chnexport "giy0", 3
>> gkw init 1.0
>> gkw chnexport "gkw", 3
>> gkk init 1.0
>> gkk chnexport "gkk", 3
>> gkf init 1.0
>> gka init 100.0
>> gka chnexport "gka", 3
>> gkcf init 1500
>> gkcf chnexport "gkcf", 3
>> gkq init .7
>> gkq chnexport "gkq", 3
>> gkrd init .7
>> gkrd chnexport "gkrd", 3
>> gkrw init .7
>> gkrw chnexport "gkrw", 3
>> ; High-precision sine wavetable.
>> gisine ftgen 1, 0, 65537, 10, 1
>> ; Floating-point mod operation.
>> opcode mod, a, ak
>> adividend, kdivisor xin
>> afraction = frac( adividend / kdivisor )
>> aresult = afraction * kdivisor
>> xout aresult
>> endop
>> ; Circle map opcode (See Georg Essl,
>> ; "Circle Maps as Simple Oscillators for Complex Behavior: II. Experiments,"
>> ; in Proc. of the 9th Int. Conference on Digital Audio Effects (DAFx-06),
>> ; Montreal, Canada, September 18-20, 2006).
>> opcode circlemap, a, ikk
>> setksmps 1
>> iy0, kw, kk xin
>> ay0 init iy0
>> ay1 mod ( ay0 + a(kw) - ( a(kk) /
>> 6.28318530717 ) * sin( 6.28318530717 * ay0 ) ), 1.0
>> ay0 = ay1
>> aout = sin( 6.28318530717 * ay0 )
>> xout aout
>> endop
>> ; Instrument to control circle map
>> instr 1
>> print p1, p2, p3
>> kw = gkw / sr
>> asig circlemap giy0, kw, gkk
>> ; Resonant filter.
>> ares moogladder asig, gkcf, gkq, 1.00
>> ; Compensate for ringing.
>> asig balance ares, asig
>> asig = asig * gka
>> ; Reverberation
>> arleft, arright reverbsc asig, asig, gkrd, 14000
>> arwetleft = gkrw * arleft
>> arwetright = gkrw * arright
>> ardry = (1.0 - gkrw) * asig
>> ; Anti-clicking.
>> aenv linsegr 0.0, 0.1, 1.0, p3, 1.0, 0.1, 0.0
>> outs aenv * (arwetleft + ardry), aenv *
>> (arwetright + ardry)
>> endin
>>
>>
>>
>>
>> On Thu, May 31, 2012 at 7:14 AM, john ffitch <
jpff@codemist.co.uk> wrote:
>>> Not sure exactly what you want to do, but i have used the Henon map,
>>> torus map and the Lorentz map in pieces(*). Even wrote about it in the
>>> Csound book somewhere on the CD I think (ch 36 Composing with Chaos),
>>> and also in the Audio Programming Book (ch 13 Using C to Generate
>>> Scores). These are really events; never had much success with the use
>>> in waveforms.
>>>
>>> ==John ffitch
>>>
>>> (*) The Drums and Different Cannons series, now about 6 finished and
>>> one in progress. Most on the web
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>
https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email
sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>>
http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>
https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email
sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>
https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email
sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email
sympa@lists.bath.ac.uk with body "unsubscribe csound"