On 19-4-2018 22:19, Thomas Morley wrote:
The function expects `text' to be a string. So
(1) use wordwrap-string
(2) without {}

Thank you, now it works. And  I learned how to do calculations in scheme along the way as well. So the narrator function should be

narrator=#(define-music-function
  (dim text) (number? string?)
  #{
      s1^\markup
      \with-dimensions #(cons 0 (+ dim 2)) #'(0 . 0)
      \whiteout
      \override #(cons (quote line-width) dim)
      \translate #'(0 . -1.5)
      \wordwrap-string   #text
   #})

Regards,
Auke

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to