Re: .ly file partially compiles, then LP crashes
Hi Guy! Starting lilypond-windows.exe 2.19.56 [Leloupgarou_transformationscene-pianoReduction.ly]... Processing `[filename].ly' Parsing... Interpreting music...[8][16][24][32][40][48][56][64][72][80][88][96][104][112][120][128][136][144][152][160][168][176][184][192][200][208][216][224][232] Preprocessing graphical objects... Interpreting music... MIDI output to `[filename].mid'... Finding the ideal number of pages... Fitting music on 9 or 10 pages... Drawing systems... warning: compressing over-full page by 7.1 staff-spaces warning: page 3 has been compressed Exited with return code -1073741819. Try to play with set-global-staff-size. It's definitely possible to find combinations of global staff size, page-count, system-count, etc and music that are hard or impossible to solve. I remember more than one segfault caused by such an exercise. That problem is old, it is also reproducible on linux systems and current git master. Knut ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
Guy Stalnaker writes: > And it happened twice more, too. Any reason you are using an old development version? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
And it happened twice more, too. Last time I tried to add \clef "treble" and then \clef bass to the score and the same seg-fault/error recurred. A quick test showed that just adding \clef "treble" was enough to cause the seg-fault (if that's what is happening). Nothing I can do to make that not happen. I admit I am making liberal use of << { } \\ { } >>, and even, in some places, creating ossia and, in one of the ossia nesting even more of these contexts, so I may indeed be taxing the code in unusual ways. But, for now it's done and I'm getting ready to send it to the composer for her review. Thanks for all the comments, etc. Guy On 7/28/2017 1:23 AM, Thomas Morley wrote: 2017-07-28 1:16 GMT+02:00 Guy Stalnaker : Simon, That was my tack -- the dirty way was to slowly comment out sections and see what happened. It's the oddest thing. I'm writing a piano reduction mostly from string parts, so I'm doing this: pianoRH = { << { ViolinI } \\ { ViolinII } >> } pianoLH = { << { Violo } \\ { Cello } >> } As shown, did not compile. Comment out ViolinI, compiles. Add it back, compile fails. Comment out ViolinII, compiles, add ViolinII back, compile fails. WTH? So, I think you're right, it's some sort of memory/resource something. But ... I replaced the ViolinI code with the original code (from the composer) AND IT NOW COMPILES in its entirety. That is maddening. But, I've no time to waste on it now, and thankfully I've little hair to pull out over it. Thanks for your reply, MUCH appreciated. Guy On 7/27/2017 6:06 PM, Simon Albrecht wrote: On 28.07.2017 00:55, Guy Stalnaker wrote: I'm not trying to figure out how to do something here. This is a code file that compiled to midi/pdf output a few hours ago (last successful pdf output at 4:31p CDT). Can you restore the file version that compiled successfully? Or is there any other chance of narrowing down the part of the code that’s problematic? There have been problems with memory that are triggered by the size of the score, but IIRC those had three-digit page numbers. Best, Simon Occasionally I had smiliar problems, with files I was working on. Eventually I must have added some whitespace-characters at unfortunate place without noticing. Because it worked again after doing "Remove Trailing Whitespace" (provided by my editor). Cheers, Harm -- “Happiness is the meaning and the purpose of life, the whole aim and end of human existence.” ― Aristotle ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: trouble adding space between systems
2017-07-28 23:45 GMT+02:00 Reilly Farrell : > between-system-space = 1\cm > between-system-padding = #1 Which version do you use? between-system-space/between-system-padding are outdated for a looong time. Have a look at http://lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables http://lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-within-systems for recent lily-versions. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
trouble adding space between systems
Hi All, I've come to a point where I need manual control over the vertical spacing between musical systems. The most prominent solution I've found seems not to be behaving as expected: no matter how I change the values in the \paper block, each configuration returns the same pdf. Is there something I've missed in terms of properly integrating these lines? Or is there a preferable alternative that any of you would recommend? Example: \header{ title = "A scale in LilyPond" } \paper { between-system-space = 1\cm between-system-padding = #1 ragged-bottom=##f ragged-last-bottom=##f } \relative { c4 c4 c4 c4 | \break e4 e4 e4 e4 | \break g4 g4 g4 g4 | } Thank you. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Counter in a repeat
Hmmm. Maybe I looked right past the simple solution. Wouldn't be the first time. Thanks, I'll try this. John > -Original Message- > From: David Kastrup [mailto:d...@gnu.org] > Sent: Friday, July 28, 2017 4:26 PM > To: John Schlomann > Cc: lilypond-user@gnu.org > Subject: Re: Counter in a repeat > > "John Schlomann" writes: > > > David, > > Your response doesn't give me hope for a simple solution. > > Oh come on. > > stanza = \relative { ... } > > { > \keepWithTag first \stanzaI > \keepWithTag second \stanzaI > \keepWithTag third \stanzaI > } > > Just because \repeat unfold does not work in this case does not mean that > there are no simple ways for repeating stuff. > > -- > David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Counter in a repeat
"John Schlomann" writes: > David, > Your response doesn't give me hope for a simple solution. Oh come on. stanza = \relative { ... } { \keepWithTag first \stanzaI \keepWithTag second \stanzaI \keepWithTag third \stanzaI } Just because \repeat unfold does not work in this case does not mean that there are no simple ways for repeating stuff. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Counter in a repeat
David, Your response doesn't give me hope for a simple solution. But then I didn't start out with a lot of hope. I'm not sure I completely understand your last comment. I'm wondering if some sort of preprocessor would work for this. I keep the tunes in separate files, and \include them into the main .ly file containing the lyrics and some other stuff. Right now I manually make copies of the tune, one for each stanza. Because I do a lot of these, automating the process would be helpful. I'm sure I could make a preprocessor, perhaps with Perl or something, that could run before LilyPond runs, making multiple copies of the tune into a temporary file. Ideally, though I would prefer to run it at the point where I include the tune, because the main file computes the repeat count needed. And there would be some things to be careful of, such as partials that shouldn't be repeated, but these wouldn't be insurmountable. I'm not a Schemer, so my knowledge there is limited, but I see Scheme has a 'system' procedure. It seems to work in the scheme-sandbox. Would this work from within LilyPond I wonder? I may pursue that, or am I barking up the wrong tree entirely, and there is some other, better way to do this? I'm not ready to give up on this yet. The reason for this, BTW, is to project hymns on a screen, where every stanza is accompanied by its own melody line. When I have divisi lyrics (different syllable counts in different verses), I'd rather not use the dashed ties and slurs on the screen. That's more suited to the print version. John > -Original Message- > From: David Kastrup [mailto:d...@gnu.org] > Sent: Friday, July 28, 2017 12:04 PM > To: John Schlomann > Cc: lilypond-user@gnu.org > Subject: Re: Counter in a repeat > > "John Schlomann" writes: > > > Hello Everyone, > > I'd like to maintain a counter that can track the current number of > > passes through a repeat, something like this: > > > > \version "2.18.2" > > rpt-number = 0 % Initialize the counter > > { > > \repeat unfold 3 { > > #(set! rpt-number (1+ rpt-number)) % Increment the counter > > c'4 e'4 g'4 c''4 > > } > > } > > > > Is there any way to do such a thing? My purpose, which is not apparent > > here, is to use the counter to build symbols used with tags, so that I > > can select different tagged parts as the repeat unfolds. In my case, > > the content of the repeat would essentially be an entire hymn stanza. > > Tags are expanded at the level of music expressions but if you take a look at > the actual music code produced by \repeat unfold, you'll see that it only > contains the respective music expression once. That's what I suspected. > > I'm always amazed at the power and elegance of LilyPond, but this may > > be asking for something it wasn't designed for. > > You want to use frontend tools on backend results. That is not going to work > unless you try _simulating_ in the frontend what is supposed to be done in > the backend. However, that is likely to lead to subtly differing results. > -- > David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: drawing brackets spanning multiple staves - spacing issue
Hi Eby, > i want the Bracket at the first beat of the bar. That's wasn't clear to me from the code you provided (i.e., where the bracket was placed, the timing of the overrides, etc.) > Is the placement of brackets different on recent version of lilypond ? I don't think so… If you want the bracket first, why not try something like this? SNIPPET BEGINS rightOne = \relative c'' { d1 \once \override Score.BarLine #'extra-spacing-width = #'(0 . 4) | \once \override TextScript #'X-offset = #-1.5 <>^\markup { \openBracket #19.3 } <>_\markup { \small \rounded-box "II: Principal Chorus" } d4 a d e | } SNIPPET ENDS Hope that helps, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: drawing brackets spanning multiple staves - spacing issue
Hi Kieren, Thanks, your code draw the bracket on the second beat of the measure, but i want the Bracket at the first beat of the bar. Attached is the output of your code. Is the placement of brackets different on recent version of lilypond ?. On Thu, 27/7/17, Kieren MacMillan wrote: Subject: Re: drawing brackets spanning multiple staves - spacing issue To: "Eby Mani" Cc: "Lilypond-User Mailing List" Date: Thursday, 27 July, 2017, 5:27 PM Hi Eby, I hope the attached modified version of your snippet helps. Note that I also made some other changes, to make the code more efficient, readable, etc. (Oh, and you should probably upgrade to a more recent version of Lilypond!) Cheers, Kieren. rightOne = \relative c'' { d1 | \once \override TextScript #'extra-offset = #'(2.75 . 0) \once \override TextScript #'X-offset = #1.5 <>^\markup { \openBracket #19.3 } <>_\markup { \small \rounded-box "II: Principal Chorus" } d4\once \override Score.NoteColumn #'X-offset = #1 a d e | } Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
Am 28.07.2017 um 18:56 schrieb David Kastrup: > David Wright writes: > >> On Fri 28 Jul 2017 at 15:16:03 (+0200), David Kastrup wrote: >>> Bernhard Kleine writes: >>> Am 28.07.2017 um 00:55 schrieb Guy Stalnaker: > Exited with return code -1073741819 This has come up with the same number IIRC repeatedly. >>> It's Windows' helpful way to refer to a segfault. Storing something >>> more descriptive like "Segmentation violation" for several dozen >>> signal-based error messages would consume too much memory needed for >>> spyware. 16kB should be enough for anybody. >> I don't understand what the OS would do with these error messages. >> On error, the OS returns a code¹ which is handled by the caller. >> When I run a program under strace, I can see the OS generating >> hundreds of errors every second and they all go unreported except >> as a return code. It's up to the application to decide whether to >> finally report something, and what that is. > On Posix systems, applications are usually started by the shell and the > shell translates return codes corresponding to a process aborted by a > signal to a suitable message. > > Why is Windows incapable of doing the same? > It happens obviously not often enougp to cause the giant to react. -- spitzhalde9 D-79853 lenzkirch bernhard.kle...@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09 signature.asc Description: OpenPGP digital signature ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Counter in a repeat
"John Schlomann" writes: > Hello Everyone, > > I'd like to maintain a counter that can track the current number of passes > through a repeat, something like this: > > \version "2.18.2" > > > > rpt-number = 0 % Initialize the counter > > { > > \repeat unfold 3 { > > #(set! rpt-number (1+ rpt-number)) % Increment the counter > > c'4 e'4 g'4 c''4 > > } > > } > > > > Is there any way to do such a thing? My purpose, which is not apparent > here, is to use the counter to build symbols used with tags, so that I > can select different tagged parts as the repeat unfolds. In my case, > the content of the repeat would essentially be an entire hymn stanza. Tags are expanded at the level of music expressions but if you take a look at the actual music code produced by \repeat unfold, you'll see that it only contains the respective music expression once. > I'm always amazed at the power and elegance of LilyPond, but this may > be asking for something it wasn't designed for. You want to use frontend tools on backend results. That is not going to work unless you try _simulating_ in the frontend what is supposed to be done in the backend. However, that is likely to lead to subtly differing results. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
David Wright writes: > On Fri 28 Jul 2017 at 15:16:03 (+0200), David Kastrup wrote: >> Bernhard Kleine writes: >> >> > Am 28.07.2017 um 00:55 schrieb Guy Stalnaker: >> >> Exited with return code -1073741819 >> > This has come up with the same number IIRC repeatedly. >> >> It's Windows' helpful way to refer to a segfault. Storing something >> more descriptive like "Segmentation violation" for several dozen >> signal-based error messages would consume too much memory needed for >> spyware. 16kB should be enough for anybody. > > I don't understand what the OS would do with these error messages. > On error, the OS returns a code¹ which is handled by the caller. > When I run a program under strace, I can see the OS generating > hundreds of errors every second and they all go unreported except > as a return code. It's up to the application to decide whether to > finally report something, and what that is. On Posix systems, applications are usually started by the shell and the shell translates return codes corresponding to a process aborted by a signal to a suitable message. Why is Windows incapable of doing the same? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sort-of leave notice
Il giorno sab 22 lug 2017 alle 1:15, Thomas Morley ha scritto: 2017-07-21 13:02 GMT+02:00 Ralph Palmer : On Thu, Jul 20, 2017 at 3:49 PM, Urs Liska wrote: Hi all, I just wanted to let you know that I will substantially reduce my LilyPond-related activities for some time, You will be sorely missed, Urs. I hope the reason is one that is pleasing and rewarding to you. Looking forward to seeing your name around again, Ralph +1 I add my +1 I'm also going to be very busy starting from September. Going in holiday in a week. I'll contribute one more article for the LilyPond blog in September. Best Federico ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Counter in a repeat
Hello Everyone, I'd like to maintain a counter that can track the current number of passes through a repeat, something like this: \version "2.18.2" rpt-number = 0 % Initialize the counter { \repeat unfold 3 { #(set! rpt-number (1+ rpt-number)) % Increment the counter c'4 e'4 g'4 c''4 } } Is there any way to do such a thing? My purpose, which is not apparent here, is to use the counter to build symbols used with tags, so that I can select different tagged parts as the repeat unfolds. In my case, the content of the repeat would essentially be an entire hymn stanza. As this code stands, the counter is incremented once, and that value (1), will be used throughout all repeats. I'm always amazed at the power and elegance of LilyPond, but this may be asking for something it wasn't designed for. Thank you for any help. John ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
On Fri 28 Jul 2017 at 15:16:03 (+0200), David Kastrup wrote: > Bernhard Kleine writes: > > > Am 28.07.2017 um 00:55 schrieb Guy Stalnaker: > >> Exited with return code -1073741819 > > This has come up with the same number IIRC repeatedly. > > It's Windows' helpful way to refer to a segfault. Storing something > more descriptive like "Segmentation violation" for several dozen > signal-based error messages would consume too much memory needed for > spyware. 16kB should be enough for anybody. I don't understand what the OS would do with these error messages. On error, the OS returns a code¹ which is handled by the caller. When I run a program under strace, I can see the OS generating hundreds of errors every second and they all go unreported except as a return code. It's up to the application to decide whether to finally report something, and what that is. That said, having spent years tracking down 0Cn errors in IBM Fortran, errors like Access Violation mean next to nothing on their own because the cause could be many levels of calls and MB of code away from the point where the faulty address value actually triggers the error. > It's the same reason that all of ed's (the inspiration for Edlin) error > messages are a single question mark. I like the 16kB. Could I just point out that the code for the very functional EDIT program (I believe Phil Hazel wrote it—he wrote its successor Zed) occupied 32kB of memory. This single chunk of 32kB (reentrant) was used by 70-100 people simultaneously logged on to Phoenix/MVS running on an IBM 370/165 containing 1MB of ferrite core memory (later increased to 4MB). Meanwhile the system was running a heavily used batch job service. ¹ Linux has them in include/uapi/asm-generic/errno{-base,}.h if I'm up to date; Windows will have some equivalent header file that google will know about. Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
Bernhard Kleine writes: > Am 28.07.2017 um 00:55 schrieb Guy Stalnaker: >> Exited with return code -1073741819 > This has come up with the same number IIRC repeatedly. It's Windows' helpful way to refer to a segfault. Storing something more descriptive like "Segmentation violation" for several dozen signal-based error messages would consume too much memory needed for spyware. 16kB should be enough for anybody. It's the same reason that all of ed's (the inspiration for Edlin) error messages are a single question mark. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
It's Hex C005. Probably an access violation. -- Phil Holmes - Original Message - From: Bernhard Kleine To: lilypond-user@gnu.org Sent: Friday, July 28, 2017 1:36 PM Subject: Re: .ly file partially compiles, then LP crashes Am 28.07.2017 um 00:55 schrieb Guy Stalnaker: Exited with return code -1073741819 This has come up with the same number IIRC repeatedly. I wonder where the return code comes from. If there is such a message there is a reason for it that someone programmed. (given that such a message is totally frustrating for the enduser since it does not give the reason for the cause. Bad programming style. I know it is not lilypond.) Bernhard who experienced the same error some time ago, -- spitzhalde9 D-79853 lenzkirch bernhard.kle...@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09 -- ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
Am 28.07.2017 um 00:55 schrieb Guy Stalnaker: > Exited with return code -1073741819 This has come up with the same number IIRC repeatedly. I wonder where the return code comes from. If there is such a message there is a reason for it that someone programmed. (given that such a message is totally frustrating for the enduser since it does not give the reason for the cause. Bad programming style. I know it is not lilypond.) Bernhard who experienced the same error some time ago, -- spitzhalde9 D-79853 lenzkirch bernhard.kle...@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09 signature.asc Description: OpenPGP digital signature ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: .ly file partially compiles, then LP crashes
Thomas Morley writes: > Occasionally I had smiliar problems, with files I was working on. > Eventually I must have added some whitespace-characters at unfortunate > place without noticing. > Because it worked again after doing "Remove Trailing Whitespace" > (provided by my editor). That would seem to point to problems when some stuff is parsed at a buffer boundary. It would be good to track this down but obviously a "mininmal (non-)working example" is hard to produce when any attempt at minimalization changes the symptoms. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user