Re: Universal default value function

2021-01-24 Thread Andrew Bernard
This exact thing came up on the list before I'm sure. A case of where we need some sort of repository of this sort of knowledge. Mailing lists archives are not exactly the right platform for storage abd search of code idioms and samples. Just musing. Andrew Vaughan McAlley wrote on

Re: Universal default value function

2021-01-24 Thread Vaughan McAlley
Thanks Aaron! On Mon, 25 Jan 2021 at 15:54, Aaron Hill wrote: > Did you mean to attach or include a code snippet? Hard to spot any > problem without it. :) > Oops, guilty as charged. > Regardless, review the following: > > > \version "2.22.0" > > valueOrDefault = >

Re: Universal default value function

2021-01-24 Thread Aaron Hill
On 2021-01-24 8:17 pm, Vaughan McAlley wrote: Hi, I am trying to write a function that will accept a symbol and a value, and assign that value to the symbol *if the variable has not already been defined *(such as in an include file). At the moment, it runs without complaining, but the result

Universal default value function

2021-01-24 Thread Vaughan McAlley
Hi, I am trying to write a function that will accept a symbol and a value, and assign that value to the symbol *if the variable has not already been defined *(such as in an include file). At the moment, it runs without complaining, but the result is always "bar", the default value. Can anyone

Re: OLL not working with lilypond 2.22

2021-01-24 Thread David Wright
On Sun 24 Jan 2021 at 17:43:20 (+0100), David Kastrup wrote: > Jonas Hahnfeld writes: > > Am Sonntag, dem 24.01.2021 um 17:31 +0100 schrieb David Kastrup: > >> Jonas Hahnfeld writes: > >> > Am Sonntag, dem 24.01.2021 um 16:52 +0100 schrieb David Kastrup: > >> > > Jonas Hahnfeld writes: > >> > >

Re: OLL not working with lilypond 2.22

2021-01-24 Thread David Kastrup
Jonas Hahnfeld writes: > Am Sonntag, dem 24.01.2021 um 17:31 +0100 schrieb David Kastrup: >> Jonas Hahnfeld writes: >> >> > Am Sonntag, dem 24.01.2021 um 16:52 +0100 schrieb David Kastrup: >> > > Jonas Hahnfeld writes: >> > > >> > > > Am Sonntag, dem 24.01.2021 um 00:54 +0100 schrieb

Re: OLL not working with lilypond 2.22

2021-01-24 Thread hahnjo--- via LilyPond user discussion
Am Sonntag, dem 24.01.2021 um 17:31 +0100 schrieb David Kastrup: > Jonas Hahnfeld writes: > > > Am Sonntag, dem 24.01.2021 um 16:52 +0100 schrieb David Kastrup: > > > Jonas Hahnfeld writes: > > > > > > > Am Sonntag, dem 24.01.2021 um 00:54 +0100 schrieb Valentin Petzel: > > > > > Hello, > > >

Re: OLL not working with lilypond 2.22

2021-01-24 Thread David Kastrup
Jonas Hahnfeld writes: > Am Sonntag, dem 24.01.2021 um 16:52 +0100 schrieb David Kastrup: >> Jonas Hahnfeld writes: >> >> > Am Sonntag, dem 24.01.2021 um 00:54 +0100 schrieb Valentin Petzel: >> > > Hello, >> > > >> > > Lilypond transitioned to guile 2. >> > >> > No, it didn't. The default

Re: OLL not working with lilypond 2.22

2021-01-24 Thread Jonas Hahnfeld
Am Sonntag, dem 24.01.2021 um 16:52 +0100 schrieb David Kastrup: > Jonas Hahnfeld writes: > > > Am Sonntag, dem 24.01.2021 um 00:54 +0100 schrieb Valentin Petzel: > > > Hello, > > > > > > Lilypond transitioned to guile 2. > > > > No, it didn't. The default and only supported version right now

Re: OLL not working with lilypond 2.22

2021-01-24 Thread David Kastrup
Jonas Hahnfeld writes: > Am Sonntag, dem 24.01.2021 um 00:54 +0100 schrieb Valentin Petzel: >> Hello, >> >> Lilypond transitioned to guile 2. > > No, it didn't. The default and only supported version right now is > Guile 1.8 and that's what is shipped in the official binary releases. > If your

Re: list of accordion registers as a single markup

2021-01-24 Thread Павел
Hi, David. I think I solved your problem. Use: \version "2.22.0" #(use-modules (scm accreg)) #(define-markup-command (accordion layout props lst) (list?)   (interpret-markup layout props     (markup (make-line-markup (map (lambda(x) (markup #:discant x)) lst) \markup \accordion #'("1"

Re: Stems push things away

2021-01-24 Thread Thomas Morley
Am Sa., 23. Jan. 2021 um 02:59 Uhr schrieb Brian Bartling : > > Thank you, Jean. That does fix this example. I still suspect the root cause > of my problem lies in how the lengths and positions of stems that are > attached to beams are calculated. I'm guessing that your idea of removing the >

Re: OLL not working with lilypond 2.22

2021-01-24 Thread Jonas Hahnfeld
Am Sonntag, dem 24.01.2021 um 12:01 +0100 schrieb Valentin Petzel: > Ah, okay. Sitting on Deb Sid I didn’t notice. > > Anyway, of course your check is much better, but mine does not depend on the > lilypond version, but on the guile version. It basically takes the first > number in the version

Re: OLL not working with lilypond 2.22

2021-01-24 Thread Valentin Petzel
Ah, okay. Sitting on Deb Sid I didn’t notice. Anyway, of course your check is much better, but mine does not depend on the lilypond version, but on the guile version. It basically takes the first number in the version string a.b.c and checks if a < 2. Regards, Valentin Am Sonntag, 24. Jänner

Re: OLL not working with lilypond 2.22

2021-01-24 Thread Jonas Hahnfeld
Am Sonntag, dem 24.01.2021 um 00:54 +0100 schrieb Valentin Petzel: > Hello, > > Lilypond transitioned to guile 2. No, it didn't. The default and only supported version right now is Guile 1.8 and that's what is shipped in the official binary releases. If your distribution provides you with