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: Karl Husum
Subject: Re: Hiding bars and crescendo on last bar of a piece
Date: Sat, 24 Oct 2015 14:25:51 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

 { c1\mp\<\fermata \bar ":|."| %16
                   \break
                   r1\! | %17 }

Bar 16 is the last bar of my piece. I have added an ekstra bar and ended the crescendo on the first beat on that.
My intention is to hide the ekstra bar to get the crescendo as i want.

Thank you :-)

Karl


Den 24-10-2015 kl. 14:21 skrev Simon Albrecht:
On 24.10.2015 15:17, Karl Husum wrote:
Thank you for your help :-)

I want to hide the bar, not the barline :-)
I am trying to put the end of the crescendo on an ekstra bar in the piece, and then hide it.

I don’t quite get what you’re trying to achieve here. Can you give an image example, or otherwise more context?

Yours, Simon


Not sure if it the most elegant solution, but it should mbe possible.

Thank you

Karl

Den 24-10-2015 kl. 13:54 skrev Simon Albrecht:
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]