Am 27.08.2013 08:10, schrieb Marc Hohl:
Am 27.08.2013 01:53, schrieb Thomas Morley:
[...]

I see no easy way to change it.
In the end it might be less effort to rewrite a (shortened)
markup-command for use with LilyJAZZ.

You're probably right here. I am just busy at the moment, but
as soon as time allows, I'll either try to write a suitable
note-by-number routine for LilyJAZZ or a simplified markup command.

Ok, I had a little time.

What I came up with is a simple markup command based loosely on some LSR
snippets:

---
\version "2.17.25"

jazzTempoMarkup = #(define-scheme-function (parser location name music bpm) (string? ly:music? string?)
  #{ \markup {
       \line {
         #name
         "("
         \score {
           \new Staff \with {
             fontSize = #-4
             \override StaffSymbol #'staff-space = #(magstep -4)
             \override StaffSymbol #'line-count = #0
             \override VerticalAxisGroup #'Y-extent = #'(0 . 0)
           }
           \relative c'' { \jazzOn \stemUp $music }
           \layout {
             ragged-right= ##t
             indent = 0
             \context {
               \Staff
               \remove "Clef_engraver"
               \remove "Time_signature_engraver"
             }
           }
         }
         "="
         #bpm
         ")"
       }
     }
   #})

\score {
  \new Staff {
    \jazzOn
    \mark\jazzTempoMarkup #"Swing" c4 #"120"
    c'4 d' e' f'
  }
}
\score {
   \new Staff {
    \jazzOn
    \mark\jazzTempoMarkup #"Bossa" c2 #"150"
    c'4 d' e' f'
  }
}
\score {
   \new Staff {
    \jazzOn
    \time 6/8
    \mark\jazzTempoMarkup #"Blues" c4. #"60"
    c'4. d' e' f'
  }
}

---

THis yields in the attached output, which is mostly fine, but dotted
notes seem to carry some unwanted space. Soes anyone know where this
comes from and how it can be avoided?

Thanks,

Marc


Regards,

Marc

Greetings,
   Harm



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


<<attachment: tempotest.png>>

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to