lilypond-user
[Top][All Lists]
Advanced

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

Re: Hiding bars and crescendo on last bar of a piece


From: Simon Albrecht
Subject: Re: Hiding bars and crescendo on last bar of a piece
Date: Sat, 24 Oct 2015 14:54:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Hello Karl,

welcome to the list!

On 24.10.2015 14:35, Karl Husum wrote:
How do you hide bars in Lilypond,

There’s a really nice command for that: ‘\hide BarLine’ :-)

that is make them invisible?

\hide does typeset the grob, but invisibly, and thus still reserves space; you might also try \omit, which doesn’t typeset the grob at all.

And how do you end a crescendo on a whole note when it is the last note of a piece?

There are multiple ways, see the following example:

%%%%%%%%%%%%%%%%%
\version "2.18.2"
\language "deutsch"

after =
#(define-music-function
  (parser location t e m)
  (ly:duration? ly:music? ly:music?)
  #{
    <<
      #m
      { \skip $t <> -\tweak extra-spacing-width #empty-interval $e }
    >>
  #})

\score {
  <<
    \new Voice {
      c''1\<
      \once\hide Score.BarLine
      \once\hide Score.SpanBar
      h'\!
      \bar "|."
    }
    \new StaffGroup <<
      \new Voice {
        c''1\<
        % simultaneous music within one voice
        << { h' } { s2 s\! } >>
      }
      \new Voice {
        c''1\<
        % after a duration of ‘2.’, insert a ‘\!’ while the ‘h'’ is playing
        \after 2. \! h'
      }
    >>
  >>
}
%%%%%%%%%%%%%%%%%%

If you have further questions, don’t hesitate to ask.
In general, it’s very much recommended to read our Learning Manual, which provides an indispensable basis for working with LilyPond: <http://lilypond.org/doc/v2.18/Documentation/learning/index.html>.

Happy Ponding and best regards,
Simon



reply via email to

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