Csound Csound-dev Csound-tekno Search About

[Csnd] string bug, I think

Date2008-06-22 08:13
FromJoseph Sanger
Subject[Csnd] string bug, I think
Attachmentsstringtest2.csd  stringtest.csd  
Hello there,

I have recently started using strings and I think I've found one or two 
bugs, many apologies if these have already been noticed or I'm doing 
something wrong!

First I noticed that while score lines like these:

	i "snare" 0	1	3
	i 1	0	1	3	"a_string"
	(with the string "a_string" passed to strget in the orc)

both work fine, when I tried this:

	i "snare" 0	1	3	"a_string"
	(with the string "a_string" passed to strget in the orc)

It generated errors and wouldn't play.

So then I went back to using non-named instruments, which worked fine 
until I passed more than one string to the orc like this:

	i 1 0	1	"string_1" "string_2" "string_3"

It seems to only recognise the last string. When I debugged using 
prints, strget p4, p5, p6 etc. ALL seem to return the last string (in 
the example - "string_3").

Attached are two csds which demonstrate this behaviour.

I assume the same bug (if bug it is) is responsible for both issues...

I have tried examples like this on osx (ppc, tiger, csound says it's 
v5.07) and Debianppc (csound 5.08 I think - the recent debian package), 
using csound from the command line.

I'm right in the middle of working on something for which I would like 
to use strings in this way, should I give up for the time being?

Joe

Date2008-06-22 10:04
Fromroot
Subject[Csnd] Re: string bug, I think
One one string is possible in a score line; annoying but the case.
==John ff