lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging/showing internal stuff?


From: David Kastrup
Subject: Re: Debugging/showing internal stuff?
Date: Sun, 15 Mar 2009 16:29:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Nicolas Sceaux <address@hidden> writes:

> Le 13 mars 09 à 18:36, Ian Hulin a écrit :
>
>> Hi Nicolas,
>>
>> So how do you do interactive debugging if you're trying to write (or
>> modify) Scheme code for Lilypond. I'd be interested to know as an
>> apprentice Frog.
>
> you can try that:
>
> -----foo.ly-----
> #(module-define! (resolve-module '(guile-user)) 'lilypond-module
> (current-module))
> #(top-repl)
> ----------------
>
> guile> (set-current-module lilypond-module)
> #<directory (guile-user) 22416f0>
> guile> parser
> #<Lily_parser #<Lily_lexer (#<module 33965e0>) > >
> guile> (display-scheme-music #{ a' #})
> (make-music
>   'SequentialMusic
>   'elements
>   (list (make-music
>           'EventChord
>           'elements
>           (list (make-music
>                   'NoteEvent
>                   'duration
>                   (ly:make-duration 2 0 1 1)
>                   'pitch
>                   (ly:make-pitch 0 5 0))))))

I think that some version of this trick should definitely make it into
the manual, propably in lilypond-internals?

-- 
David Kastrup





reply via email to

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