[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
passing a Context to a scheme function (format-metronome-markup)
From: |
Graham Percival |
Subject: |
passing a Context to a scheme function (format-metronome-markup) |
Date: |
Mon, 6 Oct 2008 15:10:07 -0700 |
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' { c }
Error message:
foo.ly:3:11: error: GUILE signaled an error for the expression
beginning here
piece = #
(format-metronome-markup "Allegro" 4 120 'Global)
Wrong type argument in position 1 (expecting Context): Global
I've tried #f, '(), 'void, 'Score, and a few other things I can't
remember. The only time that context occurs in the function is
(let* ((hide_note (eq? #t (ly:context-property context
'tempoHideNote))) which doesn't concern me -- I want this to always
resolve to false. How do I give the function a Context?
Cheers,
- Graham
- passing a Context to a scheme function (format-metronome-markup),
Graham Percival <=
- Re: passing a Context to a scheme function (format-metronome-markup), Han-Wen Nienhuys, 2008/10/07
- Re: passing a Context to a scheme function (format-metronome-markup), Reinhold Kainhofer, 2008/10/07
- Re: passing a Context to a scheme function (format-metronome-markup), Reinhold Kainhofer, 2008/10/07
- Re: passing a Context to a scheme function (format-metronome-markup), Han-Wen Nienhuys, 2008/10/07
- Re: passing a Context to a scheme function (format-metronome-markup), Graham Percival, 2008/10/13
- Re: passing a Context to a scheme function (format-metronome-markup), Patrick McCarty, 2008/10/13
- Re: passing a Context to a scheme function (format-metronome-markup), Graham Percival, 2008/10/13