5 texidoc="@cindex Count Systems
6 The function which controls the printing of the system number may be also
7 overridden to print, for example, the number of systems or the system
11 % Original comment has no sense? -HJJ:
12 % This can be most useful to assertain that a piece uses a specified number of lines.
14 %% What is the problem? -- jcn:
15 %% See, eg, input/mutopia/J.S.Bach/baerenreiter-sarabande.ly for
18 %% We want this to perfectly match the Baerenreiter spacing.
19 %% If we're not using 6 systems, there's definately a problem.
20 %% #(define (assert-system-count smob n) ...
23 #(define (display-systemno smob)
24 (let* ((this-system (ly:grob-system smob))
25 (systems (ly:spanner-broken-into
26 (ly:grob-original this-system))))
28 (display (list-index systems this-system))
32 #(define (display-system-count smob)
34 (ly:spanner-broken-into
36 (ly:grob-system smob))))))
42 \override NoteHead #'after-line-breaking-callback
43 % = #display-system-count
48 \paper{ indent = 0.0\mm