Csound Csound-dev Csound-tekno Search About

[Csnd] Opcode returning "file not found"?

Date2011-01-04 18:52
From"Art Hunkins"
Subject[Csnd] Opcode returning "file not found"?
Is there a Csound opcode that returns a specific value when a designated 
file is not found in the current directory?

(The files searched for would be soundin.1 through soundin.4.)

Art Hunkins 



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"

Date2011-01-04 20:03
Fromjoachim heintz
Subject[Csnd] Re: Opcode returning "file not found"?
there will be a new opcode in the next release which returns 0 if the
file has not been found, or 1 if it has:

ival1 filevalid "bu"
ival2 filevalid "test.wav"
print ival1, ival2

prints ival1 = 0.000  ival2 = 1.000
as "bu" does not exist, but "test.wav" does.

this works in cvs. best -

	joachim

Am 04.01.2011 19:52, schrieb Art Hunkins:
> Is there a Csound opcode that returns a specific value when a designated
> file is not found in the current directory?
> 
> (The files searched for would be soundin.1 through soundin.4.)
> 
> Art Hunkins
> 
> 
> 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"