denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Gregorian Chant in Denemo


From: Andreas Schneider
Subject: Re: [Denemo-devel] Gregorian Chant in Denemo
Date: Tue, 20 Dec 2016 23:18:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1

Thank you, that works very well. The script is:

;;;VaticanaStaff
(let ((tag "VaticanaStaff"))
        (ToggleDirective "staff" "postfix" tag (string-append " \\new
VaticanaVoice = \"" (d-GetVoiceIdentifier) "\" <<\n")
DENEMO_OVERRIDE_LILYPOND)
        (ToggleDirective "voice" "postfix" tag "\n" (logior
DENEMO_OVERRIDE_GRAPHIC DENEMO_OVERRIDE_LILYPOND)))

Andreas


Am 20.12.2016 um 15:03 schrieb Richard Shann:
> On Tue, 2016-12-20 at 09:04 +0000, Richard Shann wrote:
>> On Mon, 2016-12-19 at 03:15 +0100, Andreas Schneider wrote:
>>> Am 19.12.2016 um 20:57 schrieb Richard Shann:
> [...]
>>> Thanks. Is there a Scheme function to convert a number to Roman? I
>>> searched the internet, but did not find anything.
>>
>> hmm, yes, I thought about that after I wrote. I think it may be
>> available - I looked in the Install Cue command and found
>>
>> (d-GetVoiceIdentifier)
>>
>> but that generates the variable name for the voice, MvmntIVoiceI.
>> Obviously with a bit of manipulation it could be swapped around, but a
>> built-in would be better and may already exist, if not I'll create it 
> 
> Better still, there is no need for them to be different - so I have just
> committed a patch to git that makes them the same.
> Now you can use the string (d-GetVoiceIdentifier) with
> (string-append ...) to put the correct name into your "\new
> VaticanaVoice ="
> you will need the quotes around it
> 
> ..... \""  (d-GetVoiceIdentifier) "\"........
> 
> HTH
> 
> Richard




reply via email to

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