Re: Missing messages [was: Stem forced to be at the right (or left) of the notehead]
I registered for lilypond-user@gnu.org. As said before, this is not the first time I have this issue with mailing lists: some of them even refuse subscriptions from yahoo mail addresses. Il Sabato 3 Marzo 2018 1:06, Karlin High ha scritto: Paolo Prete: Did you register for the lilypond-user mailing list? Or just for the Nabble site? -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ 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
error: unknown escaped string: `\overlay
Hi, I'm actually studying an Abjad tutorial, but while I was studying the Timespans section, I found an error on Python that calls back to the Lilypond file associated with that process. \version "2.18.2" \language "english" \header { tagline = ##f } \layout {} \paper {} \markup { \column { \overlay { \translate #'(1.0 . 1) \sans \fontsize #-3 \center-align \fraction 1 4 \translate #'(151.0 . 1) \sans \fontsize #-3 \center-align \fraction 11 8 } \pad-to-box #'(0 . 215.69) #'(0 . 2.5) \postscript #" 0.2 setlinewidth 1 0.5 moveto 151 0.5 lineto stroke 1 1.25 moveto 1 -0.25 lineto stroke 151 1.25 moveto 151 -0.25 lineto stroke 0.1 setlinewidth [ 0.1 0.2 ] 0 setdash 1 2.5 moveto 1 1 lineto stroke 151 2.5 moveto 151 1 lineto stroke 0 0 moveto 0.99 setgray 0 0.01 rlineto stroke " } } Starting lilypond 2.18.2 [0006.ly]... Processing `/home/pedro/.abjad/output/0006.ly' Parsing... /home/pedro/.abjad/output/0006.ly:17:13 <0>: error: unknown escaped string: `\overlay' \overlay Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `0006.ps'... Converting to `./0006.pdf'... fatal error: failed files: "/home/pedro/.abjad/output/0006.ly" Exited with return code 1. -- pedro proenÇa Student composer, bassist, writer, meme Facebook: @punksterbass Twitter: @Bizarro_Pedro ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Table of Contents
Hi, I am trying to use a LilyPond table of contents for the first time and can't figure out some things: - How can I make it narrower? Or set left and right paper margins specifically for that page? The 5 cm in the example are fine but the next pages need smaller margins. - How to put some space between the number and the composer and between the title and the dots? At the place where i put this ugly amount of space characters in the example below. Should I use \hspace? - Is anyone using this way to create tocs for serious projects or do you prefer LaTeX? Is it possible to link to the scores, then? I know includepdf but how does it work with pagenumbering and cross references inside the pdf? Thanks for any help. Joram Minimal example: \version "2.19.65" \markuplist \table-of-contents \paper { tocTitleMarkup = \markup \huge \column { \fill-line { \null "Inhalt" \null } \hspace #1 } tocItemMarkup = \markup \fill-with-pattern #1 #RIGHT . \fromproperty #'toc:text \fromproperty #'toc:page left-margin = 5\cm right-margin = 5\cm top-margin = 5\cm } \pageBreak \tocItem \markup "1.J.S. Bach, »First score«" \score { { c'4 } } \tocItem \markup "2.J.S. Bach, »Second score« " \score { { c'4 } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: error: unknown escaped string: `\overlay
Hi Pedro, \overlay didn't exist yet in version 2.18.2. It's a new markup command. If you don't want to switch to a recent development version, you may replace \overlay by \combine, since \overlay is a kind of \combine that can take a list of arguments (instead of just only two). In your example, incidentally, there are only two arguments so that \overlay can be simply replaced by \combine to make it downward compatible (and don't forget to remove the curly braces around the two arguments) [...] \combine \translate #'(1.0 . 1) \sans \fontsize #-3 \center-align \fraction 1 4 \translate #'(151.0 . 1) \sans \fontsize #-3 \center-align \fraction 11 8 [...] HTH, Torsten -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Having trouble understanding optional and variable amount of arguments
2018-03-01 18:31 GMT+01:00 Stefano Troncaro : > I didn't know about \default or the dot/comma separated number/symbol lists! > I can see those being useful in some circumstances. I was thinking about > cases where an undefined amount of things different than symbols or numbers > are required, and the closest I can imagine is chaining functions to create > the illusion of a variable amount of arguments, like this: >> >> \version "2.19.80" >> >> #(define (end-list? obj) >>(and (list? obj) >> (let ((item (last obj))) >> (and (symbol? item) >>(equal? "end" (symbol->string item)) >> >> end = #(list 'end) >> >> #(define (el->curated-el el) >>(delete 'end el)) >> >> untilEnd = >> #(define-void-function (proc el) (procedure? end-list?) >>(let ((curated-el (el->curated-el el))) >> (for-each >> (lambda (elem) >> (proc elem)) >> curated-el))) >> >> selfAppending = >> #(define-scheme-function (e-l) (end-list?) >>(let ((self-input (list (cons 1 2) (cons 3 4 >> (append self-input e-l))) >> >> selfAppendingInput = >> #(define-scheme-function (input e-l) (scheme? end-list?) >>(append (list input) e-l)) >> >> \relative c'' { >> c d e f >> \untilEnd #pretty-print >> \selfAppending >> \selfAppendingInput #'(some useful input?) >> \selfAppendingInput #selfAppending >> \selfAppending >> \end >> g a b c >> } > > This structure just happens to work for something I'm trying now but I can > see it being too narrow in general. > > @Urs, I not familiar with \with blocks, I'll take a look at the oll-core > code and experiment a bit with it. Maybe I'll be able to help. > > 2018-03-01 4:55 GMT-03:00 David Kastrup : >> >> Stefano Troncaro writes: >> >> > Thank you! I see that this is not an option then. Also, I now understand >> > why I couldn't make the optional arguments work, since I always left >> > them >> > for last. >> > >> > Do you know if it is possible to have a flexible amount of optional >> > arguments that appear before the last mandatory one? Say, for example >> > (define-music-function (arg1 args music) (number? ??? ly:music?) where >> > arg1 >> > and music are mandatory, and basically everything between arg1 and the >> > next >> > music expression is compacted into a list and accessed as args in the >> > body >> > of the function. Not with that syntax necessarily, but something that >> > allows for that kind of usage? >> >> You know that a number or symbol list can be entered as a >> comma-separated list? >> >> -- >> David Kastrup Hi Stefano, I was always fine with one optional list?-predicate (this may ofcourse be an alist) and sorting/processing this list in the body of the music-function. Or things like (lambda (arg . rest) ...) in some cases or the comma-separated list (as already mentioned). If you really want to go for a music-function with arbitrary arguments here some thoughts. Beside the result has still limitations: - the amount of possible arguments has to be specified (ofcourse you can go for something like 20, which should really be enough (currently 5 are defined) - all those arguments have to be of kind (not (ly:music ...)), which makes it impossible to enter a second music-argument. - maybe more, it's not tested beyond the given examples I expect David K will point out more weaknesses ... lol I deleted the not matching doc-strings from define-syntax-function and define-music-function. Look into music-functions.scm to read them. \version "2.19.65" #(defmacro-public define-my-syntax-function (args-amount type args signature . body) (define (has-parser/location? arg where) (let loop ((arg arg)) (if (list? arg) (any loop arg) (memq arg where (define (currying-lambda args doc-string? body) (if (and (pair? args) (pair? (car args))) (currying-lambda (car args) doc-string? `((lambda ,(cdr args) ,@body))) (let* ((compatibility? (if (list? args) (= (length args) (+ 2 (length signature))) (and (pair? args) (pair? (cdr args)) (eq? (car args) 'parser (realargs (if compatibility? (cddr args) args))) `(lambda ,realargs ,(format #f "~a\n~a" realargs (or doc-string? "")) ,@(if (and compatibility? (has-parser/location? body (take args 2))) `((let ((,(car args) (*parser*)) (,(cadr args) (*location*))) ,@body)) body) (let ((docstring (and (pair? body) (pair? (cdr body)) (if (string? (car body)) (car body) (and (pair? (car body)) (eq? '_i (caar body)) (pair? (cdar body)) (string? (cadar body))
Re: Table of Contents
Hi, > - How can I make it narrower? Or set left and right paper margins > specifically for that page? The 5 cm in the example are fine but the > next pages need smaller margins. It feels a bit clumsy but this works: tocItemMarkup = \markup \fill-line { \fill-with-pattern #1.5 #RIGHT . \line { \hspace #20 \fromproperty #'toc:text \hspace #2 } \line { \fromproperty #'toc:page \hspace #20 } } So I am still open for suggestions regarding a better table of contents, but I can live with the above solution. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Table of Contents
Am 3. März 2018 14:45:51 MEZ schrieb Noeck : >Hi, > >I am trying to use a LilyPond table of contents for the first time and >can't figure out some things: > >- How can I make it narrower? Or set left and right paper margins >specifically for that page? The 5 cm in the example are fine but the >next pages need smaller margins. > >- How to put some space between the number and the composer and between >the title and the dots? At the place where i put this ugly amount of >space characters in the example below. Should I use \hspace? > >- Is anyone using this way to create tocs for serious projects or do >you >prefer LaTeX? Yes. Is it possible to link to the scores, then? I know >includepdf but how does it work with pagenumbering and cross references >inside the pdf? Two steps for the numbering: 1) don't print page numbers in LilyPond. if you have two page layout you can set the first page number to 1 or 2, if you know where the score will start. 2) use the page command option of included to set that Pagestyle to plain (or whatever page style you have for the document. Regarding toc entries: you can use \addcontentsline, or IIRC included itself has an option. HATH Urs > >Thanks for any help. > >Joram > > > > >Minimal example: > >\version "2.19.65" > >\markuplist \table-of-contents >\paper { > tocTitleMarkup = \markup \huge \column { >\fill-line { \null "Inhalt" \null } >\hspace #1 > } > tocItemMarkup = \markup \fill-with-pattern #1 #RIGHT . >\fromproperty #'toc:text \fromproperty #'toc:page > > left-margin = 5\cm > right-margin = 5\cm > top-margin = 5\cm >} > >\pageBreak > >\tocItem \markup "1.J.S. Bach, »First score«" >\score { { c'4 } } > >\tocItem \markup "2.J.S. Bach, »Second score« " >\score { { c'4 } } > >___ >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: Table of Contents
Am 3. März 2018 16:09:47 MEZ schrieb Urs Liska : > > >Am 3. März 2018 14:45:51 MEZ schrieb Noeck : >>Hi, >> >>I am trying to use a LilyPond table of contents for the first time and >>can't figure out some things: >> >>- How can I make it narrower? Or set left and right paper margins >>specifically for that page? The 5 cm in the example are fine but the >>next pages need smaller margins. >> >>- How to put some space between the number and the composer and >between >>the title and the dots? At the place where i put this ugly amount of >>space characters in the example below. Should I use \hspace? >> >>- Is anyone using this way to create tocs for serious projects or do >>you >>prefer LaTeX? > >Yes. > >Is it possible to link to the scores, then? I know >>includepdf but how does it work with pagenumbering and cross >references >>inside the pdf? > >Two steps for the numbering: >1) don't print page numbers in LilyPond. >if you have two page layout you can set the first page number to 1 or >2, if you know where the score will start. >2) use the page command option of included to set that Pagestyle to >plain (or whatever page style you have for the document. > >Regarding toc entries: you can use \addcontentsline, or IIRC included >itself has an option. When my autocorrect wrote "included" I meant \includepdf. > >HATH >Urs > >> >>Thanks for any help. >> >>Joram >> >> >> >> >>Minimal example: >> >>\version "2.19.65" >> >>\markuplist \table-of-contents >>\paper { >> tocTitleMarkup = \markup \huge \column { >>\fill-line { \null "Inhalt" \null } >>\hspace #1 >> } >> tocItemMarkup = \markup \fill-with-pattern #1 #RIGHT . >>\fromproperty #'toc:text \fromproperty #'toc:page >> >> left-margin = 5\cm >> right-margin = 5\cm >> top-margin = 5\cm >>} >> >>\pageBreak >> >>\tocItem \markup "1.J.S. Bach, »First score«" >>\score { { c'4 } } >> >>\tocItem \markup "2.J.S. Bach, »Second score« " >>\score { { c'4 } } >> >>___ >>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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Table of Contents
Are you willing to put the ToC in a separate bookpart? \bookpart { \paper { print-page-number=##f line-width = 150\mm } \markuplist { \table-of-contents } } On 03/03/18 15:08, Noeck wrote: Hi, - How can I make it narrower? Or set left and right paper margins specifically for that page? The 5 cm in the example are fine but the next pages need smaller margins. It feels a bit clumsy but this works: tocItemMarkup = \markup \fill-line { \fill-with-pattern #1.5 #RIGHT . \line { \hspace #20 \fromproperty #'toc:text \hspace #2 } \line { \fromproperty #'toc:page \hspace #20 } } So I am still open for suggestions regarding a better table of contents, but I can live with the above solution. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- Timothy Lanfear, Bristol, UK. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: error: unknown escaped string: `\overlay
Thank you, Torsten :)) I'm trying to install the unstable version (my OS is Lubuntu), but I'm unable to. Do you have any insights on it? -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OpenType in LilyPond
Am 26.08.2017 um 13:16 schrieb Malte Meyn: > In case someone is interested: here comes the adapted snippet (with > usage example). Hi Malte, this is great news! Can this be also applied to the default font (outside the score)? For markup in general? And for anyone who is interested in real small caps, here is how this can be used produce them and also old style numbers: \markup \override #'(font-features . ("onum" "smcp")) "SmallCaps 1569" Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OpenType in LilyPond
Joram (et al.), > On Mar 3, 2018, at 2:47 PM, Noeck wrote: > > And for anyone who is interested in real small caps, here is how this > can be used produce them and also old style numbers: > > \markup \override #'(font-features . ("onum" "smcp")) "SmallCaps 1569" HOLY MOLY! That’s fabulous. Thank you for the tip!! K. 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
Cross-staff stem on a spacer rest
Hello, I would like to obtain the same graphical result of the below snippet (a cross-staff stem for the second note on the lower staff) without the bad hack "\override NoteHead.transparent = ##t d' " and using a spacer rest Instead, How can I do?Thanks %{ \new PianoStaff << \new Staff { d'8[ \override NoteHead.transparent = ##t d'] } \new Staff { \voiceOne \autoBeamOff \crossStaff { g8 a} } >>} \layout { \context { \PianoStaff \consists #Span_stem_engraver } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Put the rests in cross-staff between staves
Thanks to Joshua and Mark. The solution of Joshua appears more accurate to me in the graphical result, but it seems a work-around and I wonder if is there a shorter and specific function to obtain the same result. Il Giovedì 1 Marzo 2018 23:39, Joshua Stutter ha scritto: Or indeed a dedicated stave for the rest if this is going to occur often. \score { << \new Staff = "up" { c''4 \change Staff = "rest" r \change Staff = "up" c'' } \new Staff = "rest" \with { \omit Staff.StaffSymbol \omit Clef \omit TimeSignature \omit KeySignature } { s4*3 } \new Staff = "down" { c''4 c'' c'' } >> \layout { \context { \Staff \override VerticalAxisGroup.default-staff-staff-spacing = #'((basic-distance . 2) (minimum-distance . 2) (padding . 2)) } } } Joshua. On 01/03/18 21:59, Mark Stephen Mrotek wrote: > > Paolo, > > Does the attached accomplish what you want? > > Mark > > *From:*lilypond-user > [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] *On Behalf > Of *Paolo Prete > *Sent:* Thursday, March 01, 2018 7:01 AM > *To:* Lilypond-User Mailing List > *Subject:* Put the rests in cross-staff between staves > > Hello, > > in a cross-staff bar, is there a simple way to put the rests in the > middle between the two staves? > > Currently, I use that: > > \override Rest #'staff-position = #-12 > > ...but I wonder if is there a better way to obtain the same result > > Thanks > > > > ___ > 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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Table of Contents
Hi Am 03.03.2018 um 16:14 schrieb Timothy Lanfear: > Are you willing to put the ToC in a separate bookpart? > > \bookpart { > \paper { print-page-number=##f line-width = 150\mm } > \markuplist { \table-of-contents } > } > That's probably what I want. Thanks! Could there be any drawbacks from separate bookparts? Writing \override #'(line-width . 60) before the \fill-with-pattern command also works nicely. At the end of the day, I have not yet encountered any major drawback of doing everything in LilyPond. Thanks for all replies (also in the LaTeX direction)! Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OpenType in LilyPond
Am 03.03.2018 um 20:47 schrieb Noeck: Am 26.08.2017 um 13:16 schrieb Malte Meyn: In case someone is interested: here comes the adapted snippet (with usage example). Hi Malte, this is great news! Can this be also applied to the default font (outside the score)? For markup in general? I haven’t tried to find such a general solution yet. As said earlier in this thread I don’t need titles, pagenumbers and other markups (that’s because I use it only for snippets in a (Lua)LaTeX document). ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
A slur across a line break with change of clef in another staff generates bad output
Hi everyone, I stumbled across a bug where Lilypond generates a bad slur if the slur crosses a line break and there is a simultaneous clef change in a different staff. I found a previous report for this bug in the mailing list archives (2015-05-30, same subject, [1]), but with Google Code being archived and SourceForge currently in Disaster Recovery mode, I’m not sure if the bug is currently tracked anywhere (or even fixed in the development version), so I thought I could still post my tiny(ish) example along with a workaround, and perhaps it would be helpful to someone :) Example (you can replace the 7 with other numbers), with workaround commented out: \version "2.18.2" << \new Staff { s1*7 | % \temporary \alterBroken control-points #'(((0.3 . 1.5) (1.3 . 2.3) (2.5 . 2.3) (3.5 . 1.5)) ((3.3 . 1.5) (4.3 . 2.3) (5.5 . 2.3) (6.5 . 1.5))) Slur r2.. d''8( | \break % \revert Slur control-points c'') } \new Staff { \clef "violin" s1*7 s1 \clef "bass" } >> Screenshots of the results are at [2]. The control points aren’t perfect, since I couldn’t figure out how to get the automatically chosen control points (for the second half of the broken slur, we could just reuse these, since only the first half is bad, and the first half could be based on them as well), so I had to try to match them by eyeballing. Also, this unfortunately doesn’t work if you want double slurs, since AFAIK it’s not possible to set the control points in that case [3]. But still, it’s better than nothing IMHO. Hope this helps, Lucas [1]: https://lists.gnu.org/archive/html/lilypond-user/2015-05/msg00817.html [2]: https://imgur.com/a/Pd4dm [3]: http://lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes.en.html#Known-issues-and-warnings-76 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How to have a cross-staff stem on a spacer rest
(I re-post a previous message, in a new form and from a new e-mail address, hoping it will not be automatically filtered as it happened for some posts from the yahoo server) Hello, I would like to obtain the same graphical result of the below snippet (a cross-staff stem for the second note on the lower staff), but without having to change staff within the upper staff. More precisely, I want to use a spacer rest on the upper staff, in the corresponding bar position, and put the note on the lower staff. How can I do that? Thanks % down = \change Staff="down" up = \change Staff="up" { \new PianoStaff << \new Staff = "up" { \stemUp d'8[ \down a \up e' f'] } \new Staff = "down" { \autoBeamOff \crossStaff { g8 s s s } } >> } \layout { \context { \PianoStaff \consists #Span_stem_engraver } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to have a cross-staff stem on a spacer rest
It's not clear to me what you want. Do you not want the notes all beamed together? You cant put a cross staff stem to a space. What is wrong with the change staff command? Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user