Sha256: e6ea7643a35a6dd04d04295e64254beee54e5115c843bef7fa0c19ac0e3d2ee5

Contents?: true

Size: 1.7 KB

Versions: 5

Compression:

Stored size: 1.7 KB

Contents

;;;; This file is part of LilyPond, the GNU music typesetter.
;;;;
;;;; Copyright (C) 2014--2022 Daniel Eble <nine.fierce.ballads@gmail.com>
;;;;
;;;; LilyPond is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation, either version 3 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; LilyPond is distributed in the hope that it will be useful,
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;;; GNU General Public License for more details.
;;;;
;;;; You should have received a copy of the GNU General Public License
;;;; along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.

(define-public (ly:time-signature::print grob)
  "Print routine for time signatures."
  (let* ((fraction (ly:grob-property grob 'fraction '(4 . 4)))
         (style (ly:grob-property grob 'style 'default))
         (proc (assoc-get style time-signature-style-markup-procedures))
         (fraction-markup (if (procedure? proc)
                              (proc fraction)
                              (make-glyph-time-signature-markup style fraction))))
    (grob-interpret-markup grob fraction-markup)))

(define-public (add-simple-time-signature-style style proc)
  "Specify the procedure @var{proc} returning markup for a time signature
style @var{style}.  The procedure is called with one argument, the
pair @code{(@var{numerator} . @var{denominator})}."
  (set! time-signature-style-markup-procedures
        (acons style proc time-signature-style-markup-procedures)))

(define-session time-signature-style-markup-procedures `())

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
LilyPond-Ruby-0.1.5.3 lilypond-2.24.1/share/lilypond/2.24.1/scm/lily/time-signature.scm
LilyPond-Ruby-0.1.5.2 lilypond-2.24.1/share/lilypond/2.24.1/scm/lily/time-signature.scm
LilyPond-Ruby-0.1.5 lilypond-2.24.1/share/lilypond/2.24.1/scm/lily/time-signature.scm
LilyPond-Ruby-0.1.3 share/lilypond/2.24.1/scm/lily/time-signature.scm
LilyPond-Ruby-0.1.2 share/lilypond/2.24.1/scm/lily/time-signature.scm