Printing numbers instead of notes
Hello lilyponders, I'm trying to transcribe my teacher's solfegio class notes into latex using lilypond-book. For our very first lesson I need to print the line and interline numbers in the staff (including the clef simbol), as follows: 5- 4 --4--- 3 -3 2 ---2-- 1 -1 How can I do that using lilypond? Thanks in advance for your help. Carlos ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: PNG output with Lilypond?
Thanks David and Carter, I can use convert as you describe on a RedHat 7.3 system, but not on my older 6.0 system. I should have explained that I want just a small png picture, so the command ly2dvi --preview test.ly which was described 2 days ago seems to work out better. Best would be to be able to generate the small png in a web page. An example of this is given in the manual, i.e., lilypond relative1 verbatim \key c \minor r8 c16 b c8 g as c16 b c8 d | g,4 /lilypond but I can't get this to work. Any help on this problem would be greatly appreciated. Donald Gudehus ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: PNG output with Lilypond?
Donald H. Gudehus [EMAIL PROTECTED] writes: An example of this is given in the manual, i.e., lilypond relative1 verbatim \key c \minor r8 c16 b c8 g as c16 b c8 d | g,4 /lilypond but I can't get this to work. Any help on this problem would be greatly appreciated. You probably didn't get an anwser before, because you don't specify what the problem is. If you want to get help, you need to give some more information. I selected your snippet: lilypond relative1 verbatim \key c \minor r8 c16 b c8 g as c16 b c8 d | g,4 /lilypond and it works perfectly allright over here: M-| lilypond-book -f html -o html - RET says: lilypond-book (GNU LilyPond) 1.6.6 invoking `lilypond --header=texidoc -I /var/fred/cvs/savannah/lily-1.6/lilypond lily-1705589784.ly' GNU LilyPond 1.6.6 Now processing: `lily-1705589784.ly' Parsing... Interpreting music...[2] Preprocessing elements... Calculating column positions... [2] paper output to `lily-1705589784.tex'... Running LaTeX... invoking `echo $TEXMF; latex '\nonstopmode \input lily-1705589784' 1 /dev/null 2 /dev/null' {/home/fred/lily-1.6/share/lilypond/1.6.6,{/home/fred/lily-1.6/share/lilypond,/usr/share/texmf}} Running dvips... invoking `dvips -E -o lily-1705589784.eps lily-1705589784 1 /dev/null 2 /dev/null' invoking `gs -sDEVICE=bbox -q -sOutputFile=- -dNOPAUSE lily-1705589784.eps -c quit lily-1705589784.eps.bbox 21' invoking `gs -g260x40 -sDEVICE=pnggray -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=lily-1705589784.png -r90 -dNOPAUSE lily-1705589784.trans.eps lily-1705589784.eps -c quit ' Writing `foo.html' and produces a nice-looking html. Jan. -- Jan Nieuwenhuizen [EMAIL PROTECTED] | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: PS failure with 1.6.6
In fact it is even stranger: xdvi (22.29) fails to find the file, whereas oxdvik (22.40f) succeeds (but the PS specials don't look good -- ledger-lines are too high by about 1/4 notehead, braces too small) The latter is a bug in xdvi I think. Try to use the greatest magnification (press `1 s') and you should see correct ledger lines. Looks as though xdvi doesn't even look for music-drawing-routines.ps with kpathsea!! Yeah, I also tried making symlinks to dvips from ps and tex in /usr/local/share/lilypond. Still no go. I'll just wait for 1.6.7 and hope the problem goes away as my passive-aggressive contribution to LilyPond development. In my teTeX installation, xdvi uses the TEXPSHEADERS variable to find PS header files like music-drawing-routines.ps. I have the following default value in texmf.cnf: TEXPSHEADERS = .;$TEXMF/{dvips,pdftex,tex,fonts/type1}// This means that any file installed somewhere in $TEXMF/tex/... is checked. AFAIK, music-drawing-routines.ps is installed in /usr/share/texmf/tex on Debian (which I don't use), so it should be found. Say KPATHSEA_DEBUG=-1 xdvi foo.dvi foo.kpathsea.log and analyze the log file to find out where xdvi searches music-drawing-routines.ps. Hmm, I've just checked the texmf.cnf file from the TeX Live 7 CD, and I see that things have changed compared to my old teTeX setup. `tex' is no longer part of the default TEXPSHEADERS, only the program-specific TEXPSHEADERS.xxx variables contain it. I'm not sure how to solve this. The easiest (and probably cleanest) solution is to add the following line (or something similar) to texmf.cnf: TEXPSHEADERS.xdvi = .;$TEXMF/{tex,pdftex,dvips,fonts/{type1,pfb}}// I have mixed feelings with the other solution, namely to copy music-drawing-routines.ps into the dvips subdirectory tree. Perhaps someone else can decide this. Werner ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: PNG output with Lilypond?
[EMAIL PROTECTED] writes: Hello, 1) I still don't get it. I thought that the snippet is to be included in an html file, and that its purpose is to produce an image seen in a browser. That is what the example in the manual implies. All it seems to do is display in the broswer window the exact same characters. The manual on the other hand shows an image. Apparently, the manual is not clear enough. Which part of the manual gave you this idea? 2) Is your command below intended to be entered on a command line on a Unix system? If I do that I get: M-: Command not found. Lilypond-book is confused by --outname on multiple files it's an emacs command. Try lilypond-book -f html -o html my-file.html from the shell prompt. -- Han-Wen Nienhuys | [EMAIL PROTECTED] | http://www.cs.uu.nl/~hanwen ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: PS failure with 1.6.6
I have mixed feelings with the other solution, namely to copy music-drawing-routines.ps into the dvips subdirectory tree. Perhaps someone else can decide this. It's policy not to do this by default. This solution is not possible for those who are not root and cannot or do not want to modify texmf.cnf Well, I meant the user-writable dvips subdirectory tree. Werner ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: PS failure with 1.6.6
[EMAIL PROTECTED] writes: TEXPSHEADERS.xdvi = .;$TEXMF/{tex,pdftex,dvips,fonts/{type1,pfb}}// I have mixed feelings with the other solution, namely to copy music-drawing-routines.ps into the dvips subdirectory tree. Perhaps someone else can decide this. It's policy not to do this by default. This solution is not possible for those who are not root and cannot or do not want to modify texmf.cnf -- Han-Wen Nienhuys | [EMAIL PROTECTED] | http://www.cs.uu.nl/~hanwen ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: PNG output with Lilypond?
On Tue, 12 Nov 2002 18:01:11 Felipe Massia wrote: Yesterday there was also a question about PNG generation. In UNIX/Linux $ convert --help Version: @(#)ImageMagick 5.4.4 04/05/02 Q:16 http://www.imagemagick.org Copyright: Copyright (C) 2002 ImageMagick Studio LLC convert is in most linux distributions but you have to have ImageMagick installed. from imagemagick.org: ImageMagick is quite portable, and compiles under almost every general purpose operating system that runs on 32-bit or 64-bit CPUs. ImageMagick is available for virtually any Unix or Unix-like system, including Linux. It also runs under Windows '95 and later ('95, '98, ME, NT 4.0, 2000, and XP), Macintosh (MacOS 9 and 10), VMS, and OS/2. DaveA ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user