[Csnd] opcodes and functions returning value in csound6
| Date | 2013-08-19 08:08 |
| From | Tarmo Johannes |
| Subject | [Csnd] opcodes and functions returning value in csound6 |
Hi, Please explain:. In Csound6 I can do out oscili(0.5,giFreq,giSine) * linen(1,p3/8,p3,0.1) and it works but until (strlen(gSString[index])==0 ) do ... od returns: error: error: boolean expression '==' with arg types Sc not found, line 53 error: expression for until statement not a boolean expression, line 57 thanks! tarmo |
| Date | 2013-08-19 14:13 |
| From | Steven Yi |
| Subject | Re: [Csnd] opcodes and functions returning value in csound6 |
Hi Tarmo, This looks like some kind of parsing problem. It seems like it's reading it like: strlen (gSString[index]) == 0 so may be an associativity issue. Could you file a bug and do you have a CSD example we can use for testing? Thanks! steven On Mon, Aug 19, 2013 at 3:08 AM, Tarmo Johannes |
| Date | 2013-08-19 15:19 |
| From | Tarmo Johannes |
| Subject | Re: [Csnd] opcodes and functions returning value in csound6 |
|
Thanks,
I filed a ticket and attach also a test csd here.
Also, I am not sure, is fillarray supposed to work also with strings?
gSArr[] fillarray "one", "two",""
returns error: Unable to find opcode entry for 'fillarray' with matching argument types: Found: S[] fillarray SSS
thanks! tarmo
On Monday 19 August 2013 09:13:49 Steven Yi wrote: > Hi Tarmo, > > This looks like some kind of parsing problem. It seems like it's > reading it like: > > strlen (gSString[index]) == 0 > > so may be an associativity issue. Could you file a bug and do you > have a CSD example we can use for testing? > > Thanks! > steven > > On Mon, Aug 19, 2013 at 3:08 AM, Tarmo Johannes > > <tarmo.johannes@otsakool.edu.ee> wrote: > > Hi, > > > > Please explain:. In Csound6 I can do > > > > out oscili(0.5,giFreq,giSine) * linen(1,p3/8,p3,0.1) > > > > and it works > > > > but > > > > until (strlen(gSString[index])==0 ) do > > ... > > od > > > > returns: > > > > error: error: boolean expression '==' with arg types Sc not found, line > > 53 > > error: expression for until statement not a boolean expression, line 57 > > > > thanks! > > tarmo > > > > > > 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" > 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" |
| Date | 2013-08-19 15:25 |
| From | Steven Yi |
| Subject | Re: [Csnd] opcodes and functions returning value in csound6 |
Hi Tarmo, I think there is no fillarray implementation for strings. Please file another ticket and one of us will get to adding an implementation. Thanks! steven On Mon, Aug 19, 2013 at 10:19 AM, Tarmo Johannes |