Csound Csound-dev Csound-tekno Search About

[Csnd] use of outch with control of output filenames

Date2018-03-13 17:52
From"C. R. Craig"
Subject[Csnd] use of outch with control of output filenames
I would like to be able to specify and change the output filename that is the target for outch. I don’t see any way to do it in the documentation, nor in “Csound—A Sound and Music Computing System.” Can’t use fout since I need to be able to dictate the channel numbers as well.

Thanks,
Robert
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-13 18:25
FromVictor Lazzarini
SubjectRe: [Csnd] use of outch with control of output filenames
That is the main output buffer, set by the -o option.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 13 Mar 2018, at 17:52, C. R. Craig  wrote:
> 
> I would like to be able to specify and change the output filename that is the target for outch. I don’t see any way to do it in the documentation, nor in “Csound—A Sound and Music Computing System.” Can’t use fout since I need to be able to dictate the channel numbers as well.
> 
> Thanks,
> Robert
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-13 23:50
From"C. R. Craig"
SubjectRe: [Csnd] use of outch with control of output filenames
Yes, this is the one I’m looking to change during the execution of a .csd . . .

Thanks,
Robert

> On Mar 13, 2018, at 11:25 AM, Victor Lazzarini  wrote:
> 
> That is the main output buffer, set by the -o option.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 13 Mar 2018, at 17:52, C. R. Craig  wrote:
>> 
>> I would like to be able to specify and change the output filename that is the target for outch. I don’t see any way to do it in the documentation, nor in “Csound—A Sound and Music Computing System.” Can’t use fout since I need to be able to dictate the channel numbers as well.
>> 
>> Thanks,
>> Robert
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-16 14:53
From00000008a49663bc-dmarc-request@LISTSERV.HEANET.IE
SubjectRe: [Csnd] use of outch with control of output filenames

Maybe you can use fout opcode passing filename as variable

Stefano

Il 14 marzo 2018 alle 0.50 "C. R. Craig" <robert@CRAIG-WOODS.NET> ha scritto:

Yes, this is the one I’m looking to change during the execution of a .csd . . .

Thanks,
Robert

On Mar 13, 2018, at 11:25 AM, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

That is the main output buffer, set by the -o option.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 13 Mar 2018, at 17:52, C. R. Craig <robert@CRAIG-WOODS.NET> wrote:

I would like to be able to specify and change the output filename that is the target for outch. I don’t see any way to do it in the documentation, nor in “Csound—A Sound and Music Computing System.” Can’t use fout since I need to be able to dictate the channel numbers as well.

Thanks,
Robert
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Date2018-03-16 17:08
Fromjpff
SubjectRe: [Csnd] use of outch with control of output filenames
Not sure I undesand what you are wanting to achieve but maybe these 
thoughts may be relevant

If you have a maximu of N channels then creae an array of length N and 
populate with the filen handles for the fies you want.  Thse can be 
changed later if necessary

Run whatever you need to do and where you do fout instead write the audio 
to an a-rate array at the index of the channel.

At a high numbered instrument in a loop do fout to the handles (from the 
i-array) from the a-rate array, and finally clear theaudio array

If you want to change output file for a gven channel then use fiopen to 
change the i-array.


As I said not sure if this is what ou need, but naybe might be a clue

==John ff

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here