\version "2.13.4" % I tried the following for note-name->lily-string (which I changed to define-public): % This does not work at all: % #(use-module (scm display-lily)) % This works, but then $defaultlayout is not available any more: % #(ly:load "define-music-display-methods.scm") #(define add-one-note-score (let ((pitch 0)) (lambda (parser) (let* ((scmpitch (ly:make-pitch 0 pitch 0)) (music (make-music 'EventChord 'elements (list (make-music 'NoteEvent 'duration (ly:make-duration 2 0 1 1) 'pitch scmpitch)))) (score (scorify-music music parser)) (layout (ly:output-def-clone $defaultlayout)) (title (markup #:large #:line ((ly:format "Score with a ~a" "dummy pitch name" ; (note-name->lily-string scmpitch parser) ))))) (ly:score-add-output-def! score layout) (add-text parser title) (add-score parser score)) (set! pitch (modulo (1+ pitch) 7))))) oneNoteScore = #(define-music-function (parser location) () (add-one-note-score parser) (make-music 'Music 'void #t)) %%% \oneNoteScore