| thanks, this seems to be a better and well defined way for my problem
> On 26 Apr 2016, at 10:12, Tarmo Johannes wrote:
>
> opcode active ?http://www.csounds.com/manual/html/active.html
> greetings,
> tarmo
>
> On Tuesday 26 April 2016 08:55:20 you wrote:
>> Normally it is not an issue to know how many sound sources are active
>> simultaneously. They are mixed to a given number of output channels.
>>
>> I have the opportunity to do some tests in a WFS lab. In contrast to what we
>> are normally used to, the WFS requires one output channel per sound source
>> (active at a given moment). Since in my project the number of sound sources
>> is chosen randomly, i.e. not known beforehand and moreover several
>> instances of the same instrument may be active simultaneously at different
>> positions in space, I need to assign output channel numbers dynamically
>> when initiating an instance of an instrument. This means I need to know how
>> many channels are use at a given time. Is there an official opcode to get
>> this information?
>>
>> Currently I'm using this trick: I include an ftgentmp statement in each
>> instrument outputting sound. From the table number I get during the i-pass
>> I can deduce the number of active sound sources (by subtracting the number
>> of static f-tables generated in the general initialisation pass) as long
>> as not more than one ftgentmp is needed per instrument. This is a
>> workaround. Is there a better way?
>>
>> cheers,
>>
>> Karin
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>> https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |