lilypond-user
[Top][All Lists]
Advanced

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

Re: hide notes and slurs also hide gliss


From: Trevor Daniels
Subject: Re: hide notes and slurs also hide gliss
Date: Sat, 20 Dec 2008 08:43:16 -0000

Hi Haipeng

Several comments:

a) The hidden notes and slurs do not affect the glissandi, but there is no
need to hide the slurs in this way.  It is easier to simply remove them
from the score.

b) There is a problem with \hideNotes - it does not remove the beams above
the hidden notes.  These must be removed with \autoBeamOff and turned on
again when needed with \autoBeamOn

c) Some of the glissandi are too short.  They may be lengthened with a
couple of overrides:

\override Glissando #'minimum-length = #20
\override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods

d) All this is very messy.  Have you considered using \bendAfter? This
prints a slightly curving line going up or down from the note as far as
is specified. This is much easier to type and I think indicates correctly
what you want to show.

I have changed your code to implement (a) to (c) above, and repeated the
first bar underneath using \bendAfter.  Here it is:

 \relative c'' {
   \clef treble \key g \minor \time 4/4
   \override Glissando #'minimum-length = #5
   \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
\autoBeamOff g8*1/2\mf\glissando \hideNotes bes16 \unHideNotes g16*1/2\glissando \hideNotes bes32 \unHideNotes \autoBeamOn g32 g d'8 d \grace d16( c2)^\fermataMarkup |
   c4 d8.([ f16)] g,8 bes4.*5/6\upmordent^\fermataMarkup\glissando g16 |
\autoBeamOff d8*1/2\glissando \hideNotes g16 \unHideNotes \autoBeamOn d d32 d bes'8 bes \grace bes16( g2) |
   bes4\< g8([ bes)] d\! \grace d16( c4^\fermataMarkup d8) |
   \time 2/4 bes8\> d, bes'4 |
   \time 4/4 \grace bes16( g1)\!\p^\fermataMarkup \bar "||"
 }
 \relative c'' {
   \clef treble \key g \minor \time 4/4
\bendAfter #2 g8 \mf \bendAfter #2 g16 g32 g d'8 d \grace d16( c2)^\fermataMarkup |
 }

Trevor

----- Original Message ----- From: "胡海鹏 Hu Haipeng" <address@hidden>
To: "lilypond-user" <address@hidden>
Sent: Friday, December 19, 2008 10:38 PM
Subject: hide notes and slurs also hide gliss


Hello:
I showed the full score of my song to my mother last evening, and she was very happy. But she said that my implementation failed, because the hidden notes and slurs also hide glissandi. In Chinese music, some notes will be sung or played with an ascending or descending end, thus a "tail". I use these commands at the introduction:
% should \sequential be removed?
% I don't know why you use this command to hide notes,
% so I used it in case of problems, but...
hideSlur = \sequential {
 \override Slur #'stencil = ##f
}
unHideSlur = \sequential {
 \revert Slur #'stencil
}
 \relative c'' {
   \clef treble \key g \minor \time 4/4
\hideSlur g8*1/2(\mf\glissando \hideNotes bes16) \unHideNotes g16*1/2(\glissando \hideNotes bes32) \unHideNotes g32 g d'8 d \unHideSlur \grace d16( c2)^\fermataMarkup | c4 d8.([ f16)] g,8 \hideSlur bes4.*5/6(\upmordent^\fermataMarkup\glissando g16) | \hideSlur d8*1/2(\glissando \hideNotes g16) \unHideNotes d d32 d bes'8 bes \unHideSlur \grace bes16( g2) |
   bes4\< g8([ bes)] d\! \grace d16( c4^\fermataMarkup d8) |
   \time 2/4 bes8\> d, bes'4 |
   \time 4/4 \grace bes16( g1)\!\p^\fermataMarkup \bar "||"
 }




--------------------------------------------------------------------------------


_______________________________________________
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]