|
Well, something is awry here. I thought I had this working, but haven't been
able to since....I have been trying to set SFDIR/SSDIR in .csd files or
.csoundrc and I can't get them to work when using long paths like that
below. That is, if I put in something like
--env:SSDIR=../catalog_samples
that works, but not if I use something like
--env:SSDIR="C:/Documents%20and%20Settings/tims/My%20Documents/Personal/Studio%20stuff/Csound%20files%202.0GB/CD%203%20Csound%20Catalog/catalog_samples"
It doesn't give an error; just fails to find the needed files (either trying
to read by soundin, GEN01)
I think this is an error and am going to enter it into sourceforge.
Thanks for the suggestion, Steven. Escaping the spaces didn't seem to work.
But I used CSound Editor to change every space to '%20' and lo and behold!
that did work....so even though it make not look the most elegant the point
is that now I can set SSDIRs and SFDIRs in my csds.
My experiment was to use Spjut's FM_Example program, which requires a file
Hamlet.aif which on my system is in "C:\Documents and Settings\music\My
Documents\Personal\Studio stuff\Csound files 2.0GB\CD 3 Csound
Catalog\catalog_samples"
--env:SFDIR="C:/Documents%20and%20Settings/tims/My%20Documents/Personal/Studio%20stuff/Csound%20files%202.0GB/CD%203%20Csound%20Catalog/catalog_samples"
instr 11 ;FM SCI-FI VOICE EXAMPLE
a1 soundin "Hamlet.aif"
a3 line 0,p3,0.4 ; MODULATION INDEX
a2 oscil 10000,256-a3*a1,1 ; MODULATE
out a2
endin
f1 0 4096 10 1 ;SINE TABLE
;-------------------------
i11 0 22
Steven Yi wrote:
>
> Hi Rasputin,
>
> Have you tried using \ before every space, so something like:
>
> --env:SSDIR="c:/Documents\ and\ Settings/me/My\ Documents..."
>
> Not sure that will work but could do it.
>
> steven
>
>
--
View this message in context: http://www.nabble.com/Setting-an-env-var-with-spaces-in-it-tf4138111.html#a11952328
Sent from the Csound - General mailing list archive at Nabble.com. |