lilypond-user
[Top][All Lists]

Re: Glissando from note A to note B, traversing multiple stems with hidd

 From: Mats Bengtsson Subject: Re: Glissando from note A to note B, traversing multiple stems with hidden noteheads Date: Thu, 30 Oct 2008 15:54:46 +0100 User-agent: Thunderbird 2.0.0.5 (X11/20070716)

The easiest is to use separate voices for the glissando notes and the headless notes inbetween:
\version "2.10.0"
\once \override Staff . NoteHead #'transparent = ##t
}

\new Staff \relative c'' <<
{c4\glissando s2 f,4 }
>>

Note also that it was overkill to use a music function to define \headless, see my solution above.

/Mats

Mike Solomon wrote:
Hey lilypond users,
I am trying to write a glissando from note A to note B while traversing
several headless stems and, so far, have only come up with the following
solution:
headless = #(define-music-function (parser location) ()
#{
\once \override Staff . NoteHead #'transparent = ##t
#})

\relative c'' {
}

In this example, the glissandos are disconnected where the transparent
noteheads begin and end.  This is in addition to the larger problem that the
glissando from the headless a to the f has a different slope than the
others, and ideally, I'd like one smooth line from c to f.  I've
experimented with a variety of kludges including raising/lowering noteheads
to interpolate linearly between note A and note B, but this still does not
solve the problem of disjoint glissando lines at the transparent noteheads.
It seems like a simple solution would be allowing for a glissando to connect
to a non-subsequent note, so in the above example, having the glissando
connect from the c to the f and budging the stems of b and a accordingly to
connect with the gliss.  However, I don't know how to do this.  Your help
would be greatly appreciated!

~Mike

_______________________________________________
lilypond-user mailing list
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax:   (+46) 8 790 7260