Csound Csound-dev Csound-tekno Search About

loading tables from a text file?

Date2016-02-27 16:31
FromRory Walsh
Subjectloading tables from a text file?
I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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

Date2016-02-27 16:40
FromVictor Lazzarini
SubjectRe: loading tables from a text file?
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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

Date2016-02-27 16:48
FromRory Walsh
SubjectRe: loading tables from a text file?
Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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

Date2016-02-27 16:51
FromVictor Lazzarini
SubjectRe: loading tables from a text file?
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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

Date2016-02-27 16:55
FromRory Walsh
SubjectRe: loading tables from a text file?
I may need help on this one. fin does not seem like a good solution. First of all, I won't know how many numbers are in my text file. Secondly, each line may well contain a different number of elements. My file could contain up to 100s of numbers. Any other ideas? 

On 27 February 2016 at 16:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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
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

Date2016-02-27 16:57
FromRory Walsh
SubjectRe: loading tables from a text file?
If each group of numbers is the same I could load the entire file to a function table using GEN23, and then break that table up into smaller tables. That's why knowing the amount of numbers on each would help, but it turns out that I may not know this.  

On 27 February 2016 at 16:55, Rory Walsh <rorywalsh@ear.ie> wrote:
I may need help on this one. fin does not seem like a good solution. First of all, I won't know how many numbers are in my text file. Secondly, each line may well contain a different number of elements. My file could contain up to 100s of numbers. Any other ideas? 

On 27 February 2016 at 16:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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
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

Date2016-02-27 17:03
FromVictor Lazzarini
SubjectRe: loading tables from a text file?
Why not use GEN 23, then see how long it is, then read the data from this table into the destination?

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

On 27 Feb 2016, at 16:57, Rory Walsh <rorywalsh@EAR.IE> wrote:

If each group of numbers is the same I could load the entire file to a function table using GEN23, and then break that table up into smaller tables. That's why knowing the amount of numbers on each would help, but it turns out that I may not know this.  

On 27 February 2016 at 16:55, Rory Walsh <rorywalsh@ear.ie> wrote:
I may need help on this one. fin does not seem like a good solution. First of all, I won't know how many numbers are in my text file. Secondly, each line may well contain a different number of elements. My file could contain up to 100s of numbers. Any other ideas? 

On 27 February 2016 at 16:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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
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

Date2016-02-27 17:09
FromRory Walsh
SubjectRe: loading tables from a text file?

That would work but it now appears that each group of numbers could have a different length. They are patterns of notes of varying length. I could use a -1 to indicate the end of a pattern but it seems a ugly.

On 27 Feb 2016 17:03, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Why not use GEN 23, then see how long it is, then read the data from this table into the destination?

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

On 27 Feb 2016, at 16:57, Rory Walsh <rorywalsh@EAR.IE> wrote:

If each group of numbers is the same I could load the entire file to a function table using GEN23, and then break that table up into smaller tables. That's why knowing the amount of numbers on each would help, but it turns out that I may not know this.  

On 27 February 2016 at 16:55, Rory Walsh <rorywalsh@ear.ie> wrote:
I may need help on this one. fin does not seem like a good solution. First of all, I won't know how many numbers are in my text file. Secondly, each line may well contain a different number of elements. My file could contain up to 100s of numbers. Any other ideas? 

On 27 February 2016 at 16:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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
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
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

Date2016-02-27 17:15
FromVictor Lazzarini
SubjectRe: loading tables from a text file?
You want to separate the numbers in groups but you don't know how long each group is?


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

On 27 Feb 2016, at 17:09, Rory Walsh <rorywalsh@EAR.IE> wrote:

That would work but it now appears that each group of numbers could have a different length. They are patterns of notes of varying length. I could use a -1 to indicate the end of a pattern but it seems a ugly.

On 27 Feb 2016 17:03, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Why not use GEN 23, then see how long it is, then read the data from this table into the destination?

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

On 27 Feb 2016, at 16:57, Rory Walsh <rorywalsh@EAR.IE> wrote:

If each group of numbers is the same I could load the entire file to a function table using GEN23, and then break that table up into smaller tables. That's why knowing the amount of numbers on each would help, but it turns out that I may not know this.  

On 27 February 2016 at 16:55, Rory Walsh <rorywalsh@ear.ie> wrote:
I may need help on this one. fin does not seem like a good solution. First of all, I won't know how many numbers are in my text file. Secondly, each line may well contain a different number of elements. My file could contain up to 100s of numbers. Any other ideas? 

On 27 February 2016 at 16:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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
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
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

Date2016-02-27 17:19
FromRory Walsh
SubjectRe: loading tables from a text file?

That's about the size of it ;)

On 27 Feb 2016 17:15, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
You want to separate the numbers in groups but you don't know how long each group is?


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

On 27 Feb 2016, at 17:09, Rory Walsh <rorywalsh@EAR.IE> wrote:

That would work but it now appears that each group of numbers could have a different length. They are patterns of notes of varying length. I could use a -1 to indicate the end of a pattern but it seems a ugly.

On 27 Feb 2016 17:03, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Why not use GEN 23, then see how long it is, then read the data from this table into the destination?

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

On 27 Feb 2016, at 16:57, Rory Walsh <rorywalsh@EAR.IE> wrote:

If each group of numbers is the same I could load the entire file to a function table using GEN23, and then break that table up into smaller tables. That's why knowing the amount of numbers on each would help, but it turns out that I may not know this.  

On 27 February 2016 at 16:55, Rory Walsh <rorywalsh@ear.ie> wrote:
I may need help on this one. fin does not seem like a good solution. First of all, I won't know how many numbers are in my text file. Secondly, each line may well contain a different number of elements. My file could contain up to 100s of numbers. Any other ideas? 

On 27 February 2016 at 16:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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
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
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

Date2016-02-27 17:31
FromVictor Lazzarini
SubjectRe: loading tables from a text file?
That poses programming difficulties in any language. You need a delimiter.

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

On 27 Feb 2016, at 17:19, Rory Walsh <rorywalsh@EAR.IE> wrote:

That's about the size of it ;)

On 27 Feb 2016 17:15, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
You want to separate the numbers in groups but you don't know how long each group is?


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

On 27 Feb 2016, at 17:09, Rory Walsh <rorywalsh@EAR.IE> wrote:

That would work but it now appears that each group of numbers could have a different length. They are patterns of notes of varying length. I could use a -1 to indicate the end of a pattern but it seems a ugly.

On 27 Feb 2016 17:03, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Why not use GEN 23, then see how long it is, then read the data from this table into the destination?

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

On 27 Feb 2016, at 16:57, Rory Walsh <rorywalsh@EAR.IE> wrote:

If each group of numbers is the same I could load the entire file to a function table using GEN23, and then break that table up into smaller tables. That's why knowing the amount of numbers on each would help, but it turns out that I may not know this.  

On 27 February 2016 at 16:55, Rory Walsh <rorywalsh@ear.ie> wrote:
I may need help on this one. fin does not seem like a good solution. First of all, I won't know how many numbers are in my text file. Secondly, each line may well contain a different number of elements. My file could contain up to 100s of numbers. Any other ideas? 

On 27 February 2016 at 16:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why the limitation to same number?

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

On 27 Feb 2016, at 16:48, Rory Walsh <rorywalsh@EAR.IE> wrote:

Yeah, I realised shortly after I posted that if each set contains the same number of elements I can indeed use fini!

On 27 February 2016 at 16:40, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
fini + tablewi ?

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

On 27 Feb 2016, at 16:31, Rory Walsh <rorywalsh@EAR.IE> wrote:

I'm looking for a native Csound way to load lines of text from a file into corresponding function tables. For example, the text file might look like this:

1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0
1 2 3 4 5 6 7 8 9 0

Each line of text will contain the same number of elements. fin and GEN33 don't really cut the mustard on this one, unless I've missed something. 
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
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
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

Date2016-02-27 17:44
Fromjpff
SubjectRe: loading tables from a text file?
I think Rory was oping to use \n as te delimiter.


On Sat, 27 Feb 2016, Victor Lazzarini wrote:

> That poses programming difficulties in any language. You need a delimiter.
> 
> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 27 Feb 2016, at 17:19, Rory Walsh  wrote:
>
>       That's about the size of it ;)
>
>       On 27 Feb 2016 17:15, "Victor Lazzarini"
>        wrote:
>             You want to separate the numbers in groups but you
>             don't know how long each group is?
> 
> 
> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 27 Feb 2016, at 17:09, Rory Walsh  wrote:
>
>       That would work but it now appears that each group of
>       numbers could have a different length. They are
>       patterns of notes of varying length. I could use a -1
>       to indicate the end of a pattern but it seems a ugly.
>
>       On 27 Feb 2016 17:03, "Victor Lazzarini"
>        wrote:
>             Why not use GEN 23, then see how long it
>             is, then read the data from this table
>             into the destination?
> 
> Victor LazzariniDean of Arts, Celtic Studies, and
> Philosophy
> Maynooth University
> Ireland
> 
> On 27 Feb 2016, at 16:57, Rory Walsh
>  wrote:
>
>       If each group of numbers is the same I
>       could load the entire file to a function
>       table using GEN23, and then break that
>       table up into smaller tables. That's why
>       knowing the amount of numbers on each
>       would help, but it turns out that I may
>       not know this.  
> 
> On 27 February 2016 at 16:55, Rory Walsh
>  wrote:
>       I may need help on this one. fin
>       does not seem like a good solution.
>       First of all, I won't know how many
>       numbers are in my text file.
>       Secondly, each line may well contain
>       a different number of elements. My
>       file could contain up to 100s of
>       numbers. Any other ideas? 
> 
> On 27 February 2016 at 16:51, Victor
> Lazzarini 
> wrote:
>       Why the limitation to same
>       number?
>
>       Victor LazzariniDean of Arts,
>       Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 27 Feb 2016, at 16:48, Rory Walsh
>  wrote:
>
>       Yeah, I realised shortly
>       after I posted that if
>       each set contains the
>       same number of elements
>       I can indeed use fini!
> 
> On 27 February 2016 at 16:40,
> Victor Lazzarini
> 
> wrote:
>       fini + tablewi ?
>
>       Victor
>       LazzariniDean of
>       Arts, Celtic
>       Studies, and
>       Philosophy
> Maynooth University
> Ireland
> 
> On 27 Feb 2016, at
> 16:31, Rory Walsh
> 
> wrote:
>
>       I'm looking
>       for a native
>       Csound way
>       to load
>       lines of
>       text from a
>       file into
>       corresponding
>       function
>       tables. For
>       example, the
>       text file
>       might look
>       like this:
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 1 2 3 4 5 6 7 8 9
> 0
> 
> Each line of text
> will contain the
> same number of
> elements. fin and
> GEN33 don't really
> cut the mustard on
> this one, unless
> I've missed
> something. 
> 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
> 
> 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
> 
> 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
> 
> 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

Date2016-02-27 17:51
FromVictor Lazzarini
SubjectRe: loading tables from a text file?
I see. We might consider implementing a fopen-fscanf-fprintf interface to deal with
these things. Another one would be to have a readline one, with array output.

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

> On 27 Feb 2016, at 17:44, jpff  wrote:
> 
> I think Rory was oping to use \n as te delimiter.
> 
> 
>> On Sat, 27 Feb 2016, Victor Lazzarini wrote:
>> 
>> That poses programming difficulties in any language. You need a delimiter.
>> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 17:19, Rory Walsh  wrote:
>> 
>>      That's about the size of it ;)
>> 
>>      On 27 Feb 2016 17:15, "Victor Lazzarini"
>>       wrote:
>>            You want to separate the numbers in groups but you
>>            don't know how long each group is?
>> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 17:09, Rory Walsh  wrote:
>> 
>>      That would work but it now appears that each group of
>>      numbers could have a different length. They are
>>      patterns of notes of varying length. I could use a -1
>>      to indicate the end of a pattern but it seems a ugly.
>> 
>>      On 27 Feb 2016 17:03, "Victor Lazzarini"
>>       wrote:
>>            Why not use GEN 23, then see how long it
>>            is, then read the data from this table
>>            into the destination?
>> Victor LazzariniDean of Arts, Celtic Studies, and
>> Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 16:57, Rory Walsh
>>  wrote:
>> 
>>      If each group of numbers is the same I
>>      could load the entire file to a function
>>      table using GEN23, and then break that
>>      table up into smaller tables. That's why
>>      knowing the amount of numbers on each
>>      would help, but it turns out that I may
>>      not know this.  
>> On 27 February 2016 at 16:55, Rory Walsh
>>  wrote:
>>      I may need help on this one. fin
>>      does not seem like a good solution.
>>      First of all, I won't know how many
>>      numbers are in my text file.
>>      Secondly, each line may well contain
>>      a different number of elements. My
>>      file could contain up to 100s of
>>      numbers. Any other ideas? 
>> On 27 February 2016 at 16:51, Victor
>> Lazzarini 
>> wrote:
>>      Why the limitation to same
>>      number?
>> 
>>      Victor LazzariniDean of Arts,
>>      Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 16:48, Rory Walsh
>>  wrote:
>> 
>>      Yeah, I realised shortly
>>      after I posted that if
>>      each set contains the
>>      same number of elements
>>      I can indeed use fini!
>> On 27 February 2016 at 16:40,
>> Victor Lazzarini
>> 
>> wrote:
>>      fini + tablewi ?
>> 
>>      Victor
>>      LazzariniDean of
>>      Arts, Celtic
>>      Studies, and
>>      Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at
>> 16:31, Rory Walsh
>> 
>> wrote:
>> 
>>      I'm looking
>>      for a native
>>      Csound way
>>      to load
>>      lines of
>>      text from a
>>      file into
>>      corresponding
>>      function
>>      tables. For
>>      example, the
>>      text file
>>      might look
>>      like this:
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> Each line of text
>> will contain the
>> same number of
>> elements. fin and
>> GEN33 don't really
>> cut the mustard on
>> this one, unless
>> I've missed
>> something. 
>> 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
>> 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
>> 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
>> 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

Date2016-02-27 18:26
FromRory Walsh
SubjectRe: loading tables from a text file?

I have an opcode almost finished that will load the numbers from each line into tables in the same way my ftsamplebank opcode works. It would however be nice to have more generic file reading opcodes.

On 27 Feb 2016 17:52, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I see. We might consider implementing a fopen-fscanf-fprintf interface to deal with
these things. Another one would be to have a readline one, with array output.

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

> On 27 Feb 2016, at 17:44, jpff <jpff@CODEMIST.CO.UK> wrote:
>
> I think Rory was oping to use \n as te delimiter.
>
>
>> On Sat, 27 Feb 2016, Victor Lazzarini wrote:
>>
>> That poses programming difficulties in any language. You need a delimiter.
>> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 17:19, Rory Walsh <rorywalsh@EAR.IE> wrote:
>>
>>      That's about the size of it ;)
>>
>>      On 27 Feb 2016 17:15, "Victor Lazzarini"
>>      <Victor.Lazzarini@nuim.ie> wrote:
>>            You want to separate the numbers in groups but you
>>            don't know how long each group is?
>> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 17:09, Rory Walsh <rorywalsh@EAR.IE> wrote:
>>
>>      That would work but it now appears that each group of
>>      numbers could have a different length. They are
>>      patterns of notes of varying length. I could use a -1
>>      to indicate the end of a pattern but it seems a ugly.
>>
>>      On 27 Feb 2016 17:03, "Victor Lazzarini"
>>      <Victor.Lazzarini@nuim.ie> wrote:
>>            Why not use GEN 23, then see how long it
>>            is, then read the data from this table
>>            into the destination?
>> Victor LazzariniDean of Arts, Celtic Studies, and
>> Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 16:57, Rory Walsh
>> <rorywalsh@EAR.IE> wrote:
>>
>>      If each group of numbers is the same I
>>      could load the entire file to a function
>>      table using GEN23, and then break that
>>      table up into smaller tables. That's why
>>      knowing the amount of numbers on each
>>      would help, but it turns out that I may
>>      not know this.
>> On 27 February 2016 at 16:55, Rory Walsh
>> <rorywalsh@ear.ie> wrote:
>>      I may need help on this one. fin
>>      does not seem like a good solution.
>>      First of all, I won't know how many
>>      numbers are in my text file.
>>      Secondly, each line may well contain
>>      a different number of elements. My
>>      file could contain up to 100s of
>>      numbers. Any other ideas?
>> On 27 February 2016 at 16:51, Victor
>> Lazzarini <Victor.Lazzarini@nuim.ie>
>> wrote:
>>      Why the limitation to same
>>      number?
>>
>>      Victor LazzariniDean of Arts,
>>      Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at 16:48, Rory Walsh
>> <rorywalsh@EAR.IE> wrote:
>>
>>      Yeah, I realised shortly
>>      after I posted that if
>>      each set contains the
>>      same number of elements
>>      I can indeed use fini!
>> On 27 February 2016 at 16:40,
>> Victor Lazzarini
>> <Victor.Lazzarini@nuim.ie>
>> wrote:
>>      fini + tablewi ?
>>
>>      Victor
>>      LazzariniDean of
>>      Arts, Celtic
>>      Studies, and
>>      Philosophy
>> Maynooth University
>> Ireland
>> On 27 Feb 2016, at
>> 16:31, Rory Walsh
>> <rorywalsh@EAR.IE>
>> wrote:
>>
>>      I'm looking
>>      for a native
>>      Csound way
>>      to load
>>      lines of
>>      text from a
>>      file into
>>      corresponding
>>      function
>>      tables. For
>>      example, the
>>      text file
>>      might look
>>      like this:
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> 1 2 3 4 5 6 7 8 9
>> 0
>> Each line of text
>> will contain the
>> same number of
>> elements. fin and
>> GEN33 don't really
>> cut the mustard on
>> this one, unless
>> I've missed
>> something.
>> 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
>> 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
>> 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
>> 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
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

Date2016-02-27 21:08
Fromjoachim heintz
SubjectRe: loading tables from a text file?
would readf/readfi help?
http://csound.github.io/docs/manual/readfi.html

	joachim

On 27/02/16 19:26, Rory Walsh wrote:
> I have an opcode almost finished that will load the numbers from each
> line into tables in the same way my ftsamplebank opcode works. It would
> however be nice to have more generic file reading opcodes.
>
> On 27 Feb 2016 17:52, "Victor Lazzarini"  > wrote:
>
>     I see. We might consider implementing a fopen-fscanf-fprintf
>     interface to deal with
>     these things. Another one would be to have a readline one, with
>     array output.
>
>     Victor Lazzarini
>     Dean of Arts, Celtic Studies, and Philosophy
>     Maynooth University
>     Ireland
>
>      > On 27 Feb 2016, at 17:44, jpff      > wrote:
>      >
>      > I think Rory was oping to use \n as te delimiter.
>      >
>      >
>      >> On Sat, 27 Feb 2016, Victor Lazzarini wrote:
>      >>
>      >> That poses programming difficulties in any language. You need a
>     delimiter.
>      >> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>      >> Maynooth University
>      >> Ireland
>      >> On 27 Feb 2016, at 17:19, Rory Walsh      > wrote:
>      >>
>      >>      That's about the size of it ;)
>      >>
>      >>      On 27 Feb 2016 17:15, "Victor Lazzarini"
>      >>           > wrote:
>      >>            You want to separate the numbers in groups but you
>      >>            don't know how long each group is?
>      >> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>      >> Maynooth University
>      >> Ireland
>      >> On 27 Feb 2016, at 17:09, Rory Walsh      > wrote:
>      >>
>      >>      That would work but it now appears that each group of
>      >>      numbers could have a different length. They are
>      >>      patterns of notes of varying length. I could use a -1
>      >>      to indicate the end of a pattern but it seems a ugly.
>      >>
>      >>      On 27 Feb 2016 17:03, "Victor Lazzarini"
>      >>           > wrote:
>      >>            Why not use GEN 23, then see how long it
>      >>            is, then read the data from this table
>      >>            into the destination?
>      >> Victor LazzariniDean of Arts, Celtic Studies, and
>      >> Philosophy
>      >> Maynooth University
>      >> Ireland
>      >> On 27 Feb 2016, at 16:57, Rory Walsh
>      >> > wrote:
>      >>
>      >>      If each group of numbers is the same I
>      >>      could load the entire file to a function
>      >>      table using GEN23, and then break that
>      >>      table up into smaller tables. That's why
>      >>      knowing the amount of numbers on each
>      >>      would help, but it turns out that I may
>      >>      not know this.
>      >> On 27 February 2016 at 16:55, Rory Walsh
>      >> > wrote:
>      >>      I may need help on this one. fin
>      >>      does not seem like a good solution.
>      >>      First of all, I won't know how many
>      >>      numbers are in my text file.
>      >>      Secondly, each line may well contain
>      >>      a different number of elements. My
>      >>      file could contain up to 100s of
>      >>      numbers. Any other ideas?
>      >> On 27 February 2016 at 16:51, Victor
>      >> Lazzarini      >
>      >> wrote:
>      >>      Why the limitation to same
>      >>      number?
>      >>
>      >>      Victor LazzariniDean of Arts,
>      >>      Celtic Studies, and Philosophy
>      >> Maynooth University
>      >> Ireland
>      >> On 27 Feb 2016, at 16:48, Rory Walsh
>      >> > wrote:
>      >>
>      >>      Yeah, I realised shortly
>      >>      after I posted that if
>      >>      each set contains the
>      >>      same number of elements
>      >>      I can indeed use fini!
>      >> On 27 February 2016 at 16:40,
>      >> Victor Lazzarini
>      >> >
>      >> wrote:
>      >>      fini + tablewi ?
>      >>
>      >>      Victor
>      >>      LazzariniDean of
>      >>      Arts, Celtic
>      >>      Studies, and
>      >>      Philosophy
>      >> Maynooth University
>      >> Ireland
>      >> On 27 Feb 2016, at
>      >> 16:31, Rory Walsh
>      >> >
>      >> wrote:
>      >>
>      >>      I'm looking
>      >>      for a native
>      >>      Csound way
>      >>      to load
>      >>      lines of
>      >>      text from a
>      >>      file into
>      >>      corresponding
>      >>      function
>      >>      tables. For
>      >>      example, the
>      >>      text file
>      >>      might look
>      >>      like this:
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> 1 2 3 4 5 6 7 8 9
>      >> 0
>      >> Each line of text
>      >> will contain the
>      >> same number of
>      >> elements. fin and
>      >> GEN33 don't really
>      >> cut the mustard on
>      >> this one, unless
>      >> I've missed
>      >> something.
>      >> 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
>      >> 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
>      >> 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
>      >> 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
>
> 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

Date2016-02-27 22:06
FromRory Walsh
SubjectRe: loading tables from a text file?
I hadn't seen that one before! But I can't seem to get it to work. It keeps returning:

mreadf: read failure

My code, taken from the manual more or less:

read:
Sline, iLineNum readfi "/home/rory/Desktop/test.txt"
        printf_i  "Line %d: %s", iLineNum, iLineNum, Sline
        if iLineNum != -1 igoto read


On 27 February 2016 at 21:08, joachim heintz <jh@joachimheintz.de> wrote:
would readf/readfi help?
http://csound.github.io/docs/manual/readfi.html

        joachim

On 27/02/16 19:26, Rory Walsh wrote:
I have an opcode almost finished that will load the numbers from each
line into tables in the same way my ftsamplebank opcode works. It would
however be nice to have more generic file reading opcodes.

On 27 Feb 2016 17:52, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie
<mailto:Victor.Lazzarini@nuim.ie>> wrote:

    I see. We might consider implementing a fopen-fscanf-fprintf
    interface to deal with
    these things. Another one would be to have a readline one, with
    array output.

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

     > On 27 Feb 2016, at 17:44, jpff <jpff@CODEMIST.CO.UK
    <mailto:jpff@CODEMIST.CO.UK>> wrote:
     >
     > I think Rory was oping to use \n as te delimiter.
     >
     >
     >> On Sat, 27 Feb 2016, Victor Lazzarini wrote:
     >>
     >> That poses programming difficulties in any language. You need a
    delimiter.
     >> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
     >> Maynooth University
     >> Ireland
     >> On 27 Feb 2016, at 17:19, Rory Walsh <rorywalsh@EAR.IE
    <mailto:rorywalsh@EAR.IE>> wrote:
     >>
     >>      That's about the size of it ;)
     >>
     >>      On 27 Feb 2016 17:15, "Victor Lazzarini"
     >>      <Victor.Lazzarini@nuim.ie
    <mailto:Victor.Lazzarini@nuim.ie>> wrote:
     >>            You want to separate the numbers in groups but you
     >>            don't know how long each group is?
     >> Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
     >> Maynooth University
     >> Ireland
     >> On 27 Feb 2016, at 17:09, Rory Walsh <rorywalsh@EAR.IE
    <mailto:rorywalsh@EAR.IE>> wrote:
     >>
     >>      That would work but it now appears that each group of
     >>      numbers could have a different length. They are
     >>      patterns of notes of varying length. I could use a -1
     >>      to indicate the end of a pattern but it seems a ugly.
     >>
     >>      On 27 Feb 2016 17:03, "Victor Lazzarini"
     >>      <Victor.Lazzarini@nuim.ie
    <mailto:Victor.Lazzarini@nuim.ie>> wrote:
     >>            Why not use GEN 23, then see how long it
     >>            is, then read the data from this table
     >>            into the destination?
     >> Victor LazzariniDean of Arts, Celtic Studies, and
     >> Philosophy
     >> Maynooth University
     >> Ireland
     >> On 27 Feb 2016, at 16:57, Rory Walsh
     >> <rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>> wrote:
     >>
     >>      If each group of numbers is the same I
     >>      could load the entire file to a function
     >>      table using GEN23, and then break that
     >>      table up into smaller tables. That's why
     >>      knowing the amount of numbers on each
     >>      would help, but it turns out that I may
     >>      not know this.
     >> On 27 February 2016 at 16:55, Rory Walsh
     >> <rorywalsh@ear.ie <mailto:rorywalsh@ear.ie>> wrote:
     >>      I may need help on this one. fin
     >>      does not seem like a good solution.
     >>      First of all, I won't know how many
     >>      numbers are in my text file.
     >>      Secondly, each line may well contain
     >>      a different number of elements. My
     >>      file could contain up to 100s of
     >>      numbers. Any other ideas?
     >> On 27 February 2016 at 16:51, Victor
     >> Lazzarini <Victor.Lazzarini@nuim.ie
    <mailto:Victor.Lazzarini@nuim.ie>>
     >> wrote:
     >>      Why the limitation to same
     >>      number?
     >>
     >>      Victor LazzariniDean of Arts,
     >>      Celtic Studies, and Philosophy
     >> Maynooth University
     >> Ireland
     >> On 27 Feb 2016, at 16:48, Rory Walsh
     >> <rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>> wrote:
     >>
     >>      Yeah, I realised shortly
     >>      after I posted that if
     >>      each set contains the
     >>      same number of elements
     >>      I can indeed use fini!
     >> On 27 February 2016 at 16:40,
     >> Victor Lazzarini
     >> <Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>>
     >> wrote:
     >>      fini + tablewi ?
     >>
     >>      Victor
     >>      LazzariniDean of
     >>      Arts, Celtic
     >>      Studies, and
     >>      Philosophy
     >> Maynooth University
     >> Ireland
     >> On 27 Feb 2016, at
     >> 16:31, Rory Walsh
     >> <rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>>

     >> wrote:
     >>
     >>      I'm looking
     >>      for a native
     >>      Csound way
     >>      to load
     >>      lines of
     >>      text from a
     >>      file into
     >>      corresponding
     >>      function
     >>      tables. For
     >>      example, the
     >>      text file
     >>      might look
     >>      like this:
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> 1 2 3 4 5 6 7 8 9
     >> 0
     >> Each line of text
     >> will contain the
     >> same number of
     >> elements. fin and
     >> GEN33 don't really
     >> cut the mustard on
     >> this one, unless
     >> I've missed
     >> something.
     >> Csound mailing
     >> list
     >> Csound@listserv.heanet.ie <mailto: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 <mailto: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 <mailto: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 <mailto: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
    <mailto: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
    <mailto: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
    <mailto: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
    <mailto: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
    <mailto: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
    <mailto: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 <mailto: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 <mailto: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
<mailto: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

Date2016-02-28 05:05
Fromjoachim heintz
SubjectRe: loading tables from a text file?
i tried with a test.txt and it works for me:

read:
Sline, iLineNum readfi "/home/jh/Desktop/test.txt"
         printf_i  "Line %d: %s", iLineNum, iLineNum, Sline
         if iLineNum != -1 igoto read

SECTION 1:
new alloc for instr 1:
Line 1: 1 2 3 4 5 6 7 8 9 0
Line 2: 1 2 3 4 5 6 7 8 9 0
Line 3: 1 2 3 4 5 6 7 8 9 0
Line 4: 1 2 3 4 5 6 7 8 9 0
Line 5: 1 2 3 4 5 6 7 8 9 0
Line 6: 1 2 3 4 5 6 7 8 9 0
Line 7: 1 2 3 4 5 6 7 8 9 0
Line 8: 1 2 3 4 5 6 7 8 9 0
Line 9: 1 2 3 4 5 6 7 8 9 0

On 27/02/16 23:06, Rory Walsh wrote:
> I hadn't seen that one before! But I can't seem to get it to work. It
> keeps returning:
>
> mreadf: read failure
>
> My code, taken from the manual more or less:
>
> read:
> Sline, iLineNum readfi "/home/rory/Desktop/test.txt"
>          printf_i  "Line %d: %s", iLineNum, iLineNum, Sline
>          if iLineNum != -1 igoto read
>
>
> On 27 February 2016 at 21:08, joachim heintz  > wrote:
>
>     would readf/readfi help?
>     http://csound.github.io/docs/manual/readfi.html
>
>              joachim
>
>     On 27/02/16 19:26, Rory Walsh wrote:
>
>         I have an opcode almost finished that will load the numbers from
>         each
>         line into tables in the same way my ftsamplebank opcode works.
>         It would
>         however be nice to have more generic file reading opcodes.
>
>         On 27 Feb 2016 17:52, "Victor Lazzarini"
>         
>                  >> wrote:
>
>              I see. We might consider implementing a fopen-fscanf-fprintf
>              interface to deal with
>              these things. Another one would be to have a readline one, with
>              array output.
>
>              Victor Lazzarini
>              Dean of Arts, Celtic Studies, and Philosophy
>              Maynooth University
>              Ireland
>
>               > On 27 Feb 2016, at 17:44, jpff          
>              >>
>         wrote:
>               >
>               > I think Rory was oping to use \n as te delimiter.
>               >
>               >
>               >> On Sat, 27 Feb 2016, Victor Lazzarini wrote:
>               >>
>               >> That poses programming difficulties in any language.
>         You need a
>              delimiter.
>               >> Victor LazzariniDean of Arts, Celtic Studies, and
>         Philosophy
>               >> Maynooth University
>               >> Ireland
>               >> On 27 Feb 2016, at 17:19, Rory Walsh          
>              >> wrote:
>               >>
>               >>      That's about the size of it ;)
>               >>
>               >>      On 27 Feb 2016 17:15, "Victor Lazzarini"
>               >>               
>                       >> wrote:
>               >>            You want to separate the numbers in groups
>         but you
>               >>            don't know how long each group is?
>               >> Victor LazzariniDean of Arts, Celtic Studies, and
>         Philosophy
>               >> Maynooth University
>               >> Ireland
>               >> On 27 Feb 2016, at 17:09, Rory Walsh          
>              >> wrote:
>               >>
>               >>      That would work but it now appears that each group of
>               >>      numbers could have a different length. They are
>               >>      patterns of notes of varying length. I could use a -1
>               >>      to indicate the end of a pattern but it seems a ugly.
>               >>
>               >>      On 27 Feb 2016 17:03, "Victor Lazzarini"
>               >>               
>                       >> wrote:
>               >>            Why not use GEN 23, then see how long it
>               >>            is, then read the data from this table
>               >>            into the destination?
>               >> Victor LazzariniDean of Arts, Celtic Studies, and
>               >> Philosophy
>               >> Maynooth University
>               >> Ireland
>               >> On 27 Feb 2016, at 16:57, Rory Walsh
>               >> 
>         >> wrote:
>               >>
>               >>      If each group of numbers is the same I
>               >>      could load the entire file to a function
>               >>      table using GEN23, and then break that
>               >>      table up into smaller tables. That's why
>               >>      knowing the amount of numbers on each
>               >>      would help, but it turns out that I may
>               >>      not know this.
>               >> On 27 February 2016 at 16:55, Rory Walsh
>               >> 
>         >> wrote:
>               >>      I may need help on this one. fin
>               >>      does not seem like a good solution.
>               >>      First of all, I won't know how many
>               >>      numbers are in my text file.
>               >>      Secondly, each line may well contain
>               >>      a different number of elements. My
>               >>      file could contain up to 100s of
>               >>      numbers. Any other ideas?
>               >> On 27 February 2016 at 16:51, Victor
>               >> Lazzarini          
>                       >>
>               >> wrote:
>               >>      Why the limitation to same
>               >>      number?
>               >>
>               >>      Victor LazzariniDean of Arts,
>               >>      Celtic Studies, and Philosophy
>               >> Maynooth University
>               >> Ireland
>               >> On 27 Feb 2016, at 16:48, Rory Walsh
>               >> 
>         >> wrote:
>               >>
>               >>      Yeah, I realised shortly
>               >>      after I posted that if
>               >>      each set contains the
>               >>      same number of elements
>               >>      I can indeed use fini!
>               >> On 27 February 2016 at 16:40,
>               >> Victor Lazzarini
>               >>          
>         >>
>               >> wrote:
>               >>      fini + tablewi ?
>               >>
>               >>      Victor
>               >>      LazzariniDean of
>               >>      Arts, Celtic
>               >>      Studies, and
>               >>      Philosophy
>               >> Maynooth University
>               >> Ireland
>               >> On 27 Feb 2016, at
>               >> 16:31, Rory Walsh
>               >> 
>         >>
>
>               >> wrote:
>               >>
>               >>      I'm looking
>               >>      for a native
>               >>      Csound way
>               >>      to load
>               >>      lines of
>               >>      text from a
>               >>      file into
>               >>      corresponding
>               >>      function
>               >>      tables. For
>               >>      example, the
>               >>      text file
>               >>      might look
>               >>      like this:
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> 1 2 3 4 5 6 7 8 9
>               >> 0
>               >> Each line of text
>               >> will contain the
>               >> same number of
>               >> elements. fin and
>               >> GEN33 don't really
>               >> cut the mustard on
>               >> this one, unless
>               >> I've missed
>               >> something.
>               >> 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
>               >> 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
>               >> 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
>               >> 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
>
>         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

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

Date2016-02-28 06:27
FromRory Walsh
SubjectRe: loading tables from a text file?
That's odd? In any rate, I think I can just use ftload, another one of those opcodes that I keep forgetting about!

On 28 February 2016 at 05:05, joachim heintz <jh@joachimheintz.de> wrote:
i tried with a test.txt and it works for me:

read:
Sline, iLineNum readfi "/home/jh/Desktop/test.txt"
        printf_i  "Line %d: %s", iLineNum, iLineNum, Sline
        if iLineNum != -1 igoto read

SECTION 1:
new alloc for instr 1:
Line 1: 1 2 3 4 5 6 7 8 9 0
Line 2: 1 2 3 4 5 6 7 8 9 0
Line 3: 1 2 3 4 5 6 7 8 9 0
Line 4: 1 2 3 4 5 6 7 8 9 0
Line 5: 1 2 3 4 5 6 7 8 9 0
Line 6: 1 2 3 4 5 6 7 8 9 0
Line 7: 1 2 3 4 5 6 7 8 9 0
Line 8: 1 2 3 4 5 6 7 8 9 0
Line 9: 1 2 3 4 5 6 7 8 9 0

On 27/02/16 23:06, Rory Walsh wrote:
I hadn't seen that one before! But I can't seem to get it to work. It
keeps returning:

mreadf: read failure

My code, taken from the manual more or less:

read:
Sline, iLineNum readfi "/home/rory/Desktop/test.txt"
         printf_i  "Line %d: %s", iLineNum, iLineNum, Sline
         if iLineNum != -1 igoto read


On 27 February 2016 at 21:08, joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de>> wrote:

    would readf/readfi help?
    http://csound.github.io/docs/manual/readfi.html

             joachim

    On 27/02/16 19:26, Rory Walsh wrote:

        I have an opcode almost finished that will load the numbers from
        each
        line into tables in the same way my ftsamplebank opcode works.
        It would
        however be nice to have more generic file reading opcodes.

        On 27 Feb 2016 17:52, "Victor Lazzarini"
        <Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>
        <mailto:Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>>> wrote:

             I see. We might consider implementing a fopen-fscanf-fprintf
             interface to deal with
             these things. Another one would be to have a readline one, with
             array output.

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

              > On 27 Feb 2016, at 17:44, jpff <jpff@CODEMIST.CO.UK
        <mailto:jpff@CODEMIST.CO.UK>
             <mailto:jpff@CODEMIST.CO.UK <mailto:jpff@CODEMIST.CO.UK>>>
        wrote:
              >
              > I think Rory was oping to use \n as te delimiter.
              >
              >
              >> On Sat, 27 Feb 2016, Victor Lazzarini wrote:
              >>
              >> That poses programming difficulties in any language.
        You need a
             delimiter.
              >> Victor LazzariniDean of Arts, Celtic Studies, and
        Philosophy
              >> Maynooth University
              >> Ireland
              >> On 27 Feb 2016, at 17:19, Rory Walsh <rorywalsh@EAR.IE
        <mailto:rorywalsh@EAR.IE>
             <mailto:rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>>> wrote:
              >>
              >>      That's about the size of it ;)
              >>
              >>      On 27 Feb 2016 17:15, "Victor Lazzarini"
              >>      <Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>
             <mailto:Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>>> wrote:
              >>            You want to separate the numbers in groups
        but you
              >>            don't know how long each group is?
              >> Victor LazzariniDean of Arts, Celtic Studies, and
        Philosophy
              >> Maynooth University
              >> Ireland
              >> On 27 Feb 2016, at 17:09, Rory Walsh <rorywalsh@EAR.IE
        <mailto:rorywalsh@EAR.IE>
             <mailto:rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>>> wrote:
              >>
              >>      That would work but it now appears that each group of
              >>      numbers could have a different length. They are
              >>      patterns of notes of varying length. I could use a -1
              >>      to indicate the end of a pattern but it seems a ugly.
              >>
              >>      On 27 Feb 2016 17:03, "Victor Lazzarini"
              >>      <Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>
             <mailto:Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>>> wrote:
              >>            Why not use GEN 23, then see how long it
              >>            is, then read the data from this table
              >>            into the destination?
              >> Victor LazzariniDean of Arts, Celtic Studies, and
              >> Philosophy
              >> Maynooth University
              >> Ireland
              >> On 27 Feb 2016, at 16:57, Rory Walsh
              >> <rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>
        <mailto:rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>>> wrote:
              >>
              >>      If each group of numbers is the same I
              >>      could load the entire file to a function
              >>      table using GEN23, and then break that
              >>      table up into smaller tables. That's why
              >>      knowing the amount of numbers on each
              >>      would help, but it turns out that I may
              >>      not know this.
              >> On 27 February 2016 at 16:55, Rory Walsh
              >> <rorywalsh@ear.ie <mailto:rorywalsh@ear.ie>
        <mailto:rorywalsh@ear.ie <mailto:rorywalsh@ear.ie>>> wrote:
              >>      I may need help on this one. fin
              >>      does not seem like a good solution.
              >>      First of all, I won't know how many
              >>      numbers are in my text file.
              >>      Secondly, each line may well contain
              >>      a different number of elements. My
              >>      file could contain up to 100s of
              >>      numbers. Any other ideas?
              >> On 27 February 2016 at 16:51, Victor
              >> Lazzarini <Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>
             <mailto:Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>>>
              >> wrote:
              >>      Why the limitation to same
              >>      number?
              >>
              >>      Victor LazzariniDean of Arts,
              >>      Celtic Studies, and Philosophy
              >> Maynooth University
              >> Ireland
              >> On 27 Feb 2016, at 16:48, Rory Walsh
              >> <rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>
        <mailto:rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>>> wrote:
              >>
              >>      Yeah, I realised shortly
              >>      after I posted that if
              >>      each set contains the
              >>      same number of elements
              >>      I can indeed use fini!
              >> On 27 February 2016 at 16:40,
              >> Victor Lazzarini
              >> <Victor.Lazzarini@nuim.ie
        <mailto:Victor.Lazzarini@nuim.ie>
        <mailto:Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>>>
              >> wrote:
              >>      fini + tablewi ?
              >>
              >>      Victor
              >>      LazzariniDean of
              >>      Arts, Celtic
              >>      Studies, and
              >>      Philosophy
              >> Maynooth University
              >> Ireland
              >> On 27 Feb 2016, at
              >> 16:31, Rory Walsh
              >> <rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>
        <mailto:rorywalsh@EAR.IE <mailto:rorywalsh@EAR.IE>>>


              >> wrote:
              >>
              >>      I'm looking
              >>      for a native
              >>      Csound way
              >>      to load
              >>      lines of
              >>      text from a
              >>      file into
              >>      corresponding
              >>      function
              >>      tables. For
              >>      example, the
              >>      text file
              >>      might look
              >>      like this:
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> 1 2 3 4 5 6 7 8 9
              >> 0
              >> Each line of text
              >> will contain the
              >> same number of
              >> elements. fin and
              >> GEN33 don't really
              >> cut the mustard on
              >> this one, unless
              >> I've missed
              >> something.
              >> Csound mailing
              >> list
              >> Csound@listserv.heanet.ie
        <mailto:Csound@listserv.heanet.ie>
        <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
        <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
        <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
        <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
             <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
             <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
             <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
             <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
             <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
             <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
        <mailto:Csound@listserv.heanet.ie
        <mailto: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 <mailto:Csound@listserv.heanet.ie>
        <mailto:Csound@listserv.heanet.ie
        <mailto: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
        <mailto:Csound@listserv.heanet.ie>
        <mailto:Csound@listserv.heanet.ie
        <mailto: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 <mailto: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
<mailto: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

Date2016-02-28 06:39
Fromjoachim heintz
SubjectRe: loading tables from a text file?
yes, this should be the most simple option.


On 28/02/16 07:27, Rory Walsh wrote:
> That's odd? In any rate, I think I can just use ftload, another one of
> those opcodes that I keep forgetting about!
>
> On 28 February 2016 at 05:05, joachim heintz  > wrote:
>
>     i tried with a test.txt and it works for me:
>
>     read:
>     Sline, iLineNum readfi "/home/jh/Desktop/test.txt"
>              printf_i  "Line %d: %s", iLineNum, iLineNum, Sline
>              if iLineNum != -1 igoto read
>
>     SECTION 1:
>     new alloc for instr 1:
>     Line 1: 1 2 3 4 5 6 7 8 9 0
>     Line 2: 1 2 3 4 5 6 7 8 9 0
>     Line 3: 1 2 3 4 5 6 7 8 9 0
>     Line 4: 1 2 3 4 5 6 7 8 9 0
>     Line 5: 1 2 3 4 5 6 7 8 9 0
>     Line 6: 1 2 3 4 5 6 7 8 9 0
>     Line 7: 1 2 3 4 5 6 7 8 9 0
>     Line 8: 1 2 3 4 5 6 7 8 9 0
>     Line 9: 1 2 3 4 5 6 7 8 9 0
>
>     On 27/02/16 23:06, Rory Walsh wrote:
>
>         I hadn't seen that one before! But I can't seem to get it to
>         work. It
>         keeps returning:
>
>         mreadf: read failure
>
>         My code, taken from the manual more or less:
>
>         read:
>         Sline, iLineNum readfi "/home/rory/Desktop/test.txt"
>                   printf_i  "Line %d: %s", iLineNum, iLineNum, Sline
>                   if iLineNum != -1 igoto read
>
>
>         On 27 February 2016 at 21:08, joachim heintz
>         
>         >> wrote:
>
>              would readf/readfi help?
>         http://csound.github.io/docs/manual/readfi.html
>
>                       joachim
>
>              On 27/02/16 19:26, Rory Walsh wrote:
>
>                  I have an opcode almost finished that will load the
>         numbers from
>                  each
>                  line into tables in the same way my ftsamplebank opcode
>         works.
>                  It would
>                  however be nice to have more generic file reading opcodes.
>
>                  On 27 Feb 2016 17:52, "Victor Lazzarini"
>                           
>         >
>                           
>                           >>> wrote:
>
>                       I see. We might consider implementing a
>         fopen-fscanf-fprintf
>                       interface to deal with
>                       these things. Another one would be to have a
>         readline one, with
>                       array output.
>
>                       Victor Lazzarini
>                       Dean of Arts, Celtic Studies, and Philosophy
>                       Maynooth University
>                       Ireland
>
>                        > On 27 Feb 2016, at 17:44, jpff
>         
>                  >
>                                          >>>
>                  wrote:
>                        >
>                        > I think Rory was oping to use \n as te delimiter.
>                        >
>                        >
>                        >> On Sat, 27 Feb 2016, Victor Lazzarini wrote:
>                        >>
>                        >> That poses programming difficulties in any
>         language.
>                  You need a
>                       delimiter.
>                        >> Victor LazzariniDean of Arts, Celtic Studies, and
>                  Philosophy
>                        >> Maynooth University
>                        >> Ireland
>                        >> On 27 Feb 2016, at 17:19, Rory Walsh
>         
>                  >
>                       
>         >>> wrote:
>                        >>
>                        >>      That's about the size of it ;)
>                        >>
>                        >>      On 27 Feb 2016 17:15, "Victor Lazzarini"
>                        >>               
>                           >
>                                
>                           >>> wrote:
>                        >>            You want to separate the numbers in
>         groups
>                  but you
>                        >>            don't know how long each group is?
>                        >> Victor LazzariniDean of Arts, Celtic Studies, and
>                  Philosophy
>                        >> Maynooth University
>                        >> Ireland
>                        >> On 27 Feb 2016, at 17:09, Rory Walsh
>         
>                  >
>                       
>         >>> wrote:
>                        >>
>                        >>      That would work but it now appears that
>         each group of
>                        >>      numbers could have a different length.
>         They are
>                        >>      patterns of notes of varying length. I
>         could use a -1
>                        >>      to indicate the end of a pattern but it
>         seems a ugly.
>                        >>
>                        >>      On 27 Feb 2016 17:03, "Victor Lazzarini"
>                        >>               
>                           >
>                                
>                           >>> wrote:
>                        >>            Why not use GEN 23, then see how
>         long it
>                        >>            is, then read the data from this table
>                        >>            into the destination?
>                        >> Victor LazzariniDean of Arts, Celtic Studies, and
>                        >> Philosophy
>                        >> Maynooth University
>                        >> Ireland
>                        >> On 27 Feb 2016, at 16:57, Rory Walsh
>                        >> 
>         >
>                  
>         >>> wrote:
>                        >>
>                        >>      If each group of numbers is the same I
>                        >>      could load the entire file to a function
>                        >>      table using GEN23, and then break that
>                        >>      table up into smaller tables. That's why
>                        >>      knowing the amount of numbers on each
>                        >>      would help, but it turns out that I may
>                        >>      not know this.
>                        >> On 27 February 2016 at 16:55, Rory Walsh
>                        >> 
>         >
>                  
>         >>> wrote:
>                        >>      I may need help on this one. fin
>                        >>      does not seem like a good solution.
>                        >>      First of all, I won't know how many
>                        >>      numbers are in my text file.
>                        >>      Secondly, each line may well contain
>                        >>      a different number of elements. My
>                        >>      file could contain up to 100s of
>                        >>      numbers. Any other ideas?
>                        >> On 27 February 2016 at 16:51, Victor
>                        >> Lazzarini          
>                           >
>                                
>                           >>>
>                        >> wrote:
>                        >>      Why the limitation to same
>                        >>      number?
>                        >>
>                        >>      Victor LazzariniDean of Arts,
>                        >>      Celtic Studies, and Philosophy
>                        >> Maynooth University
>                        >> Ireland
>                        >> On 27 Feb 2016, at 16:48, Rory Walsh
>                        >> 
>         >
>                  
>         >>> wrote:
>                        >>
>                        >>      Yeah, I realised shortly
>                        >>      after I posted that if
>                        >>      each set contains the
>                        >>      same number of elements
>                        >>      I can indeed use fini!
>                        >> On 27 February 2016 at 16:40,
>                        >> Victor Lazzarini
>                        >>          
>                           >
>                           
>                  >>>
>                        >> wrote:
>                        >>      fini + tablewi ?
>                        >>
>                        >>      Victor
>                        >>      LazzariniDean of
>                        >>      Arts, Celtic
>                        >>      Studies, and
>                        >>      Philosophy
>                        >> Maynooth University
>                        >> Ireland
>                        >> On 27 Feb 2016, at
>                        >> 16:31, Rory Walsh
>                        >> 
>         >
>                  
>         >>>
>
>
>                        >> wrote:
>                        >>
>                        >>      I'm looking
>                        >>      for a native
>                        >>      Csound way
>                        >>      to load
>                        >>      lines of
>                        >>      text from a
>                        >>      file into
>                        >>      corresponding
>                        >>      function
>                        >>      tables. For
>                        >>      example, the
>                        >>      text file
>                        >>      might look
>                        >>      like this:
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> 1 2 3 4 5 6 7 8 9
>                        >> 0
>                        >> Each line of text
>                        >> will contain the
>                        >> same number of
>                        >> elements. fin and
>                        >> GEN33 don't really
>                        >> cut the mustard on
>                        >> this one, unless
>                        >> I've missed
>                        >> something.
>                        >> 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
>                        >> 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
>                        >> 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
>                        >> 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
>
>                  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
>
>
>     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