Gianmaria Lari <gianmarial...@gmail.com> writes:

> Talking about midi, is there any way to to reduce or increase the tempo of
> some measures by a certain percentage instead of setting it to an absolute
> value?
>
> For example instead of:
>
> \tempo 4=100 a b c d
> \tempo 4=110 e f g a
>
>
> something like
>
> \tempo 4=100 a b c d
> \tempo 4=currentTempo*1.1 e f g a
>

Well, it's not pretty (but then one can try wrapping the prettiness into
a music function), but here goes:

\score {
  {
    \tempo 4=100 a b c d
    \context Timing \applyContext
      #(lambda (c)
	 (set! (ly:context-property c 'tempoWholesPerMinute)
	       (ly:moment-mul (ly:context-property c 'tempoWholesPerMinute)
			      (ly:make-moment #e1.1))))
    e f g a
  }
  \midi {}
}

-- 
David Kastrup
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to