Re: simple scheme in lilypond

2018-11-28 Thread David Kastrup
Gianmaria Lari writes: > On Tue, 27 Nov 2018 at 12:12, David Kastrup wrote: >> >> in output and in its effect on the variable. Basically, $x and \x are >> the same (apart from the characters allowed in and after x). The >> logical thing would be to permit "Test" on its own but it appears

Re: simple scheme in lilypond

2018-11-28 Thread Gianmaria Lari
On Tue, 27 Nov 2018 at 12:12, David Kastrup wrote: > Gianmaria Lari writes: > > > Probably these are very trivial things. Sorry to ask them but would like > to > > understand. > > > > If I write (1): > > > > > > \version "2.19.82" > > $(object->string (+ 3 2)) > > > > > > Lilypond is happy and

Re: simple scheme in lilypond

2018-11-27 Thread Gianmaria Lari
Thank you Jan, very clear. g. On Tue, 27 Nov 2018 at 11:48, Jan-Peter Voigt wrote: > Hello, > > the $ sign has a special meaning of "instant scheme-expression". An > instant scheme expression is evaluated instantly *and* the result is > observed so that lilypond can decide what to do with it.

Re: simple scheme in lilypond

2018-11-27 Thread David Kastrup
Gianmaria Lari writes: > Probably these are very trivial things. Sorry to ask them but would like to > understand. > > If I write (1): > > > \version "2.19.82" > $(object->string (+ 3 2)) > > > Lilypond is happy and compile to a pdf file showing "5". > > Even this simpler code works... (2) > >

Re: simple scheme in lilypond

2018-11-27 Thread Jan-Peter Voigt
Hello, the $ sign has a special meaning of "instant scheme-expression". An instant scheme expression is evaluated instantly *and* the result is observed so that lilypond can decide what to do with it. When lily receives something that can be treated as a markup from an instant scheme expression

simple scheme in lilypond

2018-11-27 Thread Gianmaria Lari
Probably these are very trivial things. Sorry to ask them but would like to understand. If I write (1): \version "2.19.82" $(object->string (+ 3 2)) Lilypond is happy and compile to a pdf file showing "5". Even this simpler code works... (2) \version "2.19.82" $"Hello" and generate a pdf