lilypond-user
[Top][All Lists]
Advanced

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

Re: divisi parts and another general question


From: Kieren MacMillan
Subject: Re: divisi parts and another general question
Date: Sat, 2 Mar 2013 13:51:26 -0500

Hi Sarah,

> Hey thanks. I'm thinking of using the  thing in  the manual that says
> 
> << { \voiceOne ... }
>  \new Voice { \voiceTwo ... }
>>> \oneVoice

You should.  ;)

Here's a function (and snippet/example) that might help:

\version "2.17.13"

split =
#(define-music-function (parser location music1 music2) (ly:music? ly:music?)
  (make-music
   'SequentialMusic
   'elements
   (list (make-music
          'SimultaneousMusic
          'elements
          (list (make-music
                 'SequentialMusic
                 'elements (list voiceOne music1))
                (make-music
                 'ContextSpeccedMusic
                 'property-operations '()
                 'context-id "2"
                 'context-type 'Voice
                 'element (make-music 'SequentialMusic
                                      'elements (list voiceTwo music2)))))
         oneVoice)))


\score {
  \relative c' {
    \time 4/4
    c8( d e f) \split { g4 } { c,16( d e f) } r4   |
    a2 b   |
    \split { c1 } { c,8( d e f g a b c) }   |
  }
}

Best wishes,
Kieren.



reply via email to

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