I found a solution! Not the best one, in my opinion, but at least it works: \version "2.11.49" pcresc = #(define-music-function (parser location x) (ly:music?) #{ \context Voice << $x { \setTextCresc \override DynamicTextSpanner #'dash-period = #-1.0 s 1*0\p \< \setHairpinCresc } >> #}) \version "2.11.49" { \pcresc c' d' e' f' g' 1 \f c' 4\p \< d' e' f' g' 1 \f } But I would prefer to write the \pcresc command after (and not before) the note. Is it possible to organize it in this way? 2008/9/8 Stefan Thomas <[EMAIL PROTECTED]>
> Yes, I understand it is not possible in the way I tried. > But the problem is: I have already defined a "\pcresc" command and I would > like to change it once for the whole score, if possible. > > 2008/9/8 James E. Bailey <[EMAIL PROTECTED]> > >> >> On 08.09.2008, at 13:46, Stefan Thomas wrote: >> >> Dear James, Dear Kieren, >>> thanks for Your help. I tried to create a variable, but it didn't work, >>> unfortunately. >>> I tried it with: >>> pcresc = { \setTextCresc \override DynamicTextSpanner #'dash-period = >>> #-1.0 \p \< } >>> Is it possible to do something like this? >>> >> >> no, but you only need to set those once, so if you begin your input by >> setting text crescendo and removing the line spanner, then it's set until >> you change it again. >> > >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user