Removing bar numbers with lilypond-book
I have a section of a tex file, used with lilypond book, that looks something like this: \begin[staffsize=20]{lilypond} \score { \version "2.10.0" { \time 4/4 \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7) \override Staff.TimeSignature #'style = #'() \clef bass \stemUp e4 e4 e4 e4 e8 e e8 e e8 e e8 e e16 e e e e16 e e e e16 e e e e16 e e e e1 } } \end{lilypond} I can't work out where to put \remove "Bar_number_engraver" to get bar numbers turned off. Everywhere I put it seems to create an error when running lilypond-book. Can someone point me in the right direction please? ta, Tim. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing bar numbers with lilypond-book
You should be able to insert the following lines of code (copied verbatim from the manual) either at the very top or end of the \begin{lilypond}...\end{lilypond} block \layout { \context { \Score \remove "Bar_number_engraver" } } An alternative is to put it within the \score{...} block: \score{ % Here comes the music \layout{...} } /Mats Quoting Tim Sawyer <[EMAIL PROTECTED]>: I have a section of a tex file, used with lilypond book, that looks something like this: \begin[staffsize=20]{lilypond} \score { \version "2.10.0" { \time 4/4 \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7) \override Staff.TimeSignature #'style = #'() \clef bass \stemUp e4 e4 e4 e4 e8 e e8 e e8 e e8 e e16 e e e e16 e e e e16 e e e e16 e e e e1 } } \end{lilypond} I can't work out where to put \remove "Bar_number_engraver" to get bar numbers turned off. Everywhere I put it seems to create an error when running lilypond-book. Can someone point me in the right direction please? ta, Tim. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing bar numbers with lilypond-book
Thanks for that, but I'm still having trouble. Putting that \layout block in either place results in this error: volume1.lytex:2145:2: error: syntax error, unexpected STRING, expecting '=' \context { volume1.lytex:2146:2: error: syntax error, unexpected STRING, expecting '=' \Score My code is now like this: \begin[staffsize=20]{lilypond} \score { \version "2.10.0" { \time 4/4 \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7) \override Staff.TimeSignature #'style = #'() \clef bass << { \stemUp e4 e4 e4 e4 e8 e8 e8 e8 e8 e8 e8 e8 e16 e e e e16 e e e e16 e e e e16 e e e e1 \bar "|." } \addlyrics { blah } >> } \layout { \context { \score \remove "Bar_number_engraver" } } } \end{lilypond} ta, Tim. > Quoting Tim Sawyer <[EMAIL PROTECTED]>: > > I have a section of a tex file, used with lilypond book, that looks > > something like this: > > > > \begin[staffsize=20]{lilypond} > > \score > > { > > \version "2.10.0" > > { > >\time 4/4 > >\override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7) > >\override Staff.TimeSignature #'style = #'() > >\clef bass > >\stemUp > >e4 e4 e4 e4 e8 e e8 e e8 e e8 e e16 e e e e16 e e e e16 e e e e16 e e > > e e1 } > > } > > \end{lilypond} > > > > I can't work out where to put \remove "Bar_number_engraver" to get > > bar numbers > > turned off. Everywhere I put it seems to create an error when running > > lilypond-book. > > > > Can someone point me in the right direction please? > > > > ta, > > > > Tim. > > > > > > ___ > > lilypond-user mailing list > > lilypond-user@gnu.org > > http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing bar numbers with lilypond-book
Hi Tim, \context { \score \remove "Bar_number_engraver" } Shouldn't that be a capital S (i.e., \Score)? Regardless, you can also use \override Score.BarNumber #'transparent = ##t and avoid all the engraver trouble. Hope this helps, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing bar numbers with lilypond-book
2007/8/12, Tim Sawyer <[EMAIL PROTECTED]>: > Thanks for that, but I'm still having trouble. You may have forgotten a capital S in \context { \Score etc... } Hope this helps! Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
SVG output sponsorship
It seems to me that having reliable (bug-free) SVG output would be a big plus for Lilypond. At the present time, I have been unable to fix all the font problems (not sure whether this is Lilypond or Inkscape which is giving me trouble.) To get to where I am at I had to make a lot of changes by hand to the SVG file which is tedious. (Specifically, the italic sans-serif fonts still don't work.) The main advantage of the SVG output (I would suggest) is that small changes to positions of objects can be done in a WYSIWYG environment, instead of the current estimate-how-much-I-have-to-move-that-object/ add line of code/ re-process score/ find out I haven't moved it enough/ moved it too much/ change values of #'padding or #'extra-offset etc. etc. all of which is time consuming especially with big projects. While I'm a committed Lilyponder, and much prefer the output to other programs, this would seem to be a valuable investment in terms of user-friendliness. Could you give me an estimate of what this would cost, Han-Wen? Are there others who would be willing to co-sponsor this? Cheers, Vivian. On Aug 11, 2007, at 7:53 PM, Erik Sandberg wrote: On Sunday 08 July 2007, Benjamin Esham wrote: Benjamin Esham wrote: I'm having some issues with Lilypond 2.10.x's SVG export. I seem to have fixed most (all?) of my font problems. I now have another problem, however. In order to submit one of LilyPond's SVGs to e.g. the Wikimedia Commons, it is necessary to convert all of its text into paths; that way, users need not have LilyPond's fonts in order to view the image correctly. Before converting text into paths in Inkscape, you must make sure that none of the text is contained within a group. Therefore, I started to process my file by selecting everything and issuing an Ungroup command. When I did so, the staff lines disappeared! Apparently every object in the file is in a one-element group. For some reason, ungrouping the staff lines made them disappear—they were still present, just not visible. I think there may be an Inkscape bug at play here too, since "Select All" couldn't find the lines, but on the LilyPond end... how can I get Lily to create a sane, usable SVG file? Any help is greatly appreciated here. There's another approach to the SVG output problem: You can take PDF or EPS output from lilypond, and try to turn it into SVG files. The postscript backend of lilypond is obviously more mature, and there exist converters from pdf/ps to svg. Free converters are a bit shaky, but for some lily versions I managed to convert .ly files into valid SVG via a chain of converters. Usually, you need to first expand fonts to curves using some ps2ps-like script, and then use pstoedit to convert to something that can be converted to svg. Unfortunately, most conversion tools are rather immature, so you will need some experimenting to make it work. IIRC, I managed to generate valid svg with this method for my master's thesis, using a lilypond version around 2.6. I don't remember the exact combination of commands that worked though. (I have vague memories that it may be good to start with pdf output and convert it back to eps) Here's a script that works for some subsets of ps (not lily's though), you can look at it for ideas: http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Electronics/ Ps2svg.sh If you manage to find a fairly reliable path to convert the output of a recent lily version into wikipedia-usable SVGs, I'd be happy to know. Erik ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing bar numbers with lilypond-book
Thanks folks. I tried it with a Capital S first - that's when the error message is from, hence that has \Score in, must have copied a later trial in the source, sorry! volume1.lytex:2158:2: error: syntax error, unexpected STRING, expecting '=' \context { volume1.lytex:2159:2: error: syntax error, unexpected STRING, expecting '=' \Score error: failed files: "lily-2637de181e" > \override Score.BarNumber #'transparent = ##t That's a LOT simpler, and works a treat! Thanks :-) Tim. On Sunday 12 Aug 2007, Kieren MacMillan wrote: > Hi Tim, > > >\context { > > \score > > \remove "Bar_number_engraver" > >} > > Shouldn't that be a capital S (i.e., \Score)? > > Regardless, you can also use > > \override Score.BarNumber #'transparent = ##t > > and avoid all the engraver trouble. > > Hope this helps, > Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
support for "wide" unicode code points
> I'm not top posting. Thanks to the Lilypond team for creating such a fine piece of software. I am trying to use the Unicode code points for Byzantine chant notation in my score, which begin at x1D000. When I try to use ly:wide-char to enter one of these characters, I get Freetype errors; specifically "SFNT font table missing". I know that the font works, as I can both view the characters, as well as typeset characters from the font that fall in the more usual 2 byte character ranges. I also see from the source code that the ly:wide-char function should be able to handle input in the range that I am referring to. Here is a brief example - uncomment the line to break the score: thisworks = #(ly:wide-char->utf-8 #x03E2) thisdont = #(ly:wide-char->utf-8 #x1D046) \relative c'' { c1_\markup{ \override #'(font-name . "Musical.otf") { \thisworks %\thisdont }} } Does anyone know whether these "wider" code points are supported by Lilypond, and if they are, how the characters can be entered? The font that I am playing with is called Musical.otf and one can download it from this URL: http://users.teilar.gr/~g1951d/download.html Thanks for any info! -- View this message in context: http://www.nabble.com/support-for-%22wide%22-unicode-code-points-tf4257922.html#a12117362 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing bar numbers with lilypond-book
Your example below works like a charm, if you just fix the capital "S" that others already have pointed out. I always write the \version statement outside the \score{...} block, but it seems that it works to place it where you have it as well. The alternative solution \override Score.BarNumber #'transparent = ##t has a disadvantage, namely that LilyPond still will allocate space for the bar number, even though it's not printed, so the spacing between the score lines may get unnecessarily wide (though the inter-score line spacing isn't handled the same way when you use lilypond-book as when you use pure lilypond). /Mats Tim Sawyer wrote: Thanks for that, but I'm still having trouble. Putting that \layout block in either place results in this error: volume1.lytex:2145:2: error: syntax error, unexpected STRING, expecting '=' \context { volume1.lytex:2146:2: error: syntax error, unexpected STRING, expecting '=' \Score My code is now like this: \begin[staffsize=20]{lilypond} \score { \version "2.10.0" { \time 4/4 \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7) \override Staff.TimeSignature #'style = #'() \clef bass << { \stemUp e4 e4 e4 e4 e8 e8 e8 e8 e8 e8 e8 e8 e16 e e e e16 e e e e16 e e e e16 e e e e1 \bar "|." } \addlyrics { blah } >> } \layout { \context { \score \remove "Bar_number_engraver" } } } \end{lilypond} ta, Tim. Quoting Tim Sawyer <[EMAIL PROTECTED]>: I have a section of a tex file, used with lilypond book, that looks something like this: \begin[staffsize=20]{lilypond} \score { \version "2.10.0" { \time 4/4 \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 7) \override Staff.TimeSignature #'style = #'() \clef bass \stemUp e4 e4 e4 e4 e8 e e8 e e8 e e8 e e16 e e e e16 e e e e16 e e e e16 e e e e1 } } \end{lilypond} I can't work out where to put \remove "Bar_number_engraver" to get bar numbers turned off. Everywhere I put it seems to create an error when running lilypond-book. Can someone point me in the right direction please? ta, Tim. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user