lilypond-user
[Top][All Lists]
Advanced

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

Re: tempo changes (midi)


From: Hilary Snaden
Subject: Re: tempo changes (midi)
Date: Tue, 07 Jan 2014 23:08:37 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.10) Gecko/20070403 Thunderbird/1.5.0.10

On 2014-01-07 11:44, rosea grammostola wrote:
> Is it possible to change tempo for a certain part of the score and make
> that also audible in the midi file?
> 
> In the template there is:
> 
>  \midi {
> 
> \context {
> 
> \Score
> 
> tempoWholesPerMinute = #(ly:make-moment 100 4)
> 
> }
> 
> }

I find it easier to keep score tempi and midi tempi separate in the
final versions of scores, storing tempi for midi in their own variable,
something like:

tempi = {
  \tempo 8=108 s2*21 % 1-10
  \tempo 8=107 s8 \tempo 8=106 s \tempo 8=105 s \tempo 8=104 s % 11
  % much more here...
}

\score {
  <<
    { \tempi }
    \new Voice = "v1" {
      \set Staff.midiInstrument = "acoustic grand"
      \upper
    }
    \new Voice = "v2" {
      \set Staff.midiInstrument = "acoustic grand"
      \lower
    }
  >>
  \midi { }
}



reply via email to

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