[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: besideCN seems to have stopped working
From: |
David Kastrup |
Subject: |
Re: besideCN seems to have stopped working |
Date: |
Thu, 31 May 2012 20:34:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Choan Gálvez <address@hidden> writes:
> On 5/31/12 12:09 , Gerry Prosser wrote:
>
>> besideCN = #(define-music-function (parser location which-side
>> added-text) (integer? string?) #{\once \override ChordNames.ChordName
>> #'stencil = #(lambda (grob) (ly:grob-set-property! grob 'text (markup
>> #:put-adjacent 0 $which-side ; #LEFT or #RIGHT
>> (ly:grob-property grob 'text) $added-text)) (ly:text-interface::print
>> grob)) #})
>>
>> Chords = \new ChordNames \chordmode {
>> \besideCN #LEFT "Capo1 " d1 fis2:m7 b2:m e1:m7 a
>> }
>>
>> any clues, anyone, please ?
>
> Removing the $ prefixes from both $which-side and $added-text worked
> for me. Actually, I'm not sure why it worked as I'm still an scheme
> illiterate.
One could read in the documentation and/or run convert-ly. That you
guessed right without either while professing to be a scheme illiterate
(Scheme literacy would not actually helped since the earlier behavior of
$xxx inside of #{ ... #} had nothing to do with Scheme) is a bit of
endorsement for the change: its intent was to reduce the amount of clue
required for writing working code.
--
David Kastrup