[Top][All Lists]

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

Passing music objects into scheme functions

From: Charles Winston
Subject: Passing music objects into scheme functions
Date: Mon, 14 Aug 2017 12:46:27 -0400

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 and returns an alist pair 
with the correct key and value. I’m trying to test my function, and I have this:

chordVar = \chordmode { c1:m7 }

markupVar = \markup { “min7” }

#(chordmode-to-exceptions chordVar markupVar)

On the last line I get the following error:

Wrong type argument in position 1 (expecting Prob): ()

When i do #(display chordVar) and #(display markupVar) their structures print 
what I expect. Could someone help me understand why this error could be 


reply via email to

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