Csound Csound-dev Csound-tekno Search About

Re: [Csnd] soundout question

Date2005-08-22 18:29
FromLuis Antunes Pena
SubjectRe: [Csnd] soundout question
Istvan: great improvements! Thanks for your answer. I'll install csound 5.

Matt: if you have any documentation about fout in Maccsound it would be
great to have access to it.
The stuff with the automatic name is also very useful!

Luis


Istvan Varga schrieb:

> Luis Antunes Pena wrote:
>
>> I am having an error when trying to pass a string to a i-variable
>> something like:
>> ifilcod = "file1.aiff"
>> is this impossible in csound?
>
>
> No, you cannot assign a string to an i-rate variable, but Csound 5 has a
> variable type 'S' for this purpose:
>
> Sfilcod = "file1.aiff"
>
> Alternatively, you can add something like this to the orchestra header:
>
> strset 1, "file1.aiff"
>
> and then most sound I/O opcodes will open "file1.aiff" if you set
ifilcod
> to 1:
>
> ifilcod = 1
> a1 soundin ifilcod
> a2 soundin 1
> a3 soundin "file1.aiff"
> a4 soundin Sfilcod
>
> in the above example, all soundin opcodes will read "file1.aiff".
>
>> when using fout: the number of channels of the fout must be the same
than
>> the global variable nchnls?
>
>
> No, it does not need to be the same as nchnls.



-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk