On Friday 04 Mar 2011 13:20:42 Chris Cannam wrote:
> On 4 March 2011 12:44, Graham Percival <g.perciva...@research.gla.ac.uk> 
wrote:
> > + data/pitches/tunings
> 
> I'm not at all sure about introducing a custom file format and parser.
Me neither. I wanted The Doug to write a lex/yacc one, but he refused :)

>  Why not just use XML like all our other configuration files?  That's
> very easily parsed using Qt.
I can see the case for that. Although I'm no fan of XML, it would be a unified 
approach. The reason we used that format is that it's what comes out of scala, 
see http://www.huygens-fokker.org/scala/scl_format.html

For the moment we only distribute 12-ET and 19-ET files, because all the 
microtonal performances we're working with are singing or playing in 19-ET, 
but there was a time when we were considering extended mean tone. Because 
tuning's a very sophisticated and difficult area as soon as you move outside 
equal temperament, we thought it better to use scala to generate these values. 
It's easy to work out n-ET with appropriate use of pow(3), but what about 
"1/4-comma meantone scale. Pietro Aaron's temperament (1523)"?

I suppose an scala to rosegarden tool would be possible, but I'm opposed to 
that because it constitutes supporting scala which, although ubiquitous among 
the micro-tonal community, is non-free.

The parser we've got is nasty, but self-contained and quite well-tested. The 
only real thing I've got against an XML one is that it gives me the 
opportunity to introduce a whole new raft of bugs, many of which would be hard 
to detect.

Nick/.


> 
> I appreciate XML is harder to read and edit than plain text and in
> some cases we already have a plain text source format that gets
> converted to XML for the build.  But at least that avoids having to
> maintain a parser in the Rosegarden source itself.
> 
> 
> Chris
> 
> ---------------------------------------------------------------------------
> --- What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions. http://p.sf.net/sfu/progress-d2d
> _______________________________________________
> Rosegarden-devel mailing list
> Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
> https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

-- 
Dr Nicholas Bailey                                      
http://www.n-ism.org/People/nick.php
Science and Music Research Group,
School of Engineering, The University of Glasgow

Find out about our Music Informatics MSc:       http://www.n-ism.org/SPECTRUM
Signal Processing, Electronics and Computing Techniques
        for Researching and Understanding Music

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to