[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parser location inTab
From: |
Gack McShite |
Subject: |
Re: parser location inTab |
Date: |
Sat, 26 Jan 2019 11:24:13 -0500 |
convert-ly made no changes, other than the \version. But I had
forgotten about it so thanks for the reminder!
Aaron Hill was correct, removing the dollar sign worked, simples.
Glad I gave up and asked for help after 4 hours of banging my head
against the internet!
On 1/26/19, Aaron Hill <address@hidden> wrote:
> On 2019-01-25 7:22 pm, Gack McShite wrote:
>> Trying to clean up errors. I see this pattern a lot, so I assume it
>> should work.
>>
>> TrackAVoiceAMusic = #(define-music-function (parser location inTab)
>> (boolean?)
>> #{
>> \tempo 4=106
>> \clef #(if $inTab "tab" "treble_8")
>
> What stands out to me is the extra $. Since the # already switches
> context from LilyPond syntax to Scheme, you need only write "inTab" in
> that case. Otherwise to Scheme, "$inTab" is a different symbol than
> "inTab".
>
> Side note: It is a common convention in Scheme that Boolean variables
> and functions end in a question mark. Certainly not required, but you
> might consider using "inTab?".
>
>
> -- Aaron Hill
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
Re: parser location inTab, Thomas Morley, 2019/01/26
Re: parser location inTab, David Kastrup, 2019/01/26