On Wed, Mar 26, 2025 at 09:37:06PM +0100, Ben Engbers wrote:
> Hi,
> 
> As a novice user of lilypond, I am beginning to understand how to
> enter music so that is not the problem.
> For playing the score on my Fedora laptop I use Qsynth. I know if it's
> because of that but no matter what I try, the midi file is played in a
> BPM of about 72.
> 
> This is the “global” part:
> global = {
>   \key e minor
>   \numericTimeSignature
>   \time 12/8
>   \Tempo “Presto” 4 = 140

It should be \tempo (with small 't').  The 4=140 should apply to both
the printed score and the midi.


>   \dynamicUp
> 
> And this is the “score” part:
> \{
>   <<
>     \melodyPart
>     \leadSheetPart
>   >>
>   \layout { }
>   \}
>     \temp 4=140
>   }
> 
> What do I need to do to play the midi at a different tempo (BPM=90)?
[...]

If you want the score to print one tempo but the midi play another
tempo, you'll need to to split the layout score from the midi score. For
example, here is how I usually do it:

        global = {
                \tag #'layout \tempo "Presto" 4 = 140 % this is what gets 
printed in the score
                \tag #'midi \tempo 4 = 90 % this is what gets played in midi
                ...
        }

        mymusic = ... % insert music here

        % This is for layout only, no midi.
        \score {
                \removeWithTag #'midi   % remove everything tagged with \tag 
#'midi
                \mymusic
                \layout { }     % generate layout
        }

        % This is for midi only, it will not generate any layout
        \score {
                \removeWithTag #'layout % remove everything tagged with \tag 
#'layout
                \mymusic
                \midi { }       % generate midi
        }


T

-- 
My program has no bugs! Only undocumented features...

Reply via email to