|
From: | Olivier Biot |
Subject: | Re: Writing to the console (debug info) |
Date: | Tue, 18 Dec 2012 18:21:23 +0100 |
You can do that with Scheme. I don't know if there's a LilyPond command for it.
#(display <your object here>) will display what you give it, either a plain string or an _expression_. The results aren't always totally useful (give it a \paper{} block, for example, and it will just say #<Output_def>) but that's a start. #(newline) will move to the next line if you want cleaner output.
There's also a procedure called 'format' that is more like printf.
http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Formatted-Output.html#index-format-3918
-Mark
Processing `C:/Users/Olivier/Dropbox/Music/Kummer op. 125/LilyPond/attempt2/parts/01.ly'
Parsing...
Interpreting music...[8][16]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `01.ps'...
Converting to `./01.pdf'...
[i] Converting Kummer Op 125 N° 1.
Success: compilation successfully completed
Completed successfully in 2.2".
Processing `C:/Users/Olivier/Dropbox/Music/Kummer op. 125/LilyPond/attempt2/parts/01.ly'
Parsing...
warning: [!] Converting Kummer Op 125 N° 1.
Interpreting music...[8][16]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `01.ps'...
Converting to `./01.pdf'...
Success: compilation successfully completed
Completed successfully in 2.1".
[Prev in Thread] | Current Thread | [Next in Thread] |