\version "2.20.0"
\include"
arranger.ly"
global = { s1*1000 }
%% a long length is provided
#(init '())
%% Instruments list initially empty =>
%% the positions take into account previous timing insertions.
%% ( \global is re-analysed each time. )
#(begin
;; Builds \global
(rm-with 'global 1 #{ \time 3/4 #} / ;; First, time signatures
10 #{ \time 5/8 #} /
20 #{ \time 4/4 #})
(cut-end 'global 70)
;; Cuts what's beyond
(x-rm 'global #{ \mark\default #}
;; Marks
10 20 30 40 50 60)
(tempos
;; Tempo indications
1 (metronome "Allegro" "4" 120) /
10 (metronome "" "8" "8") /
20 (metronome "Allargando" "4" "4.")
30 "Piu mosso"
60 (markup #:column ("FINAL"
(metronome "Allegro vivo" "4" 200))))
(rm-with 'global 1 #{ \key c \major #} / ;; Key signatures
20 #{ \key c \minor #} /
30 #{ \key c \major #})
(x-rm 'global #{ \bar "||" #} 20 30 60)
;; Bars
(rm-with 'global 1 #{ \markLengthOn #})
;; Miscellaneous
(rm 'global 70 #{ \bar "|." #})
;; ...the final touch
)
%% End \global
%% The list of instruments can now be initialized.
#(init '(test)) %% List not empty = fixed metric: any new timing event will be ignored
\new Staff { << \global \test >> }