lilypond-user
[Top][All Lists]
Advanced

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

Re: \include inside function


From: Jean Abou Samra
Subject: Re: \include inside function
Date: Tue, 1 Feb 2022 23:17:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Le 01/02/2022 à 23:14, Jean Abou Samra a écrit :
Well, if you are ready to get evil, you can do

\version "2.23.5"

includeNamespace =
#(define-scheme-function (filename) (string?)
   (let ((new-parser (ly:parser-clone)))
     (ly:parser-parse-string
      new-parser
      (format #f "\\include ~s" filename))
     (define-music-function (name) (symbol?)


Whoops! This one should rather be
define-scheme-function to allow lookup of arbitrary
values and not just music.




reply via email to

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