lilypond-user
[Top][All Lists]
Advanced

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

getting score information


From: jaap de wolff
Subject: getting score information
Date: Tue, 8 Oct 2019 16:27:24 +0200

Hello,

 

At this moment I am in the process of creating a lilypond musicxml module.

The module is written in scheme, and at this moment the module is able to handle simple music.

 

At this moment I am able to handle both

 

simplemusic = {valid music}

 

\musicxml \simplemusic

 

And

 

simplemusic = { valid music}

 

simplescore = \score (

                \simplemusic

                \layout {}

                }

\musicxml \simplescore

 

First question:

 

I want to be able to do:

simplemusic = {valid music}

 

\score (

                \simplemusic

                \layout {}

                \musicxml {}

                \midi {}

                }

 

Can anyone give a hint how to do this?

 

Second question:

 

When doing \musicxml \simplescore the scheme function gets an object of the type ly:score.

 

By digging in code I found out that from this score music can be extracted using ly:score-music

Also header can be extracted using ly:score-header and output-defs using ly:score-output-defs

 

The extracted music can be used without a problem.

However I can’t figure out how to use the extracted header and output-defs.

 

I want to be able to extract information like composer and title to put in musicxml

 

Does anyone have suggestions?

 

Jaap de Wolff

 

 


reply via email to

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