I've run into a problem with text crescendi: I don't want any spanner lines 
for the "cresc.", "dim.", "cresc molto." etc. spanners, so I'm setting their 
#'dash-period to #-1.0. However, in this case, the position of the "cresc." 
text is still calculated as if the line was present. In most cases that's no 
problem, but if there is one "extreme" note in the whole span, the cresc. 
will be shifted to a position where it is simply inappropriate. 
Attached is an example of the problem.

In all hand-engraved editions that I have, the cresc. is printed directly 
above the staff, although the crescendo spanner really lasts longer and 
includes a high note.

Is there any way to achieve a position of the "cresc." directly at the staff 
(except for using ordinary markup text, which does not work e.g. in midi (and 
also breaks if/when Lilypond one day gets a MusicXML backend)?

Thanks a lot,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], 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/
\version "2.11.41"
\score {
  \context Staff <<
    \context Voice << 
      \dynamicUp
      \relative c' {
        % Clearly, here the "cresc." needs to be high above the staff
        \setTextCresc 
        c4\<_"Default" c' e' c,\!
        % When hiding the line, the "cresc." should not calculate its position
        % including the invisible line
        \setTextCresc \override DynamicTextSpanner #'dash-period = #-1.0
        c,4\<_"Hidden, way too high" c' e' c,\!
        % Trying to set the style to something like none does not work (solid line!)
        \setTextCresc \set crescendoSpanner = #'none
        c,4\<_"style=#'none" c' e' c,\!
        
        % This produces the output that I want, but unfortunately it's not a 
        % dynamics mark and the extension of the spanner is lost (just in case 
        % Lilypond some day is able to export e.g. to MusicXML that's relevant 
        % information!!!)
        c,4^\markup{\italic "cresc."}_"normal text markup" c' e' c,
                
      }
    >>
  >>
}

Attachment: text_spanner_no_line.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to