[Csnd] "file exists" opcode?
Date | 2011-07-18 16:21 |
From | "Art Hunkins" |
Subject | [Csnd] "file exists" opcode? |
Is there an opcode that returns a value dependent on whether an audio file exists or not? The run must continue whether the file exists or not (no abort if the file doesn't exist). I want this for my sampleplay program, in which a given event is not spawned/triggered if its corresponding sample does not exist; but the rest of the performance continues. 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" |
Date | 2011-07-18 16:29 |
From | peiman khosravi |
Subject | Re: [Csnd] "file exists" opcode? |
I suspect you can use the system command to do something like this. P On 18 July 2011 16:21, Art Hunkins <abhunkin@uncg.edu> wrote: Is there an opcode that returns a value dependent on whether an audio file exists or not? |
Date | 2011-07-18 16:30 |
From | peiman khosravi |
Subject | Re: [Csnd] "file exists" opcode? |
Create a script that returns (e.g. echo) 1 when the file is found and 0 when not. The call the script in Csound and parse the result. p On 18 July 2011 16:29, peiman khosravi <peimankhosravi@gmail.com> wrote: I suspect you can use the system command to do something like this. |
Date | 2011-07-18 16:58 |
From | joachim heintz |
Subject | Re: [Csnd] "file exists" opcode? |
yes matt has introduced it in csound 5.13: http://www.csounds.com/manual/html/filevalid.html joachim Am 18.07.2011 17:21, schrieb Art Hunkins: > Is there an opcode that returns a value dependent on whether an audio > file exists or not? > > The run must continue whether the file exists or not (no abort if the > file doesn't exist). > > I want this for my sampleplay program, in which a given event is not > spawned/triggered if its corresponding sample does not exist; but the > rest of the performance continues. > > 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" |