lilypond-user
[Top][All Lists]
Advanced

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

Re: trying to add a new \language


From: Ralf Mattes
Subject: Re: trying to add a new \language
Date: Thu, 16 Jun 2011 21:34:27 +0000 (UTC)
User-agent: Pan/0.132 (Waxed in Black)

On Thu, 16 Jun 2011 08:56:46 -0700, -Eluze wrote:

> R. Mattes wrote:
>> 
>> On Wed, 15 Jun 2011 13:52:22 -0700, -Eluze wrote:
>> 
>>> hi
>>> 
>>> for some experiments i want to add a new language - let's call it
>>> myLanguage.
>>> 
>>> i know i can add it in \scm\define-note-names.scm and this works
>>> perfectly. however i don't want to change this file with every release
>>> and i am wondering if there is a way to include such definitions in a
>>> similar way to -dinclude-settings=….ly.
>>> 
>>> thanks for any hints!
>>> Eluze
>> 
>> Hmm, maybe I don't understand your question, but why not:
>> 
>> #(set! language-pitch-names
>>   (cons `(myLanguage ((ceses . ,(ly:make-pitch -1 0 DOUBLE-FLAT)))
>>           ....)
>>         language-pitch-names)
>> 
> thanks - but when i try to compile (eliminating the 4 dots

Sorry, but since I left my telepathic helmet at home there's no way for
me to know how myLanguage is supposed to look. That would be _your_ job to 
fill in.

> and adding a
> closing bracket ")" - i tried in several places - i get errors:

Obviously the wrong place. Add it at the end ...
 
> test2.ly:2:1: error: GUILE signaled an error for the expression
> beginning here
> #
>  (set! language-pitch-names
> 
> error: failed files: "test2.ly"
> In file "test2.ly", line 1: Missing or extra expression in (set!
> language-pitch-names (cons (quasiquote (myLanguage ((ceses unquote
> (ly:make-pitch -1 0 DOUBLE-FLAT)))))) language-pitch-names).
> 
> since i do not really understand scheme i have no idea how to fix this

??? Didn't you write:

> for some experiments i want to add a new language - let's call it
> myLanguage.

What's your question? How to program in Scheme? 

 HTH RalfD

> Eluze





reply via email to

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