[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Getting pitch out of a pair
From: |
address@hidden |
Subject: |
Getting pitch out of a pair |
Date: |
Sat, 17 Jan 2015 00:02:01 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
I store two pitches in a pair variable
x = #'(b . cis')
But then I want to retrieve each one as a pitch in a music-function
foo = #(define-music-function (parser location bar) (ly:music?)
(define from (car x))
(define to (cdr x))
#{
\transpose $from $to $bar
#}
but when I use this
\foo a
I get Expecting pitch, found (quote b)
So what am I doing wrong and how can I do it right?
// Anders
PS! The foo function is just a snippet the real function does a bit more...
--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.