Re: [frogs] Lilypond variable definitions - are they accessible from Scheme?

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]




On 1/3/10 2:54 PM, "Ian Hulin" <ian@xxxxxxxxxxxx> wrote:

> HI all,
> I'm working on the Guile Debugger Stuff, and would like to try debugging a
> music function definition such as:
> conditionalMark = #(define-music-function (parser location) ()
>     #{ \tag #'instrumental-part {\mark \default}  #} )
> 
> It appears conditionalMark does not get set up as an equivalent of a Scheme
> (define conditionalMark = define-music-function(parser location () ...
> although something gets defined because Scheme apparently recognizes
> #(set-break! conditionalMark)
>     later on in the file without signalling any Guile errors.
> However the breakpoint trap is never encountered as define-music-function
> passed things on to ly:make-music-function, which is really C++ code
> ly_make_music_function, so Guile never finds out about the breakpoint.

I think that LilyPond variables are visible in Scheme.

I'm not sure why you can't set the breakpoint for conditionalMark.  If I had
to guess, it would be because define-music-function is a macro, not a Scheme
procedure, but that's a totally wild guess.

I've copied this to -devel, because this question is over my head.

Thanks,

Carl


---
----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/