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

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


On Sun, Jan 3, 2010 at 10:00 PM, Carl Sorensen <c_sorensen@xxxxxxx> 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 - hanwen@xxxxxxxxx - http://www.xs4all.nl/~hanwen

---
----
Join the Frogs!


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