Hey all, problem solved! While skimming the Notation Reference manual I found the \remove "Forbid_line_break_engraver" command which fixes the problem and makes everything else look nicer.
On Fri, Aug 15, 2014 at 1:40 PM, David Bellows <davebell...@gmail.com> wrote: > Wow, that looks so much better. I've attached the pdf of what happens > when I compile the code (wasn't sure if that was allowed on the list). > And yeah, I don't get a warning when I compile it. I guess something > has changed from 2.18 to 2.19. > > And yes, I've got all sorts of cool things going on in this project. > > On Fri, Aug 15, 2014 at 1:33 PM, Abraham Lee <tisimst.lilyp...@gmail.com> > wrote: >> On Fri, Aug 15, 2014 at 2:24 PM, David Bellows <davebell...@gmail.com> >> wrote: >> >> Hello all, I'm developing a program that does various things to sounds >> including various ways of creating scores. One of the things intends to >> produce simple guitar chords with fret diagrams, chord names, and strumming >> patterns by generating a Lilypond file. I'm currently using the ragged-right >> = ##t option in the layout section and most of the time the results are >> fine. However, if you compile the following code it provides an exception as >> the last line runs way off into the margin and the last four notes are lost. >> From the documentation I'm guessing the reason this is happening is that the >> bar lines aren't being properly accounted for on my end as I am not breaking >> up durations across bar lines. While maybe, someday, I'll be able to figure >> out how to eliminate that problem on my end I was wondering if there was a >> way to get Lilypond to skip to the next line anyway without any kind of >> manual intervention. There are something like 2.5 quintillion scores that >> can be potentially produced by this software so there is no way to handle >> them manually. (Note, I've included the Lilypond file exactly as my program >> created it minus the spacing). Thanks, Dave \version "2.19.11" \header { >> dedication = "(For Some Dead Thing)" title = "Threnody" subtitle = "" >> subsubtitle = "" instrument = "Guitar" poet = "" composer = "David Bellows" >> arranger = "Kosmos Noetos" tagline = "" copyright = "© 15 August 2014" } >> \language "english" \include "predefined-guitar-fretboards.ly" \score { << >> \new ChordNames { \chordmode { c4 g4 g4 c4 c8 c8 g4 g8 c8 c4 c8 c4 g4 g8 g4 >> g4 c4 c8 c4 c4 g8 c4 c4 f4 c4 c4 g4 f8 g8 g8 c4 c4 a4:m f4 g4 f4 \bar "|." } >> } \new FretBoards { \chordmode { c4 g4 g4 c4 c8 c8 g4 g8 c8 c4 c8 c4 g4 g8 >> g4 g4 c4 c8 c4 c4 g8 c4 c4 f4 c4 c4 g4 f8 g8 g8 c4 c4 a4:m f4 g4 f4 \bar >> "|." } } \new Voice \with {\consists "Pitch_squash_engraver"} { \relative >> c'' { \improvisationOn c4 g4 g4 c4 c8 c8 g4 g8 c8 c4 c8 c4 g4 g8 g4 g4 c4 c8 >> c4 c4 g8 c4 c4 f4 c4 c4 g4 f8 g8 g8 c4 c4 a4 f4 g4 f4 } } >> >>>> >> >> >> \layout{ragged-right = ##t} \midi{} } >> _______________________________________________ lilypond-user mailing list >> lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user >> >> >> David, >> >> That sounds exciting! When I ran your code, just as you gave it above, I >> didn't have _any_ problems (I guess I'm using 2.18.2, but I'm not sure why >> that would make our outputs THAT much different), not even a warning. >> >> I've attached my output. It looks fine to me! Hope you can get it working. >> >> Regards, >> Abraham _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user