]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/parser-clef.scm
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / scm / parser-clef.scm
index b3de9fc405876ce6fe7212b2e3d158210cded146..a6d178eaeff9fbb95c07dc6108e71d062b6293aa 100644 (file)
@@ -1,4 +1,4 @@
-;;;; clef.scm -- Clef settings
+;;;; parser-clef.scm -- Clef settings
 ;;;;
 ;;;; source file of the GNU LilyPond music typesetter
 ;;;;
                       (sort (map car supported-clefs) string<?)))
          (make-music 'Music)))))
 
+;; a function to add new clefs at runtime
+(define-public (add-new-clef clef-name clef-glyph clef-position octavation c0-position)
+  "Append the entries for a clef symbol to supported clefs and c0-pitch-alist"
+  (set! supported-clefs
+        (acons clef-name (list clef-glyph clef-position octavation) supported-clefs))
+  (set! c0-pitch-alist
+        (acons clef-glyph c0-position c0-pitch-alist)))