[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:
  piece = #(format-metronome-markup "Allegro" 4 120 'Global)
\relative c' { c }

Error message: 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?

- Graham

reply via email to

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