[Top][All Lists]

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

Re: an open question

From: Jacques Menu Muzhic
Subject: Re: an open question
Date: Wed, 28 Mar 2018 08:47:35 +0200

Hello Jan-Peter,

Thanks for the information. 

Exporting to MusicXML is difficult, also because there are things that need to be done in LP with Scheme code since there’s no ‘first class citizen’ to do the job.

This leads for example to the use of markup for things such as the swing tempo indication:

tempoRelationshipStaffReduce = #-3

tempoRelationship =
#(define-music-function (parser location label parenthesized musicI musicII)
   (string? boolean? ly:music? ly:music?)
   (let* (
           (left-paren (if parenthesized "(" ""))
           (right-paren (if parenthesized ")" ""))
       \tempo \markup {
         \line \general-align #Y #DOWN {
           % 1st column in line

           % 2nd column in line


           \score {
             \new Staff \with {
               % reduce the font size a la cue
               fontSize = #tempoRelationshipStaffReduce
               \override StaffSymbol.staff-space = #(magstep tempoRelationshipStaffReduce)
               % hide the staff lines
               \override StaffSymbol.line-count = #0
               % align horizontally
               \override VerticalAxisGroup.Y-extent = #'(-0.85 . 0)

               % \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/2) % super-tight
               % \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/4) % tight
               % \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 3/16) % even
               \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 5/32) % even

               % the left music
               \relative c' { \stemUp $musicI }

               % the equivalence sign
               \once \override Score.TextScript.Y-offset = #-0.4
                 \halign #-1 "="

               % the right music
               \relative c' { \stemUp $musicII }

             \layout {
               indent = 0
               \context {
                 \remove "Clef_engraver"
                 \remove "Time_signature_engraver"
             } % layout end
           } % score end


         } % line end
       } % markup end

    \tempoRelationship #"Swing" ##t
    \fixed b' {
      b8 [ b8 ] 
    \fixed b' {
      \tuplet 3/2 { b4 b8 }

while they can be described natively in MusicXML:

     <direction placement="above">
          <metronome parentheses="yes" default-y="30" halign="left" relative-x="26">
              <metronome-beam number="1">begin</metronome-beam>
              <metronome-beam number="1">end</metronome-beam>
              <metronome-tuplet bracket="yes" show-number="actual" type="start">
              <metronome-tuplet type="stop">

I’m not at ease enough currently with the Scheme/Lilypond interaction to be of any help, unfortunately.


Le 26 mars 2018 à 07:29, Jan-Peter Voigt <address@hidden> a écrit :

Hello Jacques,

last year I have been working on an export module for lilypond:
This is in an early stage, a proof of concept. I had to put this project aside for a while, but it is still on my agenda and hopefully it develops further soon.

So if anyone is interested in joining this challenge you may contact via the list or private mail.


Am 24.03.2018 um 17:47 schrieb Jacques Menu Muzhic:
Joe, what do mean exactly by pure data?
Jan-Peter, I’m interested in the MusicXML export from LP, can you tell us more?
A nice day!

reply via email to

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