Csound Csound-dev Csound-tekno Search About

--strset

Date2006-05-02 12:03
FromRory Walsh
Subject--strset
Can anyone give me an example of how to use '--strset' effectively? I 
would like to pass a sound file name in the command line? Is there any 
way one can overwrite variable by passing command line arguments? Cheers,
Rory.

Date2006-05-02 12:14
FromIstvan Varga
SubjectRe: --strset
AttachmentsNone  

Date2006-05-02 12:24
FromVictor Lazzarini
SubjectRe: --strset
instr 1

Sname  strget  1
a1    diskin2  Sname, ...
...
  endin


csound ... --strset1="mysoundfile.wav"



At 12:03 02/05/2006, you wrote:
>Can anyone give me an example of how to use '--strset' effectively? I 
>would like to pass a sound file name in the command line? Is there any way 
>one can overwrite variable by passing command line arguments? Cheers,
>Rory.
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 

Date2006-05-02 12:46
FromRory Walsh
SubjectRe: --strset
Thanks Victor, that's what I thought but I the following code below 
results in an error saying can't find the file. If I replace the Sname 
variable with the exact same string it works fine?


instr 1
Sname  strget  1
a1 soundin Sname
out a1

-odac --strset1="D:/MyDocuments/csoundfiles/Old/Amy.wav"


Rory.



Victor Lazzarini wrote:
> 
> instr 1
> 
> Sname  strget  1
> a1    diskin2  Sname, ...
> ...
>  endin
> 
> 
> csound ... --strset1="mysoundfile.wav"
> 
> 
> 
> At 12:03 02/05/2006, you wrote:
>> Can anyone give me an example of how to use '--strset' effectively? I 
>> would like to pass a sound file name in the command line? Is there any 
>> way one can overwrite variable by passing command line arguments? Cheers,
>> Rory.
>> -- 
>> Send bugs reports to this list.
>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> 
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth

Date2006-05-02 13:04
FromVictor Lazzarini
SubjectRe: --strset
Perhaps you need to escape the the "/" as in D://MyDocuments//csoundfiles 
etc etc

At 12:46 02/05/2006, you wrote:
>Thanks Victor, that's what I thought but I the following code below 
>results in an error saying can't find the file. If I replace the Sname 
>variable with the exact same string it works fine?
>
>
>instr 1
>Sname  strget  1
>a1 soundin Sname
>out a1
>
>-odac --strset1="D:/MyDocuments/csoundfiles/Old/Amy.wav"
>
>
>Rory.
>
>
>
>Victor Lazzarini wrote:
>>instr 1
>>Sname  strget  1
>>a1    diskin2  Sname, ...
>>...
>>  endin
>>
>>csound ... --strset1="mysoundfile.wav"
>>
>>At 12:03 02/05/2006, you wrote:
>>>Can anyone give me an example of how to use '--strset' effectively? I 
>>>would like to pass a sound file name in the command line? Is there any 
>>>way one can overwrite variable by passing command line arguments? Cheers,
>>>Rory.
>>>--
>>>Send bugs reports to this list.
>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>Victor Lazzarini
>>Music Technology Laboratory
>>Music Department
>>National University of Ireland, Maynooth
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 

Date2006-05-02 13:06
FromVictor Lazzarini
SubjectRe: --strset
No, that was silly. You are using forward slashes, so you don't need to
escape anything. Don't know really.

At 12:46 02/05/2006, you wrote:
>Thanks Victor, that's what I thought but I the following code below 
>results in an error saying can't find the file. If I replace the Sname 
>variable with the exact same string it works fine?
>
>
>instr 1
>Sname  strget  1
>a1 soundin Sname
>out a1
>
>-odac --strset1="D:/MyDocuments/csoundfiles/Old/Amy.wav"
>
>
>Rory.
>
>
>
>Victor Lazzarini wrote:
>>instr 1
>>Sname  strget  1
>>a1    diskin2  Sname, ...
>>...
>>  endin
>>
>>csound ... --strset1="mysoundfile.wav"
>>
>>At 12:03 02/05/2006, you wrote:
>>>Can anyone give me an example of how to use '--strset' effectively? I 
>>>would like to pass a sound file name in the command line? Is there any 
>>>way one can overwrite variable by passing command line arguments? Cheers,
>>>Rory.
>>>--
>>>Send bugs reports to this list.
>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>Victor Lazzarini
>>Music Technology Laboratory
>>Music Department
>>National University of Ireland, Maynooth
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 

Date2006-05-02 13:10
FromVictor Lazzarini
SubjectRe: --strset
it works here.

My SFDIR is d:\audio

so if I say --strset1="pianoc2.wav" or --strset1="d:\audio\pianoc2.wav" or 
--strset1="d:/audio/pianoc2.wav"

it always finds the file

Isn't your file called Army.wav and not Amy.wav?

Victor

At 12:46 02/05/2006, you wrote:
>Thanks Victor, that's what I thought but I the following code below 
>results in an error saying can't find the file. If I replace the Sname 
>variable with the exact same string it works fine?
>
>
>instr 1
>Sname  strget  1
>a1 soundin Sname
>out a1
>
>-odac --strset1="D:/MyDocuments/csoundfiles/Old/Amy.wav"
>
>
>Rory.
>
>
>
>Victor Lazzarini wrote:
>>instr 1
>>Sname  strget  1
>>a1    diskin2  Sname, ...
>>...
>>  endin
>>
>>csound ... --strset1="mysoundfile.wav"
>>
>>At 12:03 02/05/2006, you wrote:
>>>Can anyone give me an example of how to use '--strset' effectively? I 
>>>would like to pass a sound file name in the command line? Is there any 
>>>way one can overwrite variable by passing command line arguments? Cheers,
>>>Rory.
>>>--
>>>Send bugs reports to this list.
>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>Victor Lazzarini
>>Music Technology Laboratory
>>Music Department
>>National University of Ireland, Maynooth
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 

Date2006-05-02 13:12
From"Kevin Krebs"
SubjectRe: --strset
AttachmentsNone  

Date2006-05-02 13:13
From"Kevin Krebs"
SubjectRe: --strset
AttachmentsNone  

Date2006-05-02 13:52
Fromrorywalsh@ear.ie
SubjectRe: --strset
Thanks everyone. I had an extra quote at the end when I copied the string!
Sorry about that. The funny thing is that I noticed it when I copied and
pasted the instrument to my mail, I then fixed it before I sent it without
thinking. D'oh.

Rory.



> Where was the --strset option used ? Perhaps the quotes were copied as
> part of the string - this could easily happen if you used --strset
> anywhere other than directly typed at the command line, and that is why
> the file was not found.
>
> On Tuesday 02 May 2006 14:06, Victor Lazzarini wrote:
>
>> No, that was silly. You are using forward slashes, so you don't need to
>> escape anything. Don't know really.
>>
>> At 12:46 02/05/2006, you wrote:
>> >Thanks Victor, that's what I thought but I the following code below
>> >results in an error saying can't find the file. If I replace the Sname
>> >variable with the exact same string it works fine?
>> >
>> >
>> >instr 1
>> >Sname  strget  1
>> >a1 soundin Sname
>> >out a1
>> >
>> >-odac --strset1="D:/MyDocuments/csoundfiles/Old/Amy.wav"
>> >
>> >
>> >Rory.
>> >
>> >
>> >
>> >Victor Lazzarini wrote:
>> >>instr 1
>> >>Sname  strget  1
>> >>a1    diskin2  Sname, ...
>> >>...
>> >>  endin
>> >>
>> >>csound ... --strset1="mysoundfile.wav"
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>