lilypond-user
[Top][All Lists]
Advanced

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

Re: autobeams


From: Jonathan Kulp
Subject: Re: autobeams
Date: Thu, 14 Aug 2008 06:58:40 -0500
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Mats Bengtsson wrote:

Why not a \oneVoice, which gives the same result but lets LilyPond automatically determine the stem direction.

This works perfectly. Thanks!

Perhaps even better: don't use the \\ but explicitly
instantiate one of the voices
(related to a recent email discussion).

When I removed the \\, I got errors about clashing columns. I'll check into the explicit voice instantiation thing. For now I like the \oneVoice solution for this example.

The \oneVoice solution did not work for the example from GDP I'm working on, though. The autobeaming still doesn't appear. Here's the original code and then the fix I made for it. In James' example, the \oneVoice fixed stem direction and autobeaming. In this example, there was no problem with stem direction to begin with, just with autobeaming. If you see a more elegant way please share :)

Jon

p.s. As I mentioned before, this example in the docs is not specifically aimed at multiple voices, so another solution would be to remove the second voice altogether. It just bugs me when stuff doesn't work :)
--

% Example from Notation Reference 1.2.6.2

cadenza = \relative c' {
  c4 d8 << { e f g } \\ { d4. } >>
  \oneVoice g4 f2 g4 g
}

\new GrandStaff <<
  \new Staff { \cadenza c'4 }
  \new Staff {
    #(ly:export (mmrest-of-length cadenza))
    c'4
  }
>>


% My adjustment to make autobeaming work

\version "2.11.55"

cadenza = \relative c' {
  << { c4 d8 e f g g4 f2 g4 g } \\ { s4. d4. s4 } >>
%   g4 f2 g4 g
}

\new GrandStaff <<
  \new Staff { \cadenza c'4 }
  \new Staff {
    #(ly:export (mmrest-of-length cadenza))
    c'4
  }
>>





reply via email to

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