[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing music objects into scheme functions
From: |
David Kastrup |
Subject: |
Re: Passing music objects into scheme functions |
Date: |
Mon, 14 Aug 2017 19:20:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Charles Winston <address@hidden> writes:
> Here is the function inside chord-name.scm
>
>
> ;; chordmode-to-exceptions
> (define-safe-public (chordmode-to-exceptions chord markup)
> "Transform event-chord entered in chord mode to alist
> entry in chordSemanticsNameExceptions list
> "
> (define (is-semantics-event? x)
> (ly:in-event-class? x 'chord-semantics-event))
Event classes are for stream events, not for music expressions.
> (define (get-semantics chord)
> (let* ((elts (ly:music-property chord 'elements))
> (semantics-event (filter is-semantics-event? elts))
> (semantics-list (ly:event-property semantics-event
> 'chord-semantics)))
ly:event-property is for stream events, not for music expressions.
> semantics-list))
> (list (cons (get-semantics chord) markup)))
Stream events are generated from music expressions during iteration of
music expressions (the interpretation phase making use of engravers
etc).
--
David Kastrup
- Passing music objects into scheme functions, Charles Winston, 2017/08/14
- Re: Passing music objects into scheme functions, Charles Winston, 2017/08/14
- Re: Passing music objects into scheme functions,
David Kastrup <=
- Re: Passing music objects into scheme functions, Charles Winston, 2017/08/14
- Re: Passing music objects into scheme functions, David Kastrup, 2017/08/14
- Re: Passing music objects into scheme functions, David Kastrup, 2017/08/14
- Re: Passing music objects into scheme functions, Charles Winston, 2017/08/14
- Re: Passing music objects into scheme functions, David Kastrup, 2017/08/14