Re: tuplet number placement and ornament
Hello, On 1 May 2012 06:12, Nick Payne nick.pa...@internode.on.net wrote: On 01/05/12 14:32, Werner LEMBERG wrote: In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: [...] I want the number there, but not have it displaced upwards as if the bracket was still there and avoiding the mordent. I found subsequent to my previous message that I can achieve this by using \override TupletBracket #'avoid-scripts = ##f. This should be documented (in case it isn't yet). Other than the avoid-scripts property appearing in the Internals ref, TupletBracket #'avoid-scripts doesn't appear to be documented. So what you're saying is apart from the 'avoid-scripts' property being documented [in the IR] it isn't documented? Is that what you meant, otherwise you'll need to elaborate. There is a bug for tuplet number placement - https://code.google.com/p/lilypond/issues/detail?id=2397. It's marked as fixed, but it seems to me that there is still a bug there if collision avoidance for a TupletBracket is still being performed when the TupletBracket stencil has been turned off. Can't comment on that, Mike Solomon made the patch for this, maybe he can. James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
On 01/05/12 17:06, James wrote: Hello, On 1 May 2012 06:12, Nick Paynenick.pa...@internode.on.net wrote: On 01/05/12 14:32, Werner LEMBERG wrote: In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: [...] I want the number there, but not have it displaced upwards as if the bracket was still there and avoiding the mordent. I found subsequent to my previous message that I can achieve this by using \override TupletBracket #'avoid-scripts = ##f. This should be documented (in case it isn't yet). Other than the avoid-scripts property appearing in the Internals ref, TupletBracket #'avoid-scripts doesn't appear to be documented. So what you're saying is apart from the 'avoid-scripts' property being documented [in the IR] it isn't documented? Is that what you meant, otherwise you'll need to elaborate. Yes, that's what I mean. Searching the documentation for TupletBracket #'avoid-scripts doesn't find anything. There is a bug for tuplet number placement - https://code.google.com/p/lilypond/issues/detail?id=2397. It's marked as fixed, but it seems to me that there is still a bug there if collision avoidance for a TupletBracket is still being performed when the TupletBracket stencil has been turned off. Can't comment on that, Mike Solomon made the patch for this, maybe he can. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
Hello, On 1 May 2012 08:31, Nick Payne nick.pa...@internode.on.net wrote: On 01/05/12 17:06, James wrote: Hello, On 1 May 2012 06:12, Nick Paynenick.pa...@internode.on.net wrote: On 01/05/12 14:32, Werner LEMBERG wrote: In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: [...] I want the number there, but not have it displaced upwards as if the bracket was still there and avoiding the mordent. I found subsequent to my previous message that I can achieve this by using \override TupletBracket #'avoid-scripts = ##f. This should be documented (in case it isn't yet). Other than the avoid-scripts property appearing in the Internals ref, TupletBracket #'avoid-scripts doesn't appear to be documented. So what you're saying is apart from the 'avoid-scripts' property being documented [in the IR] it isn't documented? Is that what you meant, otherwise you'll need to elaborate. Yes, that's what I mean. Searching the documentation for TupletBracket #'avoid-scripts doesn't find anything. Thanks http://code.google.com/p/lilypond/issues/detail?id=2508 James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
Hello, On 1 May 2012 08:52, James pkx1...@gmail.com wrote: Hello, On 1 May 2012 08:31, Nick Payne nick.pa...@internode.on.net wrote: On 01/05/12 17:06, James wrote: Hello, On 1 May 2012 06:12, Nick Paynenick.pa...@internode.on.net wrote: On 01/05/12 14:32, Werner LEMBERG wrote: In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: [...] I want the number there, but not have it displaced upwards as if the bracket was still there and avoiding the mordent. I found subsequent to my previous message that I can achieve this by using \override TupletBracket #'avoid-scripts = ##f. This should be documented (in case it isn't yet). http://lilypond.org/doc/v2.15/Documentation/internals-big-page#tupletbracket It is documented after all. :/ I missed it too. james ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
- Original Message - From: Nick Payne nick.pa...@internode.on.net To: lilypond-user@gnu.org Sent: Monday, April 30, 2012 7:39 AM Subject: tuplet number placement and ornament In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: \version 2.15.37 \relative c'' { \set tupletSpannerDuration = #(ly:make-moment 1 4) \override TupletBracket #'stencil = ##f \times 2/3 { g8 fis g g\mordent fis g } } If you want to get rid of the number, use TupletNumber (appropriately). -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
Nick, In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: \version 2.15.37 \relative c'' { \set tupletSpannerDuration = #(ly:make-moment 1 4) \override TupletBracket #'stencil = ##f \times 2/3 { g8 fis g g\mordent fis g } } Since the number is positioned according to where the bracket would be, you could override 'positions of TupletBracket: \relative c'' { \set tupletSpannerDuration = #(ly:make-moment 1 4) \times 2/3 { g8 fis g \override TupletBracket #'positions = #'(3.34 . 3.34) g\mordent fis g } } HTH, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
Hi again, Since the number is positioned according to where the bracket would be, you could override 'positions of TupletBracket: \relative c'' { \set tupletSpannerDuration = #(ly:make-moment 1 4) \times 2/3 { g8 fis g \override TupletBracket #'positions = #'(3.34 . 3.34) g\mordent fis g } } If you want something more automatic, you could try the solution below. Basically, I'm setting the 'positions of TupletBracket to that of Beam and adding in an offset for correct positioning. It will work with downstems, too, but there will be a collision if you put the mordent on the middle note. (Of course the override is unnecessary in that case...) There's probably a radically simpler solution here, but for what it's worth... \version 2.15.37 #(define proc (lambda (grob) (let* ((first-note (car (ly:grob-array-list (ly:grob-object grob 'note-columns (note-heads (ly:grob-array-list (ly:grob-object first-note 'note-heads))) (stem (ly:grob-object (car note-heads) 'stem)) (beam (ly:grob-object stem 'beam)) (beam-pos (ly:grob-property beam 'positions)) (padding (ly:grob-property grob 'padding)) (beam-thick (* 0.5 (ly:grob-property beam 'beam-thickness))) (dir (ly:grob-property grob 'direction))) (coord-translate beam-pos (* dir (+ beam-thick padding)) \relative c'' { \set tupletSpannerDuration = #(ly:make-moment 1 4) \override TupletBracket #'positions = #proc %\override TupletBracket #'bracket-visibility = ##t \times 2/3 { g8 fis g g\mordent fis g } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
On 30/04/12 16:47, Phil Holmes wrote: - Original Message - From: Nick Payne nick.pa...@internode.on.net To: lilypond-user@gnu.org Sent: Monday, April 30, 2012 7:39 AM Subject: tuplet number placement and ornament In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: \version 2.15.37 \relative c'' { \set tupletSpannerDuration = #(ly:make-moment 1 4) \override TupletBracket #'stencil = ##f \times 2/3 { g8 fis g g\mordent fis g } } If you want to get rid of the number, use TupletNumber (appropriately). No, what I meant was that I want the number there, but not have it displaced upwards as if the bracket was still there and avoiding the mordent. I found subsequent to my previous message that I can achieve this by using \override TupletBracket #'avoid-scripts = ##f. Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: [...] I want the number there, but not have it displaced upwards as if the bracket was still there and avoiding the mordent. I found subsequent to my previous message that I can achieve this by using \override TupletBracket #'avoid-scripts = ##f. This should be documented (in case it isn't yet). Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tuplet number placement and ornament
On 01/05/12 14:32, Werner LEMBERG wrote: In the following, even though I've turned off the tuplet bracket stencil, the tuplet number is still placed as though the stencil was there: [...] I want the number there, but not have it displaced upwards as if the bracket was still there and avoiding the mordent. I found subsequent to my previous message that I can achieve this by using \override TupletBracket #'avoid-scripts = ##f. This should be documented (in case it isn't yet). Other than the avoid-scripts property appearing in the Internals ref, TupletBracket #'avoid-scripts doesn't appear to be documented. There is a bug for tuplet number placement - https://code.google.com/p/lilypond/issues/detail?id=2397. It's marked as fixed, but it seems to me that there is still a bug there if collision avoidance for a TupletBracket is still being performed when the TupletBracket stencil has been turned off. Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user