lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: polyphony in tablature


From: Marc Hohl
Subject: Re: polyphony in tablature
Date: Thu, 20 Aug 2009 08:58:57 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Neil Puttock schrieb:
2009/8/19 Marc Hohl <address@hidden>:

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]