lilypond-user
[Top][All Lists]
Advanced

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

Scheme: Is there a make-right-align-markup?


From: Risto Vääräniemi
Subject: Scheme: Is there a make-right-align-markup?
Date: Mon, 4 Feb 2008 16:40:21 +0200

Dear All,

OK. I must admit that there's no such thing. I just wanted to get your
attention. :-)

I've been searching for a scheme function that I could use for
aligning markups on their right edges. I found a solution for
centering them (below) and it uses a function / procedure called
make-center-align-markup. It centers the texts alright. If I use
make-column-markup I get a column thats aligned on the left edge.

How to get the texts aligned to the right? I tried to add
#:right-align and #:column to various places but they didn't work or
caused errors. I consider myself as a newbie scheme user and perhaps
this is still out of my league. :-)

Why I don't simply do that directly at the Staff.instrumentName?
Because I've got that song book I'm writing and I'd like to be able to
adjust the instrument name (and other) settings for all the songs in
one place (an .ily file).

Is there a complete list of Lilypond scheme functions and their usage
(an API)? I tried to search for the make-center-align-markup in the
docs but couldn't find any reference to it.

-Risto

%%% Snip %%%
\version "2.11.37"

#(define-markup-command (instruments layout props markups) (markup-list?)
  (interpret-markup layout props
    (markup
        (#:override '(baseline-skip . 2.8)
            (markup (make-center-align-markup markups))))))

{
    \set Staff.instrumentName = \markup \instruments { Soprano Alto }
    c'1
}
%%% END %%%




reply via email to

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