Re: tspan in SVG export
Hi Klaus thank you! I tried this, but got "fatal error: compiled without CAIRO_BACKEND". Does this mean that I need to compile Lilypond myself, or is there an easier way? I work on Arch Linux, using the official "lilypond" package (which ships Lilypond 2.24.2 at the moment). Best, Johannes "K. Blum" writes: > Hi Johannes, > > Am 22.11.2023 um 18:01 schrieb lilypond-user-requ...@gnu.org: >> On most browsers there is a large gap between 'of' and 'terza'. I noticed >> that lilypond exports such a situation as individual elements >> with absolute coordinates (as in ). >> >> Is there a way to let lilypond combine these words into a single >> element, using elements to define the formatting? > > I don't know how to achieve this, but you could have your output > produced by the Cairo backend. > (Add '--svg' and '-dbackend=cairo' as command line options, see > https://www.mail-archive.com/lilypond-devel@gnu.org/msg77712.html ) > > This should look the same with any browser. > Drawback: It is graphical output and doesn't contain searchable text. > > Cheers, > Klaus
Re: tspan in SVG export
Hi Johannes, Am 23.11.2023 um 15:26 schrieb Johannes Keller: I tried this, but got "fatal error: compiled without CAIRO_BACKEND". Does this mean that I need to compile Lilypond myself, or is there an easier way? I work on Arch Linux, using the official "lilypond" package (which ships Lilypond 2.24.2 at the moment). being a Windows user, I cannot be much of help. In another thread I heard that it should be sufficent to get the official binaries: https://www.mail-archive.com/lilypond-user@gnu.org/msg151471.html As an alternative, you can get the same results by converting your PDF file to SVG with the pdf2svg command. Install the "pdf2svg" package via your package manager or in the terminal with: sudo apt-get install pdf2svg Does that help? Cheers, Klaus
Cue notes above rests
Greetings, All - As ever, I'm grateful (Thankful, given it's Thanksgiving Day where I live) for LilyPond and for the help the other users give to each other. I used to give more help myself than I do now, mostly because others are so much more knowledgeable and quick to respond. I'm having a problem with cue notes and the rests in the primary instrument. I don't know how to get the primary instrument's rests above the cue notes. Here's an MWE : \version "2.24.0" \relative c' { a''2 << { r2 | r1 | r1 | r1 | r2 } \new CueVoice { a,2~ | a4 d, g2~ | g4 e a g | f4 g } >> d'2\f | } Any help will be much appreciated. All the best, Ralph __ Ralph Palmer Seattle USA (he, him, his) palmer.r.vio...@gmail.com test.pdf Description: Adobe PDF document
Re: tspan in SVG export
Hi Johannes, On Thu, Nov 23, 2023 at 10:37 AM Johannes Keller wrote: > thank you! I tried this, but got "fatal error: compiled without > CAIRO_BACKEND". Does this mean that I need to compile Lilypond myself, > or is there an easier way? I work on Arch Linux, using the official > "lilypond" package (which ships Lilypond 2.24.2 at the moment). > I'm on KUbuntu myself. There are pre-made binary tarballs on the Lilypond site you can use. Go to http://lilypond.org/index.html and on the right side of the page are two download links - one for the current stable release (currently 2.24.3) and one for the current development version (currently 2.25.10). Follow whichever one you want, download the tar.gz and unpack it into the directory of your choice. It'll then be pretty much ready to use. I've got a lilypond directory in my home directory I unpack them into, but really you can put them pretty much wherever you want. -- Michael
Re: Cue notes above rests
Hi Ralph, On Thu, Nov 23, 2023 at 11:26 AM Ralph Palmer wrote: > Greetings, All - > > As ever, I'm grateful (Thankful, given it's Thanksgiving Day where I live) > for LilyPond and for the help the other users give to each other. I used to > give more help myself than I do now, mostly because others are so much more > knowledgeable and quick to respond. > > I'm having a problem with cue notes and the rests in the primary > instrument. I don't know how to get the primary instrument's rests above > the cue notes. > You almost had it. One small change: \version "2.24.0" \relative c' { a''2 << { r2 | r1 | r1 | r1 | r2 } \\ { \new CueVoice { a,2~ | a4 d, g2~ | g4 e a g | f4 g } } >> d'2\f | } Adding the \\ between the two sections puts both sections into their own context. And that produces: [image: image.png] Another option would be to explicitly assign voiceOne and voiceTwo, like: \version "2.24.0" \relative c' { a''2 << { \voiceTwo r2 | r1 | r1 | r1 | r2 } { \voiceOne \new CueVoice { a,2~ | a4 d, g2~ | g4 e a g | f4 g } } >> \oneVoice d'2\f | } That gives the same result. Just make sure to add the \oneVoice afterward, to put everything back to the defaults. -- Michael
Re: Cue notes above rests
On Thu, Nov 23, 2023 at 8:56 AM Michael Werner wrote: > Hi Ralph, > > On Thu, Nov 23, 2023 at 11:26 AM Ralph Palmer > wrote: > >> Greetings, All - >> >> As ever, I'm grateful (Thankful, given it's Thanksgiving Day where I >> live) for LilyPond and for the help the other users give to each other. I >> used to give more help myself than I do now, mostly because others are so >> much more knowledgeable and quick to respond. >> >> I'm having a problem with cue notes and the rests in the primary >> instrument. I don't know how to get the primary instrument's rests above >> the cue notes. >> > > You almost had it. One small change: > > \version "2.24.0" > > \relative c' { > a''2 > << > { > r2 | > r1 | > r1 | > r1 | > r2 > } > \\ > { > \new CueVoice { > a,2~ | > a4 d, g2~ | > g4 e a g | > f4 g > } > } > >> > d'2\f | > } > > Adding the \\ between the two sections puts both sections into their own > context. And that produces: > > [image: image.png] > > Another option would be to explicitly assign voiceOne and voiceTwo, like: > > \version "2.24.0" > > \relative c' { > a''2 > << > { > \voiceTwo > r2 | > r1 | > r1 | > r1 | > r2 > } > { > \voiceOne > \new CueVoice { > a,2~ | > a4 d, g2~ | > g4 e a g | > f4 g > } > } > >> > \oneVoice > d'2\f | > } > > That gives the same result. Just make sure to add the \oneVoice afterward, > to put everything back to the defaults. > -- > Michael > > Wonderful! Thanks for your quick and clear response, Michael. All the best, Ralph __ Ralph Palmer Seattle USA (he, him, his) palmer.r.vio...@gmail.com
start/stop staff
I have a quartet piece with a recitative type section in one part. The other parts play, essentially, punctuation. The "solo" part is rhythmically complex enough that having it on the accompanying parts would make it far easier to play. I could easily put the entire movement in each part as a StaffGroup but I would prefer a two-line staffGroup only for the sections where the solo part is not homophonic with the rest. How would I go about starting/stopping such a thing? Put simply, I want to start the parts with a staffGroup which contains the individual part with the solo part above at a reduced size. Then, when that section is done, reduce to the individual part. Then reintroduce the solo part at a later section for the same reason. TIA, David
2.25.10 *-1.pdf
What kind of errors generate a PDF with -1 added? i.e. file.ly generates file-1.pdf . No errors appear when Lily generates the PDF. Usually when I get file-1.pdf there are error message(s) and I fix the problem and don't get another file-1.pdf . Now I have a case where I continually get them for a certain project. Thank you, Paul