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))))))



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to