lilypond-user
[Top][All Lists]
Advanced

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

Re: Space containing text between two bars


From: Mark Witmer
Subject: Re: Space containing text between two bars
Date: Sat, 27 Oct 2012 03:40:30 -0400

Hi Nick (cc'ing lilypond-user@ this time),

Here's a solution for that excerpt. The specific solution for blanking out the staff is to use \stopStaff and \startStaff; between those two commands, you can use \override Staff.StaffSymbol #'transparent to ##t and likewise Staff.BarLine #'transparent = ##t. 

I just did the repeat text, fingerings, and circled numbers because I haven't messed with those much before and I was curious to see if I could get them working. If anyone knows how to align a fingering right against a note when there's an accidental present elsewhere in the Staff's note column at that moment in musical time, I'd love to know how it's done. This also generates a warning about already having a volta spanner that I wasn't sure how to get rid of, but that doesn't affect the output.

Hope that helps,

Mark Witmer

\version "2.17.5"

fingerLeft = \set fingeringOrientations = #'(left)
fingerUp = \set fingeringOrientations = #'(up)
fingerDown = \set fingeringOrientations = #'(down)

\score {
  \new Staff \with { \remove "Clef_engraver"
     \consists "Balloon_engraver"
     \remove "Time_signature_engraver" }
  \relative c'  {
    \time 3/4
    \repeat volta 2 {
      \partial 4 s4
    } \alternative {
      << { 
\set Score.repeatCommands = #`((volta ,#{ 
\markup \concat {
  1 
  \text \fontsize #0 {
    \normal-size-super a
          }
        } 
              #})) 
\fingerLeft <gis'-1>4 
\override Staff.BalloonTextItem #'annotation-balloon = ##f
\override Staff.BalloonTextItem #'annotation-line = ##f
\balloonGrobText #'Stem #'(0 . -0.01) \markup \whiteout \circle \fontsize #-2 "1"
\stemDown <e''\harmonic-0>2} \\ \fingerLeft <e,,,-0>2. >>
      << { 
\set Score.repeatCommands = #`(end-repeat (volta ,#{ 
\markup \concat {
  2 
  \text \fontsize #0 {
    \normal-size-super a
          }
        } 
              #}))
\override Fingering #'staff-padding = #'() 
\fingerUp <gis'-1>4 \stemDown 
\once \override Stem #'length = #3
\balloonGrobText #'Stem #'(0 . -0.01) \markup \whiteout \circle \fontsize #-2 "1"
\fingerLeft <\tweak NoteHead #'style #'harmonic-black e'-0>4\fermata} \\ <e,,-0>2  >>  
    }

    \override Staff.BarLine #'transparent = ##t
    \stopStaff
    \override Staff.StaffSymbol #'transparent = ##t
    \once \override TextScript #'extra-offset = #'(0 . -5)
    \textLengthOn
    s4^\markup \small { 
      \general-align #Y #UP
      \center-column{
\concat { 
  "D.C. hasta  " 
  \fontsize #-3 \general-align #Y #DOWN \musicglyph #"scripts.segno" 
  "y"
"salta a Fin"
      }
    }
    \startStaff

    \repeat volta 1 {
      \stopStaff
      \override Staff.StaffSymbol #'transparent = ##f
      \override Staff.BarLine #'transparent = ##f
      \startStaff }
    \alternative {
      << {
\set Score.repeatCommands = #`((volta ,#{ 
     \markup {
       \text \fontsize #2 "Fin"
     }
   #})) 
\override Fingering #'staff-padding = #'() 
\bar " "
\fingerUp <a'-3>4 \stemDown \fingerLeft <e'\harmonic-0>2\fermata} \\ 
 { \fingerLeft <e,-2 a,-0>2. \bar "|." } >> }
  }
}

p.s. \fontsize #0 is a weird text markup command, but if you remove it, \text { \normal-size-super a } gives you an error for some unknown reason.

On Fri, Oct 26, 2012 at 11:51 PM, Nick Payne <address@hidden> wrote:
How can I achieve an output that looks like the attached example, where
the final bar of the piece is separated from the preceding bars by some
text? Is there an LSR snippet that has this sort of layout?

Nick

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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