lilypond-user
[Top][All Lists]
Advanced

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

Re: fingering


From: Mark Polesky
Subject: Re: fingering
Date: Fri, 13 Mar 2009 20:48:58 -0700 (PDT)

James,

You're "funneling two different
music expressions into one context",
but you've not explicitly instantiated a voice context.
See http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Creating-contexts
and 
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Explicitly-instantiating-voices

In general, it is a good idea to instantiate voices explicitly.
Many LilyPond "purists" feel that automatic voice-instantiation
makes it easier for novices, but causes headaches later on.
Writing this:
   {c}
is valid syntax, but once things get moderately complex (which
usually doesn't take long), then using this syntax:
   { \new Voice = "A" { c } }
      -or-
   { \context Voice = "A"  { c } }
is safer.

Note that when you add
   \new Voice = "A"
you no longer need the #'add-stem-support command.

Hope this helps.
- Mark

\include "deutsch.ly"
\version "2.12.2"
musicOne = { c'8 d' e' f' g' a' h' c'' }
musicOneFingerings= { s8-1 s-2 s-3 s-1 s-2 s-3 s-4 s-5}
musicTwo = {c'8-1 d'-2 e'-3 f'-1 g'-2 a'-3 h'-4 c''-5}

\score { \new Staff \new Voice = "A" <<\musicOne \musicOneFingerings >> }
\score { \musicTwo }


      




reply via email to

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