| Menno,
Thanks for your new example.
I have tried filevalid in Csound 5.13.2 (Windows install, which is doubles),
and there seems to be a bug. The input variable, ifilcod, is supposed to
take a filename string *or* a number corresponding to the end of a soundin.x
file (e.g., 1 for soundin.1). It doesn't do the latter.
Modifying your file (below), there is no error message as written, but when
the commented line is substituted, csound complains that the input is not an
S variable.
FWIW, filelen (which also uses ifilcod) works fine (as it should) with a
single digit following filelen.
Could you and others please take a look at this?
Art Hunkins
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
ivld filevalid "soundin.1"
;ivld filevalid 1
if ivld>0 then
puts "Audiofile does exist!", 1
else
puts "Audiofile does not exist!", 1
endif
endin
i 1 0 1
e
----- Original Message -----
From: "menno"
To:
Sent: Monday, July 18, 2011 12:23 PM
Subject: [Csnd] Re: "file exists" opcode?
> this is already fixed in git.
> And a new example of filevalid can be found here:
> http://members.home.nl/mag.knevel/csound_betamanual/filevalid.html
>
> greetings
> Menno
>
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/file-exists-opcode-tp4599987p4600195.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"
|