[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: referencing hash key with music symbol
From: |
David Kastrup |
Subject: |
Re: referencing hash key with music symbol |
Date: |
Wed, 07 Dec 2016 19:20:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
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 ?
Slur can be a string, a symbol, a symbol list, a music expression (in
lyrics mode) depending on the predicate it is seen with.
--
David Kastrup