init.ly, what does it do?

2017-01-08 Thread Br. Samuel Springuel
Can someone explain to me what the functionality of the init.ly file is? In particular I'm trying to figure out if I could write one which is specific to a particular project so that I can use the same ly source for two different projects and yet produce different output versions by simply inv

Re: init.ly, what does it do?

2017-01-08 Thread Simon Albrecht
On 08.01.2017 20:33, Br. Samuel Springuel wrote: use the same ly source for two different projects and yet produce different output versions by simply invoking lilypond with the appropriate --init option on the source. I think often all you need is a clever \include structure and invoking di

Re: init.ly, what does it do?

2017-01-08 Thread Br. Samuel Springuel
On 2017-01-08 3:06 PM, Simon Albrecht wrote: I think often all you need is a clever \include structure and invoking different .ly files, which apply different settings and both include the same content I've thought about this, but so far haven't found a completely satisfactory way of doing this

Re: init.ly, what does it do?

2017-01-08 Thread Thomas Morley
2017-01-08 22:43 GMT+01:00 Br. Samuel Springuel : > On 2017-01-08 3:06 PM, Simon Albrecht wrote: >> >> I think often all you need is a clever \include structure and >> invoking different .ly files, which apply different settings and both >> include the same content > > > I've thought about this, bu

Re: init.ly, what does it do?

2017-01-08 Thread Br. Samuel Springuel
On 2017-01-08 4:53 PM, Thomas Morley wrote: How about make and makefile? http://lilypond.org/doc/v2.19/Documentation/usage/make-and-makefiles Never used them for own scores, though, sounds it may be what you're looking for. After reading that page it sounds like this may work for now, but one

Re: init.ly, what does it do?

2017-01-08 Thread Br. Samuel Springuel
On 2017-01-08 4:43 PM, Br. Samuel Springuel wrote: Another option might be using the -e option to initialise a Scheme variable, which then triggers a switch inside your .ly file. This sounds like it might be more promising, at least for the scores I write myself. When borrowing source from oth

Re: init.ly, what does it do?

2017-01-08 Thread Thomas Morley
2017-01-08 23:38 GMT+01:00 Br. Samuel Springuel : > Is there a way to set a top level `\paper` block > entirely within Scheme? Probably: #(define my-settings '( (indent . 10) (short-indent . 10) (line-width . 80) )) #(for-each (lambda (settings) (ly:output-def-set-variabl

Re: init.ly, what does it do?

2017-01-08 Thread Simon Albrecht
On 08.01.2017 23:38, Br. Samuel Springuel wrote: Is there a way to set a top level `\paper` block entirely within Scheme? I imagine there is, however there is practically no documentation to be found even in the source code (or did I look at the wrong places/the wrong way?). Here is an essay,

Re: init.ly, what does it do?

2017-01-08 Thread Br. Samuel Springuel
On 2017-01-08 6:01 PM, Thomas Morley wrote: #(define my-settings '( (indent . 10) (short-indent . 10) (line-width . 80) )) #(for-each (lambda (settings) (ly:output-def-set-variable! $defaultpaper (car settings) (cdr settings))) my-settings) This works when copied and p

Re: init.ly, what does it do?

2017-01-08 Thread David Wright
On Sun 08 Jan 2017 at 21:17:53 (-0500), Br. Samuel Springuel wrote: > With this file saved to the same folder as my test score, > `lilypond-dev --init="my_init.ly" test.ly` produces identical > results to `lilypond-dev test.ly`. I would, therefore, guess that > while LilyPond has initialized enou

Re: init.ly, what does it do?

2017-01-09 Thread Thomas Morley
2017-01-09 4:29 GMT+01:00 David Wright : > On Sun 08 Jan 2017 at 21:17:53 (-0500), Br. Samuel Springuel wrote: > >> With this file saved to the same folder as my test score, >> `lilypond-dev --init="my_init.ly" test.ly` produces identical >> results to `lilypond-dev test.ly`. I would, therefore, g