[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [frogs] Lilypond variable definitions - are they accessible from Sch
From: |
Han-Wen Nienhuys |
Subject: |
Re: [frogs] Lilypond variable definitions - are they accessible from Scheme? |
Date: |
Sun, 3 Jan 2010 22:33:08 -0200 |
On Sun, Jan 3, 2010 at 10:00 PM, Carl Sorensen <address@hidden> wrote:
>> 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)
you can see the defintion by doing
#(display conditionalMark)
inside the .ly file.
The breakpoint failing may have to do with the call sequence. See
parser.yy, run_music_function(). The function is called directly from
C++, without going through the GUILE evaluator, so I think that is why
there is no debugger trap.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen