Re: [frogs] Lilypond variable definitions - are they accessible from Scheme? |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Carl Sorensen <c_sorensen@xxxxxxx>
- Subject: Re: [frogs] Lilypond variable definitions - are they accessible from Scheme?
- From: Han-Wen Nienhuys <hanwenn@xxxxxxxxx>
- Date: Sun, 3 Jan 2010 22:33:08 -0200
- Cc: Ian Hulin <ian@xxxxxxxxxxxx>, Lilypond Frogs List <frogs@xxxxxxxxxxx>, Lily devel <lilypond-devel@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YPtlZLW06MDjbiaLwE81QotvLLc2BkPNxZHRSNYDF/0=; b=cTK5NR0p32/xY/X9sUUCC8nwc/1F+sTBUZwDyoVYPJFeZ2pRh3RSxFObfRUBkia6FP StrCTFgA/YYSh40YxjdHMYNmROvYktWW4R6fFGV9sNZvt+DsZT14tMeQ93ZqUk67Kxul YQB7sTuMGaQqzZNG5Im8YJEF/z2PLZNXExB3s=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=rTynTb9fAI7Q2/4cvFYhNM1cSx2Sya+JWQxu5KZOdSeGOp1VsYe3NppH82w/KIutS6 JMVKTI3XBa34pLQfD1PArUjIBMfin60LUrUpY0+12adXWaOFbRZhEL+ZulFkFBOiKPjO nSqhHYgrp/AE4i5v8AEwNakuviH5x3VLyNiD8=
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!