Csound Csound-dev Csound-tekno Search About

listing all files in a directory...

Date2016-01-03 21:29
FromRory Walsh
Subjectlisting all files in a directory...
Attachmentsdirectory.cpp  
In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes. 

instr 1
iCnt init 0
SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
iNumberOfFiles lenarray SFilenames

until iCnt>=iNumberOfFiles do
    printf_i "Filename = %s \n", 1, SFilenames[iCnt]
    iCnt = iCnt+1
od
endin
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-01-03 21:41
FromHlöðver Sigurðsson
SubjectRe: listing all files in a directory...

Nice. See if this will save some time ripping sampled instrument banks.

On Jan 3, 2016 10:36 PM, "Rory Walsh" <rorywalsh@ear.ie> wrote:
In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes. 

instr 1
iCnt init 0
SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
iNumberOfFiles lenarray SFilenames

until iCnt>=iNumberOfFiles do
    printf_i "Filename = %s \n", 1, SFilenames[iCnt]
    iCnt = iCnt+1
od
endin
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-01-03 21:41
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
Man page, and I can add the code to the repo.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 3 Jan 2016, at 21:29, Rory Walsh  wrote:
> 
> In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes.  
> 
> instr 1
> iCnt init 0
> SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
> iNumberOfFiles lenarray SFilenames
> 
> until iCnt>=iNumberOfFiles do
>     printf_i "Filename = %s \n", 1, SFilenames[iCnt]
>     iCnt = iCnt+1
> od
> endin
> 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-01-03 21:53
FromRory Walsh
SubjectRe: listing all files in a directory...
I was hoping to make the second string parameter optional so if left out it will simply list all files, but I could figure out what I need to change 'SS' to in my OENTRY structure?

On 3 January 2016 at 21:41, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Man page, and I can add the code to the repo.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 3 Jan 2016, at 21:29, Rory Walsh <rorywalsh@ear.ie> wrote:
>
> In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes.
>
> instr 1
> iCnt init 0
> SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
> iNumberOfFiles lenarray SFilenames
>
> until iCnt>=iNumberOfFiles do
>     printf_i "Filename = %s \n", 1, SFilenames[iCnt]
>     iCnt = iCnt+1
> od
> endin
> 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 <directory.cpp>

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-01-03 23:23
FromTarmo Johannes
SubjectRe: listing all files in a directory...

absolutely great!

 

I have missed that and have always had to write it in antother language and pass it via Csound API. Looking forward to see it in the Csound source!

 

thanks,

tarmo

 

On Sunday 03 January 2016 21:29:11 you wrote:

> In case anyone is interested, I put together a little opcode that will load

> the names of all files in a directory to a string array. I've attached the

> source code, and below is an example of it in use. Many thanks to Victor

> for talking me through the intricacies of array based opcodes.

>

> instr 1

> iCnt init 0

> SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"

> iNumberOfFiles lenarray SFilenames

>

> until iCnt>=iNumberOfFiles do

> printf_i "Filename = %s \n", 1, SFilenames[iCnt]

> iCnt = iCnt+1

> od

> endin

>

> 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-01-04 09:11
FromAndreas Bergsland
SubjectRe: listing all files in a directory...
Attachmentsandreas_bergsland.vcf  
This is great! I've been wanting to have this feature in csound for a long time.
Thanks!
In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes. 

instr 1
iCnt init 0
SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
iNumberOfFiles lenarray SFilenames

until iCnt>=iNumberOfFiles do
    printf_i "Filename = %s \n", 1, SFilenames[iCnt]
    iCnt = iCnt+1
od
endin
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


-- 
Andreas Bergsland,
førsteamanuensis

Musikkteknologiseksjonen
Institutt for musikk
Olavskvartalet
NTNU
7491 Trondheim

Besøksadresse: Fjordgt.1 (3.etg.)
e-post: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Tlf: 7359 0096
Mob: 4566 3316

Date2016-01-04 09:33
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
I think you will need to use “?" and check that the type of the argument (if used) is a string in your code to make
sure users did not use anything else:

strcmp(“S", csound->GetTypeForArg(p->arg[i])->varTypeName) == 0


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 3 Jan 2016, at 21:53, Rory Walsh  wrote:
> 
> I was hoping to make the second string parameter optional so if left out it will simply list all files, but I could figure out what I need to change 'SS' to in my OENTRY structure?
> 
> On 3 January 2016 at 21:41, Victor Lazzarini  wrote:
> Man page, and I can add the code to the repo.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> > On 3 Jan 2016, at 21:29, Rory Walsh  wrote:
> >
> > In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes.
> >
> > instr 1
> > iCnt init 0
> > SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
> > iNumberOfFiles lenarray SFilenames
> >
> > until iCnt>=iNumberOfFiles do
> >     printf_i "Filename = %s \n", 1, SFilenames[iCnt]
> >     iCnt = iCnt+1
> > od
> > endin
> > 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-01-04 10:00
FromRory Walsh
SubjectRe: listing all files in a directory...
If I add a ? to my OENTRY, so it now looks like this:

{ "directory",  S(TEST_STRUCT),   0, 1,      "S[]", "S?", (SUBR)directory, NULL, NULL   },

I get an "insufficient required arguments for opcode directory " error whenever I leave out the second parameter?

On 4 January 2016 at 09:33, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think you will need to use “?" and check that the type of the argument (if used) is a string in your code to make
sure users did not use anything else:

strcmp(“S", csound->GetTypeForArg(p->arg[i])->varTypeName) == 0


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 3 Jan 2016, at 21:53, Rory Walsh <rorywalsh@ear.ie> wrote:
>
> I was hoping to make the second string parameter optional so if left out it will simply list all files, but I could figure out what I need to change 'SS' to in my OENTRY structure?
>
> On 3 January 2016 at 21:41, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> Man page, and I can add the code to the repo.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> > On 3 Jan 2016, at 21:29, Rory Walsh <rorywalsh@ear.ie> wrote:
> >
> > In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes.
> >
> > instr 1
> > iCnt init 0
> > SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
> > iNumberOfFiles lenarray SFilenames
> >
> > until iCnt>=iNumberOfFiles do
> >     printf_i "Filename = %s \n", 1, SFilenames[iCnt]
> >     iCnt = iCnt+1
> > od
> > endin
> > 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 <directory.cpp>
>
> 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-01-04 10:05
FromRory Walsh
SubjectRe: listing all files in a directory...
And here I find some useful reading, sorry, I should have checked there before.

http://csound.1045644.n5.nabble.com/Is-there-a-way-to-have-a-string-as-an-optional-td5722149.html#a5722151



On 4 January 2016 at 10:00, Rory Walsh <rorywalsh@ear.ie> wrote:
If I add a ? to my OENTRY, so it now looks like this:

{ "directory",  S(TEST_STRUCT),   0, 1,      "S[]", "S?", (SUBR)directory, NULL, NULL   },

I get an "insufficient required arguments for opcode directory " error whenever I leave out the second parameter?

On 4 January 2016 at 09:33, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think you will need to use “?" and check that the type of the argument (if used) is a string in your code to make
sure users did not use anything else:

strcmp(“S", csound->GetTypeForArg(p->arg[i])->varTypeName) == 0


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 3 Jan 2016, at 21:53, Rory Walsh <rorywalsh@ear.ie> wrote:
>
> I was hoping to make the second string parameter optional so if left out it will simply list all files, but I could figure out what I need to change 'SS' to in my OENTRY structure?
>
> On 3 January 2016 at 21:41, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> Man page, and I can add the code to the repo.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> > On 3 Jan 2016, at 21:29, Rory Walsh <rorywalsh@ear.ie> wrote:
> >
> > In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes.
> >
> > instr 1
> > iCnt init 0
> > SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
> > iNumberOfFiles lenarray SFilenames
> >
> > until iCnt>=iNumberOfFiles do
> >     printf_i "Filename = %s \n", 1, SFilenames[iCnt]
> >     iCnt = iCnt+1
> > od
> > endin
> > 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 <directory.cpp>
>
> 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-01-04 10:39
FromRory Walsh
SubjectRe: listing all files in a directory...
Attachmentsdirectory.cpp  directory.csd  directory.xml  
Here is the updated source, a manual entry, and an example file. Thanks again for the help here.

On 4 January 2016 at 10:05, Rory Walsh <rorywalsh@ear.ie> wrote:
And here I find some useful reading, sorry, I should have checked there before.

http://csound.1045644.n5.nabble.com/Is-there-a-way-to-have-a-string-as-an-optional-td5722149.html#a5722151



On 4 January 2016 at 10:00, Rory Walsh <rorywalsh@ear.ie> wrote:
If I add a ? to my OENTRY, so it now looks like this:

{ "directory",  S(TEST_STRUCT),   0, 1,      "S[]", "S?", (SUBR)directory, NULL, NULL   },

I get an "insufficient required arguments for opcode directory " error whenever I leave out the second parameter?

On 4 January 2016 at 09:33, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think you will need to use “?" and check that the type of the argument (if used) is a string in your code to make
sure users did not use anything else:

strcmp(“S", csound->GetTypeForArg(p->arg[i])->varTypeName) == 0


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 3 Jan 2016, at 21:53, Rory Walsh <rorywalsh@ear.ie> wrote:
>
> I was hoping to make the second string parameter optional so if left out it will simply list all files, but I could figure out what I need to change 'SS' to in my OENTRY structure?
>
> On 3 January 2016 at 21:41, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> Man page, and I can add the code to the repo.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> > On 3 Jan 2016, at 21:29, Rory Walsh <rorywalsh@ear.ie> wrote:
> >
> > In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes.
> >
> > instr 1
> > iCnt init 0
> > SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
> > iNumberOfFiles lenarray SFilenames
> >
> > until iCnt>=iNumberOfFiles do
> >     printf_i "Filename = %s \n", 1, SFilenames[iCnt]
> >     iCnt = iCnt+1
> > od
> > endin
> > 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 <directory.cpp>
>
> 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-01-04 21:19
Fromjoachim heintz
SubjectRe: listing all files in a directory...
++ !
thanks rory!
	j

On 04/01/16 00:23, Tarmo Johannes wrote:
> absolutely great!
>
> I have missed that and have always had to write it in antother language
> and pass it via Csound API. Looking forward to see it in the Csound source!
>
> thanks,
>
> tarmo
>
> On Sunday 03 January 2016 21:29:11 you wrote:
>
>  > In case anyone is interested, I put together a little opcode that
> will load
>
>  > the names of all files in a directory to a string array. I've
> attached the
>
>  > source code, and below is an example of it in use. Many thanks to Victor
>
>  > for talking me through the intricacies of array based opcodes.
>
>  >
>
>  > instr 1
>
>  > iCnt init 0
>
>  > SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
>
>  > iNumberOfFiles lenarray SFilenames
>
>  >
>
>  > until iCnt>=iNumberOfFiles do
>
>  > printf_i "Filename = %s \n", 1, SFilenames[iCnt]
>
>  > iCnt = iCnt+1
>
>  > od
>
>  > endin
>
>  >
>
>  > 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-01-05 09:05
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
added, thanks.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 4 Jan 2016, at 10:39, Rory Walsh  wrote:
> 
> Here is the updated source, a manual entry, and an example file. Thanks again for the help here. 
> 
> On 4 January 2016 at 10:05, Rory Walsh  wrote:
> And here I find some useful reading, sorry, I should have checked there before. 
> 
> http://csound.1045644.n5.nabble.com/Is-there-a-way-to-have-a-string-as-an-optional-td5722149.html#a5722151
> 
> 
> 
> On 4 January 2016 at 10:00, Rory Walsh  wrote:
> If I add a ? to my OENTRY, so it now looks like this:
> 
> { "directory",  S(TEST_STRUCT),   0, 1,      "S[]", "S?", (SUBR)directory, NULL, NULL   },
> 
> I get an "insufficient required arguments for opcode directory " error whenever I leave out the second parameter? 
> 
> On 4 January 2016 at 09:33, Victor Lazzarini  wrote:
> I think you will need to use “?" and check that the type of the argument (if used) is a string in your code to make
> sure users did not use anything else:
> 
> strcmp(“S", csound->GetTypeForArg(p->arg[i])->varTypeName) == 0
> 
> 
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> > On 3 Jan 2016, at 21:53, Rory Walsh  wrote:
> >
> > I was hoping to make the second string parameter optional so if left out it will simply list all files, but I could figure out what I need to change 'SS' to in my OENTRY structure?
> >
> > On 3 January 2016 at 21:41, Victor Lazzarini  wrote:
> > Man page, and I can add the code to the repo.
> > ========================
> > Dr Victor Lazzarini
> > Dean of Arts, Celtic Studies and Philosophy,
> > Maynooth University,
> > Maynooth, Co Kildare, Ireland
> > Tel: 00 353 7086936
> > Fax: 00 353 1 7086952
> >
> > > On 3 Jan 2016, at 21:29, Rory Walsh  wrote:
> > >
> > > In case anyone is interested, I put together a little opcode that will load the names of all files in a directory to a string array. I've attached the source code, and below is an example of it in use. Many thanks to Victor for talking me through the intricacies of array based opcodes.
> > >
> > > instr 1
> > > iCnt init 0
> > > SFilenames[] directory "/home/rory/Documents/NiM2PTi/Drums1", ".wav"
> > > iNumberOfFiles lenarray SFilenames
> > >
> > > until iCnt>=iNumberOfFiles do
> > >     printf_i "Filename = %s \n", 1, SFilenames[iCnt]
> > >     iCnt = iCnt+1
> > > od
> > > endin
> > > 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-01-05 12:05
FromMenno Knevel
SubjectRe: listing all files in a directory...
Hi Victor, 

got an error when building the manual:
opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
refsect1 line 27 and refentry




--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
Sent from the Csound - General mailing list archive at Nabble.com.

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-01-05 12:12
FromRory Walsh
SubjectRe: listing all files in a directory...
That'll be my fault as I was the one who submitted the manual entry. I'll see if i can set up a build for the manual here locally so I can test it. Or perhaps you can spot the problem?

On 5 January 2016 at 12:05, Menno Knevel <magknevel@gmail.com> wrote:
Hi Victor,

got an error when building the manual:
opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
refsect1 line 27 and refentry
</refentry>



--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
Sent from the Csound - General mailing list archive at Nabble.com.

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-01-05 12:44
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
That was written by Rory. I only pushed it. Not sure what the problem is.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 5 Jan 2016, at 12:05, Menno Knevel  wrote:
> 
> Hi Victor, 
> 
> got an error when building the manual:
> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
> refsect1 line 27 and refentry
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 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-01-05 12:57
Fromjpff
SubjectRe: listing all files in a directory...
I fixed this -- still a missing example


On Tue, 5 Jan 2016, Victor Lazzarini wrote:

> That was written by Rory. I only pushed it. Not sure what the problem is.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 5 Jan 2016, at 12:05, Menno Knevel  wrote:
>>
>> Hi Victor,
>>
>> got an error when building the manual:
>> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
>> refsect1 line 27 and refentry
>> 
>>
>>
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>> 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-01-05 13:18
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
forgot to convert to xml — wil do.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 5 Jan 2016, at 12:57, jpff  wrote:
> 
> I fixed this -- still a missing example
> 
> 
> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
> 
>> That was written by Rory. I only pushed it. Not sure what the problem is.
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 5 Jan 2016, at 12:05, Menno Knevel  wrote:
>>> 
>>> Hi Victor,
>>> 
>>> got an error when building the manual:
>>> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
>>> refsect1 line 27 and refentry
>>> 
>>> 
>>> 
>>> 
>>> --
>>> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>> 
>>> 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-01-05 13:24
Fromjpff
SubjectRe: listing all files in a directory...
no examples/directiry.xml or examples-xml/....


On Tue, 5 Jan 2016, Victor Lazzarini wrote:

> forgot to convert to xml — wil do.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 5 Jan 2016, at 12:57, jpff  wrote:
>>
>> I fixed this -- still a missing example
>>
>>
>> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
>>
>>> That was written by Rory. I only pushed it. Not sure what the problem is.
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 5 Jan 2016, at 12:05, Menno Knevel  wrote:
>>>>
>>>> Hi Victor,
>>>>
>>>> got an error when building the manual:
>>>> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
>>>> refsect1 line 27 and refentry
>>>> 
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>> 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-01-05 13:35
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
They are there now.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 5 Jan 2016, at 13:24, jpff  wrote:
> 
> no examples/directiry.xml or examples-xml/....
> 
> 
> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
> 
>> forgot to convert to xml — wil do.
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 5 Jan 2016, at 12:57, jpff  wrote:
>>> 
>>> I fixed this -- still a missing example
>>> 
>>> 
>>> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
>>> 
>>>> That was written by Rory. I only pushed it. Not sure what the problem is.
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Dean of Arts, Celtic Studies and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 5 Jan 2016, at 12:05, Menno Knevel  wrote:
>>>>> 
>>>>> Hi Victor,
>>>>> 
>>>>> got an error when building the manual:
>>>>> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
>>>>> refsect1 line 27 and refentry
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>> 
>>>>> 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-01-05 13:38
Fromjpff
SubjectRe: listing all files in a directory...
Yes -- all OK now


On Tue, 5 Jan 2016, Victor Lazzarini wrote:

> They are there now.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 5 Jan 2016, at 13:24, jpff  wrote:
>>
>> no examples/directiry.xml or examples-xml/....
>>
>>
>> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
>>
>>> forgot to convert to xml — wil do.

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-01-05 14:11
FromRory Walsh
SubjectRe: listing all files in a directory...
Attachmentsdirectory.csd  
I posted the example to this thread some days back. Here is it again.

On 5 January 2016 at 12:57, jpff <jpff@codemist.co.uk> wrote:
I fixed this -- still a missing example



On Tue, 5 Jan 2016, Victor Lazzarini wrote:

That was written by Rory. I only pushed it. Not sure what the problem is.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 5 Jan 2016, at 12:05, Menno Knevel <magknevel@GMAIL.COM> wrote:

Hi Victor,

got an error when building the manual:
opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
refsect1 line 27 and refentry
</refentry>



--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
Sent from the Csound - General mailing list archive at Nabble.com.

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-01-05 14:37
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
By the way, both of your examples had a misspelled closing tag. Interestingly, Csound
did not complain. The xml converter did.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 5 Jan 2016, at 14:11, Rory Walsh  wrote:
> 
> I posted the example to this thread some days back. Here is it again.
> 
> On 5 January 2016 at 12:57, jpff  wrote:
> I fixed this -- still a missing example
> 
> 
> 
> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
> 
> That was written by Rory. I only pushed it. Not sure what the problem is.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> On 5 Jan 2016, at 12:05, Menno Knevel  wrote:
> 
> Hi Victor,
> 
> got an error when building the manual:
> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
> refsect1 line 27 and refentry
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 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-01-05 14:40
FromRory Walsh
SubjectRe: listing all files in a directory...
Cheers. That'll be my sublime text snippet that I use to start each Csound file! 

On 5 January 2016 at 14:37, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
By the way, both of your examples had a misspelled closing tag. Interestingly, Csound
did not complain. The xml converter did.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 5 Jan 2016, at 14:11, Rory Walsh <rorywalsh@ear.ie> wrote:
>
> I posted the example to this thread some days back. Here is it again.
>
> On 5 January 2016 at 12:57, jpff <jpff@codemist.co.uk> wrote:
> I fixed this -- still a missing example
>
>
>
> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
>
> That was written by Rory. I only pushed it. Not sure what the problem is.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> On 5 Jan 2016, at 12:05, Menno Knevel <magknevel@GMAIL.COM> wrote:
>
> Hi Victor,
>
> got an error when building the manual:
> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
> refsect1 line 27 and refentry
> </refentry>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> 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 <directory.csd>

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-01-05 14:41
FromRory Walsh
SubjectRe: listing all files in a directory...
Yup. It turns out that my american English is not a good as it should be! 

On 5 January 2016 at 14:40, Rory Walsh <rorywalsh@ear.ie> wrote:
Cheers. That'll be my sublime text snippet that I use to start each Csound file! 

On 5 January 2016 at 14:37, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
By the way, both of your examples had a misspelled closing tag. Interestingly, Csound
did not complain. The xml converter did.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 5 Jan 2016, at 14:11, Rory Walsh <rorywalsh@ear.ie> wrote:
>
> I posted the example to this thread some days back. Here is it again.
>
> On 5 January 2016 at 12:57, jpff <jpff@codemist.co.uk> wrote:
> I fixed this -- still a missing example
>
>
>
> On Tue, 5 Jan 2016, Victor Lazzarini wrote:
>
> That was written by Rory. I only pushed it. Not sure what the problem is.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> On 5 Jan 2016, at 12:05, Menno Knevel <magknevel@GMAIL.COM> wrote:
>
> Hi Victor,
>
> got an error when building the manual:
> opcodes/directory.xml:70: parser error : Opening and ending tag mismatch:
> refsect1 line 27 and refentry
> </refentry>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5745883p5745984.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> 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 <directory.csd>

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-01-05 15:02
Fromjpff
SubjectRe: listing all files in a directory...
Of course  can be spelt  if 
preferred (I do).  Been like that since i wrote the onefile code




On Tue, 5 Jan 2016, Rory Walsh wrote:

> Yup. It turns out that my american English is not a good as it should be! 
> 
> On 5 January 2016 at 14:40, Rory Walsh  wrote:
>       Cheers. That'll be my sublime text snippet that I use to start
>       each Csound file! 
> 
> On 5 January 2016 at 14:37, Victor Lazzarini 
> wrote:
>       By the way, both of your examples had a misspelled closing
>       tag. Interestingly, Csound
>       did not complain. The xml converter did.
>       ========================
>       Dr Victor Lazzarini
>       Dean of Arts, Celtic Studies and Philosophy,
>       Maynooth University,
>       Maynooth, Co Kildare, Ireland
>       Tel: 00 353 7086936
>       Fax: 00 353 1 7086952
>
>       > On 5 Jan 2016, at 14:11, Rory Walsh 
>       wrote:
>       >
>       > I posted the example to this thread some days back. Here
>       is it again.
>       >
>       > On 5 January 2016 at 12:57, jpff 
>       wrote:
>       > I fixed this -- still a missing example
>       >
>       >
>       >
>       > On Tue, 5 Jan 2016, Victor Lazzarini wrote:
>       >
>       > That was written by Rory. I only pushed it. Not sure what
>       the problem is.
>       > ========================
>       > Dr Victor Lazzarini
>       > Dean of Arts, Celtic Studies and Philosophy,
>       > Maynooth University,
>       > Maynooth, Co Kildare, Ireland
>       > Tel: 00 353 7086936
>       > Fax: 00 353 1 7086952
>       >
>       > On 5 Jan 2016, at 12:05, Menno Knevel
>        wrote:
>       >
>       > Hi Victor,
>       >
>       > got an error when building the manual:
>       > opcodes/directory.xml:70: parser error : Opening and
>       ending tag mismatch:
>       > refsect1 line 27 and refentry
>       > 
>       >
>       >
>       >
>       > --
>       > View this message in context:http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5
>       745883p5745984.html
>       > Sent from the Csound - General mailing list archive at
>       Nabble.com.
>       >
>       > 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-01-05 15:06
FromVictor Lazzarini
SubjectRe: listing all files in a directory...
Someone needs to edit the XML converter script to accept that as well.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 5 Jan 2016, at 15:02, jpff  wrote:
> 
> Of course  can be spelt  if preferred (I do).  Been like that since i wrote the onefile code
> 
> 
> 
> 
> On Tue, 5 Jan 2016, Rory Walsh wrote:
> 
>> Yup. It turns out that my american English is not a good as it should be! 
>> On 5 January 2016 at 14:40, Rory Walsh  wrote:
>>      Cheers. That'll be my sublime text snippet that I use to start
>>      each Csound file! 
>> On 5 January 2016 at 14:37, Victor Lazzarini 
>> wrote:
>>      By the way, both of your examples had a misspelled closing
>>      tag. Interestingly, Csound
>>      did not complain. The xml converter did.
>>      ========================
>>      Dr Victor Lazzarini
>>      Dean of Arts, Celtic Studies and Philosophy,
>>      Maynooth University,
>>      Maynooth, Co Kildare, Ireland
>>      Tel: 00 353 7086936
>>      Fax: 00 353 1 7086952
>> 
>>      > On 5 Jan 2016, at 14:11, Rory Walsh 
>>      wrote:
>>      >
>>      > I posted the example to this thread some days back. Here
>>      is it again.
>>      >
>>      > On 5 January 2016 at 12:57, jpff 
>>      wrote:
>>      > I fixed this -- still a missing example
>>      >
>>      >
>>      >
>>      > On Tue, 5 Jan 2016, Victor Lazzarini wrote:
>>      >
>>      > That was written by Rory. I only pushed it. Not sure what
>>      the problem is.
>>      > ========================
>>      > Dr Victor Lazzarini
>>      > Dean of Arts, Celtic Studies and Philosophy,
>>      > Maynooth University,
>>      > Maynooth, Co Kildare, Ireland
>>      > Tel: 00 353 7086936
>>      > Fax: 00 353 1 7086952
>>      >
>>      > On 5 Jan 2016, at 12:05, Menno Knevel
>>       wrote:
>>      >
>>      > Hi Victor,
>>      >
>>      > got an error when building the manual:
>>      > opcodes/directory.xml:70: parser error : Opening and
>>      ending tag mismatch:
>>      > refsect1 line 27 and refentry
>>      > 
>>      >
>>      >
>>      >
>>      > --
>>      > View this message in context:http://csound.1045644.n5.nabble.com/Csnd-listing-all-files-in-a-directory-tp5
>>      745883p5745984.html
>>      > Sent from the Csound - General mailing list archive at
>>      Nabble.com.
>>      >
>>      > 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