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