lilypond-user
[Top][All Lists]
Advanced

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

Re: Unexpected \markup behavior


From: Jan-Peter Voigt
Subject: Re: Unexpected \markup behavior
Date: Mon, 13 Dec 2010 10:13:18 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

Hello Ralph,

the \halign aligns all markups and stacks them. If you want to align the whole dynamic _expression_, make it a single markup with \line or \concat:

  d4_\markup {
    % negative value to right align, so that the forte is near the corresponding note
    \halign #-0.5 {
      \whiteout \pad-markup #0.5 \line {
    \dynamic {f} \italic {"meno"}
      }
    }
  }

By the way, you might think of defining a dynamic script:

dynalign = {
    % right align the forte near the corresponding note
    \once \override DynamicText #'self-alignment-X = #0.8
}
menoF = #(make-dynamic-script (markup (#:whiteout #:pad-markup 0.5 #:line (#:normal-text(#:italic "meno") #:dynamic "f"))))

% later ...
{
\dynalign c4\menoF
}

I hope this helps.

Regards,
Jan-Peter

On 12.12.2010 16:46, Ralph Palmer wrote:
Greetings -

I'm running 2.12.3 under a slightly older version of Ubuntu.

The recent spanBar collision discussion came at a good time for me. I was able to solve a collision of my own. However, I can't seem to figure out how to get "mf, espr." to behave the way "meno f" does. Here's a minimal example:

%%%%%%%%%% Begin Snippet %%%%%%%%%%%

\version "2.12.3"

A =
\relative c' {
  \key c \major
  \clef treble
  \time 4/4

% Works as expected:
  c'4 c c c |
  d4_\markup {
    \halign #0.5 {
      \whiteout \pad-markup #0.5 {
    \italic {"meno "} \dynamic {f}
      }
    }
  }
  d d d |

% Why doesn't this work?
  c4 c c c |
  d4_\markup {
    \halign #0.5 {
      \whiteout \pad-markup #0.5 {
    \dynamic {f} \italic {"meno "}
      }
    }
  }
  d d d |
}

B=
\relative c' {
  \key c \major
  \clef treble
  \time 4/4

  d'4 d d d |
  e4 e e e |
  d4 d d d |
  c4 c c c |
}

\score {
  \new StaffGroup <<
    \new Staff << \A >>
    \new Staff << \B >>
  >>
}
\layout {}

%%%%%%%%% End Snippet %%%%%%%%5

I'm attaching a .pdf of the output. Can anyone tell me what I'm doing wrong, or steer me in the right direction?

Pondly,

Ralph

--
Ralph Palmer
Montague City, MA
USA
address@hidden
_______________________________________________ lilypond-user mailing list address@hidden http://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

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