[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with layout variables in 2.13.4
From: |
Federico Bruni |
Subject: |
Re: problems with layout variables in 2.13.4 |
Date: |
Fri, 02 Oct 2009 12:02:04 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
James E. Bailey wrote:
On 01.10.2009, at 16:50, Federico Bruni wrote:
I wonder also if it's possible to put some text on the right side of a
short and not ragged staff.
I'd like to add a description to each effect (see attached .pdf).
I don't know if it will work with what you're doing, but you may want to
try having the music in a markup block. Then, adding text on the right
is very easy.
James E. Bailey
Thanks to Francisco's link I managed to put the music in a markup block.
Now I have problems with aligning text on the right. I've made several
tries, but nothing is working as expected.
Any suggestion? (see example attached)
Thanks,
Federico
--
http://www.gnurag.net/blog/
\version "2.13.4"
%\include "hp.ly"
#(set-global-staff-size 22.45)
\header {
title = "Legenda"
}
\paper {
indent = 0
line-width = 160\mm
%after-title-spacing = #'((space . 5))
%before-title-spacing = #'((space . 13))
%top-title-spacing = #'((space . 5))
%between-title-spacing = #'((space . 15))
}
\markup { \bold \huge "Hammer-On" }
hammeron= \markup {
\score {
\new StaffGroup <<
\new Staff \with { \remove "Time_signature_engraver" } { \clef "G_8" s2
c'4 ( d' ) }
\new TabStaff { \clef "moderntab" s2 c'4 ( d' ) }
>>
\layout {
}
}
}
\markup {
%\fill-line {
\hspace #1
%\column {
\hammeron
%}
\hspace #2
%\column {
{ \general-align #Y #CENTER %% not working..
"A hammer-on is executed by hammering one of the fingers of the left hand
.. bla bla bla bla bla"
%% also, how can I automatically break the text lines?
}
%}
%}
}
\markup { \bold \huge "Pull-Off" }
pulloff = \markup {
\score {
\new StaffGroup <<
\new Staff { \clef "G_8" s2 d'4 ( c' ) }
\new TabStaff { \clef "moderntab" s2 d'4 ( c' ) }
>>
\layout { }
}
}
\markup {
\pulloff
}