Re: Please help with Lilypond calling Scheme

2016-09-20 Thread Thomas Morley
2016-09-20 23:30 GMT+02:00 Malte Meyn : > > > Am 20.09.2016 um 19:12 schrieb PMA: >> >> (define (colorNote n) >> (cond ((eq? (- n) 1) 'red ) >> ((eq? (- n) 2) 'blue))) > > > This returns the symbol 'red or the symbol 'blue, not the constant named red > (value (1.0

Re: Please help with Lilypond calling Scheme

2016-09-20 Thread Malte Meyn
Am 20.09.2016 um 19:12 schrieb PMA: (define (colorNote n) (cond ((eq? (- n) 1) 'red ) ((eq? (- n) 2) 'blue))) This returns the symbol 'red or the symbol 'blue, not the constant named red (value (1.0 0.0 0.0)) or the constant named blue. \override NoteHead.font-size =

Re: Please help with Lilypond calling Scheme

2016-09-20 Thread Urs Liska
The # switches from LilyPond to Scheme. This means that once you are in Scheme you don't need it again. #(colorNote #offset) should read #(colorNote offset) HTH Urs Am 20. September 2016 19:12:26 MESZ, schrieb PMA : >Hi Lilypond Gurus! > >I need help, when you can

Re: Please help with Lilypond calling Scheme

2016-09-20 Thread PMA
Oh dear. *NEVER MIND*. I just now got it working. Thanks anyway! Pete On 09/20/2016 01:12 PM, PMA wrote: Hi Lilypond Gurus! I need help, when you can spare the time, to get an already- working Lilypond music function to call my just-added Scheme routine. This Scheme procedure works when

Please help with Lilypond calling Scheme

2016-09-20 Thread PMA
Hi Lilypond Gurus! I need help, when you can spare the time, to get an already- working Lilypond music function to call my just-added Scheme routine. This Scheme procedure works when called directly from Guile: entering "(colorNote -1)" get output "red". (define