Fantastic, that quite did it!
thanks
Rodolfo

On Sun, Feb 20, 2011 at 11:01 PM, Gilles THIBAULT
<[email protected]> wrote:
>> process of converting
>> them manually to two separate voices:
>> <c e>8 <d f> <e g> <f a>
>>
>> becomes
>>
>> << { e8 f g a} \\ { c8 d e f } >>
>>
>
> With the function \extractNote of the snippet you have given (
> http://lsr.dsi.unimi.it/LSR/Item?id=545 ), you can have something like that
> :
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> splitInTwoVoices = #(define-music-function (parser location music)
> (ly:music?)
> #{
> <<
>   \extractNote #2 $music
>      \\
>   \extractNote #1 $music
>  >>
> #})
>
> music = \relative {<c e>8 <d f> <e g> <f a>}
>
> \new Staff \splitInTwoVoices \music
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> Gilles
>
>
>
>

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to