]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/translation-functions.scm
Midi: allow alternate channel mappings: per instrument, staff, voice.
[lilypond.git] / scm / translation-functions.scm
index 5a22e72a89b1cdbba2a4e24cfe9ee9232a11c55c..facabd8ab59f6c1f49756fdead347d8ce3bb7882 100644 (file)
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; metronome marks
 
-(define-public (format-metronome-markup text dur count context)
-  (let* ((hide-note (eq? #t (ly:context-property context 'tempoHideNote))))
+(define-public (format-metronome-markup event context)
+  (let ((hide-note (ly:context-property context 'tempoHideNote #f))
+       (text (ly:event-property event 'text))
+       (dur (ly:event-property event 'tempo-unit))
+       (count (ly:event-property event 'metronome-count)))
+
     (metronome-markup text dur count hide-note)))
 
 (define-public (metronome-markup text dur count hide-note)