lilypond-user
[Top][All Lists]
Advanced

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

Re: placement sostenuto


From: Dmytro O. Redchuk
Subject: Re: placement sostenuto
Date: Fri, 23 Sep 2011 16:59:50 +0300
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri 23 Sep 2011, 10:30 luis jure wrote:
> i see that this override changes the placement of all the objects
> belonging to Script, including articulation marks like accent and the
> rest. anyway, i prefer to use a global \override in my template, instead
> of individual tweaks. 
> 
> i understand one cannot adjust with \override the properties of individual
> objects belonging to script?
If i understtod your right, you'd like to \override something for, let's say,
tenuto only. I believe it's possible; i would start with this approach:

%-------------
\displayMusic { c''1-- }
%-------------

Compiling this we can see in log/terminal:

%-------------
(make-music
  'SequentialMusic
  'elements
  (list (make-music
          'EventChord
          'elements
          (list (make-music
                  'NoteEvent
                  'duration
                  (ly:make-duration 0 0 1 1)
                  'pitch
                  (ly:make-pitch 1 0 0))
                (make-music
                  'ArticulationEvent
                  'articulation-type
                  "tenuto")))))
%-------------

So, this 'ArticulationEvent has an 'articulation-type = "tenuto".

As we can use a function for \override:
   \override Script #'padding = #(padding-for-tenuto)
 --- we can imagine a function which takes a grob as an argument and checks if
an articulation is "tenuto" and returns .75 if it is, or "default value"
otherwise.

So, what you need is posible, if it's possible to get 'articulation-type from
grob (which would be passed to our function as an argument). And if it is
possible to return "default value" for any other but "tenuto".

To be honest, i don't know if it's possible .)

;; If it was --- would be better to modify "our function"
;; to accept default value for tenuto:
   \override Script #'padding = #(padding-for-tenuto .75)
;;;

Actually i would love to see somebody really knowledgeable helping you .)

-- 
  Dmytro O. Redchuk                        "Easy to use" is easy to say.
  Bug Squad                                             -- Jeff Garbers



reply via email to

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