Neil Puttock schrieb:
2009/8/19 Marc Hohl <m...@hohlart.de>:
Carl, do you have any hints where to start such an enhancement?
If you search for `separator' you should find the code which splits
the music into voices. It will have a context-spec-music block which
will need amending to use Bottom rather than Voice to ensure the split
music is created in the default child context of the Staff-level
context.
Neil, thanks for your hint!
I searched and found the following definition in scm/music-functions.scm:
(define (voicify-list lst number)
"Make a list of Musics.
voicify-list :: [ [Music ] ] -> number -> [Music]
LST is a list music-lists.
NUMBER is 0-base, i.e. Voice=1 (upstems) has number 0.
"
(if (null? lst)
'()
(cons (context-spec-music
(make-sequential-music
(list (make-voice-props-set number)
(make-simultaneous-music (car lst))))
'Bottom (number->string (1+ number))) ;; 'Voice changed to
'Bottom here
(voicify-list (cdr lst) (1+ number)))))
As you proposed, I changed 'Voice to 'Bottom, and everything seems to
work without problems!
I can't believe it's just that simple. Should this become default, i.e.
should I create a patch?
Or are there some caveats I simply do not see now?
This would imply that parts of the documentation have to be
changed/simplified, for example
the drum notation part Mats referred to in his mail:
http://lilypond.org/doc/v2.13/Documentation/user/lilypond/Common-notation-for-percussion#Percussion-staves
Thanks
Marc
Regards,
Neil
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user