lilypond-devel
[Top][All Lists]
Advanced

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

Re: \displayLilyMusic function


From: James Lowe
Subject: Re: \displayLilyMusic function
Date: Tue, 06 Apr 2010 12:51:00 +0100
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

Sorry to post a reply to myself.

The thing here is that if you use the Lilypond.exe you DON'T get the output (apart from the notes being displayed in the PDF) so it seems I need to change the doc entry from

Displaying a music expression in LilyPond notation can be done using the music 
function
\displayLilyMusic. For example,

to something like

Displaying a music expression in LilyPond notation can be done with the music 
function
\displayLilyMusic, but only when using the command line. For example

Then the section is ok for Windows.

Regards

James



James Lowe wrote:
Thanks,

Then I guess if you run LilyPond at the CLI (on Windows anyway) with just this statement in the *.ly file you get


C:\Users\jlowe\Desktop>lilypond test.ly
GNU LilyPond 2.13.10
Processing `test.ly'
Parsing...
{ a, cis e fis g }

Interpreting music...
Preprocessing graphical objects...
Solving 1 page-breaking chunks...[1: 1 pages]
Drawing systems...
Layout output to `test.ps'...
Converting to `./test.pdf'...

If I run it as

C:\Users\jlowe\Desktop>lilypond test.ly >display.txt

Then I get a display.txt file with *just* the '{ a, cis e fis g }' stated (including the braces).

If this is the same for Linux then I could remove the 'what happens under windows' comment in the itely file (as a patch)

James


Graham Percival wrote:
On Tue, Apr 6, 2010 at 12:16 PM, James Lowe <address@hidden> wrote:
By default, LilyPond will print these messages to the console along with
all the other mes-
sages. To split up these messages and save the results of \display{STUFF},
redirect the output
to a file.
lilypond file.ly >display.txt
Now this all seems to work however I always get a PDF file created even if
the *.ly file contains

\version "2.13.6"

{
 \displayLilyMusic \transpose c a, { c4 e g a bes }
}

This is correct.  If you look at the console (umm... this would depend
on the way you run lilypond, I guess?), you should see a bunch of
extra text that you wouldn't see if the \displayLilyMusic wasn't
there.

The >display.txt  just saves that extra text into a separate file,
instead of forcing people to scroll back through their console output
to find the stuff they want to see.

Cheers,
- Graham



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





reply via email to

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