Csound Csound-dev Csound-tekno Search About

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

Date2013-01-07 00:30
From"Art Hunkins"
SubjectRe: [Csnd] How to learn if file exists without using filevalid?
John,

If you could produce a floats filevalid opcode for me to include in my 
micro-Csound5.06 "distribution" I'd be much obliged.

Such would certainly take care of all my immediate needs.

Hopefully this would not be a big project. If it is, please don't bother. (I 
can just do without - not a big issue.)

Art Hunkins

----- Original Message ----- 
From: "Rory Walsh" 
To: 
Sent: Sunday, January 06, 2013 5:39 PM
Subject: Re: [Csnd] How to learn if file exists without using filevalid?


> Sorry Art, if I would I would I could but I lost all the source,
> project files, and everything for Lettuce quite some time ago. Have
> you looked into using Cabbage at all? The syntax is pretty similar and
> it wouldn't be difficult for me to create a feature to allow you to
> create standalones in the same way as Lettuce? Failing that perhaps
> John can help by producing a once-off filevalid opcode for you.
> Apologies again, there really is little I can do without the source
> code unfortunately.
>
> Rory.
>
> p.s. it amazes and delights me that you got so much mileage out of 
> Lettuce!
>
>
>
> On 6 January 2013 20:15, Art Hunkins  wrote:
>> @ John and Rory especially:
>>
>> John: yes, the lack of a floats version of Csound is the *main* reason 
>> why I
>> don't use a more recent version of Csound (that is, other than the fact 
>> that
>> I need to "ship" more modules for my realtime performance pieces with 
>> later
>> versions).
>>
>> As mentioned before, I use Lettuce still as my preferred frontend (I'm
>> probably alone in this, I realize). I'd willingly use a (later) version 
>> of
>> Csound if I had a *doubles* version of Lettuce. (Rory, hint . . .)
>>
>> Rory, I assume you haven't been able to locate a doubles version for me? 
>> I
>> think such would work with a later (5.11 on) version of Csound. (Your 
>> floats
>> version of Lettuce certainly did.) If you can locate a doubles, this 
>> would
>> be another solution to my "problem."
>>
>> John, in my Csound work, I don't use other frontends, utilities, nor any
>> additional opcodes than the old stdopcod.dll package. So my needs for a 
>> 5.19
>> floats version of Csound are *very* basic.
>>
>> Bottom line: I either need, 1) a floats version of Csound that includes
>> filevalid, or 2) a doubles version of Lettuce.
>>
>> Or, for that matter, another simple way of determining if a file exists -
>> other than filevalid.
>>
>> I appreciate the suggestion to use the *system* opcode. I'm afraid this 
>> gets
>> me too far afield programming. Also, I need my code to be crossplatform. 
>> I
>> distribute my works for all platforms; additional "standalone" Lettuce
>> versions are specifically for Windows.
>>
>> A continuing thanks for all of your input.
>>
>>
>> Art Hunkins
>>
>> ----- Original Message ----- From: 
>> To: 
>> Sent: Sunday, January 06, 2013 7:42 AM
>>
>> Subject: Re: [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"
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> 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"
>>
>
>
> 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"
>