Re: passing a Context to a scheme function (format-metronome-markup)

2008-10-13 Thread Graham Percival
On Mon, 13 Oct 2008 14:05:32 -0700 "Patrick McCarty" <[EMAIL PROTECTED]> wrote: > On Mon, Oct 13, 2008 at 12:02 PM, Graham Percival <[EMAIL PROTECTED]> > wrote: > > > > However, what grob produces the tempo mark? Neither of these > > (exaggerated) overrides produces any change. > > > > \override

Re: passing a Context to a scheme function (format-metronome-markup)

2008-10-13 Thread Patrick McCarty
On Mon, Oct 13, 2008 at 12:02 PM, Graham Percival <[EMAIL PROTECTED]> wrote: > > However, what grob produces the tempo mark? Neither of these > (exaggerated) overrides produces any change. > > \version "2.11.61" > \relative c' { > \override MetronomeMark #'padding = #8 > \override RehearsalMark

Re: passing a Context to a scheme function (format-metronome-markup)

2008-10-13 Thread Graham Percival
On Wed, 8 Oct 2008 00:30:55 -0300 "Han-Wen Nienhuys" <[EMAIL PROTECTED]> wrote: > On Tue, Oct 7, 2008 at 2:12 PM, Reinhold Kainhofer > <[EMAIL PROTECTED]> wrote: > > > > (define-public (format-metronome-markup text dur count . context) > > (let* ((ctx (and (pair? context) (car context))) > >

Re: passing a Context to a scheme function (format-metronome-markup)

2008-10-07 Thread Han-Wen Nienhuys
On Tue, Oct 7, 2008 at 2:12 PM, Reinhold Kainhofer <[EMAIL PROTECTED]> wrote: > > (define-public (format-metronome-markup text dur count . context) > (let* ((ctx (and (pair? context) (car context))) > (hide-note (and ctx (eq? #t (ly:context-property > ctx 'tempoHideNote > (note

Re: passing a Context to a scheme function (format-metronome-markup)

2008-10-07 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Dienstag, 7. Oktober 2008 schrieb Reinhold Kainhofer: > Am Dienstag, 7. Oktober 2008 schrieb Han-Wen Nienhuys: > > You can't do this; the format-metronome-markup is run during > > interpreting, from Metronome_mark_engraver, which will pass the > > c

Re: passing a Context to a scheme function (format-metronome-markup)

2008-10-07 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Dienstag, 7. Oktober 2008 schrieb Han-Wen Nienhuys: > You can't do this; the format-metronome-markup is run during > interpreting, from Metronome_mark_engraver, which will pass the > context object by doing context()->self_scm() in C++. Actually, a

Re: passing a Context to a scheme function (format-metronome-markup)

2008-10-07 Thread Han-Wen Nienhuys
You can't do this; the format-metronome-markup is run during interpreting, from Metronome_mark_engraver, which will pass the context object by doing context()->self_scm() in C++. I suggest you refactor the code a bit, so your call and format-metronome-markup use the same code. On Mon, Oct 6, 2008

passing a Context to a scheme function (format-metronome-markup)

2008-10-06 Thread Graham Percival
I'm experimenting with calling (format-metronome-markup) directly, but I'm having difficulty with the context argument. // main code: (define-public (format-metronome-markup text dur count context) ... My code: \header{ piece = #(format-metronome-markup "Allegro" 4 120 'Global) } \relative c