Re: [frogs] chord-name-engraver plus capo - schemeing away ...

2010-08-27 Thread Wols Lists
Okay - broken code follows: -- if (!capo) chord_name_-set_property (text, markup); else { SCM capovertical = get_property (capoVertical); // how do I combine text and markup to get markup (capo_markup) !!! SCM paren_proc = ly_lily_module_constant (parenthesize);//

Re: [frogs] chord-name-engraver plus capo - schemeing away ...

2010-08-27 Thread Neil Puttock
On 27 August 2010 21:49, Wols Lists antli...@youngman.org.uk wrote: There's a function called parenthesize in define-markup-commands.scm that looks like it does what I want (line 3154), but ly_lily_module_constant can't find it, and I don't know whether I've got the call to it in the line

Re: [frogs] chord-name-engraver plus capo - schemeing away ...

2010-08-27 Thread Wols Lists
On 27/08/10 23:42, Neil Puttock wrote: scm_cons does create a pair, but you need a list for the arguments to \line. Just to prove how nasty doing markup in C++ is, here's the above code corrected: SCM paren_proc = ly_lily_module_constant (parenthesize-markup); SCM line_proc =

Re: [frogs] Chord-name-engraver plus capo

2010-08-26 Thread Trevor Daniels
Wols Lists wrote Thursday, August 26, 2010 2:19 PM Learning a bit at a time ... how do I add properties? I've used \set ChordNames.capoFret = #3, but it's a new property, and it's objecting, as you can see. I've added it to the read section of the ADD_TRANSLATOR macro of

Re: [frogs] Chord-name-engraver plus capo

2010-08-26 Thread Wols Lists
On 26/08/10 20:00, Trevor Daniels wrote: Wols Lists wrote Thursday, August 26, 2010 2:19 PM Learning a bit at a time ... how do I add properties? I've used \set ChordNames.capoFret = #3, but it's a new property, and it's objecting, as you can see. I've added it to the read section of the

Re: [frogs] Chord-name-engraver plus capo - pitches

2010-08-26 Thread Wols Lists
Next glitch - I'm trying to actually do the transpose ... and I don't understand this Rational stuff :-( The code is below: if (capo) { Pitch *p = unsmob_pitch (n-get_property (pitch)); Pitch orig = p-transposed (Pitch (0, 0, -capo)); capo_pitches = scm_cons (