Re: booleans and conditional compilation?

2016-04-01 Thread Simon Albrecht
On 01.04.2016 22:43, Simon Albrecht wrote: you can use Guile Scheme. LilyPond uses Guile 1.8, whose Reference Manual is here: . ___ lilypond-user mailing list lilypond-user@gnu.org https:/

Re: booleans and conditional compilation?

2016-04-01 Thread Simon Albrecht
On 01.04.2016 21:23, Johannes Waldmann wrote: Hi. Is there a standard way of conditional compilation, e.g., to turn parts (on any level) of a score on and off? The standard way is using tags, as Urs said. But of course you can do everything you like via scheme: \version "2.19.38" f

Re: booleans and conditional compilation?

2016-04-01 Thread Urs Liska
Am 1. April 2016 21:23:17 MESZ, schrieb Johannes Waldmann : >Hi. > >Is there a standard way of conditional compilation, >e.g., to turn parts (on any level) of a score on and off? > Yes, look up \tag. HTH Urs >From a programmer's standpoint, >I'd want booleans

booleans and conditional compilation?

2016-04-01 Thread Johannes Waldmann
Hi. Is there a standard way of conditional compilation, e.g., to turn parts (on any level) of a score on and off? >From a programmer's standpoint, I'd want booleans, and branching, something like let foo = true % or false, somewhere at the top of the file, % o

Re: Conditional compilation

2013-01-30 Thread David Kastrup
he preferred way to > implement conditional compilation in Lilypond-guile? I naively tried > several variants of > > \bookpart { \relative c' { c4 e g } } > #(if (ly:get-option 'full) #{ > \bookpart { \relative c' { c4 d e } } > #}) > > but it looks like t

Conditional compilation

2013-01-30 Thread Jérôme Plût
I am writing some ensemble music and want the file to compile in two modes: with -dfull, compile all individual parts; without it, compile only the conductor part (for debugging). This is probably a FAQ but I cannot find an answer on the site: what is the preferred way to implement conditional