[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: \noSpace macro?
From: David Kastrup <dak () gnu ! org>
Date: 2013-05-30 16:26:44
Message-ID: 87ppw8igcb.fsf () fencepost ! gnu ! org
[Download RAW message or body]
Kieren MacMillan <kieren_macmillan@sympatico.ca> writes:
> Hi David,
>
>> Maybe
>> [...]
>> -\tweak #'vertical-skylines #f -\tweak #'X-offset #-3
>> -\tweak #'extra-spacing-width #empty-interval
>> -\tweak #'extra-spacing-height #empty-interval
>
> Man, you know all the good stuff!! =)
Not really. I tried horizontal-skyline first, did a grep, corrected to
horizontal-skylines, saw no difference, tried out vertical...
> Thanks!
>
> Can this be made into a macro? I tried every variation I could think of, e.g.
>
> empty = { -\tweak #'vertical-skylines #f -\tweak #'extra-spacing-width
> #empty-interval -\tweak #'extra-spacing-height #empty-interval }
empty-interval is just "short" for (or rather, less likely to typos
than) '(+inf.0 . -inf.0).
empty seems rather generic as a function name. I'd rather pick
something less likely for collisions. An any rate:
empty =
#(define-music-function (parser location item) (symbol-list-or-music?)
#{ \tweak #'vertical-skylines #f \tweak #'extra-spacing-width
#empty-interval \tweak #'extra-spacing-height #empty-interval
#item #})
should likely do the trick. Possibly you want to stomp out the
horizontal-skylines as well: that would seem to make sense in connection
with extra-spacing-width.
--
David Kastrup
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic