[Top][All Lists]

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

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 (X11/20070716)

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

\new Staff \relative c'' <<
   {c4\glissando s2 f,4 }
   \new Voice { s4 \headless b \headless a }

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


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
headless = #(define-music-function (parser location) ()
    \once \override Staff . NoteHead #'transparent = ##t

\relative c'' {
    c4\glissando \headless b\glissando \headless a\glissando f

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!


lilypond-user mailing list

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

reply via email to

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