Csound Csound-dev Csound-tekno Search About

[Csnd] Instruments with fractional IDs -- user documentation?

Date2010-10-14 19:40
FromLouis Cohen
Subject[Csnd] Instruments with fractional IDs -- user documentation?
The documentation for turnoff2 refers to "instruments with fractional  
numbers."  I searched the manual and couldn't find any definitions of  
these mysterious objects.

However, I took a guess and tried this:

event "i", 10.1, 0, 8888, ....

and

event "i", 10.2, 0, 8888, ....

followed later by

   turnoff2	10.1, 4, 1

and

   turnoff2	10.2, 4, 1

and to my delight, the behaviour was exactly what I had hoped for!!  
The instrument identified by the fractional part was turned off,  
regardless of whether it had been started first or second.

I suppose I owe grateful thanks to  Istvan Varga for implementing this  
feature -- thanks!!

Is there further documentation on this feature? Did I miss it in the  
manual?

thanks again!

-Lou Cohen








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"

Date2010-10-14 19:44
Fromandy fillebrown
Subject[Csnd] Re: Instruments with fractional IDs -- user documentation?
...just watch out for instrument 10.10, 10.20, 10.30, etc.  The
trailing zeroes are removed so you end up with 10.1, 10.2, 10.3
...took me a while to figure that one out but I've read about it in
the manual since then, so no worries.  Just another one of those
Csound "gotchas" that take forever to debug if you're on the wrong
track =)

Cheers,
~ andy.f



On Thu, Oct 14, 2010 at 2:40 PM, Louis Cohen  wrote:
> The documentation for turnoff2 refers to "instruments with fractional
> numbers."  I searched the manual and couldn't find any definitions of these
> mysterious objects.
>
> However, I took a guess and tried this:
>
> event "i", 10.1, 0, 8888, ....
>
> and
>
> event "i", 10.2, 0, 8888, ....
>
> followed later by
>
>  turnoff2      10.1, 4, 1
>
> and
>
>  turnoff2      10.2, 4, 1
>
> and to my delight, the behaviour was exactly what I had hoped for!! The
> instrument identified by the fractional part was turned off, regardless of
> whether it had been started first or second.
>
> I suppose I owe grateful thanks to  Istvan Varga for implementing this
> feature -- thanks!!
>
> Is there further documentation on this feature? Did I miss it in the manual?
>
> thanks again!
>
> -Lou Cohen
>
>
>
>
>
>
>
>
> 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"


Date2010-10-14 19:52
FromSteven Yi
Subject[Csnd] Re: Re: Instruments with fractional IDs -- user documentation?
Wow, I did not know about this... this could explain some weird
behavior I had seen.  It makes sense as these numbers are floating
point, but I never really made the connection.

I think I may revise some score generation code I wrote to use
"instrum.frac" where frac is generated as having padding on left, so
1.001, 1.002, etc.

Thanks very much for mentioning this!
steven

On Thu, Oct 14, 2010 at 2:44 PM, andy fillebrown
 wrote:
> ...just watch out for instrument 10.10, 10.20, 10.30, etc.  The
> trailing zeroes are removed so you end up with 10.1, 10.2, 10.3
> ...took me a while to figure that one out but I've read about it in
> the manual since then, so no worries.  Just another one of those
> Csound "gotchas" that take forever to debug if you're on the wrong
> track =)
>
> Cheers,
> ~ andy.f
>
>
>
> On Thu, Oct 14, 2010 at 2:40 PM, Louis Cohen  wrote:
>> The documentation for turnoff2 refers to "instruments with fractional
>> numbers."  I searched the manual and couldn't find any definitions of these
>> mysterious objects.
>>
>> However, I took a guess and tried this:
>>
>> event "i", 10.1, 0, 8888, ....
>>
>> and
>>
>> event "i", 10.2, 0, 8888, ....
>>
>> followed later by
>>
>>  turnoff2      10.1, 4, 1
>>
>> and
>>
>>  turnoff2      10.2, 4, 1
>>
>> and to my delight, the behaviour was exactly what I had hoped for!! The
>> instrument identified by the fractional part was turned off, regardless of
>> whether it had been started first or second.
>>
>> I suppose I owe grateful thanks to  Istvan Varga for implementing this
>> feature -- thanks!!
>>
>> Is there further documentation on this feature? Did I miss it in the manual?
>>
>> thanks again!
>>
>> -Lou Cohen
>>
>>
>>
>>
>>
>>
>>
>>
>> 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"


Date2010-10-14 20:03
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Instruments with fractional IDs -- user documentation?
And the docs are ...

here =):

http://www.csounds.com/manual/html/i.html

See the description for p1, and the examples below.

Cheers,
Andres

On Thu, Oct 14, 2010 at 7:52 PM, Steven Yi  wrote:
> Wow, I did not know about this... this could explain some weird
> behavior I had seen.  It makes sense as these numbers are floating
> point, but I never really made the connection.
>
> I think I may revise some score generation code I wrote to use
> "instrum.frac" where frac is generated as having padding on left, so
> 1.001, 1.002, etc.
>
> Thanks very much for mentioning this!
> steven
>
> On Thu, Oct 14, 2010 at 2:44 PM, andy fillebrown
>  wrote:
>> ...just watch out for instrument 10.10, 10.20, 10.30, etc.  The
>> trailing zeroes are removed so you end up with 10.1, 10.2, 10.3
>> ...took me a while to figure that one out but I've read about it in
>> the manual since then, so no worries.  Just another one of those
>> Csound "gotchas" that take forever to debug if you're on the wrong
>> track =)
>>
>> Cheers,
>> ~ andy.f
>>
>>
>>
>> On Thu, Oct 14, 2010 at 2:40 PM, Louis Cohen  wrote:
>>> The documentation for turnoff2 refers to "instruments with fractional
>>> numbers."  I searched the manual and couldn't find any definitions of these
>>> mysterious objects.
>>>
>>> However, I took a guess and tried this:
>>>
>>> event "i", 10.1, 0, 8888, ....
>>>
>>> and
>>>
>>> event "i", 10.2, 0, 8888, ....
>>>
>>> followed later by
>>>
>>>  turnoff2      10.1, 4, 1
>>>
>>> and
>>>
>>>  turnoff2      10.2, 4, 1
>>>
>>> and to my delight, the behaviour was exactly what I had hoped for!! The
>>> instrument identified by the fractional part was turned off, regardless of
>>> whether it had been started first or second.
>>>
>>> I suppose I owe grateful thanks to  Istvan Varga for implementing this
>>> feature -- thanks!!
>>>
>>> Is there further documentation on this feature? Did I miss it in the manual?
>>>
>>> thanks again!
>>>
>>> -Lou Cohen
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 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"
>
>



-- 


Andrés


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"


Date2010-10-14 21:21
FromLouis Cohen
Subject[Csnd] Re: Instruments with fractional IDs -- user documentation?
Andres,

Thanks for the manual reference, which I had actually seen earlier.  
The use of fractional instrument numbers reads:

"p1 -- Instrument number, usually a non-negative integer. An optional  
fractional part can provide an additional tag for specifying ties  
between particular notes of consecutive clusters. A negative p1  
(including tag) can be used to turn off a particular “held” note. "

This actually doesn't refer directly to the way I used the fractional  
part in my example, unless I'm missing something.

I simply used the fractional parts to identify specific instances of  
the instrument so that I could turn certain ones off as I pleased,  
using turnoff2. There was no notion, in my thinking, of "tying" one  
note to another, and I'm not sure what "consecutive clusters" might  
refer to. The documentation seems to refer to the notes having some  
relationship to each other - and I was treating them as being  
independent, and also to the use of negative instrument numbers, which  
I did not use.

Is it possible that I have misused the capability, and simply gotten  
lucky that it did what I was looking for (this time)?

-Lou


On Oct 14, 2010, at 3:03 PM, Andres Cabrera wrote:

> And the docs are ...
>
> here =):
>
> http://www.csounds.com/manual/html/i.html
>
> See the description for p1, and the examples below.
>
> Cheers,
> Andres
>
> On Thu, Oct 14, 2010 at 7:52 PM, Steven Yi  wrote:
>> Wow, I did not know about this... this could explain some weird
>> behavior I had seen.  It makes sense as these numbers are floating
>> point, but I never really made the connection.
>>
>> I think I may revise some score generation code I wrote to use
>> "instrum.frac" where frac is generated as having padding on left, so
>> 1.001, 1.002, etc.
>>
>> Thanks very much for mentioning this!
>> steven
>>
>> On Thu, Oct 14, 2010 at 2:44 PM, andy fillebrown
>>  wrote:
>>> ...just watch out for instrument 10.10, 10.20, 10.30, etc.  The
>>> trailing zeroes are removed so you end up with 10.1, 10.2, 10.3
>>> ...took me a while to figure that one out but I've read about it in
>>> the manual since then, so no worries.  Just another one of those
>>> Csound "gotchas" that take forever to debug if you're on the wrong
>>> track =)
>>>
>>> Cheers,
>>> ~ andy.f
>>>
>>>
>>>
>>> On Thu, Oct 14, 2010 at 2:40 PM, Louis Cohen   
>>> wrote:
>>>> The documentation for turnoff2 refers to "instruments with  
>>>> fractional
>>>> numbers."  I searched the manual and couldn't find any  
>>>> definitions of these
>>>> mysterious objects.
>>>>
>>>> However, I took a guess and tried this:
>>>>
>>>> event "i", 10.1, 0, 8888, ....
>>>>
>>>> and
>>>>
>>>> event "i", 10.2, 0, 8888, ....
>>>>
>>>> followed later by
>>>>
>>>>  turnoff2      10.1, 4, 1
>>>>
>>>> and
>>>>
>>>>  turnoff2      10.2, 4, 1
>>>>
>>>> and to my delight, the behaviour was exactly what I had hoped  
>>>> for!! The
>>>> instrument identified by the fractional part was turned off,  
>>>> regardless of
>>>> whether it had been started first or second.
>>>>
>>>> I suppose I owe grateful thanks to  Istvan Varga for implementing  
>>>> this
>>>> feature -- thanks!!
>>>>
>>>> Is there further documentation on this feature? Did I miss it in  
>>>> the manual?
>>>>
>>>> thanks again!
>>>>
>>>> -Lou Cohen
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 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"
>>
>>
>
>
>
> -- 
>
>
> Andrés
>
>
> 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"


Date2010-10-14 21:58
FromDaveSeidel
Subject[Csnd] Re: Instruments with fractional IDs -- user documentation?
Hi Lou,

You can indeed use turnoff2 to turn off fractional instruments.  To see an
example, take a look at my Sruti/Drone Box thing -- the drones are
fractional instances of the same instrument, and the "Off" buttons invoke a
different instrument that turns one of the instances off, based on the
parameters that get passed to it.

http://mysterybear.net/article/51/drone-instrumentsruti-box-new-version

- Dave