Csound Csound-dev Csound-tekno Search About

[Cs-dev] parsing Csound help files..

Date2013-05-11 00:59
FromRory Walsh
Subject[Cs-dev] parsing Csound help files..
I don't suppose anyone has written a little script that will parse the
help files for syntax and info about an opcode? Stefano has a nice
opcodes txt file, but I'm not sure how he creates it. It creates the
following type strings for each opcode:

"oscil";"Signal Generators:Basic Oscillators";"A simple
oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"

But I'd like to include the description of each of the inputs too for
those just starting out. I guess I could try to parse the xml directly
and produce a text file from that? If anyone handy scripts lying
around for this it would be great :)

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 07:51
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsScreenshot - 05112013 - 07:50:12 AM.png  None  None  
This is proving rather nasty. Take the following for example:

  
    Performance
    
      kamp, xamp -- amplitude
    

    
      kcps, xcps -- frequency in cycles per second.
    

    
      The oscil opcode generates periodic control
(or audio) signals consisting of the value of
kamp (xamp) times the value
returned from control rate (audio rate) sampling of a stored function
table. The internal phase is simultaneously advanced in accordance
with the kcps or xcps input
value.
    
    
      Table ifn is incrementally sampled modulo
the table length and the value obtained is multiplied by
amp.
    
    
      If you need to change the oscillator table with a k-rate signal,
you can use oscilikt.
    

 

I only want to retrieve the first two para as I don't need the longer
description, but it's impossible tell where performance parameters
stop and the performance blurb begins. I could search the document for
each line containing the specified input parameters, but if I do that
I might as well just parse the document as text and not xml, which
will be rather tedious....

Any ideas? You'll see from the screenshot what I'm trying to do. I
just want to give users the option of displaying the info for each
input parameter as well as the basic syntax.

On 11 May 2013 00:59, Rory Walsh  wrote:
> I don't suppose anyone has written a little script that will parse the
> help files for syntax and info about an opcode? Stefano has a nice
> opcodes txt file, but I'm not sure how he creates it. It creates the
> following type strings for each opcode:
>
> "oscil";"Signal Generators:Basic Oscillators";"A simple
> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>
> But I'd like to include the description of each of the inputs too for
> those just starting out. I guess I could try to parse the xml directly
> and produce a text file from that? If anyone handy scripts lying
> around for this it would be great :)

Date2013-05-11 08:03
FromPINOT Francois
SubjectRe: [Cs-dev] parsing Csound help files..
A solution might be using an xsl transformation. I'll have a look this 
afternoon and let you know.

Regards

François

Le 11/05/2013 08:51, Rory Walsh a écrit :
> This is proving rather nasty. Take the following for example:
>
>    
>      Performance
>      
>        kamp, xamp -- amplitude
>      
>
>      
>        kcps, xcps -- frequency in cycles per second.
>      
>
>      
>        The oscil opcode generates periodic control
> (or audio) signals consisting of the value of
> kamp (xamp) times the value
> returned from control rate (audio rate) sampling of a stored function
> table. The internal phase is simultaneously advanced in accordance
> with the kcps or xcps input
> value.
>      
>      
>        Table ifn is incrementally sampled modulo
> the table length and the value obtained is multiplied by
> amp.
>      
>      
>        If you need to change the oscillator table with a k-rate signal,
> you can use  linkend="oscilikt">oscilikt.
>      
>
>   
>
> I only want to retrieve the first two para as I don't need the longer
> description, but it's impossible tell where performance parameters
> stop and the performance blurb begins. I could search the document for
> each line containing the specified input parameters, but if I do that
> I might as well just parse the document as text and not xml, which
> will be rather tedious....
>
> Any ideas? You'll see from the screenshot what I'm trying to do. I
> just want to give users the option of displaying the info for each
> input parameter as well as the basic syntax.
>
> On 11 May 2013 00:59, Rory Walsh  wrote:
>> I don't suppose anyone has written a little script that will parse the
>> help files for syntax and info about an opcode? Stefano has a nice
>> opcodes txt file, but I'm not sure how he creates it. It creates the
>> following type strings for each opcode:
>>
>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>
>> But I'd like to include the description of each of the inputs too for
>> those just starting out. I guess I could try to parse the xml directly
>> and produce a text file from that? If anyone handy scripts lying
>> around for this it would be great :)
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 08:05
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
That would be great Francois. Much appreaciated. Btw, are you in Graz
for the LAC?

On 11 May 2013 08:03, PINOT Francois  wrote:
> A solution might be using an xsl transformation. I'll have a look this
> afternoon and let you know.
>
> Regards
>
> François
>
> Le 11/05/2013 08:51, Rory Walsh a écrit :
>> This is proving rather nasty. Take the following for example:
>>
>>    
>>      Performance
>>      
>>        kamp, xamp -- amplitude
>>      
>>
>>      
>>        kcps, xcps -- frequency in cycles per second.
>>      
>>
>>      
>>        The oscil opcode generates periodic control
>> (or audio) signals consisting of the value of
>> kamp (xamp) times the value
>> returned from control rate (audio rate) sampling of a stored function
>> table. The internal phase is simultaneously advanced in accordance
>> with the kcps or xcps input
>> value.
>>      
>>      
>>        Table ifn is incrementally sampled modulo
>> the table length and the value obtained is multiplied by
>> amp.
>>      
>>      
>>        If you need to change the oscillator table with a k-rate signal,
>> you can use > linkend="oscilikt">oscilikt.
>>      
>>
>>   
>>
>> I only want to retrieve the first two para as I don't need the longer
>> description, but it's impossible tell where performance parameters
>> stop and the performance blurb begins. I could search the document for
>> each line containing the specified input parameters, but if I do that
>> I might as well just parse the document as text and not xml, which
>> will be rather tedious....
>>
>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>> just want to give users the option of displaying the info for each
>> input parameter as well as the basic syntax.
>>
>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>> I don't suppose anyone has written a little script that will parse the
>>> help files for syntax and info about an opcode? Stefano has a nice
>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>> following type strings for each opcode:
>>>
>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>
>>> But I'd like to include the description of each of the inputs too for
>>> those just starting out. I guess I could try to parse the xml directly
>>> and produce a text file from that? If anyone handy scripts lying
>>> around for this it would be great :)
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 08:15
FromPINOT Francois
SubjectRe: [Cs-dev] parsing Csound help files..
No. I'll try to fly to Boston for the next Csound conference but I'm not 
sure yet.

Le 11/05/2013 09:05, Rory Walsh a écrit :
> That would be great Francois. Much appreaciated. Btw, are you in Graz
> for the LAC?
>
> On 11 May 2013 08:03, PINOT Francois  wrote:
>> A solution might be using an xsl transformation. I'll have a look this
>> afternoon and let you know.
>>
>> Regards
>>
>> François
>>
>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>> This is proving rather nasty. Take the following for example:
>>>
>>>     
>>>       Performance
>>>       
>>>         kamp, xamp -- amplitude
>>>       
>>>
>>>       
>>>         kcps, xcps -- frequency in cycles per second.
>>>       
>>>
>>>       
>>>         The oscil opcode generates periodic control
>>> (or audio) signals consisting of the value of
>>> kamp (xamp) times the value
>>> returned from control rate (audio rate) sampling of a stored function
>>> table. The internal phase is simultaneously advanced in accordance
>>> with the kcps or xcps input
>>> value.
>>>       
>>>       
>>>         Table ifn is incrementally sampled modulo
>>> the table length and the value obtained is multiplied by
>>> amp.
>>>       
>>>       
>>>         If you need to change the oscillator table with a k-rate signal,
>>> you can use >> linkend="oscilikt">oscilikt.
>>>       
>>>
>>>    
>>>
>>> I only want to retrieve the first two para as I don't need the longer
>>> description, but it's impossible tell where performance parameters
>>> stop and the performance blurb begins. I could search the document for
>>> each line containing the specified input parameters, but if I do that
>>> I might as well just parse the document as text and not xml, which
>>> will be rather tedious....
>>>
>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>> just want to give users the option of displaying the info for each
>>> input parameter as well as the basic syntax.
>>>
>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>> I don't suppose anyone has written a little script that will parse the
>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>> following type strings for each opcode:
>>>>
>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>
>>>> But I'd like to include the description of each of the inputs too for
>>>> those just starting out. I guess I could try to parse the xml directly
>>>> and produce a text file from that? If anyone handy scripts lying
>>>> around for this it would be great :)
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 08:17
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
I speak for everyone when I say I hope you can make it!

On 11 May 2013 08:15, PINOT Francois  wrote:
> No. I'll try to fly to Boston for the next Csound conference but I'm not
> sure yet.
>
> Le 11/05/2013 09:05, Rory Walsh a écrit :
>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>> for the LAC?
>>
>> On 11 May 2013 08:03, PINOT Francois  wrote:
>>> A solution might be using an xsl transformation. I'll have a look this
>>> afternoon and let you know.
>>>
>>> Regards
>>>
>>> François
>>>
>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>> This is proving rather nasty. Take the following for example:
>>>>
>>>>     
>>>>       Performance
>>>>       
>>>>         kamp, xamp -- amplitude
>>>>       
>>>>
>>>>       
>>>>         kcps, xcps -- frequency in cycles per second.
>>>>       
>>>>
>>>>       
>>>>         The oscil opcode generates periodic control
>>>> (or audio) signals consisting of the value of
>>>> kamp (xamp) times the value
>>>> returned from control rate (audio rate) sampling of a stored function
>>>> table. The internal phase is simultaneously advanced in accordance
>>>> with the kcps or xcps input
>>>> value.
>>>>       
>>>>       
>>>>         Table ifn is incrementally sampled modulo
>>>> the table length and the value obtained is multiplied by
>>>> amp.
>>>>       
>>>>       
>>>>         If you need to change the oscillator table with a k-rate signal,
>>>> you can use >>> linkend="oscilikt">oscilikt.
>>>>       
>>>>
>>>>    
>>>>
>>>> I only want to retrieve the first two para as I don't need the longer
>>>> description, but it's impossible tell where performance parameters
>>>> stop and the performance blurb begins. I could search the document for
>>>> each line containing the specified input parameters, but if I do that
>>>> I might as well just parse the document as text and not xml, which
>>>> will be rather tedious....
>>>>
>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>> just want to give users the option of displaying the info for each
>>>> input parameter as well as the basic syntax.
>>>>
>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>>> I don't suppose anyone has written a little script that will parse the
>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>> following type strings for each opcode:
>>>>>
>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>
>>>>> But I'd like to include the description of each of the inputs too for
>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>> around for this it would be great :)
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 08:54
FromSteven Yi
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsquickrefBlue.py  None  None  
Hi Rory,

This is the file I use for blue.  It is based on the quickref.py that
comes with the manual and was slightly modified.  It generates an XML
file; hopefully should be easy to modify for yourself.  If you do some
changes, please send a copy here or to me so I can take advantage of
it. :P

steven

On Sat, May 11, 2013 at 9:17 AM, Rory Walsh  wrote:
> I speak for everyone when I say I hope you can make it!
>
> On 11 May 2013 08:15, PINOT Francois  wrote:
>> No. I'll try to fly to Boston for the next Csound conference but I'm not
>> sure yet.
>>
>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>>> for the LAC?
>>>
>>> On 11 May 2013 08:03, PINOT Francois  wrote:
>>>> A solution might be using an xsl transformation. I'll have a look this
>>>> afternoon and let you know.
>>>>
>>>> Regards
>>>>
>>>> François
>>>>
>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>>> This is proving rather nasty. Take the following for example:
>>>>>
>>>>>     
>>>>>       Performance
>>>>>       
>>>>>         kamp, xamp -- amplitude
>>>>>       
>>>>>
>>>>>       
>>>>>         kcps, xcps -- frequency in cycles per second.
>>>>>       
>>>>>
>>>>>       
>>>>>         The oscil opcode generates periodic control
>>>>> (or audio) signals consisting of the value of
>>>>> kamp (xamp) times the value
>>>>> returned from control rate (audio rate) sampling of a stored function
>>>>> table. The internal phase is simultaneously advanced in accordance
>>>>> with the kcps or xcps input
>>>>> value.
>>>>>       
>>>>>       
>>>>>         Table ifn is incrementally sampled modulo
>>>>> the table length and the value obtained is multiplied by
>>>>> amp.
>>>>>       
>>>>>       
>>>>>         If you need to change the oscillator table with a k-rate signal,
>>>>> you can use >>>> linkend="oscilikt">oscilikt.
>>>>>       
>>>>>
>>>>>    
>>>>>
>>>>> I only want to retrieve the first two para as I don't need the longer
>>>>> description, but it's impossible tell where performance parameters
>>>>> stop and the performance blurb begins. I could search the document for
>>>>> each line containing the specified input parameters, but if I do that
>>>>> I might as well just parse the document as text and not xml, which
>>>>> will be rather tedious....
>>>>>
>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>>> just want to give users the option of displaying the info for each
>>>>> input parameter as well as the basic syntax.
>>>>>
>>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>>>> I don't suppose anyone has written a little script that will parse the
>>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>>> following type strings for each opcode:
>>>>>>
>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>>
>>>>>> But I'd like to include the description of each of the inputs too for
>>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>>> around for this it would be great :)
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>> leaders in the field. The early access version is available now.
>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2013-05-11 08:56
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
Can you send me a generated xml file so I can quickly see the output?

On 11 May 2013 08:54, Steven Yi  wrote:
> Hi Rory,
>
> This is the file I use for blue.  It is based on the quickref.py that
> comes with the manual and was slightly modified.  It generates an XML
> file; hopefully should be easy to modify for yourself.  If you do some
> changes, please send a copy here or to me so I can take advantage of
> it. :P
>
> steven
>
> On Sat, May 11, 2013 at 9:17 AM, Rory Walsh  wrote:
>> I speak for everyone when I say I hope you can make it!
>>
>> On 11 May 2013 08:15, PINOT Francois  wrote:
>>> No. I'll try to fly to Boston for the next Csound conference but I'm not
>>> sure yet.
>>>
>>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>>>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>>>> for the LAC?
>>>>
>>>> On 11 May 2013 08:03, PINOT Francois  wrote:
>>>>> A solution might be using an xsl transformation. I'll have a look this
>>>>> afternoon and let you know.
>>>>>
>>>>> Regards
>>>>>
>>>>> François
>>>>>
>>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>>>> This is proving rather nasty. Take the following for example:
>>>>>>
>>>>>>     
>>>>>>       Performance
>>>>>>       
>>>>>>         kamp, xamp -- amplitude
>>>>>>       
>>>>>>
>>>>>>       
>>>>>>         kcps, xcps -- frequency in cycles per second.
>>>>>>       
>>>>>>
>>>>>>       
>>>>>>         The oscil opcode generates periodic control
>>>>>> (or audio) signals consisting of the value of
>>>>>> kamp (xamp) times the value
>>>>>> returned from control rate (audio rate) sampling of a stored function
>>>>>> table. The internal phase is simultaneously advanced in accordance
>>>>>> with the kcps or xcps input
>>>>>> value.
>>>>>>       
>>>>>>       
>>>>>>         Table ifn is incrementally sampled modulo
>>>>>> the table length and the value obtained is multiplied by
>>>>>> amp.
>>>>>>       
>>>>>>       
>>>>>>         If you need to change the oscillator table with a k-rate signal,
>>>>>> you can use >>>>> linkend="oscilikt">oscilikt.
>>>>>>       
>>>>>>
>>>>>>    
>>>>>>
>>>>>> I only want to retrieve the first two para as I don't need the longer
>>>>>> description, but it's impossible tell where performance parameters
>>>>>> stop and the performance blurb begins. I could search the document for
>>>>>> each line containing the specified input parameters, but if I do that
>>>>>> I might as well just parse the document as text and not xml, which
>>>>>> will be rather tedious....
>>>>>>
>>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>>>> just want to give users the option of displaying the info for each
>>>>>> input parameter as well as the basic syntax.
>>>>>>
>>>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>>>>> I don't suppose anyone has written a little script that will parse the
>>>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>>>> following type strings for each opcode:
>>>>>>>
>>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>>>
>>>>>>> But I'd like to include the description of each of the inputs too for
>>>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>>>> around for this it would be great :)
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>> leaders in the field. The early access version is available now.
>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 09:01
FromSteven Yi
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsquickrefBlue.py  opcodes.xml  None  None  
Here's the xml output, plus another version of the script.  The script
I posted earlier is an older one.

Cheers!
steven

On Sat, May 11, 2013 at 9:56 AM, Rory Walsh  wrote:
> Can you send me a generated xml file so I can quickly see the output?
>
> On 11 May 2013 08:54, Steven Yi  wrote:
>> Hi Rory,
>>
>> This is the file I use for blue.  It is based on the quickref.py that
>> comes with the manual and was slightly modified.  It generates an XML
>> file; hopefully should be easy to modify for yourself.  If you do some
>> changes, please send a copy here or to me so I can take advantage of
>> it. :P
>>
>> steven
>>
>> On Sat, May 11, 2013 at 9:17 AM, Rory Walsh  wrote:
>>> I speak for everyone when I say I hope you can make it!
>>>
>>> On 11 May 2013 08:15, PINOT Francois  wrote:
>>>> No. I'll try to fly to Boston for the next Csound conference but I'm not
>>>> sure yet.
>>>>
>>>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>>>>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>>>>> for the LAC?
>>>>>
>>>>> On 11 May 2013 08:03, PINOT Francois  wrote:
>>>>>> A solution might be using an xsl transformation. I'll have a look this
>>>>>> afternoon and let you know.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> François
>>>>>>
>>>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>>>>> This is proving rather nasty. Take the following for example:
>>>>>>>
>>>>>>>     
>>>>>>>       Performance
>>>>>>>       
>>>>>>>         kamp, xamp -- amplitude
>>>>>>>       
>>>>>>>
>>>>>>>       
>>>>>>>         kcps, xcps -- frequency in cycles per second.
>>>>>>>       
>>>>>>>
>>>>>>>       
>>>>>>>         The oscil opcode generates periodic control
>>>>>>> (or audio) signals consisting of the value of
>>>>>>> kamp (xamp) times the value
>>>>>>> returned from control rate (audio rate) sampling of a stored function
>>>>>>> table. The internal phase is simultaneously advanced in accordance
>>>>>>> with the kcps or xcps input
>>>>>>> value.
>>>>>>>       
>>>>>>>       
>>>>>>>         Table ifn is incrementally sampled modulo
>>>>>>> the table length and the value obtained is multiplied by
>>>>>>> amp.
>>>>>>>       
>>>>>>>       
>>>>>>>         If you need to change the oscillator table with a k-rate signal,
>>>>>>> you can use >>>>>> linkend="oscilikt">oscilikt.
>>>>>>>       
>>>>>>>
>>>>>>>    
>>>>>>>
>>>>>>> I only want to retrieve the first two para as I don't need the longer
>>>>>>> description, but it's impossible tell where performance parameters
>>>>>>> stop and the performance blurb begins. I could search the document for
>>>>>>> each line containing the specified input parameters, but if I do that
>>>>>>> I might as well just parse the document as text and not xml, which
>>>>>>> will be rather tedious....
>>>>>>>
>>>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>>>>> just want to give users the option of displaying the info for each
>>>>>>> input parameter as well as the basic syntax.
>>>>>>>
>>>>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>>>>>> I don't suppose anyone has written a little script that will parse the
>>>>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>>>>> following type strings for each opcode:
>>>>>>>>
>>>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>>>>
>>>>>>>> But I'd like to include the description of each of the inputs too for
>>>>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>>>>> around for this it would be great :)
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>> leaders in the field. The early access version is available now.
>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2013-05-11 09:06
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
Thanks Steven. Looks like I'll still run into the same problems as I
did in my own implementation. :(

On 11 May 2013 09:01, Steven Yi  wrote:
> Here's the xml output, plus another version of the script.  The script
> I posted earlier is an older one.
>
> Cheers!
> steven
>
> On Sat, May 11, 2013 at 9:56 AM, Rory Walsh  wrote:
>> Can you send me a generated xml file so I can quickly see the output?
>>
>> On 11 May 2013 08:54, Steven Yi  wrote:
>>> Hi Rory,
>>>
>>> This is the file I use for blue.  It is based on the quickref.py that
>>> comes with the manual and was slightly modified.  It generates an XML
>>> file; hopefully should be easy to modify for yourself.  If you do some
>>> changes, please send a copy here or to me so I can take advantage of
>>> it. :P
>>>
>>> steven
>>>
>>> On Sat, May 11, 2013 at 9:17 AM, Rory Walsh  wrote:
>>>> I speak for everyone when I say I hope you can make it!
>>>>
>>>> On 11 May 2013 08:15, PINOT Francois  wrote:
>>>>> No. I'll try to fly to Boston for the next Csound conference but I'm not
>>>>> sure yet.
>>>>>
>>>>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>>>>>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>>>>>> for the LAC?
>>>>>>
>>>>>> On 11 May 2013 08:03, PINOT Francois  wrote:
>>>>>>> A solution might be using an xsl transformation. I'll have a look this
>>>>>>> afternoon and let you know.
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> François
>>>>>>>
>>>>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>>>>>> This is proving rather nasty. Take the following for example:
>>>>>>>>
>>>>>>>>     
>>>>>>>>       Performance
>>>>>>>>       
>>>>>>>>         kamp, xamp -- amplitude
>>>>>>>>       
>>>>>>>>
>>>>>>>>       
>>>>>>>>         kcps, xcps -- frequency in cycles per second.
>>>>>>>>       
>>>>>>>>
>>>>>>>>       
>>>>>>>>         The oscil opcode generates periodic control
>>>>>>>> (or audio) signals consisting of the value of
>>>>>>>> kamp (xamp) times the value
>>>>>>>> returned from control rate (audio rate) sampling of a stored function
>>>>>>>> table. The internal phase is simultaneously advanced in accordance
>>>>>>>> with the kcps or xcps input
>>>>>>>> value.
>>>>>>>>       
>>>>>>>>       
>>>>>>>>         Table ifn is incrementally sampled modulo
>>>>>>>> the table length and the value obtained is multiplied by
>>>>>>>> amp.
>>>>>>>>       
>>>>>>>>       
>>>>>>>>         If you need to change the oscillator table with a k-rate signal,
>>>>>>>> you can use >>>>>>> linkend="oscilikt">oscilikt.
>>>>>>>>       
>>>>>>>>
>>>>>>>>    
>>>>>>>>
>>>>>>>> I only want to retrieve the first two para as I don't need the longer
>>>>>>>> description, but it's impossible tell where performance parameters
>>>>>>>> stop and the performance blurb begins. I could search the document for
>>>>>>>> each line containing the specified input parameters, but if I do that
>>>>>>>> I might as well just parse the document as text and not xml, which
>>>>>>>> will be rather tedious....
>>>>>>>>
>>>>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>>>>>> just want to give users the option of displaying the info for each
>>>>>>>> input parameter as well as the basic syntax.
>>>>>>>>
>>>>>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>>>>>>> I don't suppose anyone has written a little script that will parse the
>>>>>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>>>>>> following type strings for each opcode:
>>>>>>>>>
>>>>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>>>>>
>>>>>>>>> But I'd like to include the description of each of the inputs too for
>>>>>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>>>>>> around for this it would be great :)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>> leaders in the field. The early access version is available now.
>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>> leaders in the field. The early access version is available now.
>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 09:27
FromSteven Yi
SubjectRe: [Cs-dev] parsing Csound help files..
Hi Rory,

Could you give an example of the XML output you would want to get?  I
think I'm having a little difficulty quite getting what you're looking
for and having an example output would clear that up.

Thanks!
steven

On Sat, May 11, 2013 at 10:06 AM, Rory Walsh  wrote:
> Thanks Steven. Looks like I'll still run into the same problems as I
> did in my own implementation. :(
>
> On 11 May 2013 09:01, Steven Yi  wrote:
>> Here's the xml output, plus another version of the script.  The script
>> I posted earlier is an older one.
>>
>> Cheers!
>> steven
>>
>> On Sat, May 11, 2013 at 9:56 AM, Rory Walsh  wrote:
>>> Can you send me a generated xml file so I can quickly see the output?
>>>
>>> On 11 May 2013 08:54, Steven Yi  wrote:
>>>> Hi Rory,
>>>>
>>>> This is the file I use for blue.  It is based on the quickref.py that
>>>> comes with the manual and was slightly modified.  It generates an XML
>>>> file; hopefully should be easy to modify for yourself.  If you do some
>>>> changes, please send a copy here or to me so I can take advantage of
>>>> it. :P
>>>>
>>>> steven
>>>>
>>>> On Sat, May 11, 2013 at 9:17 AM, Rory Walsh  wrote:
>>>>> I speak for everyone when I say I hope you can make it!
>>>>>
>>>>> On 11 May 2013 08:15, PINOT Francois  wrote:
>>>>>> No. I'll try to fly to Boston for the next Csound conference but I'm not
>>>>>> sure yet.
>>>>>>
>>>>>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>>>>>>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>>>>>>> for the LAC?
>>>>>>>
>>>>>>> On 11 May 2013 08:03, PINOT Francois  wrote:
>>>>>>>> A solution might be using an xsl transformation. I'll have a look this
>>>>>>>> afternoon and let you know.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> François
>>>>>>>>
>>>>>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>>>>>>> This is proving rather nasty. Take the following for example:
>>>>>>>>>
>>>>>>>>>     
>>>>>>>>>       Performance
>>>>>>>>>       
>>>>>>>>>         kamp, xamp -- amplitude
>>>>>>>>>       
>>>>>>>>>
>>>>>>>>>       
>>>>>>>>>         kcps, xcps -- frequency in cycles per second.
>>>>>>>>>       
>>>>>>>>>
>>>>>>>>>       
>>>>>>>>>         The oscil opcode generates periodic control
>>>>>>>>> (or audio) signals consisting of the value of
>>>>>>>>> kamp (xamp) times the value
>>>>>>>>> returned from control rate (audio rate) sampling of a stored function
>>>>>>>>> table. The internal phase is simultaneously advanced in accordance
>>>>>>>>> with the kcps or xcps input
>>>>>>>>> value.
>>>>>>>>>       
>>>>>>>>>       
>>>>>>>>>         Table ifn is incrementally sampled modulo
>>>>>>>>> the table length and the value obtained is multiplied by
>>>>>>>>> amp.
>>>>>>>>>       
>>>>>>>>>       
>>>>>>>>>         If you need to change the oscillator table with a k-rate signal,
>>>>>>>>> you can use >>>>>>>> linkend="oscilikt">oscilikt.
>>>>>>>>>       
>>>>>>>>>
>>>>>>>>>    
>>>>>>>>>
>>>>>>>>> I only want to retrieve the first two para as I don't need the longer
>>>>>>>>> description, but it's impossible tell where performance parameters
>>>>>>>>> stop and the performance blurb begins. I could search the document for
>>>>>>>>> each line containing the specified input parameters, but if I do that
>>>>>>>>> I might as well just parse the document as text and not xml, which
>>>>>>>>> will be rather tedious....
>>>>>>>>>
>>>>>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>>>>>>> just want to give users the option of displaying the info for each
>>>>>>>>> input parameter as well as the basic syntax.
>>>>>>>>>
>>>>>>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>>>>>>>> I don't suppose anyone has written a little script that will parse the
>>>>>>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>>>>>>> following type strings for each opcode:
>>>>>>>>>>
>>>>>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>>>>>>
>>>>>>>>>> But I'd like to include the description of each of the inputs too for
>>>>>>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>>>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>>>>>>> around for this it would be great :)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>> leaders in the field. The early access version is available now.
>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>> leaders in the field. The early access version is available now.
>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 09:32
FromPINOT Francois
SubjectRe: [Cs-dev] parsing Csound help files..
Hi Rory and Steven,

I'm following this thread and I think that Steven's solution (modifying 
quickref.py) is  better than using xslt. But like Steven, I'm not sure 
of what you're looking for Rory. Do you need an xml file or a text file? 
Could you give a sample line of what you want in this file?

Thanks

Francois

> Hi Rory,
>
> Could you give an example of the XML output you would want to get?  I
> think I'm having a little difficulty quite getting what you're looking
> for and having an example output would clear that up.
>
> Thanks!
> steven
>
> On Sat, May 11, 2013 at 10:06 AM, Rory Walsh  wrote:
>> Thanks Steven. Looks like I'll still run into the same problems as I
>> did in my own implementation. :(
>>
>> On 11 May 2013 09:01, Steven Yi  wrote:
>>> Here's the xml output, plus another version of the script.  The script
>>> I posted earlier is an older one.
>>>
>>> Cheers!
>>> steven
>>>
>>> On Sat, May 11, 2013 at 9:56 AM, Rory Walsh  wrote:
>>>> Can you send me a generated xml file so I can quickly see the output?
>>>>
>>>> On 11 May 2013 08:54, Steven Yi  wrote:
>>>>> Hi Rory,
>>>>>
>>>>> This is the file I use for blue.  It is based on the quickref.py that
>>>>> comes with the manual and was slightly modified.  It generates an XML
>>>>> file; hopefully should be easy to modify for yourself.  If you do some
>>>>> changes, please send a copy here or to me so I can take advantage of
>>>>> it. :P
>>>>>
>>>>> steven
>>>>>
>>>>> On Sat, May 11, 2013 at 9:17 AM, Rory Walsh  wrote:
>>>>>> I speak for everyone when I say I hope you can make it!
>>>>>>
>>>>>> On 11 May 2013 08:15, PINOT Francois  wrote:
>>>>>>> No. I'll try to fly to Boston for the next Csound conference but I'm not
>>>>>>> sure yet.
>>>>>>>
>>>>>>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>>>>>>>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>>>>>>>> for the LAC?
>>>>>>>>
>>>>>>>> On 11 May 2013 08:03, PINOT Francois  wrote:
>>>>>>>>> A solution might be using an xsl transformation. I'll have a look this
>>>>>>>>> afternoon and let you know.
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>>
>>>>>>>>> François
>>>>>>>>>
>>>>>>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>>>>>>>> This is proving rather nasty. Take the following for example:
>>>>>>>>>>
>>>>>>>>>>      
>>>>>>>>>>        Performance
>>>>>>>>>>        
>>>>>>>>>>          kamp, xamp -- amplitude
>>>>>>>>>>        
>>>>>>>>>>
>>>>>>>>>>        
>>>>>>>>>>          kcps, xcps -- frequency in cycles per second.
>>>>>>>>>>        
>>>>>>>>>>
>>>>>>>>>>        
>>>>>>>>>>          The oscil opcode generates periodic control
>>>>>>>>>> (or audio) signals consisting of the value of
>>>>>>>>>> kamp (xamp) times the value
>>>>>>>>>> returned from control rate (audio rate) sampling of a stored function
>>>>>>>>>> table. The internal phase is simultaneously advanced in accordance
>>>>>>>>>> with the kcps or xcps input
>>>>>>>>>> value.
>>>>>>>>>>        
>>>>>>>>>>        
>>>>>>>>>>          Table ifn is incrementally sampled modulo
>>>>>>>>>> the table length and the value obtained is multiplied by
>>>>>>>>>> amp.
>>>>>>>>>>        
>>>>>>>>>>        
>>>>>>>>>>          If you need to change the oscillator table with a k-rate signal,
>>>>>>>>>> you can use >>>>>>>>> linkend="oscilikt">oscilikt.
>>>>>>>>>>        
>>>>>>>>>>
>>>>>>>>>>     
>>>>>>>>>>
>>>>>>>>>> I only want to retrieve the first two para as I don't need the longer
>>>>>>>>>> description, but it's impossible tell where performance parameters
>>>>>>>>>> stop and the performance blurb begins. I could search the document for
>>>>>>>>>> each line containing the specified input parameters, but if I do that
>>>>>>>>>> I might as well just parse the document as text and not xml, which
>>>>>>>>>> will be rather tedious....
>>>>>>>>>>
>>>>>>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>>>>>>>> just want to give users the option of displaying the info for each
>>>>>>>>>> input parameter as well as the basic syntax.
>>>>>>>>>>
>>>>>>>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>>>>>>>>>>> I don't suppose anyone has written a little script that will parse the
>>>>>>>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>>>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>>>>>>>> following type strings for each opcode:
>>>>>>>>>>>
>>>>>>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>>>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>>>>>>>
>>>>>>>>>>> But I'd like to include the description of each of the inputs too for
>>>>>>>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>>>>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>>>>>>>> around for this it would be great :)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>> leaders in the field. The early access version is available now.
>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>> leaders in the field. The early access version is available now.
>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 09:39
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
A single line of text tokens is what I'm working with now, but I can
go to xml just as easily. The output from Steven and Andres script is
fine, but I would like more info. Would something like this be
possible?

      
        oscil
        ares 	oscil	 xamp, xcps, ifn [, iphs]
        oscil reads table ifn sequentially and repeatedly
at a frequency xcps. The amplitude is scaled by xamp.
        ifn -- function table number. Requires a wrap-around
guard point .iphs (optional, default=0) -- initial phase of sampling,
expressed as a fraction of a cycle (0 to 1). A negative value will
cause phase initialization to be skipped. The default value is
0.
        kamp, xamp -- amplitude kcps, xcps -- frequency in
cycles per second.
      

I don't see a way to easily parse the performance section of the help files?

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-11 09:39
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
Attachmentssample.xml  None  None  
I've attached the xml code from blow in a text file, the format there
is quite hard to read.

On 11 May 2013 09:39, Rory Walsh  wrote:
> A single line of text tokens is what I'm working with now, but I can
> go to xml just as easily. The output from Steven and Andres script is
> fine, but I would like more info. Would something like this be
> possible?
>
>       
>         oscil
>         ares         oscil    xamp, xcps, ifn [, iphs]
>         oscil reads table ifn sequentially and repeatedly
> at a frequency xcps. The amplitude is scaled by xamp.
>         ifn -- function table number. Requires a wrap-around
> guard point .iphs (optional, default=0) -- initial phase of sampling,
> expressed as a fraction of a cycle (0 to 1). A negative value will
> cause phase initialization to be skipped. The default value is
> 0.
>         kamp, xamp -- amplitude kcps, xcps -- frequency in
> cycles per second.
>       
>
> I don't see a way to easily parse the performance section of the help files?

Date2013-05-13 04:18
FromAndres Cabrera
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  
Ideally, the manual should look like:

<inarg><name>ifn</name><desc>function table</desc></inarg>

I think a script could be written to transform it into that, but I'm not sure there's a relevant vocabulary with docbook.

Cheers,
Andrés


On Sat, May 11, 2013 at 1:39 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
A single line of text tokens is what I'm working with now, but I can
go to xml just as easily. The output from Steven and Andres script is
fine, but I would like more info. Would something like this be
possible?

      <opcode>
        <name>oscil</name>
        <signature>ares         oscil    xamp, xcps, ifn [, iphs]</signature>
        <description>oscil reads table ifn sequentially and repeatedly
at a frequency xcps. The amplitude is scaled by xamp.</description>
        <initargs>ifn -- function table number. Requires a wrap-around
guard point .iphs (optional, default=0) -- initial phase of sampling,
expressed as a fraction of a cycle (0 to 1). A negative value will
cause phase initialization to be skipped. The default value is
0.</initargs>
        <perfargs>kamp, xamp -- amplitude kcps, xcps -- frequency in
cycles per second.</perfargs>
      </opcode>

I don't see a way to easily parse the performance section of the help files?

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-05-13 04:19
FromAndres Cabrera
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  
Do you think it's worth bringing some of your script into the manual script?

Cheers,
Andrés


On Sat, May 11, 2013 at 1:01 AM, Steven Yi <stevenyi@gmail.com> wrote:
Here's the xml output, plus another version of the script.  The script
I posted earlier is an older one.

Cheers!
steven

On Sat, May 11, 2013 at 9:56 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
> Can you send me a generated xml file so I can quickly see the output?
>
> On 11 May 2013 08:54, Steven Yi <stevenyi@gmail.com> wrote:
>> Hi Rory,
>>
>> This is the file I use for blue.  It is based on the quickref.py that
>> comes with the manual and was slightly modified.  It generates an XML
>> file; hopefully should be easy to modify for yourself.  If you do some
>> changes, please send a copy here or to me so I can take advantage of
>> it. :P
>>
>> steven
>>
>> On Sat, May 11, 2013 at 9:17 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>> I speak for everyone when I say I hope you can make it!
>>>
>>> On 11 May 2013 08:15, PINOT Francois <fggpinot@gmail.com> wrote:
>>>> No. I'll try to fly to Boston for the next Csound conference but I'm not
>>>> sure yet.
>>>>
>>>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>>>>> That would be great Francois. Much appreaciated. Btw, are you in Graz
>>>>> for the LAC?
>>>>>
>>>>> On 11 May 2013 08:03, PINOT Francois <fggpinot@gmail.com> wrote:
>>>>>> A solution might be using an xsl transformation. I'll have a look this
>>>>>> afternoon and let you know.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> François
>>>>>>
>>>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>>>>>>> This is proving rather nasty. Take the following for example:
>>>>>>>
>>>>>>>     <refsect1>
>>>>>>>       <title>Performance</title>
>>>>>>>       <para>
>>>>>>>         <emphasis>kamp, xamp</emphasis> -- amplitude
>>>>>>>       </para>
>>>>>>>
>>>>>>>       <para>
>>>>>>>         <emphasis>kcps, xcps</emphasis> -- frequency in cycles per second.
>>>>>>>       </para>
>>>>>>>
>>>>>>>       <para>
>>>>>>>         The <emphasis>oscil</emphasis> opcode generates periodic control
>>>>>>> (or audio) signals consisting of the value of
>>>>>>> <emphasis>kamp</emphasis> (<emphasis>xamp</emphasis>) times the value
>>>>>>> returned from control rate (audio rate) sampling of a stored function
>>>>>>> table. The internal phase is simultaneously advanced in accordance
>>>>>>> with the <emphasis>kcps</emphasis> or <emphasis>xcps</emphasis> input
>>>>>>> value.
>>>>>>>       </para>
>>>>>>>       <para>
>>>>>>>         Table <emphasis>ifn</emphasis> is incrementally sampled modulo
>>>>>>> the table length and the value obtained is multiplied by
>>>>>>> <emphasis>amp</emphasis>.
>>>>>>>       </para>
>>>>>>>       <para>
>>>>>>>         If you need to change the oscillator table with a k-rate signal,
>>>>>>> you can use <link
>>>>>>> linkend="oscilikt"><citetitle>oscilikt</citetitle></link>.
>>>>>>>       </para>
>>>>>>>
>>>>>>>    </refsect1>
>>>>>>>
>>>>>>> I only want to retrieve the first two para as I don't need the longer
>>>>>>> description, but it's impossible tell where performance parameters
>>>>>>> stop and the performance blurb begins. I could search the document for
>>>>>>> each line containing the specified input parameters, but if I do that
>>>>>>> I might as well just parse the document as text and not xml, which
>>>>>>> will be rather tedious....
>>>>>>>
>>>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>>>>>>> just want to give users the option of displaying the info for each
>>>>>>> input parameter as well as the basic syntax.
>>>>>>>
>>>>>>> On 11 May 2013 00:59, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>>>>> I don't suppose anyone has written a little script that will parse the
>>>>>>>> help files for syntax and info about an opcode? Stefano has a nice
>>>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates the
>>>>>>>> following type strings for each opcode:
>>>>>>>>
>>>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>>>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>>>>>>>>
>>>>>>>> But I'd like to include the description of each of the inputs too for
>>>>>>>> those just starting out. I guess I could try to parse the xml directly
>>>>>>>> and produce a text file from that? If anyone handy scripts lying
>>>>>>>> around for this it would be great :)
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>>>> leaders in the field. The early access version is available now.
>>>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their applications. This 200-page book is written by three acclaimed
>>>>>> leaders in the field. The early access version is available now.
>>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-05-13 07:51
FromFrancois PINOT
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  
That's what I'm actually looking for in the docbook documentation. I'll let you know if I find something.

Francois


2013/5/13 Andres Cabrera <mantaraya36@gmail.com>
Ideally, the manual should look like:

<inarg><name>ifn</name><desc>function table</desc></inarg>

I think a script could be written to transform it into that, but I'm not sure there's a relevant vocabulary with docbook.

Cheers,
Andrés


On Sat, May 11, 2013 at 1:39 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
A single line of text tokens is what I'm working with now, but I can
go to xml just as easily. The output from Steven and Andres script is
fine, but I would like more info. Would something like this be
possible?

      <opcode>
        <name>oscil</name>
        <signature>ares         oscil    xamp, xcps, ifn [, iphs]</signature>
        <description>oscil reads table ifn sequentially and repeatedly
at a frequency xcps. The amplitude is scaled by xamp.</description>
        <initargs>ifn -- function table number. Requires a wrap-around
guard point .iphs (optional, default=0) -- initial phase of sampling,
expressed as a fraction of a cycle (0 to 1). A negative value will
cause phase initialization to be skipped. The default value is
0.</initargs>
        <perfargs>kamp, xamp -- amplitude kcps, xcps -- frequency in
cycles per second.</perfargs>
      </opcode>

I don't see a way to easily parse the performance section of the help files?

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-05-13 16:04
FromFrancois PINOT
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  
I found this: http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600, which seems to have a similar structure to what could be done. It's quite complicated!

A simpler solution could be to use a role attribute in the <para> tags describing the opcode arguments. For example, in oscil.xml we could have something like this:

<para role="opcarg">
  <emphasis>ifn</emphasis> -- function table number. Requires a wrap-around guard point.
</para>

etc.

This is neutral for docbook as long as we don't give any signification to this role="opcarg" attribute in the xlst stylesheets. The benefit would be that we could easily extract those paragraphs without worrying if they are in an Initialize section or in a Performance section.

What do you think?

François

2013/5/13 Francois PINOT <fggpinot@gmail.com>
That's what I'm actually looking for in the docbook documentation. I'll let you know if I find something.

Francois


2013/5/13 Andres Cabrera <mantaraya36@gmail.com>
Ideally, the manual should look like:

<inarg><name>ifn</name><desc>function table</desc></inarg>

I think a script could be written to transform it into that, but I'm not sure there's a relevant vocabulary with docbook.

Cheers,
Andrés


On Sat, May 11, 2013 at 1:39 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
A single line of text tokens is what I'm working with now, but I can
go to xml just as easily. The output from Steven and Andres script is
fine, but I would like more info. Would something like this be
possible?

      <opcode>
        <name>oscil</name>
        <signature>ares         oscil    xamp, xcps, ifn [, iphs]</signature>
        <description>oscil reads table ifn sequentially and repeatedly
at a frequency xcps. The amplitude is scaled by xamp.</description>
        <initargs>ifn -- function table number. Requires a wrap-around
guard point .iphs (optional, default=0) -- initial phase of sampling,
expressed as a fraction of a cycle (0 to 1). A negative value will
cause phase initialization to be skipped. The default value is
0.</initargs>
        <perfargs>kamp, xamp -- amplitude kcps, xcps -- frequency in
cycles per second.</perfargs>
      </opcode>

I don't see a way to easily parse the performance section of the help files?

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




Date2013-05-13 16:57
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
That sounds great Francois, but won't it be a huge job then to rebuild
the xml examples with this information including?

On 13 May 2013 16:04, Francois PINOT  wrote:
> I found this: http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
> which seems to have a similar structure to what could be done. It's quite
> complicated!
>
> A simpler solution could be to use a role attribute in the  tags
> describing the opcode arguments. For example, in oscil.xml we could have
> something like this:
>
> 
>   ifn -- function table number. Requires a wrap-around
> guard point.
> 
>
> etc.
>
> This is neutral for docbook as long as we don't give any signification to
> this role="opcarg" attribute in the xlst stylesheets. The benefit would be
> that we could easily extract those paragraphs without worrying if they are
> in an Initialize section or in a Performance section.
>
> What do you think?
>
> François
>
> 2013/5/13 Francois PINOT 
>>
>> That's what I'm actually looking for in the docbook documentation. I'll
>> let you know if I find something.
>>
>> Francois
>>
>>
>> 2013/5/13 Andres Cabrera 
>>>
>>> Ideally, the manual should look like:
>>>
>>> ifnfunction table
>>>
>>> I think a script could be written to transform it into that, but I'm not
>>> sure there's a relevant vocabulary with docbook.
>>>
>>> Cheers,
>>> Andrés
>>>
>>>
>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh  wrote:
>>>>
>>>> A single line of text tokens is what I'm working with now, but I can
>>>> go to xml just as easily. The output from Steven and Andres script is
>>>> fine, but I would like more info. Would something like this be
>>>> possible?
>>>>
>>>>       
>>>>         oscil
>>>>         ares         oscil    xamp, xcps, ifn [,
>>>> iphs]
>>>>         oscil reads table ifn sequentially and repeatedly
>>>> at a frequency xcps. The amplitude is scaled by xamp.
>>>>         ifn -- function table number. Requires a wrap-around
>>>> guard point .iphs (optional, default=0) -- initial phase of sampling,
>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>>>> cause phase initialization to be skipped. The default value is
>>>> 0.
>>>>         kamp, xamp -- amplitude kcps, xcps -- frequency in
>>>> cycles per second.
>>>>       
>>>>
>>>> I don't see a way to easily parse the performance section of the help
>>>> files?
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-13 17:02
FromSteven Yi
SubjectRe: [Cs-dev] parsing Csound help files..
Hi Andres,

I think it'd be great to bring in the script to the manual, and
ideally, if all the application builders using csound could all work
with a single meta-data xml file generated from the manual.  I'd
really like too if the meta data xml is packaged with the manual
release.  That way, we don't all duplicate each other's work and we
can all present a unified set of information to users.

Thanks!
steven

On Mon, May 13, 2013 at 5:19 AM, Andres Cabrera  wrote:
> Do you think it's worth bringing some of your script into the manual script?
>
> Cheers,
> Andrés
>
>
> On Sat, May 11, 2013 at 1:01 AM, Steven Yi  wrote:
>>
>> Here's the xml output, plus another version of the script.  The script
>> I posted earlier is an older one.
>>
>> Cheers!
>> steven
>>
>> On Sat, May 11, 2013 at 9:56 AM, Rory Walsh  wrote:
>> > Can you send me a generated xml file so I can quickly see the output?
>> >
>> > On 11 May 2013 08:54, Steven Yi  wrote:
>> >> Hi Rory,
>> >>
>> >> This is the file I use for blue.  It is based on the quickref.py that
>> >> comes with the manual and was slightly modified.  It generates an XML
>> >> file; hopefully should be easy to modify for yourself.  If you do some
>> >> changes, please send a copy here or to me so I can take advantage of
>> >> it. :P
>> >>
>> >> steven
>> >>
>> >> On Sat, May 11, 2013 at 9:17 AM, Rory Walsh  wrote:
>> >>> I speak for everyone when I say I hope you can make it!
>> >>>
>> >>> On 11 May 2013 08:15, PINOT Francois  wrote:
>> >>>> No. I'll try to fly to Boston for the next Csound conference but I'm
>> >>>> not
>> >>>> sure yet.
>> >>>>
>> >>>> Le 11/05/2013 09:05, Rory Walsh a écrit :
>> >>>>> That would be great Francois. Much appreaciated. Btw, are you in
>> >>>>> Graz
>> >>>>> for the LAC?
>> >>>>>
>> >>>>> On 11 May 2013 08:03, PINOT Francois  wrote:
>> >>>>>> A solution might be using an xsl transformation. I'll have a look
>> >>>>>> this
>> >>>>>> afternoon and let you know.
>> >>>>>>
>> >>>>>> Regards
>> >>>>>>
>> >>>>>> François
>> >>>>>>
>> >>>>>> Le 11/05/2013 08:51, Rory Walsh a écrit :
>> >>>>>>> This is proving rather nasty. Take the following for example:
>> >>>>>>>
>> >>>>>>>     
>> >>>>>>>       Performance
>> >>>>>>>       
>> >>>>>>>         kamp, xamp -- amplitude
>> >>>>>>>       
>> >>>>>>>
>> >>>>>>>       
>> >>>>>>>         kcps, xcps -- frequency in cycles per
>> >>>>>>> second.
>> >>>>>>>       
>> >>>>>>>
>> >>>>>>>       
>> >>>>>>>         The oscil opcode generates periodic
>> >>>>>>> control
>> >>>>>>> (or audio) signals consisting of the value of
>> >>>>>>> kamp (xamp) times the
>> >>>>>>> value
>> >>>>>>> returned from control rate (audio rate) sampling of a stored
>> >>>>>>> function
>> >>>>>>> table. The internal phase is simultaneously advanced in accordance
>> >>>>>>> with the kcps or xcps
>> >>>>>>> input
>> >>>>>>> value.
>> >>>>>>>       
>> >>>>>>>       
>> >>>>>>>         Table ifn is incrementally sampled
>> >>>>>>> modulo
>> >>>>>>> the table length and the value obtained is multiplied by
>> >>>>>>> amp.
>> >>>>>>>       
>> >>>>>>>       
>> >>>>>>>         If you need to change the oscillator table with a k-rate
>> >>>>>>> signal,
>> >>>>>>> you can use > >>>>>>> linkend="oscilikt">oscilikt.
>> >>>>>>>       
>> >>>>>>>
>> >>>>>>>    
>> >>>>>>>
>> >>>>>>> I only want to retrieve the first two para as I don't need the
>> >>>>>>> longer
>> >>>>>>> description, but it's impossible tell where performance parameters
>> >>>>>>> stop and the performance blurb begins. I could search the document
>> >>>>>>> for
>> >>>>>>> each line containing the specified input parameters, but if I do
>> >>>>>>> that
>> >>>>>>> I might as well just parse the document as text and not xml, which
>> >>>>>>> will be rather tedious....
>> >>>>>>>
>> >>>>>>> Any ideas? You'll see from the screenshot what I'm trying to do. I
>> >>>>>>> just want to give users the option of displaying the info for each
>> >>>>>>> input parameter as well as the basic syntax.
>> >>>>>>>
>> >>>>>>> On 11 May 2013 00:59, Rory Walsh  wrote:
>> >>>>>>>> I don't suppose anyone has written a little script that will
>> >>>>>>>> parse the
>> >>>>>>>> help files for syntax and info about an opcode? Stefano has a
>> >>>>>>>> nice
>> >>>>>>>> opcodes txt file, but I'm not sure how he creates it. It creates
>> >>>>>>>> the
>> >>>>>>>> following type strings for each opcode:
>> >>>>>>>>
>> >>>>>>>> "oscil";"Signal Generators:Basic Oscillators";"A simple
>> >>>>>>>> oscillator.";"ares oscil xamp, xcps, ifn [, iphs]"
>> >>>>>>>>
>> >>>>>>>> But I'd like to include the description of each of the inputs too
>> >>>>>>>> for
>> >>>>>>>> those just starting out. I guess I could try to parse the xml
>> >>>>>>>> directly
>> >>>>>>>> and produce a text file from that? If anyone handy scripts lying
>> >>>>>>>> around for this it would be great :)
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> ------------------------------------------------------------------------------
>> >>>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>>>>>> "Graph Databases" is the definitive new guide to graph databases
>> >>>>>>>> and
>> >>>>>>>> their applications. This 200-page book is written by three
>> >>>>>>>> acclaimed
>> >>>>>>>> leaders in the field. The early access version is available now.
>> >>>>>>>> Download your free book today!
>> >>>>>>>> http://p.sf.net/sfu/neotech_d2d_may
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> _______________________________________________
>> >>>>>>>> Csound-devel mailing list
>> >>>>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>>
>> >>>>>>
>> >>>>>> ------------------------------------------------------------------------------
>> >>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>>>> "Graph Databases" is the definitive new guide to graph databases
>> >>>>>> and
>> >>>>>> their applications. This 200-page book is written by three
>> >>>>>> acclaimed
>> >>>>>> leaders in the field. The early access version is available now.
>> >>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>>>> _______________________________________________
>> >>>>>> Csound-devel mailing list
>> >>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>>> their applications. This 200-page book is written by three acclaimed
>> >>>>> leaders in the field. The early access version is available now.
>> >>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>> their applications. This 200-page book is written by three acclaimed
>> >>>> leaders in the field. The early access version is available now.
>> >>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>> _______________________________________________
>> >>>> Csound-devel mailing list
>> >>>> Csound-devel@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>> "Graph Databases" is the definitive new guide to graph databases and
>> >>> their applications. This 200-page book is written by three acclaimed
>> >>> leaders in the field. The early access version is available now.
>> >>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn Graph Databases - Download FREE O'Reilly Book
>> >> "Graph Databases" is the definitive new guide to graph databases and
>> >> their applications. This 200-page book is written by three acclaimed
>> >> leaders in the field. The early access version is available now.
>> >> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Learn Graph Databases - Download FREE O'Reilly Book
>> > "Graph Databases" is the definitive new guide to graph databases and
>> > their applications. This 200-page book is written by three acclaimed
>> > leaders in the field. The early access version is available now.
>> > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-13 17:04
FromSteven Yi
SubjectRe: [Cs-dev] parsing Csound help files..
I agree with Rory, this sounds like a very good solution. Maybe we
will need inarg and out arg specifiers?  Also, I don't know if it is
still the case, but there were multiple opcodes listed in the entry
(usually all related).  I don't know if that will cause issues, or if
that is even still the case.

Thanks!
steven

On Mon, May 13, 2013 at 5:04 PM, Francois PINOT  wrote:
> I found this: http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
> which seems to have a similar structure to what could be done. It's quite
> complicated!
>
> A simpler solution could be to use a role attribute in the  tags
> describing the opcode arguments. For example, in oscil.xml we could have
> something like this:
>
> 
>   ifn -- function table number. Requires a wrap-around
> guard point.
> 
>
> etc.
>
> This is neutral for docbook as long as we don't give any signification to
> this role="opcarg" attribute in the xlst stylesheets. The benefit would be
> that we could easily extract those paragraphs without worrying if they are
> in an Initialize section or in a Performance section.
>
> What do you think?
>
> François
>
> 2013/5/13 Francois PINOT 
>>
>> That's what I'm actually looking for in the docbook documentation. I'll
>> let you know if I find something.
>>
>> Francois
>>
>>
>> 2013/5/13 Andres Cabrera 
>>>
>>> Ideally, the manual should look like:
>>>
>>> ifnfunction table
>>>
>>> I think a script could be written to transform it into that, but I'm not
>>> sure there's a relevant vocabulary with docbook.
>>>
>>> Cheers,
>>> Andrés
>>>
>>>
>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh  wrote:
>>>>
>>>> A single line of text tokens is what I'm working with now, but I can
>>>> go to xml just as easily. The output from Steven and Andres script is
>>>> fine, but I would like more info. Would something like this be
>>>> possible?
>>>>
>>>>       
>>>>         oscil
>>>>         ares         oscil    xamp, xcps, ifn [,
>>>> iphs]
>>>>         oscil reads table ifn sequentially and repeatedly
>>>> at a frequency xcps. The amplitude is scaled by xamp.
>>>>         ifn -- function table number. Requires a wrap-around
>>>> guard point .iphs (optional, default=0) -- initial phase of sampling,
>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>>>> cause phase initialization to be skipped. The default value is
>>>> 0.
>>>>         kamp, xamp -- amplitude kcps, xcps -- frequency in
>>>> cycles per second.
>>>>       
>>>>
>>>> I don't see a way to easily parse the performance section of the help
>>>> files?
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their applications. This 200-page book is written by three acclaimed
>>> leaders in the field. The early access version is available now.
>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-17 02:46
FromAndres Cabrera
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  
I think this would be a nice solution. But who will do it... ? :)
It might even be good to separate i-input, i-output, k-input, k-output, etc. That way if something is needed in terms of formatting for the output to separte each it can be done easily.


Cheers,
Andrés


On Mon, May 13, 2013 at 8:04 AM, Francois PINOT <fggpinot@gmail.com> wrote:
I found this: http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600, which seems to have a similar structure to what could be done. It's quite complicated!

A simpler solution could be to use a role attribute in the <para> tags describing the opcode arguments. For example, in oscil.xml we could have something like this:

<para role="opcarg">
  <emphasis>ifn</emphasis> -- function table number. Requires a wrap-around guard point.
</para>

etc.

This is neutral for docbook as long as we don't give any signification to this role="opcarg" attribute in the xlst stylesheets. The benefit would be that we could easily extract those paragraphs without worrying if they are in an Initialize section or in a Performance section.

What do you think?

François

2013/5/13 Francois PINOT <fggpinot@gmail.com>
That's what I'm actually looking for in the docbook documentation. I'll let you know if I find something.

Francois


2013/5/13 Andres Cabrera <mantaraya36@gmail.com>
Ideally, the manual should look like:

<inarg><name>ifn</name><desc>function table</desc></inarg>

I think a script could be written to transform it into that, but I'm not sure there's a relevant vocabulary with docbook.

Cheers,
Andrés


On Sat, May 11, 2013 at 1:39 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
A single line of text tokens is what I'm working with now, but I can
go to xml just as easily. The output from Steven and Andres script is
fine, but I would like more info. Would something like this be
possible?

      <opcode>
        <name>oscil</name>
        <signature>ares         oscil    xamp, xcps, ifn [, iphs]</signature>
        <description>oscil reads table ifn sequentially and repeatedly
at a frequency xcps. The amplitude is scaled by xamp.</description>
        <initargs>ifn -- function table number. Requires a wrap-around
guard point .iphs (optional, default=0) -- initial phase of sampling,
expressed as a fraction of a cycle (0 to 1). A negative value will
cause phase initialization to be skipped. The default value is
0.</initargs>
        <perfargs>kamp, xamp -- amplitude kcps, xcps -- frequency in
cycles per second.</perfargs>
      </opcode>

I don't see a way to easily parse the performance section of the help files?

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-05-17 02:57
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
I know, I was thinking the same thing. It would need script that would
parse the existing xml files and place proper identifiers in them.
Could be a bit of work. I think it might be quicker done in python
than in C/C++ which is why I'm staying away from it. Sorry.

On 17 May 2013 02:46, Andres Cabrera  wrote:
> I think this would be a nice solution. But who will do it... ? :)
> It might even be good to separate i-input, i-output, k-input, k-output, etc.
> That way if something is needed in terms of formatting for the output to
> separte each it can be done easily.
>
>
> Cheers,
> Andrés
>
>
> On Mon, May 13, 2013 at 8:04 AM, Francois PINOT  wrote:
>>
>> I found this: http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>> which seems to have a similar structure to what could be done. It's quite
>> complicated!
>>
>> A simpler solution could be to use a role attribute in the  tags
>> describing the opcode arguments. For example, in oscil.xml we could have
>> something like this:
>>
>> 
>>   ifn -- function table number. Requires a
>> wrap-around guard point.
>> 
>>
>> etc.
>>
>> This is neutral for docbook as long as we don't give any signification to
>> this role="opcarg" attribute in the xlst stylesheets. The benefit would be
>> that we could easily extract those paragraphs without worrying if they are
>> in an Initialize section or in a Performance section.
>>
>> What do you think?
>>
>> François
>>
>> 2013/5/13 Francois PINOT 
>>>
>>> That's what I'm actually looking for in the docbook documentation. I'll
>>> let you know if I find something.
>>>
>>> Francois
>>>
>>>
>>> 2013/5/13 Andres Cabrera 
>>>>
>>>> Ideally, the manual should look like:
>>>>
>>>> ifnfunction table
>>>>
>>>> I think a script could be written to transform it into that, but I'm not
>>>> sure there's a relevant vocabulary with docbook.
>>>>
>>>> Cheers,
>>>> Andrés
>>>>
>>>>
>>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh  wrote:
>>>>>
>>>>> A single line of text tokens is what I'm working with now, but I can
>>>>> go to xml just as easily. The output from Steven and Andres script is
>>>>> fine, but I would like more info. Would something like this be
>>>>> possible?
>>>>>
>>>>>       
>>>>>         oscil
>>>>>         ares         oscil    xamp, xcps, ifn [,
>>>>> iphs]
>>>>>         oscil reads table ifn sequentially and repeatedly
>>>>> at a frequency xcps. The amplitude is scaled by xamp.
>>>>>         ifn -- function table number. Requires a wrap-around
>>>>> guard point .iphs (optional, default=0) -- initial phase of sampling,
>>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>>>>> cause phase initialization to be skipped. The default value is
>>>>> 0.
>>>>>         kamp, xamp -- amplitude kcps, xcps -- frequency in
>>>>> cycles per second.
>>>>>       
>>>>>
>>>>> I don't see a way to easily parse the performance section of the help
>>>>> files?
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-17 07:23
FromFrancois PINOT
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  
Some of the manual opcode entries are a bit messy. So I think that a completely automatic treatment is infeasible. One could write a python script taking as input a single opcode article and proposing as output a rearranged version of the file. Then by quickly reading the concerned parts we could accept the output or add manually some corrections and/or refactoring if necessary.

There are 1275 xml files to modify. If we count an average of 2mn per file, it's a 40 hours job for one person, 20 hours job for two persons, 10 hours job for four persons, etc.

Volunteers ?


Regards

Francois


2013/5/17 Rory Walsh <rorywalsh@ear.ie>
I know, I was thinking the same thing. It would need script that would
parse the existing xml files and place proper identifiers in them.
Could be a bit of work. I think it might be quicker done in python
than in C/C++ which is why I'm staying away from it. Sorry.

On 17 May 2013 02:46, Andres Cabrera <mantaraya36@gmail.com> wrote:
> I think this would be a nice solution. But who will do it... ? :)
> It might even be good to separate i-input, i-output, k-input, k-output, etc.
> That way if something is needed in terms of formatting for the output to
> separte each it can be done easily.
>
>
> Cheers,
> Andrés
>
>
> On Mon, May 13, 2013 at 8:04 AM, Francois PINOT <fggpinot@gmail.com> wrote:
>>
>> I found this: http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>> which seems to have a similar structure to what could be done. It's quite
>> complicated!
>>
>> A simpler solution could be to use a role attribute in the <para> tags
>> describing the opcode arguments. For example, in oscil.xml we could have
>> something like this:
>>
>> <para role="opcarg">
>>   <emphasis>ifn</emphasis> -- function table number. Requires a
>> wrap-around guard point.
>> </para>
>>
>> etc.
>>
>> This is neutral for docbook as long as we don't give any signification to
>> this role="opcarg" attribute in the xlst stylesheets. The benefit would be
>> that we could easily extract those paragraphs without worrying if they are
>> in an Initialize section or in a Performance section.
>>
>> What do you think?
>>
>> François
>>
>> 2013/5/13 Francois PINOT <fggpinot@gmail.com>
>>>
>>> That's what I'm actually looking for in the docbook documentation. I'll
>>> let you know if I find something.
>>>
>>> Francois
>>>
>>>
>>> 2013/5/13 Andres Cabrera <mantaraya36@gmail.com>
>>>>
>>>> Ideally, the manual should look like:
>>>>
>>>> <inarg><name>ifn</name><desc>function table</desc></inarg>
>>>>
>>>> I think a script could be written to transform it into that, but I'm not
>>>> sure there's a relevant vocabulary with docbook.
>>>>
>>>> Cheers,
>>>> Andrés
>>>>
>>>>
>>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>>
>>>>> A single line of text tokens is what I'm working with now, but I can
>>>>> go to xml just as easily. The output from Steven and Andres script is
>>>>> fine, but I would like more info. Would something like this be
>>>>> possible?
>>>>>
>>>>>       <opcode>
>>>>>         <name>oscil</name>
>>>>>         <signature>ares         oscil    xamp, xcps, ifn [,
>>>>> iphs]</signature>
>>>>>         <description>oscil reads table ifn sequentially and repeatedly
>>>>> at a frequency xcps. The amplitude is scaled by xamp.</description>
>>>>>         <initargs>ifn -- function table number. Requires a wrap-around
>>>>> guard point .iphs (optional, default=0) -- initial phase of sampling,
>>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>>>>> cause phase initialization to be skipped. The default value is
>>>>> 0.</initargs>
>>>>>         <perfargs>kamp, xamp -- amplitude kcps, xcps -- frequency in
>>>>> cycles per second.</perfargs>
>>>>>       </opcode>
>>>>>
>>>>> I don't see a way to easily parse the performance section of the help
>>>>> files?
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>> their applications. This 200-page book is written by three acclaimed
>>>>> leaders in the field. The early access version is available now.
>>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their applications. This 200-page book is written by three acclaimed
>>>> leaders in the field. The early access version is available now.
>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-05-17 14:01
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
If only we had though of this before Menno started his mammoth task of
updating the entire help manual!



On 17 May 2013 07:23, Francois PINOT  wrote:
> Some of the manual opcode entries are a bit messy. So I think that a
> completely automatic treatment is infeasible. One could write a python
> script taking as input a single opcode article and proposing as output a
> rearranged version of the file. Then by quickly reading the concerned parts
> we could accept the output or add manually some corrections and/or
> refactoring if necessary.
>
> There are 1275 xml files to modify. If we count an average of 2mn per file,
> it's a 40 hours job for one person, 20 hours job for two persons, 10 hours
> job for four persons, etc.
>
> Volunteers ?
>
>
> Regards
>
> Francois
>
>
> 2013/5/17 Rory Walsh 
>>
>> I know, I was thinking the same thing. It would need script that would
>> parse the existing xml files and place proper identifiers in them.
>> Could be a bit of work. I think it might be quicker done in python
>> than in C/C++ which is why I'm staying away from it. Sorry.
>>
>> On 17 May 2013 02:46, Andres Cabrera  wrote:
>> > I think this would be a nice solution. But who will do it... ? :)
>> > It might even be good to separate i-input, i-output, k-input, k-output,
>> > etc.
>> > That way if something is needed in terms of formatting for the output to
>> > separte each it can be done easily.
>> >
>> >
>> > Cheers,
>> > Andrés
>> >
>> >
>> > On Mon, May 13, 2013 at 8:04 AM, Francois PINOT 
>> > wrote:
>> >>
>> >> I found this:
>> >> http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>> >> which seems to have a similar structure to what could be done. It's
>> >> quite
>> >> complicated!
>> >>
>> >> A simpler solution could be to use a role attribute in the  tags
>> >> describing the opcode arguments. For example, in oscil.xml we could
>> >> have
>> >> something like this:
>> >>
>> >> 
>> >>   ifn -- function table number. Requires a
>> >> wrap-around guard point.
>> >> 
>> >>
>> >> etc.
>> >>
>> >> This is neutral for docbook as long as we don't give any signification
>> >> to
>> >> this role="opcarg" attribute in the xlst stylesheets. The benefit would
>> >> be
>> >> that we could easily extract those paragraphs without worrying if they
>> >> are
>> >> in an Initialize section or in a Performance section.
>> >>
>> >> What do you think?
>> >>
>> >> François
>> >>
>> >> 2013/5/13 Francois PINOT 
>> >>>
>> >>> That's what I'm actually looking for in the docbook documentation.
>> >>> I'll
>> >>> let you know if I find something.
>> >>>
>> >>> Francois
>> >>>
>> >>>
>> >>> 2013/5/13 Andres Cabrera 
>> >>>>
>> >>>> Ideally, the manual should look like:
>> >>>>
>> >>>> ifnfunction table
>> >>>>
>> >>>> I think a script could be written to transform it into that, but I'm
>> >>>> not
>> >>>> sure there's a relevant vocabulary with docbook.
>> >>>>
>> >>>> Cheers,
>> >>>> Andrés
>> >>>>
>> >>>>
>> >>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh  wrote:
>> >>>>>
>> >>>>> A single line of text tokens is what I'm working with now, but I can
>> >>>>> go to xml just as easily. The output from Steven and Andres script
>> >>>>> is
>> >>>>> fine, but I would like more info. Would something like this be
>> >>>>> possible?
>> >>>>>
>> >>>>>       
>> >>>>>         oscil
>> >>>>>         ares         oscil    xamp, xcps, ifn [,
>> >>>>> iphs]
>> >>>>>         oscil reads table ifn sequentially and
>> >>>>> repeatedly
>> >>>>> at a frequency xcps. The amplitude is scaled by xamp.
>> >>>>>         ifn -- function table number. Requires a
>> >>>>> wrap-around
>> >>>>> guard point .iphs (optional, default=0) -- initial phase of
>> >>>>> sampling,
>> >>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>> >>>>> cause phase initialization to be skipped. The default value is
>> >>>>> 0.
>> >>>>>         kamp, xamp -- amplitude kcps, xcps -- frequency in
>> >>>>> cycles per second.
>> >>>>>       
>> >>>>>
>> >>>>> I don't see a way to easily parse the performance section of the
>> >>>>> help
>> >>>>> files?
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>>> their applications. This 200-page book is written by three acclaimed
>> >>>>> leaders in the field. The early access version is available now.
>> >>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>> their applications. This 200-page book is written by three acclaimed
>> >>>> leaders in the field. The early access version is available now.
>> >>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>> _______________________________________________
>> >>>> Csound-devel mailing list
>> >>>> Csound-devel@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn Graph Databases - Download FREE O'Reilly Book
>> >> "Graph Databases" is the definitive new guide to graph databases and
>> >> their applications. This 200-page book is written by three acclaimed
>> >> leaders in the field. The early access version is available now.
>> >> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > AlienVault Unified Security Management (USM) platform delivers complete
>> > security visibility with the essential security capabilities. Easily and
>> > efficiently configure, manage, and operate all of your security controls
>> > from a single console and one unified framework. Download a free trial.
>> > http://p.sf.net/sfu/alienvault_d2d
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-17 14:05
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
thought...that is.

On 17 May 2013 14:01, Rory Walsh  wrote:
> If only we had though of this before Menno started his mammoth task of
> updating the entire help manual!
>
>
>
> On 17 May 2013 07:23, Francois PINOT  wrote:
>> Some of the manual opcode entries are a bit messy. So I think that a
>> completely automatic treatment is infeasible. One could write a python
>> script taking as input a single opcode article and proposing as output a
>> rearranged version of the file. Then by quickly reading the concerned parts
>> we could accept the output or add manually some corrections and/or
>> refactoring if necessary.
>>
>> There are 1275 xml files to modify. If we count an average of 2mn per file,
>> it's a 40 hours job for one person, 20 hours job for two persons, 10 hours
>> job for four persons, etc.
>>
>> Volunteers ?
>>
>>
>> Regards
>>
>> Francois
>>
>>
>> 2013/5/17 Rory Walsh 
>>>
>>> I know, I was thinking the same thing. It would need script that would
>>> parse the existing xml files and place proper identifiers in them.
>>> Could be a bit of work. I think it might be quicker done in python
>>> than in C/C++ which is why I'm staying away from it. Sorry.
>>>
>>> On 17 May 2013 02:46, Andres Cabrera  wrote:
>>> > I think this would be a nice solution. But who will do it... ? :)
>>> > It might even be good to separate i-input, i-output, k-input, k-output,
>>> > etc.
>>> > That way if something is needed in terms of formatting for the output to
>>> > separte each it can be done easily.
>>> >
>>> >
>>> > Cheers,
>>> > Andrés
>>> >
>>> >
>>> > On Mon, May 13, 2013 at 8:04 AM, Francois PINOT 
>>> > wrote:
>>> >>
>>> >> I found this:
>>> >> http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>>> >> which seems to have a similar structure to what could be done. It's
>>> >> quite
>>> >> complicated!
>>> >>
>>> >> A simpler solution could be to use a role attribute in the  tags
>>> >> describing the opcode arguments. For example, in oscil.xml we could
>>> >> have
>>> >> something like this:
>>> >>
>>> >> 
>>> >>   ifn -- function table number. Requires a
>>> >> wrap-around guard point.
>>> >> 
>>> >>
>>> >> etc.
>>> >>
>>> >> This is neutral for docbook as long as we don't give any signification
>>> >> to
>>> >> this role="opcarg" attribute in the xlst stylesheets. The benefit would
>>> >> be
>>> >> that we could easily extract those paragraphs without worrying if they
>>> >> are
>>> >> in an Initialize section or in a Performance section.
>>> >>
>>> >> What do you think?
>>> >>
>>> >> François
>>> >>
>>> >> 2013/5/13 Francois PINOT 
>>> >>>
>>> >>> That's what I'm actually looking for in the docbook documentation.
>>> >>> I'll
>>> >>> let you know if I find something.
>>> >>>
>>> >>> Francois
>>> >>>
>>> >>>
>>> >>> 2013/5/13 Andres Cabrera 
>>> >>>>
>>> >>>> Ideally, the manual should look like:
>>> >>>>
>>> >>>> ifnfunction table
>>> >>>>
>>> >>>> I think a script could be written to transform it into that, but I'm
>>> >>>> not
>>> >>>> sure there's a relevant vocabulary with docbook.
>>> >>>>
>>> >>>> Cheers,
>>> >>>> Andrés
>>> >>>>
>>> >>>>
>>> >>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh  wrote:
>>> >>>>>
>>> >>>>> A single line of text tokens is what I'm working with now, but I can
>>> >>>>> go to xml just as easily. The output from Steven and Andres script
>>> >>>>> is
>>> >>>>> fine, but I would like more info. Would something like this be
>>> >>>>> possible?
>>> >>>>>
>>> >>>>>       
>>> >>>>>         oscil
>>> >>>>>         ares         oscil    xamp, xcps, ifn [,
>>> >>>>> iphs]
>>> >>>>>         oscil reads table ifn sequentially and
>>> >>>>> repeatedly
>>> >>>>> at a frequency xcps. The amplitude is scaled by xamp.
>>> >>>>>         ifn -- function table number. Requires a
>>> >>>>> wrap-around
>>> >>>>> guard point .iphs (optional, default=0) -- initial phase of
>>> >>>>> sampling,
>>> >>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>>> >>>>> cause phase initialization to be skipped. The default value is
>>> >>>>> 0.
>>> >>>>>         kamp, xamp -- amplitude kcps, xcps -- frequency in
>>> >>>>> cycles per second.
>>> >>>>>       
>>> >>>>>
>>> >>>>> I don't see a way to easily parse the performance section of the
>>> >>>>> help
>>> >>>>> files?
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> ------------------------------------------------------------------------------
>>> >>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> >>>>> "Graph Databases" is the definitive new guide to graph databases and
>>> >>>>> their applications. This 200-page book is written by three acclaimed
>>> >>>>> leaders in the field. The early access version is available now.
>>> >>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> >>>>> _______________________________________________
>>> >>>>> Csound-devel mailing list
>>> >>>>> Csound-devel@lists.sourceforge.net
>>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> ------------------------------------------------------------------------------
>>> >>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> >>>> "Graph Databases" is the definitive new guide to graph databases and
>>> >>>> their applications. This 200-page book is written by three acclaimed
>>> >>>> leaders in the field. The early access version is available now.
>>> >>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> >>>> _______________________________________________
>>> >>>> Csound-devel mailing list
>>> >>>> Csound-devel@lists.sourceforge.net
>>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>>>
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Learn Graph Databases - Download FREE O'Reilly Book
>>> >> "Graph Databases" is the definitive new guide to graph databases and
>>> >> their applications. This 200-page book is written by three acclaimed
>>> >> leaders in the field. The early access version is available now.
>>> >> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > AlienVault Unified Security Management (USM) platform delivers complete
>>> > security visibility with the essential security capabilities. Easily and
>>> > efficiently configure, manage, and operate all of your security controls
>>> > from a single console and one unified framework. Download a free trial.
>>> > http://p.sf.net/sfu/alienvault_d2d
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> AlienVault Unified Security Management (USM) platform delivers complete
>>> security visibility with the essential security capabilities. Easily and
>>> efficiently configure, manage, and operate all of your security controls
>>> from a single console and one unified framework. Download a free trial.
>>> http://p.sf.net/sfu/alienvault_d2d
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-17 14:06
FromFrancois PINOT
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  
It was another task: Menno wrote original examples for many opcodes but he did not change the xml structure of the articles. Here we have to modify the xml tags of some paragraphs without changing Menno's work.


2013/5/17 Rory Walsh <rorywalsh@ear.ie>
If only we had though of this before Menno started his mammoth task of
updating the entire help manual!



On 17 May 2013 07:23, Francois PINOT <fggpinot@gmail.com> wrote:
> Some of the manual opcode entries are a bit messy. So I think that a
> completely automatic treatment is infeasible. One could write a python
> script taking as input a single opcode article and proposing as output a
> rearranged version of the file. Then by quickly reading the concerned parts
> we could accept the output or add manually some corrections and/or
> refactoring if necessary.
>
> There are 1275 xml files to modify. If we count an average of 2mn per file,
> it's a 40 hours job for one person, 20 hours job for two persons, 10 hours
> job for four persons, etc.
>
> Volunteers ?
>
>
> Regards
>
> Francois
>
>
> 2013/5/17 Rory Walsh <rorywalsh@ear.ie>
>>
>> I know, I was thinking the same thing. It would need script that would
>> parse the existing xml files and place proper identifiers in them.
>> Could be a bit of work. I think it might be quicker done in python
>> than in C/C++ which is why I'm staying away from it. Sorry.
>>
>> On 17 May 2013 02:46, Andres Cabrera <mantaraya36@gmail.com> wrote:
>> > I think this would be a nice solution. But who will do it... ? :)
>> > It might even be good to separate i-input, i-output, k-input, k-output,
>> > etc.
>> > That way if something is needed in terms of formatting for the output to
>> > separte each it can be done easily.
>> >
>> >
>> > Cheers,
>> > Andrés
>> >
>> >
>> > On Mon, May 13, 2013 at 8:04 AM, Francois PINOT <fggpinot@gmail.com>
>> > wrote:
>> >>
>> >> I found this:
>> >> http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>> >> which seems to have a similar structure to what could be done. It's
>> >> quite
>> >> complicated!
>> >>
>> >> A simpler solution could be to use a role attribute in the <para> tags
>> >> describing the opcode arguments. For example, in oscil.xml we could
>> >> have
>> >> something like this:
>> >>
>> >> <para role="opcarg">
>> >>   <emphasis>ifn</emphasis> -- function table number. Requires a
>> >> wrap-around guard point.
>> >> </para>
>> >>
>> >> etc.
>> >>
>> >> This is neutral for docbook as long as we don't give any signification
>> >> to
>> >> this role="opcarg" attribute in the xlst stylesheets. The benefit would
>> >> be
>> >> that we could easily extract those paragraphs without worrying if they
>> >> are
>> >> in an Initialize section or in a Performance section.
>> >>
>> >> What do you think?
>> >>
>> >> François
>> >>
>> >> 2013/5/13 Francois PINOT <fggpinot@gmail.com>
>> >>>
>> >>> That's what I'm actually looking for in the docbook documentation.
>> >>> I'll
>> >>> let you know if I find something.
>> >>>
>> >>> Francois
>> >>>
>> >>>
>> >>> 2013/5/13 Andres Cabrera <mantaraya36@gmail.com>
>> >>>>
>> >>>> Ideally, the manual should look like:
>> >>>>
>> >>>> <inarg><name>ifn</name><desc>function table</desc></inarg>
>> >>>>
>> >>>> I think a script could be written to transform it into that, but I'm
>> >>>> not
>> >>>> sure there's a relevant vocabulary with docbook.
>> >>>>
>> >>>> Cheers,
>> >>>> Andrés
>> >>>>
>> >>>>
>> >>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >>>>>
>> >>>>> A single line of text tokens is what I'm working with now, but I can
>> >>>>> go to xml just as easily. The output from Steven and Andres script
>> >>>>> is
>> >>>>> fine, but I would like more info. Would something like this be
>> >>>>> possible?
>> >>>>>
>> >>>>>       <opcode>
>> >>>>>         <name>oscil</name>
>> >>>>>         <signature>ares         oscil    xamp, xcps, ifn [,
>> >>>>> iphs]</signature>
>> >>>>>         <description>oscil reads table ifn sequentially and
>> >>>>> repeatedly
>> >>>>> at a frequency xcps. The amplitude is scaled by xamp.</description>
>> >>>>>         <initargs>ifn -- function table number. Requires a
>> >>>>> wrap-around
>> >>>>> guard point .iphs (optional, default=0) -- initial phase of
>> >>>>> sampling,
>> >>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>> >>>>> cause phase initialization to be skipped. The default value is
>> >>>>> 0.</initargs>
>> >>>>>         <perfargs>kamp, xamp -- amplitude kcps, xcps -- frequency in
>> >>>>> cycles per second.</perfargs>
>> >>>>>       </opcode>
>> >>>>>
>> >>>>> I don't see a way to easily parse the performance section of the
>> >>>>> help
>> >>>>> files?
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>>> their applications. This 200-page book is written by three acclaimed
>> >>>>> leaders in the field. The early access version is available now.
>> >>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>> their applications. This 200-page book is written by three acclaimed
>> >>>> leaders in the field. The early access version is available now.
>> >>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>> _______________________________________________
>> >>>> Csound-devel mailing list
>> >>>> Csound-devel@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn Graph Databases - Download FREE O'Reilly Book
>> >> "Graph Databases" is the definitive new guide to graph databases and
>> >> their applications. This 200-page book is written by three acclaimed
>> >> leaders in the field. The early access version is available now.
>> >> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > AlienVault Unified Security Management (USM) platform delivers complete
>> > security visibility with the essential security capabilities. Easily and
>> > efficiently configure, manage, and operate all of your security controls
>> > from a single console and one unified framework. Download a free trial.
>> > http://p.sf.net/sfu/alienvault_d2d
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-05-17 17:05
FromAndres Cabrera
SubjectRe: [Cs-dev] parsing Csound help files..
AttachmentsNone  None  

Another thought. How about using the names of parameters from the opcode list to find the lines with the appropriate description?

Cheers,
Andres

On May 17, 2013 6:07 AM, "Francois PINOT" <fggpinot@gmail.com> wrote:
It was another task: Menno wrote original examples for many opcodes but he did not change the xml structure of the articles. Here we have to modify the xml tags of some paragraphs without changing Menno's work.


2013/5/17 Rory Walsh <rorywalsh@ear.ie>
If only we had though of this before Menno started his mammoth task of
updating the entire help manual!



On 17 May 2013 07:23, Francois PINOT <fggpinot@gmail.com> wrote:
> Some of the manual opcode entries are a bit messy. So I think that a
> completely automatic treatment is infeasible. One could write a python
> script taking as input a single opcode article and proposing as output a
> rearranged version of the file. Then by quickly reading the concerned parts
> we could accept the output or add manually some corrections and/or
> refactoring if necessary.
>
> There are 1275 xml files to modify. If we count an average of 2mn per file,
> it's a 40 hours job for one person, 20 hours job for two persons, 10 hours
> job for four persons, etc.
>
> Volunteers ?
>
>
> Regards
>
> Francois
>
>
> 2013/5/17 Rory Walsh <rorywalsh@ear.ie>
>>
>> I know, I was thinking the same thing. It would need script that would
>> parse the existing xml files and place proper identifiers in them.
>> Could be a bit of work. I think it might be quicker done in python
>> than in C/C++ which is why I'm staying away from it. Sorry.
>>
>> On 17 May 2013 02:46, Andres Cabrera <mantaraya36@gmail.com> wrote:
>> > I think this would be a nice solution. But who will do it... ? :)
>> > It might even be good to separate i-input, i-output, k-input, k-output,
>> > etc.
>> > That way if something is needed in terms of formatting for the output to
>> > separte each it can be done easily.
>> >
>> >
>> > Cheers,
>> > Andrés
>> >
>> >
>> > On Mon, May 13, 2013 at 8:04 AM, Francois PINOT <fggpinot@gmail.com>
>> > wrote:
>> >>
>> >> I found this:
>> >> http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>> >> which seems to have a similar structure to what could be done. It's
>> >> quite
>> >> complicated!
>> >>
>> >> A simpler solution could be to use a role attribute in the <para> tags
>> >> describing the opcode arguments. For example, in oscil.xml we could
>> >> have
>> >> something like this:
>> >>
>> >> <para role="opcarg">
>> >>   <emphasis>ifn</emphasis> -- function table number. Requires a
>> >> wrap-around guard point.
>> >> </para>
>> >>
>> >> etc.
>> >>
>> >> This is neutral for docbook as long as we don't give any signification
>> >> to
>> >> this role="opcarg" attribute in the xlst stylesheets. The benefit would
>> >> be
>> >> that we could easily extract those paragraphs without worrying if they
>> >> are
>> >> in an Initialize section or in a Performance section.
>> >>
>> >> What do you think?
>> >>
>> >> François
>> >>
>> >> 2013/5/13 Francois PINOT <fggpinot@gmail.com>
>> >>>
>> >>> That's what I'm actually looking for in the docbook documentation.
>> >>> I'll
>> >>> let you know if I find something.
>> >>>
>> >>> Francois
>> >>>
>> >>>
>> >>> 2013/5/13 Andres Cabrera <mantaraya36@gmail.com>
>> >>>>
>> >>>> Ideally, the manual should look like:
>> >>>>
>> >>>> <inarg><name>ifn</name><desc>function table</desc></inarg>
>> >>>>
>> >>>> I think a script could be written to transform it into that, but I'm
>> >>>> not
>> >>>> sure there's a relevant vocabulary with docbook.
>> >>>>
>> >>>> Cheers,
>> >>>> Andrés
>> >>>>
>> >>>>
>> >>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >>>>>
>> >>>>> A single line of text tokens is what I'm working with now, but I can
>> >>>>> go to xml just as easily. The output from Steven and Andres script
>> >>>>> is
>> >>>>> fine, but I would like more info. Would something like this be
>> >>>>> possible?
>> >>>>>
>> >>>>>       <opcode>
>> >>>>>         <name>oscil</name>
>> >>>>>         <signature>ares         oscil    xamp, xcps, ifn [,
>> >>>>> iphs]</signature>
>> >>>>>         <description>oscil reads table ifn sequentially and
>> >>>>> repeatedly
>> >>>>> at a frequency xcps. The amplitude is scaled by xamp.</description>
>> >>>>>         <initargs>ifn -- function table number. Requires a
>> >>>>> wrap-around
>> >>>>> guard point .iphs (optional, default=0) -- initial phase of
>> >>>>> sampling,
>> >>>>> expressed as a fraction of a cycle (0 to 1). A negative value will
>> >>>>> cause phase initialization to be skipped. The default value is
>> >>>>> 0.</initargs>
>> >>>>>         <perfargs>kamp, xamp -- amplitude kcps, xcps -- frequency in
>> >>>>> cycles per second.</perfargs>
>> >>>>>       </opcode>
>> >>>>>
>> >>>>> I don't see a way to easily parse the performance section of the
>> >>>>> help
>> >>>>> files?
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>>> their applications. This 200-page book is written by three acclaimed
>> >>>>> leaders in the field. The early access version is available now.
>> >>>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> Learn Graph Databases - Download FREE O'Reilly Book
>> >>>> "Graph Databases" is the definitive new guide to graph databases and
>> >>>> their applications. This 200-page book is written by three acclaimed
>> >>>> leaders in the field. The early access version is available now.
>> >>>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >>>> _______________________________________________
>> >>>> Csound-devel mailing list
>> >>>> Csound-devel@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn Graph Databases - Download FREE O'Reilly Book
>> >> "Graph Databases" is the definitive new guide to graph databases and
>> >> their applications. This 200-page book is written by three acclaimed
>> >> leaders in the field. The early access version is available now.
>> >> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > AlienVault Unified Security Management (USM) platform delivers complete
>> > security visibility with the essential security capabilities. Easily and
>> > efficiently configure, manage, and operate all of your security controls
>> > from a single console and one unified framework. Download a free trial.
>> > http://p.sf.net/sfu/alienvault_d2d
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-05-17 18:32
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] parsing Csound help files..
Is there an EXACT statement of what changes shuld be made and then anyone
could do the odd one.

> Another thought. How about using the names of parameters from the opcode
> list to find the lines with the appropriate description?
>
> Cheers,
> Andres
> On May 17, 2013 6:07 AM, "Francois PINOT"  wrote:
>
>> It was another task: Menno wrote original examples for many opcodes but
>> he
>> did not change the xml structure of the articles. Here we have to modify
>> the xml tags of some paragraphs without changing Menno's work.
>>
>>
>> 2013/5/17 Rory Walsh 
>>
>>> If only we had though of this before Menno started his mammoth task of
>>> updating the entire help manual!
>>>
>>>
>>>
>>> On 17 May 2013 07:23, Francois PINOT  wrote:
>>> > Some of the manual opcode entries are a bit messy. So I think that a
>>> > completely automatic treatment is infeasible. One could write a
>>> python
>>> > script taking as input a single opcode article and proposing as
>>> output a
>>> > rearranged version of the file. Then by quickly reading the concerned
>>> parts
>>> > we could accept the output or add manually some corrections and/or
>>> > refactoring if necessary.
>>> >
>>> > There are 1275 xml files to modify. If we count an average of 2mn per
>>> file,
>>> > it's a 40 hours job for one person, 20 hours job for two persons, 10
>>> hours
>>> > job for four persons, etc.
>>> >
>>> > Volunteers ?
>>> >
>>> >
>>> > Regards
>>> >
>>> > Francois
>>> >
>>> >
>>> > 2013/5/17 Rory Walsh 
>>> >>
>>> >> I know, I was thinking the same thing. It would need script that
>>> would
>>> >> parse the existing xml files and place proper identifiers in them.
>>> >> Could be a bit of work. I think it might be quicker done in python
>>> >> than in C/C++ which is why I'm staying away from it. Sorry.
>>> >>
>>> >> On 17 May 2013 02:46, Andres Cabrera  wrote:
>>> >> > I think this would be a nice solution. But who will do it... ? :)
>>> >> > It might even be good to separate i-input, i-output, k-input,
>>> k-output,
>>> >> > etc.
>>> >> > That way if something is needed in terms of formatting for the
>>> output to
>>> >> > separte each it can be done easily.
>>> >> >
>>> >> >
>>> >> > Cheers,
>>> >> > Andrés
>>> >> >
>>> >> >
>>> >> > On Mon, May 13, 2013 at 8:04 AM, Francois PINOT
>>> 
>>> >> > wrote:
>>> >> >>
>>> >> >> I found this:
>>> >> >> http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>>> >> >> which seems to have a similar structure to what could be done.
>>> It's
>>> >> >> quite
>>> >> >> complicated!
>>> >> >>
>>> >> >> A simpler solution could be to use a role attribute in the 
>>> tags
>>> >> >> describing the opcode arguments. For example, in oscil.xml we
>>> could
>>> >> >> have
>>> >> >> something like this:
>>> >> >>
>>> >> >> 
>>> >> >>   ifn -- function table number. Requires a
>>> >> >> wrap-around guard point.
>>> >> >> 
>>> >> >>
>>> >> >> etc.
>>> >> >>
>>> >> >> This is neutral for docbook as long as we don't give any
>>> signification
>>> >> >> to
>>> >> >> this role="opcarg" attribute in the xlst stylesheets. The benefit
>>> would
>>> >> >> be
>>> >> >> that we could easily extract those paragraphs without worrying if
>>> they
>>> >> >> are
>>> >> >> in an Initialize section or in a Performance section.
>>> >> >>
>>> >> >> What do you think?
>>> >> >>
>>> >> >> François
>>> >> >>
>>> >> >> 2013/5/13 Francois PINOT 
>>> >> >>>
>>> >> >>> That's what I'm actually looking for in the docbook
>>> documentation.
>>> >> >>> I'll
>>> >> >>> let you know if I find something.
>>> >> >>>
>>> >> >>> Francois
>>> >> >>>
>>> >> >>>
>>> >> >>> 2013/5/13 Andres Cabrera 
>>> >> >>>>
>>> >> >>>> Ideally, the manual should look like:
>>> >> >>>>
>>> >> >>>> ifnfunction table
>>> >> >>>>
>>> >> >>>> I think a script could be written to transform it into that,
>>> but
>>> I'm
>>> >> >>>> not
>>> >> >>>> sure there's a relevant vocabulary with docbook.
>>> >> >>>>
>>> >> >>>> Cheers,
>>> >> >>>> Andrés
>>> >> >>>>
>>> >> >>>>
>>> >> >>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh 
>>> wrote:
>>> >> >>>>>
>>> >> >>>>> A single line of text tokens is what I'm working with now, but
>>> I
>>> can
>>> >> >>>>> go to xml just as easily. The output from Steven and Andres
>>> script
>>> >> >>>>> is
>>> >> >>>>> fine, but I would like more info. Would something like this be
>>> >> >>>>> possible?
>>> >> >>>>>
>>> >> >>>>>       
>>> >> >>>>>         oscil
>>> >> >>>>>         ares         oscil    xamp, xcps, ifn [,
>>> >> >>>>> iphs]
>>> >> >>>>>         oscil reads table ifn sequentially and
>>> >> >>>>> repeatedly
>>> >> >>>>> at a frequency xcps. The amplitude is scaled by
>>> xamp.
>>> >> >>>>>         ifn -- function table number. Requires a
>>> >> >>>>> wrap-around
>>> >> >>>>> guard point .iphs (optional, default=0) -- initial phase of
>>> >> >>>>> sampling,
>>> >> >>>>> expressed as a fraction of a cycle (0 to 1). A negative value
>>> will
>>> >> >>>>> cause phase initialization to be skipped. The default value is
>>> >> >>>>> 0.
>>> >> >>>>>         kamp, xamp -- amplitude kcps, xcps --
>>> frequency in
>>> >> >>>>> cycles per second.
>>> >> >>>>>       
>>> >> >>>>>
>>> >> >>>>> I don't see a way to easily parse the performance section of
>>> the
>>> >> >>>>> help
>>> >> >>>>> files?
>>> >> >>>>>
>>> >> >>>>>
>>> >> >>>>>
>>> >> >>>>>
>>> ------------------------------------------------------------------------------
>>> >> >>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> >> >>>>> "Graph Databases" is the definitive new guide to graph
>>> databases
>>> and
>>> >> >>>>> their applications. This 200-page book is written by three
>>> acclaimed
>>> >> >>>>> leaders in the field. The early access version is available
>>> now.
>>> >> >>>>> Download your free book today!
>>> http://p.sf.net/sfu/neotech_d2d_may
>>> >> >>>>> _______________________________________________
>>> >> >>>>> Csound-devel mailing list
>>> >> >>>>> Csound-devel@lists.sourceforge.net
>>> >> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> ------------------------------------------------------------------------------
>>> >> >>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> >> >>>> "Graph Databases" is the definitive new guide to graph
>>> databases
>>> and
>>> >> >>>> their applications. This 200-page book is written by three
>>> acclaimed
>>> >> >>>> leaders in the field. The early access version is available
>>> now.
>>> >> >>>> Download your free book today!
>>> http://p.sf.net/sfu/neotech_d2d_may
>>> >> >>>> _______________________________________________
>>> >> >>>> Csound-devel mailing list
>>> >> >>>> Csound-devel@lists.sourceforge.net
>>> >> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>>>
>>> >> >>>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> ------------------------------------------------------------------------------
>>> >> >> Learn Graph Databases - Download FREE O'Reilly Book
>>> >> >> "Graph Databases" is the definitive new guide to graph databases
>>> and
>>> >> >> their applications. This 200-page book is written by three
>>> acclaimed
>>> >> >> leaders in the field. The early access version is available now.
>>> >> >> Download your free book today!
>>> http://p.sf.net/sfu/neotech_d2d_may
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> ------------------------------------------------------------------------------
>>> >> > AlienVault Unified Security Management (USM) platform delivers
>>> complete
>>> >> > security visibility with the essential security capabilities.
>>> Easily
>>> and
>>> >> > efficiently configure, manage, and operate all of your security
>>> controls
>>> >> > from a single console and one unified framework. Download a free
>>> trial.
>>> >> > http://p.sf.net/sfu/alienvault_d2d
>>> >> > _______________________________________________
>>> >> > Csound-devel mailing list
>>> >> > Csound-devel@lists.sourceforge.net
>>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >>
>>> >>
>>> >>
>>> ------------------------------------------------------------------------------
>>> >> AlienVault Unified Security Management (USM) platform delivers
>>> complete
>>> >> security visibility with the essential security capabilities. Easily
>>> and
>>> >> efficiently configure, manage, and operate all of your security
>>> controls
>>> >> from a single console and one unified framework. Download a free
>>> trial.
>>> >> http://p.sf.net/sfu/alienvault_d2d
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> ------------------------------------------------------------------------------
>>> > AlienVault Unified Security Management (USM) platform delivers
>>> complete
>>> > security visibility with the essential security capabilities. Easily
>>> and
>>> > efficiently configure, manage, and operate all of your security
>>> controls
>>> > from a single console and one unified framework. Download a free
>>> trial.
>>> > http://p.sf.net/sfu/alienvault_d2d
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> AlienVault Unified Security Management (USM) platform delivers complete
>>> security visibility with the essential security capabilities. Easily
>>> and
>>> efficiently configure, manage, and operate all of your security
>>> controls
>>> from a single console and one unified framework. Download a free trial.
>>> http://p.sf.net/sfu/alienvault_d2d
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-05-18 13:00
FromRory Walsh
SubjectRe: [Cs-dev] parsing Csound help files..
That might work?

On 17 May 2013 17:05, Andres Cabrera  wrote:
> Another thought. How about using the names of parameters from the opcode
> list to find the lines with the appropriate description?
>
> Cheers,
> Andres
>
> On May 17, 2013 6:07 AM, "Francois PINOT"  wrote:
>>
>> It was another task: Menno wrote original examples for many opcodes but he
>> did not change the xml structure of the articles. Here we have to modify the
>> xml tags of some paragraphs without changing Menno's work.
>>
>>
>> 2013/5/17 Rory Walsh 
>>>
>>> If only we had though of this before Menno started his mammoth task of
>>> updating the entire help manual!
>>>
>>>
>>>
>>> On 17 May 2013 07:23, Francois PINOT  wrote:
>>> > Some of the manual opcode entries are a bit messy. So I think that a
>>> > completely automatic treatment is infeasible. One could write a python
>>> > script taking as input a single opcode article and proposing as output
>>> > a
>>> > rearranged version of the file. Then by quickly reading the concerned
>>> > parts
>>> > we could accept the output or add manually some corrections and/or
>>> > refactoring if necessary.
>>> >
>>> > There are 1275 xml files to modify. If we count an average of 2mn per
>>> > file,
>>> > it's a 40 hours job for one person, 20 hours job for two persons, 10
>>> > hours
>>> > job for four persons, etc.
>>> >
>>> > Volunteers ?
>>> >
>>> >
>>> > Regards
>>> >
>>> > Francois
>>> >
>>> >
>>> > 2013/5/17 Rory Walsh 
>>> >>
>>> >> I know, I was thinking the same thing. It would need script that would
>>> >> parse the existing xml files and place proper identifiers in them.
>>> >> Could be a bit of work. I think it might be quicker done in python
>>> >> than in C/C++ which is why I'm staying away from it. Sorry.
>>> >>
>>> >> On 17 May 2013 02:46, Andres Cabrera  wrote:
>>> >> > I think this would be a nice solution. But who will do it... ? :)
>>> >> > It might even be good to separate i-input, i-output, k-input,
>>> >> > k-output,
>>> >> > etc.
>>> >> > That way if something is needed in terms of formatting for the
>>> >> > output to
>>> >> > separte each it can be done easily.
>>> >> >
>>> >> >
>>> >> > Cheers,
>>> >> > Andrés
>>> >> >
>>> >> >
>>> >> > On Mon, May 13, 2013 at 8:04 AM, Francois PINOT 
>>> >> > wrote:
>>> >> >>
>>> >> >> I found this:
>>> >> >> http://www.tldp.org/HOWTO/DocBook-Install/using.html#AEN600,
>>> >> >> which seems to have a similar structure to what could be done. It's
>>> >> >> quite
>>> >> >> complicated!
>>> >> >>
>>> >> >> A simpler solution could be to use a role attribute in the 
>>> >> >> tags
>>> >> >> describing the opcode arguments. For example, in oscil.xml we could
>>> >> >> have
>>> >> >> something like this:
>>> >> >>
>>> >> >> 
>>> >> >>   ifn -- function table number. Requires a
>>> >> >> wrap-around guard point.
>>> >> >> 
>>> >> >>
>>> >> >> etc.
>>> >> >>
>>> >> >> This is neutral for docbook as long as we don't give any
>>> >> >> signification
>>> >> >> to
>>> >> >> this role="opcarg" attribute in the xlst stylesheets. The benefit
>>> >> >> would
>>> >> >> be
>>> >> >> that we could easily extract those paragraphs without worrying if
>>> >> >> they
>>> >> >> are
>>> >> >> in an Initialize section or in a Performance section.
>>> >> >>
>>> >> >> What do you think?
>>> >> >>
>>> >> >> François
>>> >> >>
>>> >> >> 2013/5/13 Francois PINOT 
>>> >> >>>
>>> >> >>> That's what I'm actually looking for in the docbook documentation.
>>> >> >>> I'll
>>> >> >>> let you know if I find something.
>>> >> >>>
>>> >> >>> Francois
>>> >> >>>
>>> >> >>>
>>> >> >>> 2013/5/13 Andres Cabrera 
>>> >> >>>>
>>> >> >>>> Ideally, the manual should look like:
>>> >> >>>>
>>> >> >>>> ifnfunction table
>>> >> >>>>
>>> >> >>>> I think a script could be written to transform it into that, but
>>> >> >>>> I'm
>>> >> >>>> not
>>> >> >>>> sure there's a relevant vocabulary with docbook.
>>> >> >>>>
>>> >> >>>> Cheers,
>>> >> >>>> Andrés
>>> >> >>>>
>>> >> >>>>
>>> >> >>>> On Sat, May 11, 2013 at 1:39 AM, Rory Walsh 
>>> >> >>>> wrote:
>>> >> >>>>>
>>> >> >>>>> A single line of text tokens is what I'm working with now, but I
>>> >> >>>>> can
>>> >> >>>>> go to xml just as easily. The output from Steven and Andres
>>> >> >>>>> script
>>> >> >>>>> is
>>> >> >>>>> fine, but I would like more info. Would something like this be
>>> >> >>>>> possible?
>>> >> >>>>>
>>> >> >>>>>       
>>> >> >>>>>         oscil
>>> >> >>>>>         ares         oscil    xamp, xcps, ifn [,
>>> >> >>>>> iphs]
>>> >> >>>>>         oscil reads table ifn sequentially and
>>> >> >>>>> repeatedly
>>> >> >>>>> at a frequency xcps. The amplitude is scaled by
>>> >> >>>>> xamp.
>>> >> >>>>>         ifn -- function table number. Requires a
>>> >> >>>>> wrap-around
>>> >> >>>>> guard point .iphs (optional, default=0) -- initial phase of
>>> >> >>>>> sampling,
>>> >> >>>>> expressed as a fraction of a cycle (0 to 1). A negative value
>>> >> >>>>> will
>>> >> >>>>> cause phase initialization to be skipped. The default value is
>>> >> >>>>> 0.
>>> >> >>>>>         kamp, xamp -- amplitude kcps, xcps --
>>> >> >>>>> frequency in
>>> >> >>>>> cycles per second.
>>> >> >>>>>       
>>> >> >>>>>
>>> >> >>>>> I don't see a way to easily parse the performance section of the
>>> >> >>>>> help
>>> >> >>>>> files?
>>> >> >>>>>
>>> >> >>>>>
>>> >> >>>>>
>>> >> >>>>>
>>> >> >>>>> ------------------------------------------------------------------------------
>>> >> >>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> >> >>>>> "Graph Databases" is the definitive new guide to graph databases
>>> >> >>>>> and
>>> >> >>>>> their applications. This 200-page book is written by three
>>> >> >>>>> acclaimed
>>> >> >>>>> leaders in the field. The early access version is available now.
>>> >> >>>>> Download your free book today!
>>> >> >>>>> http://p.sf.net/sfu/neotech_d2d_may
>>> >> >>>>> _______________________________________________
>>> >> >>>>> Csound-devel mailing list
>>> >> >>>>> Csound-devel@lists.sourceforge.net
>>> >> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>>
>>> >> >>>> ------------------------------------------------------------------------------
>>> >> >>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> >> >>>> "Graph Databases" is the definitive new guide to graph databases
>>> >> >>>> and
>>> >> >>>> their applications. This 200-page book is written by three
>>> >> >>>> acclaimed
>>> >> >>>> leaders in the field. The early access version is available now.
>>> >> >>>> Download your free book today!
>>> >> >>>> http://p.sf.net/sfu/neotech_d2d_may
>>> >> >>>> _______________________________________________
>>> >> >>>> Csound-devel mailing list
>>> >> >>>> Csound-devel@lists.sourceforge.net
>>> >> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>>>
>>> >> >>>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> ------------------------------------------------------------------------------
>>> >> >> Learn Graph Databases - Download FREE O'Reilly Book
>>> >> >> "Graph Databases" is the definitive new guide to graph databases
>>> >> >> and
>>> >> >> their applications. This 200-page book is written by three
>>> >> >> acclaimed
>>> >> >> leaders in the field. The early access version is available now.
>>> >> >> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > ------------------------------------------------------------------------------
>>> >> > AlienVault Unified Security Management (USM) platform delivers
>>> >> > complete
>>> >> > security visibility with the essential security capabilities. Easily
>>> >> > and
>>> >> > efficiently configure, manage, and operate all of your security
>>> >> > controls
>>> >> > from a single console and one unified framework. Download a free
>>> >> > trial.
>>> >> > http://p.sf.net/sfu/alienvault_d2d
>>> >> > _______________________________________________
>>> >> > Csound-devel mailing list
>>> >> > Csound-devel@lists.sourceforge.net
>>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> AlienVault Unified Security Management (USM) platform delivers
>>> >> complete
>>> >> security visibility with the essential security capabilities. Easily
>>> >> and
>>> >> efficiently configure, manage, and operate all of your security
>>> >> controls
>>> >> from a single console and one unified framework. Download a free
>>> >> trial.
>>> >> http://p.sf.net/sfu/alienvault_d2d
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > AlienVault Unified Security Management (USM) platform delivers complete
>>> > security visibility with the essential security capabilities. Easily
>>> > and
>>> > efficiently configure, manage, and operate all of your security
>>> > controls
>>> > from a single console and one unified framework. Download a free trial.
>>> > http://p.sf.net/sfu/alienvault_d2d
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> AlienVault Unified Security Management (USM) platform delivers complete
>>> security visibility with the essential security capabilities. Easily and
>>> efficiently configure, manage, and operate all of your security controls
>>> from a single console and one unified framework. Download a free trial.
>>> http://p.sf.net/sfu/alienvault_d2d
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net