lilypond-user
[Top][All Lists]
Advanced

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

Re: Preferred way to set tempo marks?


From: Mats Bengtsson
Subject: Re: Preferred way to set tempo marks?
Date: Tue, 26 Sep 2006 08:28:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060911 Red Hat/1.0.5-0.1.el4 SeaMonkey/1.0.5

I usually use normal text scripts:
c^"a tempo"
or
c^\markup{\italic a tempo }
If you want to keep these annotations separate from the music, so it's easy to include them in every instrumental part but only on the top stave of the score,
you could attach them to spacing notes. Example:

tempomarks = {s1^\markup{\italic Allegro } | s1_\markup\italic ritardando  }
music = \relative c'''{g8^"arco" e f d e c e f g f g f e d e d | c1 }

\score{
 \new Voice<< \music  \tempomarks>>
}

Note that as long as you keep these annotations in the same Voice context
as the music, they will not collide with note heads or other text scripts that occur at the same note. If you put the annotations in a separate Voice context, you can get collisions (try to replace "Voice" by "Staff" in the example above to see what I mean), but on the other hand, you can set the padding separately to raise them further from the stave, without risking to affect other text scripts
in the actual music. For example, you could do



tempomarks = {
 \override TextScript #'padding = #3
s1^\markup{\italic Allegro } | s1_\markup\italic ritardando }

music = \relative c'''{g8^"arco" e f d e c e f g f g f e d e d | c1 }

\score{
 \new Staff <<
   \new Voice \music
   \new Voice \tempomarks
 >>
}


  /Mats

Michael Kiermaier wrote:
Hello list,

I wonder what is the preferred way to set tempo marks as "ritardando", "a tempo" etc. The lilypond documentation is very good in general, but I did not find much information about this.


I tried a scheme macro that I found in http://www.lilypond.org/doc/v2.8/Documentation/user/lilypond/Style-sheets.html:

tempoMark = #(define-music-function (parser location markp) (string?)
#{
  \once \override Score . RehearsalMark #'self-alignment-X = #left
  \once \override Score . RehearsalMark #'no-spacing-rods = ##t
  \mark \markup { \bold $markp }
#})

But it does not work very well. There are collisions with text like ^"arco", and rehersal marks completely disappear if they are at a position where also a \tempoMark is.

Tempo markups are quite common, so I think there should be a standard way to enter them. In my opinion, scheme functions are not very standard.

Greetings and many thanks in advance,

~michael


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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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