Csound Csound-dev Csound-tekno Search About

[Csnd] chnget multiple channels?

Date2011-07-08 01:50
FromCasey Mongoven
Subject[Csnd] chnget multiple channels?
Do we have anything for chnget for multiple channels like this:

kval1, kval2, kval3, kval4 chnget "val_1", "val_2", "val_3", "val_4"

?

Or do I have to do this:

kval1 chnget "val_1"
kval2 chnget "val_2"
kval3 chnget "val_3"
kval4 chnget "val_4"

--
View this message in context: http://csound.1045644.n5.nabble.com/chnget-multiple-channels-tp4563025p4563025.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"

Date2011-07-08 02:39
FromRory Walsh
SubjectRe: [Csnd] chnget multiple channels?
For now at least you can only do it the way you described.

Rory.

On Friday, 8 July 2011, Casey Mongoven  wrote:
> Do we have anything for chnget for multiple channels like this:
>
> kval1, kval2, kval3, kval4 chnget "val_1", "val_2", "val_3", "val_4"
>
> ?
>
> Or do I have to do this:
>
> kval1 chnget "val_1"
> kval2 chnget "val_2"
> kval3 chnget "val_3"
> kval4 chnget "val_4"
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/chnget-multiple-channels-tp4563025p4563025.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"


Date2011-07-08 19:28
FromAdam Puckett
SubjectRe: [Csnd] chnget multiple channels?
I posted a similar Python function for a way to assign multiple MIDI
channels to an instrument. Here this one is:

def chnget(kvals, Sargs):
  ret = ''
  for kval, Sarg in zip(kvals, Sargs):
    ret += '{} chnget {}\n'.format(kval, Sarg)
  return ret

Hope this helps.

Adam

On 7/7/11, Rory Walsh  wrote:
> For now at least you can only do it the way you described.
>
> Rory.
>
> On Friday, 8 July 2011, Casey Mongoven  wrote:
>> Do we have anything for chnget for multiple channels like this:
>>
>> kval1, kval2, kval3, kval4 chnget "val_1", "val_2", "val_3", "val_4"
>>
>> ?
>>
>> Or do I have to do this:
>>
>> kval1 chnget "val_1"
>> kval2 chnget "val_2"
>> kval3 chnget "val_3"
>> kval4 chnget "val_4"
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/chnget-multiple-channels-tp4563025p4563025.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"
>
>


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"


Date2011-07-08 19:29
FromAdam Puckett
SubjectRe: [Csnd] chnget multiple channels?
On 7/8/11, Adam Puckett  wrote:
> I posted a similar Python function for a way to assign multiple MIDI
> channels to an instrument. Here this one is:
>
> def chnget(kvals, Sargs):
>   ret = ''
>   for kval, Sarg in zip(kvals, Sargs):
>     ret += '{} chnget {}\n'.format(kval, Sarg)
>   return ret
>
> Hope this helps.
>
> Adam
>
> On 7/7/11, Rory Walsh  wrote:
>> For now at least you can only do it the way you described.
>>
>> Rory.
>>
>> On Friday, 8 July 2011, Casey Mongoven  wrote:
>>> Do we have anything for chnget for multiple channels like this:
>>>
>>> kval1, kval2, kval3, kval4 chnget "val_1", "val_2", "val_3", "val_4"
>>>
>>> ?
>>>
>>> Or do I have to do this:
>>>
>>> kval1 chnget "val_1"
>>> kval2 chnget "val_2"
>>> kval3 chnget "val_3"
>>> kval4 chnget "val_4"
>>>
>>> --
>>> View this message in context:
>>> http://csound.1045644.n5.nabble.com/chnget-multiple-channels-tp4563025p4563025.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"
>>
>>
>


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"


Date2011-07-31 17:25
FromCasey Mongoven
Subject[Csnd] Re: chnget multiple channels?
What I was actually looking for pretty much already existed in:

csoundTableSet(ud->csound, 101, 0, (MYFLT) pvalue);

With this one can define a bank of channels represented by a function table
and the functionality is basically the same.

--
View this message in context: http://csound.1045644.n5.nabble.com/chnget-multiple-channels-tp4563025p4652264.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"