On Fri, Mar 19, 2021 at 06:38:41PM +0100, Jeanette C. wrote: > Hey hey, > I think I have just found an error with the directory opcode. With > directories up to two letters the files list contains the filenames as they > are inside the directory. When a directory has three or more letters, the > directory name is included in the filenames. > i.e. > Sfiles[] directory "x/", ".wav" > Sfiles[0]: a.wav > Sfiles2[] directory "xyz/", ".wav" > Sfiles2[0] = xyz/a.wav Hi, I was going to report that I can verify this, but Isee there have been several replies in the meantime! (:-)) It took me a while, because I was mightily confused by the fact that, e.g. "Sfiles[] directory p4" doesn't work! OTOH, this does: Sdir = p4 Sfiles[] directory Sdir In fact, "prints p4" doesn't work if p4 is a string. I see in the manual "String Variables" section that "The string p-field can be used by many orchestra opcodes directly," Is there any logic as to which ones? Also I'm not clear on the difference (if any) between "Sname = p4"and "Sname strget p4". They seem to behave the same here. Getting back to the directory opcode, I'm not sure whether by default it's better to include the directory name in the output or not. I'd actually think not, because it should be trivial to prepend if you want. -- Pete -- 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