| I've seen it,... just haven't used it on anything yet. Random
numbers generating,... I'll have to remember that one. Thanks.
Cheers,
-Partev
====================================================
--- loucohen@jolc.net wrote:
From: Louis Cohen
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] Using user defined operators in score
Date: Tue, 19 Apr 2011 11:41:38 -0400
Thanks! one lives and learns. I was unaware of the entire area of
expressions in score statements until just now.
best,
Lou
On Apr 19, 2011, at 11:08 AM, Adam Puckett wrote:
> Lou,
>
> Yes, ~ is a random number generator that can be used in the score
> inside brackets [ ...]. For example:
>
> i1 0 1 [(~*(12-3)+3)+((~*11)/100)] ; random piano pitch, covers most
> of the keyboard
>
> A simpler example is:
>
> i1 0 1 [~]
>
> where ~ means "generate a random number between 0 and 1"
>
> Hope this helps.
>
> Adam
>
> P.S.: Is my random pch example correct? Please give feedback.
>
> On 4/19/11, Louis Cohen wrote:
>> I read Nil's email with some interest. He uses the tilde in an
>> expression. I was not aware of any Csound programming constructs that
>> use this character this way. My csound 5.12 manual doesn't show tilde
>> as a legitimate math operator, and the csound compiler rejects it (in
>> an instrument.)
>>
>> Yet Nils suggests that it might be a random number generator?
>>
>> Can anyone explain this to me?
>>
>> many thanks!
>>
>> Lou Cohen
>>
>> On Apr 19, 2011, at 12:06 AM, Nil Geisweiller wrote:
>>
>>> I noticed that I cannot do the following
>>>
>>> i1 0 1 10000 [3+int(5*~)]
>>>
>>> where p5 of instr 1 takes a pitch class in argument.
>>
>>
>>
>> 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"
>
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"
_____________________________________________________________
Netscape. Just the Net You Need.
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"
|