lilypond-user
[Top][All Lists]
Advanced

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

Re: String number in a \markup


From: David Stocker
Subject: Re: String number in a \markup
Date: Mon, 09 Feb 2009 13:56:47 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Thanks, Nick! That does exactly what I needed.

Nick Payne wrote:
Have a look at the message I posted yesterday titled "Colliding rests
warning". The code I included in that shows how to move the string number
markup to underneath the clef symbol:
http://www.mail-archive.com/address@hidden/msg45134.html.

You could also engrave both actual notes and scordatura. As a player I find
that easier when the scordatura involves two or three strings - I don't have
to keep remembering which strings and by how much. It's obviously more work
for the engraver, though. eg:

\version "2.12.2"

\paper {
        #(set-paper-size "a4")
        top-margin = 1.5\cm
        bottom-margin = 1.5\cm
        line-width = 18\cm
        ragged-last-bottom = ##f
}

\header {
        tagline = ##f
}

actual = \markup {
\lower #0.5 \score {
                \new Staff \with {
                        \remove "Time_signature_engraver"
                } {
                        \set Staff.instrumentName= \markup \huge "(actual) "
                        \clef treble \cadenzaOn
                        \override Stem #'transparent = ##t
                        <d a d' a' d'' f''>4 s \bar "dashed"
                }
                \layout {
                        ragged-right = ##t
                        indent = 1\cm
                }
        }
        \hspace #.5
}

scordatura = \markup {
\lower #1.0 \score {
                \new Staff \with {
                        \remove "Time_signature_engraver"
                } {
                        \set Staff.instrumentName= \markup \tiny
"(scordatura)  "
                        \clef treble \cadenzaOn
                        \override Stem #'transparent = ##t
                        <d a d' g' b' e''>4 s \bar "dashed"
                }
                \layout {
                        ragged-right = ##t
                        indent = 1\cm
                }
        }
        \hspace #.5
}

actualnotes = \relative c' {
        \clef treble
        d,8( f) bes d <a' d>4
        \bar "|."
}

scordaturanotes = \relative c' {
        \clef treble
        d,8( f-3) bes-1 d-0 <g-0 b!-0>4
        \bar "|."
}

\score {
        <<
                \new Staff <<
                        \tempo "Moderato"
                        \set Staff.instrumentName = \actual
                        \new Voice \actualnotes
                >>
                \new Staff <<
                        \set Staff.instrumentName = \scordatura
                        \new Voice \scordaturanotes
                >>
        >>
        \layout {
                ragged-right = ##t
                indent = 5\cm
                \context {
                        \Staff
                        \remove "Time_signature_engraver"
                }
        }
}
%=========================================================

Nick

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of David Stocker
Sent: Monday, 9 February 2009 23:55
To: M Watts
Cc: address@hidden
Subject: Re: String number in a \markup

Thanks.

To elaborate, and make it a little more elegant looking:

\version "2.12"

\relative c' {
  c1_\markup {
    \column {
      \line { \general-align #Y #CENTER { \teeny \bold { \circle 5 }
"="
"G" } }
      \line { \general-align #Y #CENTER { \teeny \bold { \circle 6 }
"="
"C" } }
    }
  }
}

Jonathan-I think this does what we're looking for. It doesn't call the
characters used for the string numbers, but it looks very similar. Now
we need to move it left so that it's left aligned the clef, below the
first line in the score.

Dave

M Watts wrote:
David Stocker wrote:
Hi folks,

Is there a way to insert a string number into a \markup? What I need
is to indicate a scordatura for a guitar piece like this:

\markup {
 \column {
   \line { \small "5 = G" }
   \line { \small "6 = C" }
 }
}

where the '5' and '6' are identical to their analogous string
numbers
(i.e. they are encircled)

In the Feta Font, these don't seem to by music-glyphs. Is there a
reasonably easy way to call these within a \markup? are they glyphs
from another font?

\markup {
\column {
  \line { \small \circle 5 "= G" }
  \line { \small \circle 6 "= C" }
}
}



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.233 / Virus Database: 270.10.19/1940 - Release Date:
02/08/09 17:57:00







reply via email to

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