Csound Csound-dev Csound-tekno Search About

[Csnd] ./ instead of full path

Date2014-02-11 01:43
FromRuben Sverre Gjertsen
Subject[Csnd] ./ instead of full path
Hello all,

I'm trying to use ./ to instead full path for files. It is working with includes like:

#include "./0TheCode/0RubenCsoundMacros2012.h"

But input sounds cannot be found:
strset 612,"./Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"      

And output file cannot be defined this way:

-o ./Lydut/Sluttbobler.aiff
--env:SSDIR=./Samples


For input and output sounds, I need to use full path. Is this correct, or is there a trick?

I'm still using
csound5.18.031-OSX10.7-universal kopi.dmg
on Osx 10.6.8. 
I wasn't able to find a Csound 6 version running on my system.

Best,
Ruben 

Date2014-02-11 05:54
FromTarmo Johannes
SubjectRe: [Csnd] ./ instead of full path

Hi,

 

Doesn't csound find it if you just omit the ./ (if the ./ is the folder where your csd is) like

 

Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif

 

tarmo

 

On Tuesday 11 February 2014 02:43:34 Ruben Sverre Gjertsen wrote:

> Hello all,

>

> I'm trying to use ./ to instead full path for files. It is working with

> includes like:

>

> #include "./0TheCode/0RubenCsoundMacros2012.h"

>

> But input sounds cannot be found:

> strset 612,"./Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"

>

> And output file cannot be defined this way:

> <CsOptions>

> -o ./Lydut/Sluttbobler.aiff

> --env:SSDIR=./Samples

> </CsOptions>

>

> For input and output sounds, I need to use full path. Is this correct, or is

> there a trick?

>

> I'm still using

> csound5.18.031-OSX10.7-universal kopi.dmg

> on Osx 10.6.8.

> I wasn't able to find a Csound 6 version running on my system.

>

> Best,

> Ruben

>

> Send bugs reports to the Sourceforge bug trackers

> csound6:

> https://sourceforge.net/p/csound/tickets/

> csound5:

> https://sourceforge.net/p/csound/bugs/

> Discussions of bugs and features can be posted here

> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe

> csound"


Date2014-02-11 09:12
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] ./ instead of full path

Hi,

Yes, the csd is in the same folder as these subfolders but csound cannot find the files (/0RubenCsound placed on root level).

This works (full path):
strset 612,"/0RubenCsound/Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"     

None of these work:
strset 612,"./Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"     
strset 612,"/Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"     
strset 612,"Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"     

Ruben

Den 11. feb. 2014 kl. 06.54 skrev Tarmo Johannes:

Hi,

 

Doesn't csound find it if you just omit the ./ (if the ./ is the folder where your csd is) like

 

Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif

 

tarmo

 

On Tuesday 11 February 2014 02:43:34 Ruben Sverre Gjertsen wrote:
> Hello all,
>
> I'm trying to use ./ to instead full path for files. It is working with
> includes like:
>
> #include "./0TheCode/0RubenCsoundMacros2012.h"
>
> But input sounds cannot be found:
> strset 612,"./Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"
>
> And output file cannot be defined this way:
> <CsOptions>
> -o ./Lydut/Sluttbobler.aiff
> --env:SSDIR=./Samples
> </CsOptions>
>
> For input and output sounds, I need to use full path. Is this correct, or is
> there a trick?
>
> I'm still using
> csound5.18.031-OSX10.7-universal kopi.dmg
> on Osx 10.6.8.
> I wasn't able to find a Csound 6 version running on my system.
>
> Best,
> Ruben
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
> csound5:
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"


Date2014-02-11 09:38
Fromjoachim heintz
SubjectRe: [Csnd] ./ instead of full path
i think the best might be to set/add SSDIR (for sound input) and SFDIR 
(for sound output) in the CsOptions. if this does not work with relative 
paths, as you said, you at least only have to set it once there.

	joachim


Am 11.02.2014 10:12, schrieb Ruben Sverre Gjertsen:
>
> Hi,
>
> Yes, the csd is in the same folder as these subfolders but csound cannot
> find the files (/0RubenCsound placed on root level).
>
> This works (full path):
> strset 612,"/0RubenCsound/Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"
>
> None of these work:
> strset 612,"./Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"
> strset 612,"/Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"
> strset 612,"Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"
>
> Ruben
>
> Den 11. feb. 2014 kl. 06.54 skrev Tarmo Johannes:
>
>> Hi,
>>
>> Doesn't csound find it if you just omit the ./ (if the ./ is the
>> folder where your csd is) like
>>
>> Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif
>>
>> tarmo
>>
>> On Tuesday 11 February 2014 02:43:34 Ruben Sverre Gjertsen wrote:
>> > Hello all,
>> >
>> > I'm trying to use ./ to instead full path for files. It is working with
>> > includes like:
>> >
>> > #include "./0TheCode/0RubenCsoundMacros2012.h"
>> >
>> > But input sounds cannot be found:
>> > strset 612,"./Samples/AriaSamples2010/Guitar2010/xGitsp1_1.aif"
>> >
>> > And output file cannot be defined this way:
>> > 
>> > -o ./Lydut/Sluttbobler.aiff
>> > --env:SSDIR=./Samples
>> > 
>> >
>> > For input and output sounds, I need to use full path. Is this
>> correct, or is
>> > there a trick?
>> >
>> > I'm still using
>> > csound5.18.031-OSX10.7-universal kopi.dmg
>> > on Osx 10.6.8.
>> > I wasn't able to find a Csound 6 version running on my system.
>> >
>> > Best,
>> > Ruben
>> >
>> > Send bugs reports to the Sourceforge bug trackers
>> > csound6:
>> > https://sourceforge.net/p/csound/tickets/
>> > csound5:
>> > https://sourceforge.net/p/csound/bugs/
>> > Discussions of bugs and features can be posted here
>> > To unsubscribe, send email sympa@lists.bath.ac.uk
>>  with body "unsubscribe
>> > csound"
>

Date2014-02-11 12:23
Fromjpff
SubjectRe: [Csnd] ./ instead of full path
It would be interesting to see what the pwd opcode says is the cureent 
directory
==John ff


Date2014-02-11 13:56
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] ./ instead of full path
I tried it now, seems to be my user folder /Users/rubensverregjertsen and not /0RubenCsound where the files are. Still, relative folders work for includes.
Ruben

Den 11. feb. 2014 kl. 13.23 skrev jpff:

> It would be interesting to see what the pwd opcode says is the cureent directory
> ==John ff
> 
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>           https://sourceforge.net/p/csound/tickets/
> csound5:
>           https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
>