lilypond-devel
[Top][All Lists]
Advanced

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

Inconsistency in \cr, \cresc, \<, \dim handling


From: Reinhold Kainhofer
Subject: Inconsistency in \cr, \cresc, \<, \dim handling
Date: Thu, 20 Dec 2007 17:00:30 +0100
User-agent: KMail/1.9.7

Hi,
It seems that while \< and \cr need to be put after the note they apply to, 
\cr and \dim must be put before the note where their effect starts. This has 
the negative side effect that you can't easily switch individual crescendos 
between hairping and text spanners (short of manually inserting \setTextCresc 
and \setHairpinCresc before and after the spanner). 

The comments in ly/spanners-init.ly indicate that cresc and dim are supposed 
to be removed sooner or later, so I wonder if there is any command to produce 
a text crescendo without manually inserting \setTextCresc and 
\setHairpinCresc (which cannot be automated!!!!) before the first note and 
after the last note of the crescendo...

Example:
{
  b2.\cr b4\endcr | % same as \< ... \!, both AFTER the corresponding note
  \cresc b2. \endcresc b4 | % needs to be BEFORE the corresponding note!!!
  \dimb2. \enddimb4 | % needs to be BEFORE the corresponding note!!!
  b2.\decr b4\enddecr  | %same as \> ...\!, both AFTER the corresponding note
}


What I really want is:
{
  b2\< b2\! | % produces hairpin crescendo
  b2\cresc b2\! | % produces text crescendo
  b2\dim b2\! | % produces text diminuendo
  b2\> b2\! | % produces hairpin decrescendo
}

Of course, the \< only produce hairpin crescendi if crescendoText is unset 
(i.e. they show the current behaviour). All I want is to force individual 
crescendi to text style without the additional overhead.

Is this possible?

Cheers,
Reinhold


-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/




reply via email to

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