|
From: | Thomas Morley |
Subject: | Re: placement sostenuto |
Date: | Sun, 25 Sep 2011 20:01:08 +0200 |
Hi Harm,Thanks for the insight!So then you could do something like this:
\version "2.14.2"
#(define (padding-for-tenuto x)(lambda (grob)(if (equal? "tenuto" (ly:prob-property (assoc-ref (ly:grob-properties grob) 'cause) 'articulation-type))(ly:grob-set-property! grob 'padding x)'())))#(define (custom-articulation-padding type x)(lambda (grob)(if (equal? type (ly:prob-property (assoc-ref (ly:grob-properties grob) 'cause) 'articulation-type))(ly:grob-set-property! grob 'padding x)'())))\relative c'' {\once \override Script #'after-line-breaking = #(padding-for-tenuto 0.75)f1--f1--\override Script #'after-line-breaking = #(custom-articulation-padding "accent" 1)f->f->\revert Script #'after-line-breakingf->}I don't know if I've gotten at the name of the articulation in the best way, but this works. One drawback is that there can only be one override of 'after-line-breaking at a time.
So, if you want multiple changes to default values -- a change to tenuto, a change to accent, etc. -- these should be added as conditions to the function. The second function lets you plug in the name of the articulation you want to override.
[Prev in Thread] | Current Thread | [Next in Thread] |