lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Guile library function availability


From: Lukas-Fabian Moser
Subject: Guile library function availability
Date: Mon, 24 May 2021 19:21:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

Hi,

during my experiments with TextSpanners I stumbled upon the following:

\version "2.22"

\layout {
  \override NoteHead.after-line-breaking =
  #(lambda (grob) (pretty-print "I explode."))
}

{
  a4
}

explodes because pretty-print isn't available (the same happens for functions like "last" etc.)

In contrast, the following works:

\version "2.22"

{
  \override NoteHead.after-line-breaking =
  #(lambda (grob) (pretty-print "I work just fine."))

  a4
}

What's the reason for the different availability of scheme library functions between working in \layout {} vs. in music?

Lukas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]