Csound Csound-dev Csound-tekno Search About

[Csnd] How to learn if file exists without using filevalid?

Date2013-01-06 01:41
From"Art Hunkins"
Subject[Csnd] How to learn if file exists without using filevalid?
Does anyoe know a simple and straightfoward way of learning whether or not a 
given file exists in the csound directory without using the filevalid 
opcode?

I need to use a version of Csound (floats) prior to 5.12 (when filevalid 
appeared). Floats was no longer compiled for Windows from sometime before 
5.12.

I'm aware that events attempting to be played using nonexistent samples will 
be deleted, and performance continue - but I'd like a solution more 
"elegant" and economical than that if possible.

Art Hunkins 


Date2013-01-06 10:15
FromTarmo Johannes
SubjectRe: [Csnd] How to learn if file exists without using filevalid?
hi,

perhaps system opcode http://www.csounds.com/manual/html/system.html
would help you., The command to run depends on the system you are using

greetings,
tarmo

On Saturday 05 January 2013 20:41:35 Art Hunkins wrote:
> Does anyoe know a simple and straightfoward way of learning whether or not a
> given file exists in the csound directory without using the filevalid
> opcode?
> 
> I need to use a version of Csound (floats) prior to 5.12 (when filevalid
> appeared). Floats was no longer compiled for Windows from sometime before
> 5.12.
> 
> I'm aware that events attempting to be played using nonexistent samples will
> be deleted, and performance continue - but I'd like a solution more
> "elegant" and economical than that if possible.
> 
> 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"

Date2013-01-06 11:20
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] How to learn if file exists without using filevalid?
filevalid is a simple opcode with no dependencies so compiling it for
Windows should be easy.  Do you have any  compilation tools?

> hi,
>
> perhaps system opcode http://www.csounds.com/manual/html/system.html
> would help you., The command to run depends on the system you are using
>
> greetings,
> tarmo
>
> On Saturday 05 January 2013 20:41:35 Art Hunkins wrote:
>> Does anyoe know a simple and straightfoward way of learning whether or
>> not a
>> given file exists in the csound directory without using the filevalid
>> opcode?
>>
>> I need to use a version of Csound (floats) prior to 5.12 (when filevalid
>> appeared). Floats was no longer compiled for Windows from sometime
>> before
>> 5.12.
>>
>> I'm aware that events attempting to be played using nonexistent samples
>> will
>> be deleted, and performance continue - but I'd like a solution more
>> "elegant" and economical than that if possible.
>>
>> 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"
>
>
>
>



Date2013-01-06 12:42
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] How to learn if file exists without using filevalid?
You saty "I need to use a version of Csound (floats) prior to 5.12 ".
Is it only the floats that keeps you from a recent version of Csound?  If
so, and you do not need many exotics I might be able to build a 5.19/float
version tonight or tomorrow.  Might have troubles with some of the add-ons
and frontends though
==John ff


> Does anyoe know a simple and straightfoward way of learning whether or not
> a
> given file exists in the csound directory without using the filevalid
> opcode?
>
> I need to use a version of Csound (floats) prior to 5.12 (when filevalid
> appeared). Floats was no longer compiled for Windows from sometime before
> 5.12.
>
> I'm aware that events attempting to be played using nonexistent samples
> will
> be deleted, and performance continue - but I'd like a solution more
> "elegant" and economical than that if possible.
>
> 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"
>
>
>
>