lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion: add a \score { } block in musicxml2ly output


From: Reinhold Kainhofer
Subject: Re: Suggestion: add a \score { } block in musicxml2ly output
Date: Sat, 1 Nov 2008 22:29:02 +0100
User-agent: KMail/1.9.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 1. November 2008 schrieb Valentin Villenave:
> me (in petto): "hmm... perhaps we should consider having a \score
> block by default in musicxml2ly output."
>
> ... or even add a \layout {} and _midi {} block, for what it's worth.
>
> I had a look at the source; I thought maybe we could add something in
> musicxml2ly.py around the line 2473. But then, IANAP; and I don't know
> what's the preferred method to do that.

Actually, I think it's better to create a dedicated class in musicexp.py for a 
score and let that output the \score {...}, including \layout and (a 
currently commented-out) \midi. 
I've made the corresponding changes to the code and pushed to master.

The output of musicxml2ly is now something like:

% The score definition
\score {
    <<
[.....]
        >>
    \layout {}
    % To create MIDI output, uncomment the following line:
    % \midi {}
    }

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJDMogTqjEwhXvPN0RAkNIAJ9WTPXC5v9q4IkvI2S9H2VQZFsCSQCgvKWo
IFNVjNTv/Kz0QeRXcIRVjDw=
=QOax
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]