Am Montag, 10. Januar 2011, um 15:26:04 schrieb Phil Holmes:
> It produces the output in the png attached. What's clearly happening is
> that the ottava marking affects both voices, despite it being only present
> in one voice. I've also tried with explicit voices. If we drop the octave
> of the second chord in the upper voice to place the notes correctly, we
> can't tie the notes. Is it possible to ottavate only one voice?
No, not easily. Currently, the callback function make-ottava-set for
OttavaMusic has it hardcoded to assign the ottavation properties to the staff:
(define (make-ottava-set music)
"Set context properties for an ottava bracket."
(let ((octavation (ly:music-property music 'ottava-number)))
(list (context-spec-music
(make-apply-context
(lambda (context)
[....])
'Staff))))
If you modify that function in scm/define-music-callbacks.scm to 'Voice
instead of 'Staff, then \ottava only applies to the current voice (which is,
however, probably now what we want by default).
Of course, you can always try to reproduce the functionality of make-ottava-
set manually...
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, [email protected], http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user