Hu, 2009/2/3 胡海鹏 - Hu Haipeng <hhpmu...@163.com>: > Hello, > Vallentin ever helped me to get a stemBoth function when I wrote the full > score of my song for attending the CCTV piano competition: > stemBoth = #(define-music-function (parser location m) (ly:music?) > #{ << \voiceOne $m \new Voice { \voiceTwo $m } >> \oneVoice #}) > Now I'm orchestrating Debussy's Clair De Lune. The British teacher is very > happy with my progress, and the piece is coming to its finish. But when I > use the function as follows (viola), I discovered its big disadvantage, and > then had to use a usual input way: > \relative c { > \clef alto \key des \major \time 9/8 > r8 <f aes>4\pp^"Div." \stemBoth ces'2. | > } > Both note and octave dot are copied, therefore the output is: > \relative c { > \clef alto \key des \major \time 9/8 > r8 <f aes>4\pp^"Div." <ces' ces'>2. | > } > What a boring result! Could anyone tell me how to filter out the octave > dot and leave only note?
Why not to use simple polyphony? \relative c { \clef alto \key des \major \time 9/8 r8 <f aes>4\pp^"Div." <<ces'2. \\ ces2. >> | } I didn't see much merit to use a function here. HTH Antanas Budriūnas _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user