[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: divisi parts and another general question
From: |
David Kastrup |
Subject: |
Re: divisi parts and another general question |
Date: |
Sat, 02 Mar 2013 20:06:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
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
- divisi parts and another general question, Sarah k Alawami, 2013/03/01
- Re: divisi parts and another general question, Hwaen Ch'uqi, 2013/03/02
- Re: divisi parts and another general question, David Kastrup, 2013/03/02
- Re: divisi parts and another general question, Hwaen Ch'uqi, 2013/03/02
- Re: divisi parts and another general question, Sarah k Alawami, 2013/03/02
- Re: divisi parts and another general question, Kieren MacMillan, 2013/03/02
- Re: divisi parts and another general question, Noeck, 2013/03/02
- Re: divisi parts and another general question, Sarah k Alawami, 2013/03/02
- Re: divisi parts and another general question,
David Kastrup <=
- Re: divisi parts and another general question, Sarah k Alawami, 2013/03/02
- RE: divisi parts and another general question, Kieren MacMillan, 2013/03/02
- Re: divisi parts and another general question, David Kastrup, 2013/03/02
- Re: divisi parts and another general question, Sarah k Alawami, 2013/03/02
- Re: divisi parts and another general question, Roland Goretzki, 2013/03/02
- Re: divisi parts and another general question, Sarah k Alawami, 2013/03/02
- Re: divisi parts and another general question, Roland Goretzki, 2013/03/03
- Re: divisi parts and another general question, Werner LEMBERG, 2013/03/03
- Re: divisi parts and another general question, Sarah k Alawami, 2013/03/03
- Re: divisi parts and another general question, Sarah k Alawami, 2013/03/03