RE: RehearsalMark hack

2005-11-23 Thread Fairchild
- Bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Wednesday, November 23, 2005 7:52 AM To: Mats Bengtsson Cc: lilypond-user@gnu.org Subject: Re: RehearsalMark hack hi mats, bruce, On 11/23/05, Mats Bengtsson <[EMAIL PROTECTED]>

Re: RehearsalMark hack

2005-11-23 Thread Simon Bailey
On 11/23/05, Mats Bengtsson <[EMAIL PROTECTED]> wrote: > I can tell you a secret: I didn't look in the documentation at all, I looked > directly in scm/define-grobs.scm. However, I think it's a plain bug that > the documentation for this property isn't included properly, and have > sent a related e

Re: RehearsalMark hack

2005-11-23 Thread Mats Bengtsson
Simon Bailey wrote: i didn't redefine this function, because i didn't know that rehearsalmarks were categorically shifted to the right at the beginning of a line. it is not stated in the documentation that this property is set to #shift-right-at-line-begin by default. I can tell you a sec

Re: RehearsalMark hack

2005-11-23 Thread Simon Bailey
hi, On 11/23/05, Mats Bengtsson <[EMAIL PROTECTED]> wrote: > As far as I can see, the result will be exactly the same if you remove > the \book! this is true -- i did it out of habit... sorry for the confusion. regards, sb -- Do not meddle in the affairs of trombonists, for they are subtle and

Re: RehearsalMark hack

2005-11-23 Thread Simon Bailey
hi mats, bruce, On 11/23/05, Mats Bengtsson <[EMAIL PROTECTED]> wrote: > For the horizontal position, why did you not directly redefine the > function that handles the placement av rehearsal marks after line > breaks? The default function has the following definition (from > scm/output-lib.scm): >

Re: RehearsalMark hack

2005-11-23 Thread Mats Bengtsson
This should be added to Tips and Tricks. It also is a useful example for \book and \repeat As far as I can see, the result will be exactly the same if you remove the \book! /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://l

RE: RehearsalMark hack

2005-11-23 Thread Fairchild
Title: Message Simon -   In Version 2.4.6 the invocation line needs to be:   \override Score.RehearsalMark #'before-line-breaking-callback = #mark-callback   Impressive detective work.  Please add commentary about the documentation trail you followed to discover your result.  Maybe include

Re: RehearsalMark hack

2005-11-23 Thread Mats Bengtsson
For the horizontal position, why did you not directly redefine the function that handles the placement av rehearsal marks after line breaks? The default function has the following definition (from scm/output-lib.scm): (define-public (shift-right-at-line-begin g) "Shift an item to the right, but

RehearsalMark hack

2005-11-23 Thread Simon Bailey
after delving deeply into the lilypond backend documentation (especially the scheme functions list) i managed to get my hack working in three lines: #- SNIP LILY CODE HERE - #(define (mark-callback grob)   (if (= (ly:item-break-dir grob) 1)   (ly:grob-set-property! grob 'extra-offset '