lilypond-user
[Top][All Lists]
Advanced

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

Re: Beam direction with \new Voice


From: lilypond
Subject: Re: Beam direction with \new Voice
Date: Fri, 07 Aug 2009 22:14:26 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.1.6)

Hi Kieren, hi James,

Thank you very much to both of you, that was exactly what I was looking for!

Heike

Quoting Kieren MacMillan <address@hidden>:

Hi Heike,

You'll need \voiceOne and \voiceTwo (and \oneVoice) for this construction.
You may also need to name your second Voice context.
For reference, you'll want to re-read section 1.5.2 of the Notation Reference, Multiple Voices.

Here's a function that might help.

Cheers,
Kieren.

___________________________

\version "2.13"
#(ly:set-option 'point-and-click #f)

split = #(define-music-function (parser location upper lower)
(ly:music? ly:music?)
#{ << { \voiceOne $upper } \context Voice = "2" { \voiceTwo $lower } >>
\oneVoice #})

splitMusic = \relative
{
  c'4 b a b \split { c1 b4( a) g2 } { c,4 d e f g1 }
}

theWords = \lyricmode {
  This is how we split mu -- sic!
}

\score
{
  <<
    \new Voice = "melody" \splitMusic
    \new Lyrics \lyricsto "melody" { \theWords }
  >>
}







reply via email to

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