Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: How to make random impulse generator (like Dust.ar is SC3)?

Date2007-12-10 13:39
FromMichael Bechard
Subject[Csnd] Re: Re: How to make random impulse generator (like Dust.ar is SC3)?
How about using the mpulse opcode with the frequency modulated by, say, jitter or some other randomization opcode?

----- Original Message ----
From: Tim Mortimer 
To: csound@lists.bath.ac.uk
Sent: Sunday, December 9, 2007 6:53:58 PM
Subject: [Csnd] Re: How to make random impulse generator (like Dust.ar is SC3)?



In very general terms, one appraoch would be to use 2 instruments.

instrument one would consist of a kcounter, that would decrement a
 kcount on
each krate pass

something like

kcounter init (some random value in your random range (in kcounts))

kcounter = kcounter-1

if kcounter <= 0

   play inst2 (with a scoreline or event opcode from memory...)
   reset kcounter to new random value

then inst 2 is actually the thing that makes the noise on receipt of
 the "i"
score statement generated by inst 1....

steven yi has some examples using kcounter, but i don't remember where
exactly.

anyway, if you are desparate to get going (as often newbies are....)
 that
will at least give you something to think about to get started. 


_Andrzej wrote:
> 
> Sorry for noob question, but how to make such a generator in CSound
 (with
> controllable average freq)?
> 
> Any thoughts very appreciated,
> tia
> ak
> 
> 

-- 
View this message in context:
 http://www.nabble.com/How-to-make-random-impulse-generator-%28like-Dust.ar-is-SC3%29--tp14243327p14245632.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body
 "unsubscribe csound"





      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Date2007-12-10 13:45
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Re: How to make random impulse generator (like Dust.ar is SC3)?
AttachmentsNone  None