lilypond-devel
[Top][All Lists]
Advanced

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

Re: How to debug/play with scheme code?


From: Nicolas Sceaux
Subject: Re: How to debug/play with scheme code?
Date: Mon, 01 Mar 2004 20:43:55 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Mon, 1 Mar 2004 00:46:18 +0100, Han-Wen a dit : 

 > address@hidden writes:
 >> since I'd like to become a "brilliant LilyPond hacker", and I currently
 >> want to do some more ore less evil scheme hacking, I wonder wether
 >> there's an easy way to debug scheme code or to get something like an
 >> interactive scheme interpreter with LilyPond's extensions allready loaded.
 >> Starting with .ly files isn't very convenient.

 > try #(top-repl)

that's cute :-)

there is a place for an emacs command that would launch that, with I/Os in a
buffer with ilisp-mode or so, which would enable symbol completion...

-----
toto=\notes { c'' }
#(top-repl)
-----

nicolas:/tmp> lilypond toto.ly 
lilypond (GNU LilyPond) 2.1.28
Exécution de usr...
Maintenant en traitement: « toto.ly »
Analyse...
guile> (define-module (*anonymous-ly-1*))
guile> toto
#<Music SequentialMusic>
guile> (use-modules (lilypond music-expressions))
guile> (mus:display toto)
<SequentialMusic
  :elements (
             <EventChord
               :elements (
                          <NoteEvent
                            :duration #<Duration 4 >
                            :pitch #<Pitch c'' > >) >) >
guile> (quit)

Thanks for that precious tip, Han-Wen.

nicolas





reply via email to

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