[Top][All Lists]

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

Re: ly:music-deep-copy and \relative

From: David Kastrup
Subject: Re: ly:music-deep-copy and \relative
Date: Sat, 25 Apr 2015 16:50:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

>> You might get along using the make-relative macro.  In this case, it
>> would apply like
>> \version "2.18.0"
>> repeat-note =
>> #(define-music-function (parser location music)(ly:music?)
>>   (make-relative (music) #{ $music $music #}))

Uh, more like (make-relative (music) music #{ $music $music #})) .
Sorry for that.

> make-relative is the sort of additional code I wrote about.

It's sort of a crutch that is not working all that well with
programmatically manipulated code (since the version used inside of
\relative is pretty much invisible to outside code).

Apart from that, it's a pretty good crutch...

David Kastrup

reply via email to

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