Re: Function for rendering key textually in 3 languages

2012-11-04 Thread Thomas Morley
2012/11/4 Olivier Biot : > On Sun, Nov 4, 2012 at 5:06 PM, Thomas Morley > wrote: >> 2012/11/4 Thomas Morley : >>> Hi Olivier, >>> >>> a) >>> If you define a new `scoreTitleMarkup´, you have to _use_ it. :) >>> >>> \paper { >>> scoreTitleMarkup = \myScoreTitleMarkup >>> } > > O

Re: Function for rendering key textually in 3 languages

2012-11-04 Thread Olivier Biot
On Sun, Nov 4, 2012 at 5:06 PM, Thomas Morley wrote: > 2012/11/4 Thomas Morley : >> Hi Olivier, >> >> a) >> If you define a new `scoreTitleMarkup´, you have to _use_ it. :) >> >> \paper { >> scoreTitleMarkup = \myScoreTitleMarkup >> } Oops... It's defined in book-titling.ily -

Re: Function for rendering key textually in 3 languages

2012-11-04 Thread Thomas Morley
2012/11/4 Thomas Morley : > Hi Olivier, > > a) > If you define a new `scoreTitleMarkup´, you have to _use_ it. :) > > \paper { > scoreTitleMarkup = \myScoreTitleMarkup > } > > > b) > \fromproperty #'header:piece-tonality will return a stencil not a string. > So every markup-comm

Re: Function for rendering key textually in 3 languages

2012-11-04 Thread Thomas Morley
Hi Olivier, a) If you define a new `scoreTitleMarkup´, you have to _use_ it. :) \paper { scoreTitleMarkup = \myScoreTitleMarkup } b) \fromproperty #'header:piece-tonality will return a stencil not a string. So every markup-command or scheme-function requiering a string-argum

Re: Function for rendering key textually in 3 languages

2012-11-03 Thread Olivier Biot
On Sat, Nov 3, 2012 at 7:35 PM, David Kastrup wrote: > Olivier Biot writes: > >> On Sat, Nov 3, 2012 at 6:11 PM, Olivier Biot wrote: >> >> What I now need to figure out, is how to print the output in a markup, >> like in the currently not working snippets below: >> >> %%% START of snippet 2 >> \

Re: Function for rendering key textually in 3 languages

2012-11-03 Thread David Kastrup
Olivier Biot writes: > On Sat, Nov 3, 2012 at 6:11 PM, Olivier Biot wrote: >> Hi David, >> >> Thanks a lot - I now start to see the mistakes I made (excess >> parentheses around the cond expression and excess parentheses around >> the return values in the cond sub expressions). >> >> I have howe

Re: Function for rendering key textually in 3 languages

2012-11-03 Thread Olivier Biot
On Sat, Nov 3, 2012 at 6:11 PM, Olivier Biot wrote: > Hi David, > > Thanks a lot - I now start to see the mistakes I made (excess > parentheses around the cond expression and excess parentheses around > the return values in the cond sub expressions). > > I have however to use quotes around the not

Re: Function for rendering key textually in 3 languages

2012-11-03 Thread Olivier Biot
On Sat, Nov 3, 2012 at 5:54 PM, David Kastrup wrote: > Olivier Biot writes: > >> I definitely have problems with Scheme and LilyPond interpretation. I >> now have the Scheme standard open as well. >> >> I tried to simplify the initial job by first creating a function with >> one string argument r

Re: Function for rendering key textually in 3 languages

2012-11-03 Thread David Kastrup
Olivier Biot writes: > I definitely have problems with Scheme and LilyPond interpretation. I > now have the Scheme standard open as well. > > I tried to simplify the initial job by first creating a function with > one string argument returning either a string or a markup. Does not > work. > > I t

Re: Function for rendering key textually in 3 languages

2012-11-03 Thread Olivier Biot
On Sat, Nov 3, 2012 at 1:09 AM, Olivier Biot wrote: > On Tue, Oct 30, 2012 at 10:50 PM, Eluze wrote: >> shutterfreak wrote >>> Hi all, >>> >>> I'd like to have a function to translate a key signature into the >>> textual representation of that key in 3 languages. >>> >>> For instance, I'd write t

Re: Function for rendering key textually in 3 languages

2012-11-02 Thread Olivier Biot
On Tue, Oct 30, 2012 at 10:50 PM, Eluze wrote: > shutterfreak wrote >> Hi all, >> >> I'd like to have a function to translate a key signature into the >> textual representation of that key in 3 languages. >> >> For instance, I'd write this in my score: > >> >> and the rendering would look like thi

Re: Function for rendering key textually in 3 languages

2012-10-30 Thread Eluze
shutterfreak wrote > Hi all, > > I'd like to have a function to translate a key signature into the > textual representation of that key in 3 languages. > > For instance, I'd write this in my score: > > and the rendering would look like this: > > The logic I'm trying to implement, is (in pseud