lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Re: syntax change for \cresc


From: Xavier Scheuer
Subject: Re: [PATCH] Re: syntax change for \cresc
Date: Tue, 27 Apr 2010 19:26:01 +0200

2010/4/26 Reinhold Kainhofer <address@hidden>:

> Absolutely. You can't imagine how long i fought to find proper ways
> to align "pp" and "pp sempre" properly with each other!

How interesting!
Do you use Graham's function or do you have something "on your own"?

I hoped normal markups to align automatically beside dynamics if
presents, but John disagreed so I didn't open a discussion about that
on one of the international mailing lists.

  c'4\mp-\markup \italic "dolce"

to produce the quite usual "mp dolce".

[And by the way why not make the traditional note-"text" in italic by
default, since the large majority of musical indications are shaped
this way?]

But this is another discussion, and I think I will come again with that
during the GLISS.


> No, \< will produce a hairpin, \cresc a text crescendo... There's
> really no need for \crescTextCresc any more.

That's great, I mean, a huge improvement for basic users like me.


> As with any other text crescendo spanner:
>   \override DynamicTextSpanner #'dash-period = #-1.0

Actually I was speaking about a way to implement this directly into
your music function.  But I found a workaround using -tweak (in order
to not use this \override before the note), see "myCrescMod" below.


> No, that's not possible. LilyPond cannot have a function with
> arguments behave like that.  If you want a command to take arguments,
> it will always need a -, _ or ^ before the command. That's a general
> restriction with the parser and also applies to many other functions.
> Most notably, the \tweak command suffers from this very problem, too.
> See e.g.
> http://kainhofer.com/~lilypond/Documentation/notation/the-tweak-command.html

Thanks for the explanation.
It is really agreeable when a wise man takes the time to spread this
information.

By the way I found a solution using another variable that would have
this '-' within its definition.

mycresc = #(define-music-function (parser location mymarkup) (string?)
   (make-music 'CrescendoEvent 'span-direction START
               'span-type 'text 'span-text mymarkup))

myCrescMod = -\tweak #'dash-period #-1.0 -\mycresc "cresc"

{
  c'4\myCrescMod c' c' c'
  c'4\f c' c' c'
}

Cheers,
Xavier

--
Xavier Scheuer <address@hidden>




reply via email to

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