Part combine problems
I'm getting an error message when compiling my music: (UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1022-1023: unexpected end of data) What does that mean? It is also saying that it can't end slurs or that notes already have slurs. The partcombiner won't combine them. But it works with small examples. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to put user ly files on OSX?
On 07/12/11 12:58, huzzam wrote: Hi-- I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just "\include asdf.ly" (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? I have all my lilypond source files in one directory structure, with the include ly files at the top level, and for projects with source in lower level dirs, I create symbolic links pointing to the include files at the top level. There may be a neater way of doing it... Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Where to put user ly files on OSX?
Hi-- I'm fairly new to lilypond, and am starting to write my own ly files to include. I want to put them somewhere that will be accessible easily from any score (user defaults). The only place I've so far been able to find to put them is inside the lilypond application package itself (/Applications/Lilypond.app/Contents/Resources/share/lilypond/current/ly). This obviously is annoying when I upgrade lilypond, as I have to dig in there and copy my files to the new one. Is there some place I can put them so that I can still just "\include asdf.ly" (without a path), but which is not inside the package itself? Something along the lines of ~/Library/lilypond or /usr/share/lilypond? Thanks! ~peter in oakland -- View this message in context: http://old.nabble.com/Where-to-put-user-ly-files-on-OSX--tp32925697p32925697.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: LilyPond and Python
>BTW when LilyPond uninstalled, it left behind a lot of redundant entries >in the Windoze registry. Not being a registry guru I have nothing >constructive to add beyond commenting on this. :-( > >-- >Hilary Also not a registry guru, but I use CCleaner ( http://www.piriform.com/ccleaner) to clean up my Win XP registry from time to time, particularly after uninstalling or upgrading a bunch of software. You might give it a try. Tim Reeves ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: center NoteColumn
Hi Harm, On Fri, Dec 2, 2011 at 7:06 PM, Thomas Morley wrote: > > But now there's a new problem. Sometimes I've to notice a very small, but > visible displacement of the NoteColumn, if KeyCancellation is left bound > and a new Clef is right bound (mes. 5 of the full test). And I can't figure > out what's the difference between this measure and measure 7 of the full > test or measure 2 of the tiny example. > > Any hint? > For testing, I added a little function which moves a vertical line to the horizontal position you want it. Placing the red line at the coordinates you use to center the note column, and at the average of these coordinates--I altered your log display--it looks to me like you are truly using the point dead center between the right of the left bound (KeyCancellation) and the left of the right bound (Clef). It looks as though it is the multi-measure rest which is a little bit left-of-center here, but I don't know how the position of the multi-measure rest is reckoned. (It would be nice to "tap into" the mechanism for centering full-measure rests to use in your function, but I don't have any idea how this could be done.) > BTW, is there any possibility to address a cross-staff-arpeggio with this > function to get rid of the additional arpeggio-override? > I don't have an answer for this, but I do notice that there are some problems here with the relative positioning of accidentals, noteheads, and dots. Sorry I can't be more helpful... -David center-note-column-10rev.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: oddHeaderMarkup not on first page
On 7 December 2011 00:03, Xavier Scheuer wrote: > > Sorry I hit the wrong button. When I saw Nick's reply (and because it was the same as mine) I wanted to discard the message I was currently writing. Instead I sent an empty message! So \on-the-fly #not-first-page it is. Cheers, Xavier -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: oddHeaderMarkup not on first page
On 6 December 2011 23:14, James wrote: > Hello, > > I have a \paper block that has > > oddHeaderMarkup = \markup { > \fill-line { > \override #'(font-name . "Palatino italic") > \abs-fontsize #8 > "The Unwilling Waltz" > } > } > > How do I avoid printing this string on the top of the first page (i.e page > 1) of my score? > > regards > > -- > -- > > James > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: oddHeaderMarkup not on first page
On 07/12/11 09:14, James wrote: oddHeaderMarkup = \markup { \fill-line { \override #'(font-name . "Palatino italic") \abs-fontsize #8 "The Unwilling Waltz" } } oddHeaderMarkup = \markup { \fill-line { \on-the-fly #not-first-page \override #'(font-name . "Palatino italic") \abs-fontsize #8 "The Unwilling Waltz" } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
LilyPond and Python
After severe problems (which seemed to include a version conflict) with a Python hack, I uninstalled Python and LilyPond, then reinstalled first Python and then LilyPond without its bundled Python (largely to see if it still worked). So far it /has/ still worked, with my Python script calling what's now the only Python version on the machine, and LilyPond apparently working as usual. (I also had to hack around a Python package to make it work with 3.2.2, but that's another story.) The question is, how dependent on Python is LilyPond? Am I likely to find problems in the future? (Python 3 syntax is very different from the version 2 which LilyPond wants to install.) BTW when LilyPond uninstalled, it left behind a lot of redundant entries in the Windoze registry. Not being a registry guru I have nothing constructive to add beyond commenting on this. :-( -- Hilary ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
oddHeaderMarkup not on first page
Hello, I have a \paper block that has oddHeaderMarkup = \markup { \fill-line { \override #'(font-name . "Palatino italic") \abs-fontsize #8 "The Unwilling Waltz" } } How do I avoid printing this string on the top of the first page (i.e page 1) of my score? regards -- -- James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: restNumberThreshold
On 6 December 2011 22:33, David Bobroff wrote: > I want to adjust the restNumberThreshold value so that single full measure > rests get a "1" above them. Obviously, I found a reference to the thing > that needs an \override, but I haven't figured out the complete syntax. > > \override MultiMeasureRest #'restNumberThreshold = #0 > > ...doesn't work. Help? \set restNumberThreshold = #0 If you plan to use it as a setting for your whole score, you might consider putting it into the \layout block. \layout { \context { \Voice restNumberThreshold = #0 } } Cheers, Xavier -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
restNumberThreshold
I want to adjust the restNumberThreshold value so that single full measure rests get a "1" above them. Obviously, I found a reference to the thing that needs an \override, but I haven't figured out the complete syntax. \override MultiMeasureRest #'restNumberThreshold = #0 ...doesn't work. Help? -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Would you donate for structured Lilypond variables?
Marc Hohl writes: > Am 06.12.2011 12:33, schrieb David Kastrup: >> >> $(module-ref (current-module) (string->symbol (format #f "text~a" letter))) >> >> to call a symbol by name (ugh, by the way). >> >> Going through the symbol name is what TeX freaks will do at the drop of >> a head ("Off with his \csname!"). I'd prefer a somewhat more structured >> approach. But it would be work. > Hey, \csname within lilypond - *that* would be great! ;-) >> Check outhttp://code.google.com/p/lilypond/issues/detail?id=2072>. >> If enough people consider this worthwhile to contribute an appropriate >> donation towards its implementation, I'll be doing the infrastructure >> and docs for vectors in a manner that makes this extensible to other >> tasks. > Hmmm - the vector approach looks promising, but the syntax is > not very convincing for me - but I understand that > \violin[1] or \violin(1) won't work out of the box either. Well, since assignments can be used in places only where strings are not otherwise allowed IIRC, something like violin1 = " " could likely be made to work. It does not make sense to implement a syntax not parsable by music functions. That would be as useless as having a vector-ref in Scheme that has no list syntax. You really need to make use of the available power instead of sidestepping it. There is enough syntax around without inventing more distractions. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Would you donate for structured Lilypond variables?
Am 06.12.2011 12:33, schrieb David Kastrup: Marc Hohl writes: Am 02.12.2011 17:44, schrieb David Kastrup: Marc Hohl writes: Am 02.12.2011 12:02, schrieb David Kastrup: Marc Hohlwrites: Hello list, I have a lot of small music pieces with several stanzas which I store like this textA = \lyricmode { \set stanza = "1. " this is the first stan -- za. } textB = \lyricmode { \set stanza = "2. " and this one is the se -- cond. } textC = ... Why? If you want them processed automatically, why do you put them into dissociated macros and expect Lilypond to go hunting for them? How would you store several stanzas? It seemed very straightforward to use one variable (or macro) for one stanza. It is reasonably easy to generate symbol names, check whether there is anything bound to them, and collect them into some music, but it is also arbitrary and error-prone. Is there a particular reason you want your stanzas to be stored in a manner not useful for the processing you plan to do with them? Well, this was the easiest way that came into my mind, but it may be complete nonsens to do so - any more powerful ideas are highly appreciated. Why not just one \addlyrics { ... } after the other? That's how you would put them into your document, wouldn't it? Well, yes and no. I want to have the ability to a) use every stanza with \addlyrics b) use only the first stanza with \addlyrics and print additional stanzas as a text markup below the score. So ideally, I have one template for each output format, and squeeze my pile of songs through the appropriate template. You can already do something like $(module-ref (current-module) (string->symbol (format #f "text~a" letter))) to call a symbol by name (ugh, by the way). Going through the symbol name is what TeX freaks will do at the drop of a head ("Off with his \csname!"). I'd prefer a somewhat more structured approach. But it would be work. Hey, \csname within lilypond - *that* would be great! ;-) Check outhttp://code.google.com/p/lilypond/issues/detail?id=2072>. If enough people consider this worthwhile to contribute an appropriate donation towards its implementation, I'll be doing the infrastructure and docs for vectors in a manner that makes this extensible to other tasks. Hmmm - the vector approach looks promising, but the syntax is not very convincing for me - but I understand that \violin[1] or \violin(1) won't work out of the box either. Regards, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Conditionally including lyrics
Am 03.12.2011 20:25, schrieb Jay Anderson: On Fri, Dec 2, 2011 at 3:26 AM, Marc Hohl wrote: Now the data files contain different numbers of stanzas, and ideally, the generator file should be intelligent enough to include all stanzas which are present. Has someone an idea how to create a loop which scans for textA, textB, textC etc. and puts a command that acts like \addlyrics for each hit? I'll add my solution to this problem. I keep each verse in a separate file with just "\lyricmode {...}". These are named verse_1.ily, verse_2.ily, etc. Then where I want the lyrics I add '\createLyrics "001" "soprano"' (see below for the definition). It isn't doing \addLyrics, but \new Lyrics ... \lyricsto ... so it isn't exactly the same. It isn't perfect but it works for what I need. Hello Jay, I think this would clutter up my file structure, but I think I'll find a use of your solution for another project - thanks for sharing! Marc -Jay == #(use-modules (ice-9 regex)) #(define (verse-files dir) (define (is-verse-file? file) (string-match "^verse_[0-9]+\\.ily$" file)) (let ((dir-stream (opendir dir)) (count 0)) (do ((entry (readdir dir-stream) (readdir dir-stream))) ((eof-object? entry)) (if (is-verse-file? entry) (set! count (+ 1 count (closedir dir-stream) count)) #(define (range a b) (define (range-inner a b out) (if (> a b) out (range-inner a (- b 1) (cons b out (range-inner a b '())) createLyrics = #(define-music-function (parser location dir voice) (string? string?) (make-simultaneous-music (map (lambda (num) (let* ((num-str (number->string num)) (file (string-append dir "/verse_" num-str ".ily")) (verse (string-append num-str "."))) #{ \new Lyrics \with {alignAboveContext = "bot"} \lyricsto $voice { \set stanza = $verse { \include $file }} #})) (range 1 (verse-files dir) === ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unable to view attachment
The correct url is here: http://lists.gnu.org/archive/html/lilypond-user/2011-12/msg00090.html Replace the .bin extension with .rar 2011/12/6 MING TSANG : > I click on the following URL and I got the following error message: > > Not Found > > The requested URL > /archive/html/lilypond-user/attachments/20111206/bc2adba5/attachment.html > was not found on this server. > > Apache/2.2.14 Server at lists.gnu.org Port 80 > > > > Blessing in+, > > > > > -- next part -- > An HTML attachment was scrubbed... > URL: > <http://lists.gnu.org/archive/html/lilypond-user/attachments/20111206/bc2adba5/attachment.html> > -- next part -- > A non-text attachment was scrubbed... > Name: celebration overture.rar > Type: application/octet-stream > Size: 43789 bytes > Desc: not available > URL: > <http://lists.gnu.org/archive/html/lilypond-user/attachments/20111206/bc2adba5/attachment.obj> > > -- > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > End of lilypond-user Digest, Vol 109, Issue 16 > ** > > > > ___ > 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: Clashing note columns
Kris Van Bruwaene writes: > I am typesetting a choral piece wich has two voices coming in unisono on a > single staff, one with a whole note (g1), the other with two half notes (g2 > g2). The whole note and the first half note clash at the start of the > measure. I tried to avoid the clash with the remedies given in the Lilypond > manual: > 1) \once \override NoteColumn #'force-hshift = #2.7 g1 > to shift the whole note to the right in the measure; no effect. And > 2) in the lyrics: > { al -- le -- lu -- \once \override LyricText #'self-alignment-X = #CENTER > ia } (from Lilypond Snippets Lyrics alignment) > No effect either, probably because the syllable "ia" is too short. How can > I solve this? I can't quite see your example code. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Clashing note columns
I am typesetting a choral piece wich has two voices coming in unisono on a single staff, one with a whole note (g1), the other with two half notes (g2 g2). The whole note and the first half note clash at the start of the measure. I tried to avoid the clash with the remedies given in the Lilypond manual: 1) \once \override NoteColumn #'force-hshift = #2.7 g1 to shift the whole note to the right in the measure; no effect. And 2) in the lyrics: { al -- le -- lu -- \once \override LyricText #'self-alignment-X = #CENTER ia } (from Lilypond Snippets Lyrics alignment) No effect either, probably because the syllable "ia" is too short. How can I solve this? Using Lilypond version 2.14.1 on Arch Linux. -- View this message in context: http://old.nabble.com/Clashing-note-columns-tp32919673p32919673.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: recompilation failure
胡海鹏 - Hu Haipeng writes: > Dear David, > Thank you for the further patch. I can wait for the fix, but don't > know what you mean my hiding of in mydefs.ly. This file was > created mainly from many lilyponders' macros, and my ones are only > text variables such as \rit, \allegro and some contexts. The original mydefs.ly contains _several_ lines in the definition of movement which have been split in the middle of identifiers. movement = #(define-music-function (parser location text duration count music) (string? string? integer? ly:music?) #{ \set Score . metronomeMarkFormatter = #(make-format-movement- markup-function $text) \set Score . tempoWholesPerMinute = #$(ly:duration-length (string- >duration duration)) \set Score . tempoUnitDuration = #$(string->duration duration) \set Score . tempoUnitCount = #$count $music \set Score . metronomeMarkFormatter = #format-metronome-markup #}) -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
unable to view attachment
I click on the following URL and I got the following error message: Not Found The requested URL /archive/html/lilypond-user/attachments/20111206/bc2adba5/attachment.html was not found on this server. Apache/2.2.14 Server at lists.gnu.org Port 80 Blessing in+, > > > >-- next part -- >An HTML attachment was scrubbed... >URL: ><http://lists.gnu.org/archive/html/lilypond-user/attachments/20111206/bc2adba5/attachment.html> >-- next part -- >A non-text attachment was scrubbed... >Name: celebration overture.rar >Type: application/octet-stream >Size: 43789 bytes >Desc: not available >URL: ><http://lists.gnu.org/archive/html/lilypond-user/attachments/20111206/bc2adba5/attachment.obj> > >-- > >___ >lilypond-user mailing list >lilypond-user@gnu.org >https://lists.gnu.org/mailman/listinfo/lilypond-user > > >End of lilypond-user Digest, Vol 109, Issue 16 >** > > >___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
re: recompilation failure
Dear David, Thank you for the further patch. I can wait for the fix, but don't know what you mean my hiding of in mydefs.ly. This file was created mainly from many lilyponders' macros, and my ones are only text variables such as \rit, \allegro and some contexts. Haipeng ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Would you donate for structured Lilypond variables? (was: Conditionally including lyrics)
Marc Hohl writes: > Am 02.12.2011 17:44, schrieb David Kastrup: >> Marc Hohl writes: >> >>> Am 02.12.2011 12:02, schrieb David Kastrup: Marc Hohl writes: > Hello list, > > I have a lot of small music pieces with several stanzas which I store > like this > > textA = \lyricmode { > \set stanza = "1. " > this is the first stan -- za. > } > > textB = \lyricmode { > \set stanza = "2. " > and this one is the se -- cond. > } > > textC = ... Why? If you want them processed automatically, why do you put them into dissociated macros and expect Lilypond to go hunting for them? >>> How would you store several stanzas? It seemed very straightforward to use >>> one variable (or macro) for one stanza. It is reasonably easy to generate symbol names, check whether there is anything bound to them, and collect them into some music, but it is also arbitrary and error-prone. Is there a particular reason you want your stanzas to be stored in a manner not useful for the processing you plan to do with them? >>> Well, this was the easiest way that came into my mind, but it may be >>> complete nonsens >>> to do so - any more powerful ideas are highly appreciated. >> Why not just one >> \addlyrics { ... } >> >> after the other? That's how you would put them into your document, >> wouldn't it? > Well, yes and no. I want to have the ability to > a) use every stanza with \addlyrics > b) use only the first stanza with \addlyrics and print additional > stanzas as a text markup below the score. > > So ideally, I have one template for each output format, and squeeze > my pile of songs through the appropriate template. You can already do something like $(module-ref (current-module) (string->symbol (format #f "text~a" letter))) to call a symbol by name (ugh, by the way). Going through the symbol name is what TeX freaks will do at the drop of a head ("Off with his \csname!"). I'd prefer a somewhat more structured approach. But it would be work. Check out http://code.google.com/p/lilypond/issues/detail?id=2072>. If enough people consider this worthwhile to contribute an appropriate donation towards its implementation, I'll be doing the infrastructure and docs for vectors in a manner that makes this extensible to other tasks. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: recompilation failure, strange
David Kastrup writes: > David Kastrup writes: > >> David Kastrup writes: >> >>> And then there is one thing that is quite non-obvious and needs fixing: >>> a comment. >>> >>> % direction (either #UP or #DOWN) >>> >>> # and $ in comments inside of #{ ... #} are not completely >>> unproblematic. $ was much more dangerous, now both $ and # are a bit >>> more low-profile. >> >> [...] >> >>> With current 2.15, it will start working again if you put a space after >>> #DOWN. >> >> Actually, the comment alone does not faze #(define-... #{ #}) so there >> is something quite more fishy going on. It still works when adding that >> above-mentioned space, however. >> >> I'll have to see what else is up here. > > Crapola. The Scheme reader _does_ read the trailing ), but does not > complain. Instead it pushes it back to the port where it is digested > when the _next_ # is coming up. > > So yes, I guess it should be possible to fix 2.15.x so that not even the > above comment will give it a hickup. I'll take a look. Currently doing the regtests, but the following trivial patch should be able to defuse this comment if you can't wait until it has made it through the channels. The other problem in mydefs.ly is you accidentally hitting in the middle of a word. >From 208f17c5f239887caf59d6fc3f054791c2171d18 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Tue, 6 Dec 2011 11:13:55 +0100 Subject: [PATCH] Fix an obscure problem with #{ ... #xxx) #} where ) gets read twice --- scm/parser-ly-from-scheme.scm |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scm/parser-ly-from-scheme.scm b/scm/parser-ly-from-scheme.scm index 7e17571..a2bc74c 100644 --- a/scm/parser-ly-from-scheme.scm +++ b/scm/parser-ly-from-scheme.scm @@ -43,6 +43,9 @@ from @var{port} and return the corresponding Scheme music expression. (if (or (char=? c #\#) (char=? c #\$)) (let* ((p (ftell out)) (expr (read copycat))) + ;; kill unused lookahead, it has been + ;; written out already + (drain-input copycat) ;; only put symbols and non-quote ;; lists into closures -- constants ;; don't need lexical environments -- 1.7.5.4 -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: recompilation failure, strange
David Kastrup writes: > David Kastrup writes: > >> And then there is one thing that is quite non-obvious and needs fixing: >> a comment. >> >> % direction (either #UP or #DOWN) >> >> # and $ in comments inside of #{ ... #} are not completely >> unproblematic. $ was much more dangerous, now both $ and # are a bit >> more low-profile. > > [...] > >> With current 2.15, it will start working again if you put a space after >> #DOWN. > > Actually, the comment alone does not faze #(define-... #{ #}) so there > is something quite more fishy going on. It still works when adding that > above-mentioned space, however. > > I'll have to see what else is up here. Crapola. The Scheme reader _does_ read the trailing ), but does not complain. Instead it pushes it back to the port where it is digested when the _next_ # is coming up. So yes, I guess it should be possible to fix 2.15.x so that not even the above comment will give it a hickup. I'll take a look. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: recompilation failure, strange
David Kastrup writes: > And then there is one thing that is quite non-obvious and needs fixing: > a comment. > > % direction (either #UP or #DOWN) > > # and $ in comments inside of #{ ... #} are not completely > unproblematic. $ was much more dangerous, now both $ and # are a bit > more low-profile. [...] > With current 2.15, it will start working again if you put a space after > #DOWN. Actually, the comment alone does not faze #(define-... #{ #}) so there is something quite more fishy going on. It still works when adding that above-mentioned space, however. I'll have to see what else is up here. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re:Re: recompilation failure, strange
Sorry, I forgot to say, that I press enter on the file marked -score.ly. the overture ly contains music, and mydefs.ly contains many macros. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: recompilation failure, strange
胡海鹏 - Hu Haipeng writes: > Hello, > I modified some notes in my overture, and tried to recompile it. But > Lilypond 2.15.20 suddenly aborted without any messages left in the > log. It's at about bar 160, but I can't detect any error, because it > compiled well when i use 2.13. I don't use anything changed during > these months, except markuplines. I know the files are big, but could > anyone tell me why lilypond aborted this way and how to find the > error? First, of course you use something changed during this month, and convert-ly -ed *.ly consequently makes a lot of changes. It can't help, however, with spurious newlines created by editing mistakes or botched copy&paste jobs. So I recommend that you first try to get your document into a shape where it would actually compile with a version of 2.13, then try convert-ly on it. And then there is one thing that is quite non-obvious and needs fixing: a comment. % direction (either #UP or #DOWN) # and $ in comments inside of #{ ... #} are not completely unproblematic. $ was much more dangerous, now both $ and # are a bit more low-profile. I doubt that except for quite a short time in the life cycle of 2.15 that this has ever worked. With current 2.15, it will start working again if you put a space after #DOWN. The thing is that the Scheme reader engages after # and reads one expression, and as opposed to a space, it can't silently swallow ) and it can't back it up either. I don't really think that creating convert-ly rules for this case (defusing comments inside of #{ ... #}) makes all that much sense, but it would be possible. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user