[Csnd] getting string from i statement
Date | 2014-03-16 17:23 |
From | Michael Mossey |
Subject | [Csnd] getting string from i statement |
I want to get a string from an i statement to serve as the channel name in a chnget, chnmix, or chnclear. Is this possible? I tried something like aout chnget p4 but got an error -- "input arg 1 'p7' of type p not allowed when expecting S (for opcode chhnget.a)" Mike |
Date | 2014-03-16 19:06 |
From | Tarmo Johannes |
Subject | Re: [Csnd] getting string from i statement |
Hi,
you should load the value to a Strig variable first with strset:
Schannel strget p4
then
aout chnget Schannel
tar,p
On Sunday 16 March 2014 10:23:31 Michael Mossey wrote: > I want to get a string from an i statement to serve as the channel name > in a chnget, chnmix, or chnclear. Is this possible? I tried something like > > aout chnget p4 > > but got an error -- "input arg 1 'p7' of type p not allowed when > expecting S (for opcode chhnget.a)" > > Mike > > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" |