Am Samstag, 12. Januar 2008 schrieben Sie:
> A possible solution would be to temporarily redefine the
> \fermataMarkup shortcut.
>
> As you can see in property-init.ly, it is defined as follows:
>
> fermataMarkup = \markup { \musicglyph #"scripts.ufermata" }
>
> Why not temporarily define it as :
>
> fermataMarkup = \markup ""
>
> It's a hack indeed, but maybe this could solve your problem in a basic way.

Actually, this doesn't work, either, as the attached example shows. The 
contents of fermataMarkup are already expanded when mII is defined, a later 
definition does not have any effect (check this by moving the definition of 
fermataMarkup in the example above the definition of mII !). So redefining 
fermataMarkup is equivalent so completely removing the fermataMarkup from the 
second voice, which I can't do, because I want to generate also one score for 
the second voice alone...

Cheers,
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.36"
#(ly:set-option 'point-and-click #f)

\header {
  title = "Which engraver creates the \fermataMarkup on the R1?"
}

mI = \relative c'' { R1-\fermataMarkup | c4\p d\accent c^"Text 1" d\fermata }
mII = \relative c'' { R1-\fermataMarkup | g4\p a\accent b_"Text 2" d_\fermata }

fermataMarkup = \markup \null
\context Score \with { \override CombineTextScript #'avoid-slur = #'outside } {
\context StaffGroup <<
  \context Staff = "both" << 
    \context Voice = "v1" << {\voiceOne \mI} >>
    \context Voice = "v2" \with { 
          \remove "Dynamic_engraver" 
          \remove "Text_engraver" 
          \remove "Script_engraver"
          \remove "Mark_engraver"
    } 
    << {\voiceTwo \mII} >>
  >>
  \context Staff = "first" << 
    \context Voice = "vstaff1" << {\mI} >>
  >>
  \context Staff = "second" << 
    \context Voice = "vstaff2" << {\mII} >>
  >>
>>
}

Attachment: engraver_for_fermataMarkup.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to