lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: metronome-mark-alignment


From: David Kastrup
Subject: Re: metronome-mark-alignment
Date: Mon, 20 Jan 2020 23:52:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> Am Mi., 15. Jan. 2020 um 01:23 Uhr schrieb David Kastrup <address@hidden>:
>
>> We need to put out the difference between # and $ even for beginners.
>> Basically # can only be used for stuff where you can figure out the
>> meaning in context without even looking at the Scheme expression
>> involved.  Which has the advantage that the Scheme expression does not
>> get looked at earlier than expected.  While $ (like \ ) can change the
>> interpretation of stuff around it depending on what it evaluates to but
>> that means that LilyPond may try evaluating it earlier than expected.
>>
>> The typical problem case we have is
>>
>> blabla = something
>> \blabla
>>
>> when LilyPond is not sure that something is a complete expression before
>> looking at what is following it.
>>
>> --
>> David Kastrup
>
> I just stumbled across:
>
> ~$ lilydevel scheme-sandbox
> GNU LilyPond 2.19.83
> Processing 
> `/home/hermann/lilydevel/usr/share/lilypond/current/ly/scheme-sandbox.ly'
> Parsing...
> guile> (display-lily-music #{ $(ly:parser-include-string "\\tweak
> color $red") b4 #})
> \tweak color #'(1.0 0.0 0.0) b4
>
>
> If you do the same with #red, below returns:
> \tweak color #"red" b4
>
> Not sure what we may want here...

Uh, you lost me there.

guile> (display-lily-music #{ $(ly:parser-include-string "\\tweak color #red") 
b4 #})
\tweak color #'(1.0 0.0 0.0) b4


-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]