[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: \markup
From:       Ole Schmidt <oleschmidt () gmx ! net>
Date:       2007-02-28 23:18:52
Message-ID: 41545E63-1DA9-4175-87E5-CBEFE5A58B5F () gmx ! net
[Download RAW message or body]

In the meantime I find a solution myself (see below) but your  
horizontal alignment fix of the \score element is surely better. I  
will implant it tomorrow.

thank you

ole

%%%%%%%%%%%%%%%%%%%%%%%%

\markup{ \column {\line { {  Il flatterzunge legato per il  
clarinetto: }\left-align \vcenter {\score {\new Staff \with {
\remove "Time_signature_engraver"
\remove "Clef_engraver" \remove "Staff_symbol_engraver"
} {
g'4:32
} \layout { } } } \transparent {a }{ e un rapido ribattere della nota  
senza tremolo dentale. }}

\line
{\vcenter
{\musicglyph #"scripts.prallprall" }
\vcenter { "= vibrato ampio, possiblemente attenuto trillando con la  
nota inferiore di un quarto di tono."}}

\line
{ \left-align
{ \vcenter {\semiflat "= quarto di tono calante" \transparent {a }   
\semisharp "= quarto di tono crescente"}
}
}


}

}

\version "2.10.15"

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


> First step is to fix the horizontal alignment, using
> indent = 0 and ragged-right = ##t (if you keep the Staff symbol
> engraver, you will realize why).
>
> For the vertical alignment, there's a markup command
> \vcenter to set the alignment point on a specific markup
> to be centered. There are no similar markup commands for
> top and bottom aligned, but there you can use \general-align.
> The following modified version of your example is hopefully
> fairly close to what you want:
> \markup { \general-align #Y #DOWN "per il clarinetto" \general- 
> align #Y #DOWN \score {\new Staff \with {
> \remove "Time_signature_engraver"
> \remove "Clef_engraver" \remove "Staff_symbol_engraver"
> } {
> d'4:32
> } \layout { ragged-right = ##t indent = 0} } }
>
> Note that I changed the pitch of the note. Apparently, the
> stave still allocates some space even though it's not printed.
>
>>
>> %%%%%%%%%%%%%%%%%%%%%%
>>
>> \markup {{\musicglyph #"scripts.prallprall" }"= vibrato ampio"}
>>
> Here, you can use
> \markup {{\musicglyph #"scripts.prallprall" } \vcenter "= vibrato  
> ampio"}
>
>
>   /Mats




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic