lilypond-user
[Top][All Lists]
Advanced

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

Re: Adding note names to a language


From: Br. Samuel Springuel
Subject: Re: Adding note names to a language
Date: Tue, 27 Mar 2018 15:36:50 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 3/27/18 2:42 PM, Torsten Hämmerle wrote:
Br. Samuel Springuel wrote
Is there a way to import into the new language the note names from an
existing language?
Yes.
All the note name definitions are contained in the associated list
language-pitch-names
When applying (assoc-get 'english language-pitch-names) you'll get a list of
all the English note definitions.

That way, you can append several lists, e.g. using Harm's do-re-mi example:

myNames = #(append (assoc-get 'english language-pitch-names)
   `(
     (do . ,(ly:make-pitch -1 0 NATURAL))
     (re . ,(ly:make-pitch -1 1 NATURAL))
     (mi . ,(ly:make-pitch -1 2 NATURAL))
   ))

That works beautifully.  Thanks.

--
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ



reply via email to

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