Re: Including only definitions from a Lilypond file

2020-08-23 Thread Jérôme Plût
> On 2020-08-14 4:48 am, David Kastrup wrote: > > All of the elements in a score are routed through hooks you can > > redefine. So you can just redefine your various hooks to do nothing and > > then include the file. > > Would something like this work? > > > \version "2.20.0" > > #(begin

Re: Including only definitions from a Lilypond file

2020-08-14 Thread Aaron Hill
On 2020-08-14 4:48 am, David Kastrup wrote: All of the elements in a score are routed through hooks you can redefine. So you can just redefine your various hooks to do nothing and then include the file. Would something like this work? \version "2.20.0" #(begin (use-modules (ice-9

Re: Including only definitions from a Lilypond file

2020-08-14 Thread David Kastrup
Jérôme Plût writes: > Hello everybody, > > I have some lilypond files that contain both music variables and > typesetting instructions, like this: > > soprano = \relative { > % music here... > } > > \bookpart { > % typesetting here... > } > > I would like to include this file while importing

Re: Including only definitions from a Lilypond file

2020-08-13 Thread Hans Aikema
> On 13 Aug 2020, at 20:19, Jérôme Plût wrote: > > Hello everybody, > > I have some lilypond files that contain both music variables and > typesetting instructions, like this: > > soprano = \relative { > % music here... > } > > \bookpart { > % typesetting here... > } > > I would like to

Including only definitions from a Lilypond file

2020-08-13 Thread Jérôme Plût
Hello everybody, I have some lilypond files that contain both music variables and typesetting instructions, like this: soprano = \relative { % music here... } \bookpart { % typesetting here... } I would like to include this file while importing the definitions and ignoring the typesetting.