lilypond-devel
[Top][All Lists]
Advanced

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

Re: referencing hash key with music symbol


From: Urs Liska
Subject: Re: referencing hash key with music symbol
Date: Wed, 07 Dec 2016 20:22:31 +0100
User-agent: K-9 Mail for Android


Am 7. Dezember 2016 19:20:26 MEZ, schrieb David Kastrup <address@hidden>:
>Jeffery Shivers <address@hidden> writes:
>
>> Hi LP team,
>>
>> I am working on automating editorial commands with ScholarLY, and I
>am
>> having some trouble pulling a music function that is stored in a hash
>> table. If I make a table and assign a key 'Slur to slurDashed, I can
>use it
>> successfully in the following example:
>>
>> #(define mytable (make-hash-table))
>>
>> #(hash-set! mytable 'Slur slurDashed)
>>
>>
>> \score {
>>
>>     \new Staff {
>>
>>         #(let ((func (hash-ref mytable 'Slur)))
>>
>>             #{
>>
>>                 #func f'( g')
>>
>>             #})
>>
>>     }
>>
>> }
>>
>>
>> In that context, "Slur" is of course an arbitrary name. However, when
>a
>> symbol is used to indicate what item is being annotated in scholarly,
>e.g.:
>>
>>
>> \criticalRemark \with {
>>
>>     message = "my message"
>>
>>     apply = addition
>>
>> } Slur f'( g') % <<<< "Slur" indicated here
>
>What are the argument predicates of criticalRemark ?

See https://github.com/openlilylib/scholarly/blob/master/annotate/module.ily

>
>Slur can be a string, a symbol, a symbol list, a music expression (in
>lyrics mode) depending on the predicate it is seen with.

In this case it's symbol-list-or-music? so a symbol.

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



reply via email to

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