lilypond-user
[Top][All Lists]
Advanced

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

Re: How to limit customized graceSettings?


From: Pierre Perol-Schneider
Subject: Re: How to limit customized graceSettings?
Date: Sun, 18 Aug 2013 02:22:43 +0200

2013/8/17 Thomas Morley <address@hidden>

> 2) property setting music objs. in music-functions.scm

Here I don't understand.
Could you c/p what you did?

OK.
In LilyPond scm files, there is one named music-functions.scm.
If you open it, at the end of the first quater you'll see :

 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; property setting music objs.

.... bla bla

(define-safe-public (make-voice-props-set n)
  (make-sequential-music
   (append
    (map (lambda (x) (make-grob-property-set x 'direction
                                             (if (odd? n) -1 1)))
         direction-polyphonic-grobs)
    (list
     (make-property-set 'graceSettings
                        ;; TODO: take this from voicedGraceSettings or similar.
                        '((Voice Stem font-size -3)
                          (Voice Flag font-size -3)
                          (Voice NoteHead font-size -3)
                          (Voice TabNoteHead font-size -4)
                          (Voice Dots font-size -3)
                          (Voice Stem length-fraction 0.8)
                          (Voice Stem no-stem-extend #t)
                          (Voice Beam beam-thickness 0.384)
                          (Voice Beam length-fraction 0.8)
                          (Voice Accidental font-size -4)
                          (Voice AccidentalCautionary font-size -4)
                          (Voice Script font-size -3)
                          (Voice Fingering font-size -8)
                          (Voice StringNumber font-size -8)))

     (make-grob-property-set 'NoteColumn 'horizontal-shift (quotient n 2))))))

As it is written, you have to re-write your grace settings in this file in order to have the desired effect. 
So I was thinking that, maybe, in your code, you also have to write somehow these double settings.
Hope that helps.

 
Btw, I stumbled on it, while rewriting
http://lsr.dsi.unimi.it/LSR/Item?id=566
See:
http://lilypond.1069038.n5.nabble.com/flam-snippet-not-working-td149310.html

Once I'm satisfied, I'll add the commented 2.16.2-code to the LSR-snippet.
If you seriously want to tackle LSR-upgrade, you'll find some other
snippets with such annotations.

Yes I've seen that this afternoon.  
Thanks Harm.

Cheers,
Pierre


reply via email to

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