Re: Passing music objects into scheme functions

2017-08-14 Thread David Kastrup
Charles Winston writes: >> On Aug 14, 2017, at 1:34 PM, David Kastrup wrote: >> >> David Kastrup writes: >> >>> Charles Winston writes: >>> > On Aug 14, 2017, at 1:20 PM, David Kastrup wrote: > > Charles Winston writes: > >> Here is the function inside chord-name.scm

Re: Passing music objects into scheme functions

2017-08-14 Thread Charles Winston
> On Aug 14, 2017, at 1:34 PM, David Kastrup wrote: > > David Kastrup writes: > >> Charles Winston writes: >> On Aug 14, 2017, at 1:20 PM, David Kastrup wrote: Charles Winston writes: > Here is the function inside chord-name.scm > > > ;; chordmode-to

Re: Passing music objects into scheme functions

2017-08-14 Thread David Kastrup
David Kastrup writes: > Charles Winston writes: > >>> On Aug 14, 2017, at 1:20 PM, David Kastrup wrote: >>> >>> Charles Winston writes: >>> Here is the function inside chord-name.scm ;; chordmode-to-exceptions (define-safe-public (chordmode-to-exceptions chord mark

Re: Passing music objects into scheme functions

2017-08-14 Thread David Kastrup
Charles Winston writes: >> On Aug 14, 2017, at 1:20 PM, David Kastrup wrote: >> >> Charles Winston writes: >> >>> Here is the function inside chord-name.scm >>> >>> >>> ;; chordmode-to-exceptions >>> (define-safe-public (chordmode-to-exceptions chord markup) >>> "Transform event-chord ente

Re: Passing music objects into scheme functions

2017-08-14 Thread Charles Winston
> On Aug 14, 2017, at 1:20 PM, David Kastrup wrote: > > Charles Winston 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

Re: Passing music objects into scheme functions

2017-08-14 Thread David Kastrup
Charles Winston 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-e

Re: Passing music objects into scheme functions

2017-08-14 Thread Charles Winston
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-

Passing music objects into scheme functions

2017-08-14 Thread Charles Winston
Hi developers, I’m working on chord semantics and creating a new way to input chord name exceptions. I want the chord exceptions to be an alist whose keys are the chord's semantics list and values are the exception markups. I wrote a function that takes an event chord and a markup as parameters