]> 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 fff8f1b83d2ec880dba7a496e5f51775fe9a7ca7..a6d178eaeff9fbb95c07dc6108e71d062b6293aa 100644 (file)
                       (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)))