Csound Sound file location

View: New views
5 Messages — Rating Filter:   Alert me  

Csound Sound file location

by Mikelib :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
  If i am playing a sample in csound does the sample always have to be in the same place as the .csd file or can I set up a default sound folder where everything plays from?

Thanks,Mike.

Re: Csound Sound file location

by edexter5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The best thing to do is to test the opcode in question to see what it does.  

Hi,
  If i am playing a sample in csound does the sample always have to be in the same place as the .csd file or can I set up a default sound folder where everything plays from?

Thanks,Mike.
</quote

Re: Re: Csound Sound file location

by jpff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you set the environment variables SSDIR or SFDIR you can control
locations.  Should be in the manual (look at "Csound Environment
Variables")
==John ff


> The best thing to do is to test the opcode in question to see what it
> does.
>
> Hi,
>   If i am playing a sample in csound does the sample always have to be in
> the same place as the .csd file or can I set up a default sound folder
> where
> everything plays from?
>
> Thanks,Mike.
> </quote
> --
> View this message in context:
> http://old.nabble.com/Csound-Sound-file-location-tp26157100p26160057.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@... with body "unsubscribe
> csound"
>
>
>




Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe csound"

Re: Csound Sound file location

by Mikelib :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the reply.

I didn't realize it was opcode dependent?

For example in my score file I have a line that reads as such-   f2 0 524288 -1  "audio1.AIF".
This file only plays when it is located in the same location as the .csd file.  My question is- Can I create a folder on my hard drive which csound will use as the default audio file location?  I want to be able to keep all my audio files in one tidy folder rather than spreading them across my hard drive?

I have checked the manual and can't seem to find an answer.


Thanks in advance,Mike.



The best thing to do is to test the opcode in question to see what it does.  
Mikelib wrote:
Hi,
  If i am playing a sample in csound does the sample always have to be in the same place as the .csd file or can I set up a default sound folder where everything plays from?

Thanks,Mike.

Re: Csound Sound file location

by John Link :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you might be looking for "Environment Variables":
 
http://www.csounds.com/manual/html/CommandEnvironment.html

and also

http://www.csounds.com/manual/html/OrchDirFiles.html

You can set these in Configure-->Environment in QuteCsound (I had trouble with this in an earlier version but I think it's fixed now)

Mikelib wrote:
Hi,
  If i am playing a sample in csound does the sample always have to be in the same place as the .csd file or can I set up a default sound folder where everything plays from?

Thanks,Mike.