Csound Csound-dev Csound-tekno Search About

[Csnd] total number of instr instances?

Date2010-08-10 09:37
FromRory Walsh
Subject[Csnd] total number of instr instances?
Maybe I'm missing something obvious but is there an opcode that will
retrieve the total number of instances of an instrument since the
start of a performance? I'm aware of the 'active' opcode but I would
like the total number of instances not the current number..

Rory.


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-08-10 09:55
FromVictor Lazzarini
Subject[Csnd] Re: total number of instr instances?
It should be easy enough to use a global variable to count them up.

Victor
On 10 Aug 2010, at 09:37, Rory Walsh wrote:

> Maybe I'm missing something obvious but is there an opcode that will
> retrieve the total number of instances of an instrument since the
> start of a performance? I'm aware of the 'active' opcode but I would
> like the total number of instances not the current number..
>
> Rory.
>
>
> 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-08-10 09:56
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: total number of instr instances?
Initialise a global i variable to 0
Add one in each instrument

or have I misunderstood?


> Maybe I'm missing something obvious but is there an opcode that will
> retrieve the total number of instances of an instrument since the
> start of a performance? I'm aware of the 'active' opcode but I would
> like the total number of instances not the current number..
>
> Rory.
>
>
> 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-08-10 09:58
FromRory Walsh
Subject[Csnd] Re: Re: total number of instr instances?
I was thinking about that, just thought there might be a more eloquent
way. Cheers,

Rory.


On 10 August 2010 09:55, Victor Lazzarini  wrote:
> It should be easy enough to use a global variable to count them up.
>
> Victor
> On 10 Aug 2010, at 09:37, Rory Walsh wrote:
>
>> Maybe I'm missing something obvious but is there an opcode that will
>> retrieve the total number of instances of an instrument since the
>> start of a performance? I'm aware of the 'active' opcode but I would
>> like the total number of instances not the current number..
>>
>> Rory.
>>
>>
>> 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-08-10 10:10
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: total number of instr instances?
I guess that should be eloquent enough ;)
On 10 Aug 2010, at 09:58, Rory Walsh wrote:

> I was thinking about that, just thought there might be a more eloquent
> way. Cheers,
>
> Rory.
>
>
> On 10 August 2010 09:55, Victor Lazzarini   
> wrote:
>> It should be easy enough to use a global variable to count them up.
>>
>> Victor
>> On 10 Aug 2010, at 09:37, Rory Walsh wrote:
>>
>>> Maybe I'm missing something obvious but is there an opcode that will
>>> retrieve the total number of instances of an instrument since the
>>> start of a performance? I'm aware of the 'active' opcode but I would
>>> like the total number of instances not the current number..
>>>
>>> Rory.
>>>
>>>
>>> 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"
>



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-08-10 21:03
FromRory Walsh
Subject[Csnd] Re: Re: total number of instr instances?
No you haven't misunderstood John, I was just wondering if there was
an opcode to do it. As Victor pointed out using a global variable is
simple enough to warrant a dedicated opcode useless!

On 10 August 2010 09:56,   wrote:
> Initialise a global i variable to 0
> Add one in each instrument
>
> or have I misunderstood?
>
>
>> Maybe I'm missing something obvious but is there an opcode that will
>> retrieve the total number of instances of an instrument since the
>> start of a performance? I'm aware of the 'active' opcode but I would
>> like the total number of instances not the current number..
>>
>> Rory.
>>
>>
>> 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-08-12 12:52
FromEnrico Francioni
Subject[Csnd] Re: total number of instr instances?

…perhaps with active opcode?

e
-- 
View this message in context: http://csound.1045644.n5.nabble.com/total-number-of-instr-instances-tp2401903p2473143.html
Sent from the Csound - General mailing list archive at Nabble.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"


Date2010-08-12 13:13
FromRory Walsh
Subject[Csnd] Re: Re: total number of instr instances?
Hi Enrico, 'active' won't retrieve this information. It will only
retrieve the current number of instances. Using global variables works
fine.

Rory.


On 12 August 2010 12:52, Enrico Francioni  wrote:
>
>
> …perhaps with active opcode?
>
> e
> --
> View this message in context: http://csound.1045644.n5.nabble.com/total-number-of-instr-instances-tp2401903p2473143.html
> Sent from the Csound - General mailing list archive at Nabble.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"


Date2010-08-12 14:36
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Re: total number of instr instances?
> Hi Enrico, 'active' won't retrieve this information. It will only
> retrieve the current number of instances. Using global variables works
> fine.
>
> Rory.
>

but wait until 5.13!  A brand new, totally untested opcode called
totalinst returnd th etotal number of instances that have been started in
this endering.

Code in CVS now, description in manual, exampole not written yet

==John ff



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-08-12 14:41
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: total number of instr instances?
Great, I can't wait to get rid of those out of instr block global
variables! Really though you should have given that it's so
straightforward. I only asked as there was already an active opcode. I
wonder would it make more sense to simply add a flag to the active
opcode to specify total instance number since start of performance
with a default value for total number of current active instances?


On 12 August 2010 14:36,   wrote:
>> Hi Enrico, 'active' won't retrieve this information. It will only
>> retrieve the current number of instances. Using global variables works
>> fine.
>>
>> Rory.
>>
>
> but wait until 5.13!  A brand new, totally untested opcode called
> totalinst returnd th etotal number of instances that have been started in
> this endering.
>
> Code in CVS now, description in manual, exampole not written yet
>
> ==John ff
>
>
>
> 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-08-12 14:44
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Re: Re: Re: total number of instr instances?
Could be a variant on active -- whatever the community wants.  Internally
it is similar but neededextra data in the TEXT structure.  As an option to
acyive it would save a name...   Anyone care?



> Great, I can't wait to get rid of those out of instr block global
> variables! Really though you should have given that it's so
> straightforward. I only asked as there was already an active opcode. I
> wonder would it make more sense to simply add a flag to the active
> opcode to specify total instance number since start of performance
> with a default value for total number of current active instances?
>
>
> On 12 August 2010 14:36,   wrote:
>>> Hi Enrico, 'active' won't retrieve this information. It will only
>>> retrieve the current number of instances. Using global variables works
>>> fine.
>>>
>>> Rory.
>>>
>>
>> but wait until 5.13!  A brand new, totally untested opcode called
>> totalinst returnd th etotal number of instances that have been started
>> in
>> this endering.
>>
>> Code in CVS now, description in manual, exampole not written yet
>>
>> ==John ff
>>
>>
>>
>> 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-08-12 14:47
FromJoel Ross
Subject[Csnd] Re: Re: Re: Re: Re: Re: total number of instr instances?
It would perhaps be easier to find if it was in the same place.

Regards,
 Joel

On 12 August 2010 15:44,   wrote:
> Could be a variant on active -- whatever the community wants.  Internally
> it is similar but neededextra data in the TEXT structure.  As an option to
> acyive it would save a name...   Anyone care?
>
>
>
>> Great, I can't wait to get rid of those out of instr block global
>> variables! Really though you should have given that it's so
>> straightforward. I only asked as there was already an active opcode. I
>> wonder would it make more sense to simply add a flag to the active
>> opcode to specify total instance number since start of performance
>> with a default value for total number of current active instances?
>>
>>
>> On 12 August 2010 14:36,   wrote:
>>>> Hi Enrico, 'active' won't retrieve this information. It will only
>>>> retrieve the current number of instances. Using global variables works
>>>> fine.
>>>>
>>>> Rory.
>>>>
>>>
>>> but wait until 5.13!  A brand new, totally untested opcode called
>>> totalinst returnd th etotal number of instances that have been started
>>> in
>>> this endering.
>>>
>>> Code in CVS now, description in manual, exampole not written yet
>>>
>>> ==John ff
>>>
>>>
>>>
>>> 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"
>
>


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-08-12 14:50
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: Re: total number of instr instances?
I think the option on active is probably a better solution.
Victor
On 12 Aug 2010, at 14:44, jpff@cs.bath.ac.uk wrote:

> Could be a variant on active -- whatever the community wants.   
> Internally
> it is similar but neededextra data in the TEXT structure.  As an  
> option to
> acyive it would save a name...   Anyone care?
>
>
>
>> Great, I can't wait to get rid of those out of instr block global
>> variables! Really though you should have given that it's so
>> straightforward. I only asked as there was already an active  
>> opcode. I
>> wonder would it make more sense to simply add a flag to the active
>> opcode to specify total instance number since start of performance
>> with a default value for total number of current active instances?
>>
>>
>> On 12 August 2010 14:36,   wrote:
>>>> Hi Enrico, 'active' won't retrieve this information. It will only
>>>> retrieve the current number of instances. Using global variables  
>>>> works
>>>> fine.
>>>>
>>>> Rory.
>>>>
>>>
>>> but wait until 5.13!  A brand new, totally untested opcode called
>>> totalinst returnd th etotal number of instances that have been  
>>> started
>>> in
>>> this endering.
>>>
>>> Code in CVS now, description in manual, exampole not written yet
>>>
>>> ==John ff
>>>
>>>
>>>
>>> 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"
>



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"