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: Sarah k Alawami
Subject: Re: divisi parts and another general question
Date: Sat, 2 Mar 2013 11:16:07 -0800

Yeah I think what I'll do since the voices are in unison mid measure and brake 
back out in to split parts is just put both notes on both voices  unless 
there's a slightly easier way to do this? as the \OneVoice never in theory 
happens. and rhythms are going to be slightly different  so writing in parallel 
is not going to be possible as it will throw  up errors.

thoughts?
On Mar 2, 2013, at 11:06 AM, David Kastrup <address@hidden> wrote:

> Kieren MacMillan <address@hidden> writes:
> 
>> 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)))
> 
> Uh, any reason this is not just
> 
> split =
> #(define-music-function (parser location music1 music2)
>   (ly:music? ly:music?)
>   #{ << { \voiceOne $music1 \oneVoice }
>         \context Voice = "2" { \voiceTwo $music2 } >>
>   #})
> 
> Why make things more complex than necessary?
> 
> -- 
> David Kastrup
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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