[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: chord slides
From: |
Patrick Schmidt |
Subject: |
Re: chord slides |
Date: |
Mon, 03 Aug 2009 10:24:53 +0200 |
Trevor,
thank you very much for your solution. I managed to achieve what I wanted
without fully understanding of what's going on. Here's the code:
\version "2.13.3"
\relative c' {
\new Staff <<
\new Voice = "visible" {
e,16[ e
\once \override Glissando #'minimum-length = #5
\once \override Glissando #'springs-and-rods =
#ly:spanner::set-spacing-rods
\once \override Glissando #'thickness = #2
% glissando is attached to b' & c'
<e' b' e>\glissando <f c' f>]
}
\new Voice = "hidden1" {
s s
\hideNotes
% attach glissando to note heads
\once \override Glissando #'thickness = #2
e\glissando f
}
\new Voice = "hidden2" {
s s
\hideNotes
% attach glissando to note heads
\once \override Glissando #'thickness = #2
b\glissando c
}
>>
}
As you told me I added another hidden voice. It confuses me that the second
hidden voice ("hidden2") has to come last even though it's a middle voice. If I
place "hidden2" before "hidden1" then I don't get a glissando from e1 to f1.
> You have to set the beams manually, which
> means the start and end notes of the beam
> must be in the same voice, hence the spacer
> notes in the example below.
I didn't understand why the spacer notes in the hidden voices are needed.
Didn't you set the beams manually in the "visible" voice?
>From my point of view it would be more intuitive if it were possible to set
>glissandi in chords just the way ties are set, e.g.:
<c e g>\glissando<d fis a>
resulting in one glssando mark for each voice.
But this is probably hard to program and would cause many other code changes ...
Cheers,
Patrick
-------- Original-Nachricht --------
> Datum: Sun, 2 Aug 2009 22:08:38 +0100
> Von: "Trevor Daniels" <address@hidden>
> An: "Patrick Schmidt" <address@hidden>
> CC: "Lilypond-User List" <address@hidden>
> Betreff: Re: chord slides
>
> Patrick Schmidt wrote Sunday, August 02, 2009 1:50 PM
> >
> > I would like to achieve a chord slide.
> >
> > 1) How come that I can see the glissando marks when I use half
> > notes but not when I use sixteenths?
>
> The glissando can often become so short it
> is invisible, as happens here. It's length
> can be overriden, but it's a bit messy. The
> method is explained in section 5.4.6 of the
> Notation Reference, and I've given an example
> below.
>
> > 2) How can I slide chords with more than 2 voices?
>
> You need to add as many hidden voices as the
> number of notes in the chord less 1.
>
> > 3) How can I combine the beams of the single notes with those of
> > the slided chords?
>
> You have to set the beams manually, which
> means the start and end notes of the beam
> must be in the same voice, hence the spacer
> notes in the example below.
>
> Below is one approach to your problem. You
> will have to ignore warnings about clashing
> note columns due to the hidden notes. I've
> also increased the thickness of the gliss,
> and the length is probably too long - you
> can easily adjust these.
>
> Trevor
>
> \version "2.13.3"
> \relative c' {
> \new Staff <<
> \new Voice = "visible" {
> e,16[ e
> \once \override Glissando #'minimum-length = #5
> \once \override Glissando #'springs-and-rods =
> #ly:spanner::set-spacing-rods
> \once \override Glissando #'thickness = #2
> % glissando is attached to b' & c'
> <e' b'>\glissando <f c'>]
> }
> \new Voice = "hidden" {
> s s
> \hideNotes
> % attach glissando to note heads
> \once \override Glissando #'thickness = #2
> e\glissando f
> }
> >>
> }
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser