Re: strange output with lilypond book
Dear Julien, the problem is the input command in latex. Without it (when I define the commands in the document itself), the pdf looks good but if the file is included, every bar of the music uses a single line. I would like to avoid it an I would like to use the input command in latex. On 19/01/2013 1:17 PM, Stefan Thomas wrote: Dear Julien, unfortunately the blank line (do Yoy mean \\?) doesn't help! I mean a blank, empty line. %---snippet--- \begin{flushright} Name, Vorname: \end{flushright} \textbf{First exercise:} \begin{lilypond} \relative { c d e f g2 e g 4 f e d e2 c } \end{lilypond} %---snippet--- Cheers, Julien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
context and lilypond
Dear community, when I want to use lilypond within context (the latex alternative system), do I have to install the lilypond-module separately? Can give someone a short example of code of a document with lilypond code? Does context cooperate with the latest stable version of lilypond? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Am 2013-01-20 um 10:40 schrieb Stefan Thomas: Dear community, when I want to use lilypond within context (the latex alternative system), do I have to install the lilypond-module separately? Can give someone a short example of code of a document with lilypond code? Does context cooperate with the latest stable version of lilypond? Hi Stefan, you don’t need the (deprecated) LilyPond module any more at all. Use the filter module, as mentioned in http://wiki.contextgarden.net/LilyPond (Anything below the section Deprecation Warning is invalid/unnecessary.) You can save the following snippet as t-lilyfilter.tex and \usemodule[lilyfilter] --- 8 --- \startmodule[lilyfilter] \def\readPDFfile#1{\externalfigure[#1]} \usemodule[filter] \defineexternalfilter[lilypond] [continue=yes, readcommand=\readPDFfile, directory=lilytemp/, output={\externalfilterbasefile.pdf}, filtercommand={lilypond -dbackend=eps -dinclude-eps-fonts -dno-gs-load-fonts -olilytemp/\externalfilterbasefile \externalfilterinputfile}] \stopmodule --- 8 --- This is very simple, but enough for my needs. For more options, have a look at the documentation of t-filter. Then, in your component (or single document) file, you say e.g. --- 8 --- \startlilypond \include lily_settings.ly global = { \clef treble \key a \major \time 4/4 } oberstimme = \relative c'' { \repeat volta 2 { a2^\markup{1.} b4 a | gis2 a\fermata | cis^\markup{2.} d4 cis | b2 cis\fermata | a^\markup{3.} fis4 d | e2 a,\fermata } } text = \lyricmode { White sand and grey sand. Who’ll buy my grey sand? Who’ll buy my white sand? } \score { \context Staff = Oben \global \context Voice = eins \oberstimme \lyricsto eins \new Lyrics { \text } \layout { } } \stoplilypond --- 8 --- The old LilyPond module doesn’t allow for variable definitions (global = {}) within \start...\stoplilypond There’s no further configuration, you keep all settings in an include file (here: lily_settings.ly). My usual contains stuff like... --- 8 --- \version 2.14.0 #(ly:set-option (quote no-point-and-click)) #(set-global-staff-size 14) \paper { #(define dump-extents #t) indent = 0\mm ragged-bottom = ##t ragged-last-bottom = ##t print-page-number = ##f line-width = 120\mm oddFooterMarkup = ##f oddHeaderMarkup = ##f bookTitleMarkup = ##f scoreTitleMarkup = ##f } #(define (conditional-string-downcase str condition) (if condition (string-downcase str) str)) #(define (pitch-alteration-semitones pitch) (inexact-exact (round (* (ly:pitch-alteration pitch) 2 #(define ((chord-name-german-markup-text-alteration B-instead-of-Bb) pitch lowercase?) Return pitch markup for PITCH, using german note names. If B-instead-of-Bb is set to #t, real german names are returned. Otherwise, semi-german names (with Bb and below keeping the british names). Alterations are indicated with -es and -is instead of the flat and sharp symbols. (let* ((name (ly:pitch-notename pitch)) (alt-semitones (pitch-alteration-semitones pitch)) (n-a (if (member (cons name alt-semitones) `((6 . -1) (6 . -2))) (cons 7 (+ (if B-instead-of-Bb 1 0) alt-semitones)) (cons name alt-semitones (make-line-markup (list (make-simple-markup (conditional-string-downcase (vector-ref #(C D E F G A H B) (car n-a)) lowercase?)) (let ((alteration (/ (cdr n-a) 2))) (cond ((= alteration FLAT) (make-simple-markup es)) ((= alteration SHARP) (make-simple-markup is)) (else empty-markup))) smN = \override NoteHead #'font-size = #-3 smn = \once \override NoteHead #'font-size = #-3 nmN = \override NoteHead #'font-size = #0 opC = \once \override ChordNames.ChordName #'stencil = #addBrackets cnh = \once \override NoteHead #'style = #'cross ccJ = \set chordChanges = ##t ccN = \set chordChanges = ##f \layout { #(layout-set-staff-size 14) % resets fonts! #(define fonts (make-pango-font-tree TeX Gyre Schola LMSans10 LMTypewriter10 Regular (/ 14 20))) \context { \Score %\dynamicUp % doesn’t work \remove Bar_number_engraver \override PaperColumn #'keep-inside-line = ##t } \context { \Staff \override TimeSignature #'style = #'numbered } \context { \ChordNames chordChanges = ##t chordNameLowercaseMinor = ##t chordRootNamer = #(chord-name-german-markup-text-alteration #t) majorSevenSymbol = \markup{ 7+ } } } ---
Re: context and lilypond
Henning Hraban Ramm hra...@fiee.net writes: Am 2013-01-20 um 10:40 schrieb Stefan Thomas: Dear community, when I want to use lilypond within context (the latex alternative system), do I have to install the lilypond-module separately? Can give someone a short example of code of a document with lilypond code? Does context cooperate with the latest stable version of lilypond? Hi Stefan, you don’t need the (deprecated) LilyPond module any more at all. Use the filter module, as mentioned in http://wiki.contextgarden.net/LilyPond (Anything below the section Deprecation Warning is invalid/unnecessary.) You can save the following snippet as t-lilyfilter.tex and \usemodule[lilyfilter] --- 8 --- \startmodule[lilyfilter] \def\readPDFfile#1{\externalfigure[#1]} \usemodule[filter] \defineexternalfilter[lilypond] [continue=yes, readcommand=\readPDFfile, directory=lilytemp/, output={\externalfilterbasefile.pdf}, filtercommand={lilypond -dbackend=eps -dinclude-eps-fonts -dno-gs-load-fonts -olilytemp/\externalfilterbasefile \externalfilterinputfile}] \stopmodule What are the performance characteristics? One point of LilyPond-book is that it compiles a large number of fragments with a single run of LilyPond. That makes, for example, compilation times of our manuals less unbearable. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Am 2013-01-20 um 11:37 schrieb David Kastrup: What are the performance characteristics? One point of LilyPond-book is that it compiles a large number of fragments with a single run of LilyPond. That makes, for example, compilation times of our manuals less unbearable. LilyPond gets called for every single snippet (but only once, as long as it doesn’t change or move), so it’s probably not suitable for a manual. But it’s good enough for my songbooks. Greetlings, Hraban --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Henning Hraban Ramm hra...@fiee.net writes: Am 2013-01-20 um 11:37 schrieb David Kastrup: What are the performance characteristics? One point of LilyPond-book is that it compiles a large number of fragments with a single run of LilyPond. That makes, for example, compilation times of our manuals less unbearable. LilyPond gets called for every single snippet (but only once, as long as it doesn’t change or move), Move? so it’s probably not suitable for a manual. But it’s good enough for my songbooks. What would be involved to make it collect jobs? Doing more than one job on a single call is not a prerequisite of LilyPond. Now LilyPond-book also sifts out duplicates which is nice when compiling a dozen translations. Demanding that from Context would likely be excessive (though I think that the underlying engines can do checksums). But combining several files on a single command line? That does not sound too unreasonable. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Am 2013-01-20 um 12:17 schrieb David Kastrup: What are the performance characteristics? One point of LilyPond-book is that it compiles a large number of fragments with a single run of LilyPond. That makes, for example, compilation times of our manuals less unbearable. LilyPond gets called for every single snippet (but only once, as long as it doesn’t change or move), Move? The snippet buffers are just numbered, so if you insert one before the first, all others will get re-rendered, too. I guess we could change that behaviour, e.g. use keywords or some UID per buffer. I’ll discuss that with Aditya (author of t-filter). so it’s probably not suitable for a manual. But it’s good enough for my songbooks. What would be involved to make it collect jobs? Doing more than one job on a single call is not a prerequisite of LilyPond. Now LilyPond-book also sifts out duplicates which is nice when compiling a dozen translations. Demanding that from Context would likely be excessive (though I think that the underlying engines can do checksums). But combining several files on a single command line? That does not sound too unreasonable. The filter modules uses MD5 checksums to find changed snippets. If I understand it right, ATM LilyPond is called for every single snippet, and the resulting PDF is placed immediately (so the buffer file could even get overwritten later). If we would collect those buffers, ConTeXt couldn’t check the size of the resulting image (PDF) and would need another run. I have no idea what the best approach would be. I can live with the current (rather slow) speed; TeX still needs more time than LilyPond, while I don’t change or move a lot of my songs. But at least my usage of t-filter only uses one-page LilyPond snippets. With a bit of Lua to detect the results of a LP run it shouldn’t be that complicated to use single system images like lilypond-book. Greetlings, Hraban --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Henning Hraban Ramm hra...@fiee.net writes: But at least my usage of t-filter only uses one-page LilyPond snippets. With a bit of Lua to detect the results of a LP run it shouldn’t be that complicated to use single system images like lilypond-book. It would be interesting to figure out the minimum requirements to let LilyPond-book offer a generic (namely, not backend-specific) interface to image-including applications, and how to best pass information (XML? line-based?). -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Am 2013-01-20 um 12:49 schrieb David Kastrup: Henning Hraban Ramm hra...@fiee.net writes: But at least my usage of t-filter only uses one-page LilyPond snippets. With a bit of Lua to detect the results of a LP run it shouldn’t be that complicated to use single system images like lilypond-book. It would be interesting to figure out the minimum requirements to let LilyPond-book offer a generic (namely, not backend-specific) interface to image-including applications, and how to best pass information (XML? line-based?). Wasn’t there already some output file that just contains the number of generated lines? Cant’t check at the moment, my children need me... Greetlings, Hraban --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
shortening a stem
Folks, what must I write to shorten an unbeamed stem by, say, one unit? A naive approach would be \once \override Stem.length #(- ly:stem::calc-length 1) which doesn't work of course... Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: shortening a stem
Werner LEMBERG wrote Folks, what must I write to shorten an unbeamed stem by, say, one unit? A naive approach would be \once \override Stem.length #(- ly:stem::calc-length 1) looking for \override Stem.length-fraction = #(magstep -1) ?! Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/shortening-a-stem-tp139796p139797.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Glyph error
My .ly compiled clean. After adding a few systems, now this error appears during compile, even though the music typesets correctly. No indication to where it's coming from. Any help is appreciated: programming error: FT_Get_Glyph_Name () error: invalid argument continuing, cross fingers programming error: Glyph has no name, but font supports glyph naming. Skipping glyph U+101B, file c:/Program Files/LilyPond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf continuing, cross fingers___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tupletSpannerDuration
Il 19/01/2013 12:29, Trevor Daniels ha scritto: David Kastrup wrote Saturday, January 19, 2013 9:10 AM Nick Payne nick.pa...@internode.on.net writes: BTW, both #(ly:make-moment 1 4) and #(ly:make-moment 1/4) are valid, Is one form preferred over the other? If so, maybe that should be consistently used throughout the documentation. At any rate, due to its better mnemonic value (and the availability of ly:moment-main and ly:moment-grace also from around that time), I think we should preferably aim for the rational form. I agree. Bug Squad: please raise an issue for this so it doesn't get forgotten. Added as issue 3124: http://code.google.com/p/lilypond/issues/detail?id=3124 -- Federico ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Glyph error
Probably something like an apostrophe that's been auto corrected by word. Look at those and inverted commas to start. -- Phil Holmes - Original Message - From: Javier Ruiz To: LilyPond User Group Sent: Sunday, January 20, 2013 5:19 PM Subject: Glyph error My .ly compiled clean. After adding a few systems, now this error appears during compile, even though the music typesets correctly. No indication to where it's coming from. Any help is appreciated: programming error: FT_Get_Glyph_Name () error: invalid argument continuing, cross fingers programming error: Glyph has no name, but font supports glyph naming. Skipping glyph U+101B, file c:/Program Files/LilyPond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf continuing, cross fingers -- ___ 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: prall with accidental
2013/1/19 Werner LEMBERG w...@gnu.org: Of course, you can easily write the tweak version instead: prallSharp = -\tweak Script.text \markup { \override #'(baseline-skip . 1.2) \center-column { \fontsize #-4 \sharp \musicglyph #scripts.prall } } -\tweak Script.stencil #ly:text-interface::print \prall I plead for adding this and related macros to LilyPond. Three reasons: . The definition is non-trivial. . It is quite frequent. . It should be extended to work with articulate.ly, and as such the macro names need to be standardized. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user With this approach transposing will sometimes result in wrong accidentals. There was a thread in the german forum which might be of interest: http://www.lilypondforum.de/index.php?topic=721.msg5798#msg5798 To get the atachments you need an account there, though. HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: prall with accidental
Thomas Morley thomasmorle...@googlemail.com writes: 2013/1/19 Werner LEMBERG w...@gnu.org: Of course, you can easily write the tweak version instead: prallSharp = -\tweak Script.text \markup { \override #'(baseline-skip . 1.2) \center-column { \fontsize #-4 \sharp \musicglyph #scripts.prall } } -\tweak Script.stencil #ly:text-interface::print \prall With this approach transposing will sometimes result in wrong accidentals. How about something like c-\pitched cis \prall which modifies the stencil of \prall when it finds that cis does not fit the current key signature? It would slap a 'pitch field on the prall event (so that \transpose has something to mangle) and check its state when typesetting. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: prall with accidental
There was a thread in the german forum which might be of interest: http://www.lilypondforum.de/index.php?topic=721.msg5798#msg5798 To get the atachments you need an account there, though. Sehr nett! Please add a link (or the code) to the issue. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: prall with accidental
How about something like c-\pitched cis \prall which modifies the stencil of \prall when it finds that cis does not fit the current key signature? It would slap a 'pitch field on the prall event (so that \transpose has something to mangle) and check its state when typesetting. Yeah, this looks like a good syntax suggestion. Is a Scheme solution possible, or does this need a C++ extension? Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Dear Henning, thanks for Your explanations, but I couldn't manage a working piece of code, untortunately. As You suggested, I've saved Your code as t-lilyfilter.tex. In which folder shall I store it? And where in the file should be the line \usemodule[lilyfilter]? I've tried it with the following code: \setupoutput[pdftex] \setupbodyfont[plr,11pt] \mainlanguage[de] \language[de] \usemodule[lilyfilter] \starttext \title{Title} This is some text \startlilypond \relative{c4 d e f g1 } \stoplilypond \stoptext 2013/1/20 Henning Hraban Ramm hra...@fiee.net Am 2013-01-20 um 10:40 schrieb Stefan Thomas: Dear community, when I want to use lilypond within context (the latex alternative system), do I have to install the lilypond-module separately? Can give someone a short example of code of a document with lilypond code? Does context cooperate with the latest stable version of lilypond? Hi Stefan, you don’t need the (deprecated) LilyPond module any more at all. Use the filter module, as mentioned in http://wiki.contextgarden.net/LilyPond (Anything below the section Deprecation Warning is invalid/unnecessary.) You can save the following snippet as t-lilyfilter.tex and \usemodule[lilyfilter] --- 8 --- \startmodule[lilyfilter] \def\readPDFfile#1{\externalfigure[#1]} \usemodule[filter] \defineexternalfilter[lilypond] [continue=yes, readcommand=\readPDFfile, directory=lilytemp/, output={\externalfilterbasefile.pdf}, filtercommand={lilypond -dbackend=eps -dinclude-eps-fonts -dno-gs-load-fonts -olilytemp/\externalfilterbasefile \externalfilterinputfile}] \stopmodule --- 8 --- This is very simple, but enough for my needs. For more options, have a look at the documentation of t-filter. Then, in your component (or single document) file, you say e.g. --- 8 --- \startlilypond \include lily_settings.ly global = { \clef treble \key a \major \time 4/4 } oberstimme = \relative c'' { \repeat volta 2 { a2^\markup{1.} b4 a | gis2 a\fermata | cis^\markup{2.} d4 cis | b2 cis\fermata | a^\markup{3.} fis4 d | e2 a,\fermata } } text = \lyricmode { White sand and grey sand. Who’ll buy my grey sand? Who’ll buy my white sand? } \score { \context Staff = Oben \global \context Voice = eins \oberstimme \lyricsto eins \new Lyrics { \text } \layout { } } \stoplilypond --- 8 --- The old LilyPond module doesn’t allow for variable definitions (global = {}) within \start...\stoplilypond There’s no further configuration, you keep all settings in an include file (here: lily_settings.ly). My usual contains stuff like... --- 8 --- \version 2.14.0 #(ly:set-option (quote no-point-and-click)) #(set-global-staff-size 14) \paper { #(define dump-extents #t) indent = 0\mm ragged-bottom = ##t ragged-last-bottom = ##t print-page-number = ##f line-width = 120\mm oddFooterMarkup = ##f oddHeaderMarkup = ##f bookTitleMarkup = ##f scoreTitleMarkup = ##f } #(define (conditional-string-downcase str condition) (if condition (string-downcase str) str)) #(define (pitch-alteration-semitones pitch) (inexact-exact (round (* (ly:pitch-alteration pitch) 2 #(define ((chord-name-german-markup-text-alteration B-instead-of-Bb) pitch lowercase?) Return pitch markup for PITCH, using german note names. If B-instead-of-Bb is set to #t, real german names are returned. Otherwise, semi-german names (with Bb and below keeping the british names). Alterations are indicated with -es and -is instead of the flat and sharp symbols. (let* ((name (ly:pitch-notename pitch)) (alt-semitones (pitch-alteration-semitones pitch)) (n-a (if (member (cons name alt-semitones) `((6 . -1) (6 . -2))) (cons 7 (+ (if B-instead-of-Bb 1 0) alt-semitones)) (cons name alt-semitones (make-line-markup (list (make-simple-markup (conditional-string-downcase (vector-ref #(C D E F G A H B) (car n-a)) lowercase?)) (let ((alteration (/ (cdr n-a) 2))) (cond ((= alteration FLAT) (make-simple-markup es)) ((= alteration SHARP) (make-simple-markup is)) (else empty-markup))) smN = \override NoteHead #'font-size = #-3 smn = \once \override NoteHead #'font-size = #-3 nmN = \override NoteHead #'font-size = #0 opC = \once \override ChordNames.ChordName #'stencil = #addBrackets cnh = \once \override NoteHead #'style = #'cross ccJ = \set chordChanges = ##t ccN = \set chordChanges = ##f \layout {
Re: shortening a stem
what must I write to shorten an unbeamed stem by, say, one unit? A naive approach would be \once \override Stem.length #(- ly:stem::calc-length 1) looking for \override Stem.length-fraction = #(magstep -1) Thanks, but no. I'm interested in shortening the stem by a fixed amount, not scaling the whole stem length by a factor. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: shortening a stem
Werner LEMBERG w...@gnu.org writes: what must I write to shorten an unbeamed stem by, say, one unit? A naive approach would be \once \override Stem.length #(- ly:stem::calc-length 1) looking for \override Stem.length-fraction = #(magstep -1) Thanks, but no. I'm interested in shortening the stem by a fixed amount, not scaling the whole stem length by a factor. (define ((stem-reduce amount) grob) (let ((l (ly:grob-property grob 'length))) (/ (- l amount) l))) \override Stem.length-fraction = #(stem-reduce 1) This is probably slightly absurd (and untested to boot), but it would likely work. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: shortening a stem
On 20 janv. 2013, at 17:21, Werner LEMBERG w...@gnu.org wrote: Folks, what must I write to shorten an unbeamed stem by, say, one unit? A naive approach would be \once \override Stem.length #(- ly:stem::calc-length 1) which doesn't work of course... Werner This does something... { \once \override Stem.length = #(lambda (grob) (- (ly:stem::calc-length grob) 4)) a4 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Am 2013-01-20 um 19:39 schrieb Stefan Thomas: Dear Henning, thanks for Your explanations, but I couldn't manage a working piece of code, untortunately. As You suggested, I've saved Your code as t-lilyfilter.tex. In which folder shall I store it? As long as you're testing: in your project folder. Later you might want to move it to a generic location e.g. texmf-local/tex/context/third/lilyfilter/t-lilyfilter.tex And where in the file should be the line \usemodule[lilyfilter]? Somewhere before \startlilypond I've tried it with the following code: \setupoutput[pdftex] You normally don’t need that. \setupbodyfont[plr,11pt] \mainlanguage[de] \language[de] If you set german as mainlanguage, you don’t need to switch to german. \usemodule[lilyfilter] \starttext \title{Title} This is some text \startlilypond \relative{c4 d e f g1 } \stoplilypond \stoptext Otherwise this should work so far. What’s your problem? Which ConTeXt distribution (TeX Live? Standalone?) and version? What did you call (texexec = MkII or context = MkIV?) What were the error messages? Greetlings, Hraban --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Glyph error
Right on! I found several reverse apostrophes in variables: ` instead of ' All is sunny again. _ From: Phil Holmes Subject: Re: Glyph error Probably something like an apostrophe that's been auto corrected by word. Look at those and inverted commas to start. -- Phil Holmes - Original Message - From: Javier Ruiz Sent:Sunday, January 20, 2013 5:19 PM Subject: Glyph error My .ly compiled clean. After adding a few systems, now this error appears during compile, even though the music typesets correctly. No indication to where it's coming from. Any help is appreciated: programming error: FT_Get_Glyph_Name () error: invalid argument continuing, cross fingers programming error: Glyph has no name, but font supports glyph naming. Skipping glyph U+101B, file c:/Program Files/LilyPond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf continuing, cross fingers ___ 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: shortening a stem
On 20 January 2013 17:21, Werner LEMBERG w...@gnu.org wrote: Folks, what must I write to shorten an unbeamed stem by, say, one unit? A naive approach would be \once \override Stem.length #(- ly:stem::calc-length 1) which doesn't work of course... Hi Werner, You might want to use \override Stem #'no-stem-extend = ##t as well, since by default notes with ledger lines get their stems extending to the middle staff line (and maybe you do not want that with your shortened stems). Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: shortening a stem
{ \once \override Stem.length = #(lambda (grob) (- (ly:stem::calc-length grob) 4)) a4 } Thanks! I can imagine that a lot of people just want to shorten a stem by a certain amount without actually determining the necessary length. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: shortening a stem
You might want to use \override Stem #'no-stem-extend = ##t as well, since by default notes with ledger lines get their stems extending to the middle staff line (and maybe you do not want that with your shortened stems). In my case, this is not necessary since the shortening is just to avoid collision with another chord; see attached image. Werner inline: shortened-stem.png___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: shortening a stem
(define ((stem-reduce amount) grob) (let ((l (ly:grob-property grob 'length))) (/ (- l amount) l))) \override Stem.length-fraction = #(stem-reduce 1) This is probably slightly absurd (and untested to boot), but it would likely work. Thanks for this, too! Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
page footer and (on-page ...) in combination with \label
Hello list, I have lilypond file containing several\bookpart entries. For one specific page I have to remove the footer completely. I set \label #'emptypage and oddFooterMarkup = \markup { \fill-line { \on-the-fly #last-page \fromproperty #'header:tagline } \fill-line { \on-the-fly #print-page-number-check-first \line { My document – \fromproperty #'page:page-number-string } } } evenFooterMarkup = \oddFooterMarkup I found (on-page ...) but I don't know how I get the page number where \label is placed. \on-the-fly #(on-page \page-ref #'emptypage) does not work. Actually, I need something like #(not-on-page ...), but this can be defined in analogy to (on-page ...) in ly/titling.ly. Any ideas/hints in the right direction are highly welcome! Regards, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Am 2013-01-20 um 12:45 schrieb Henning Hraban Ramm: The snippet buffers are just numbered, so if you insert one before the first, all others will get re-rendered, too. I guess we could change that behaviour, e.g. use keywords or some UID per buffer. I’ll discuss that with Aditya (author of t-filter). Ok, it’s as simple as adding [name=something] to \startlilypond, e.g. [name=\currentcomponent]; it’s currently not possible to set that as default or to insert a different numbering mechanism. I’m working on a sample to use single system inclusion instead of whole page inclusion, will document that at http://wiki.contextgarden.net/LilyPond Greetlings, Hraban --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Requesting an addition
I'm not sure if this the right place to ask this, but I'd be willing to send somebody some money via Paypal to add the so-called Haydn turn (reversed turn with vertical slash) to Lilypond. There were a couple of posts from 2009 on doing this, but in the current stable version of Lilypond the resulting ornaments are off-center from their notes. Besides, Haydn is a major composer, and this ornament is all over his keyboard works, so I think it should be an official part of Lilypond. I have no idea how much work this would take and what the going rate for a feature like this is. Thanks, Michael Rivers michaeljriv...@gmail.com -- View this message in context: http://lilypond.1069038.n5.nabble.com/Requesting-an-addition-tp139819.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Dear Henning, off course: lilypond is installed. It is installed in ~/lilypond/ How can I tell texec where to find it? 2013/1/20 Henning Hraban Ramm hra...@fiee.net Am 2013-01-20 um 22:49 schrieb Stefan Thomas: t-filter: command : lilypond -dbackend=eps -dinclude-eps-fonts -dno-gs- load-fonts -olilytemp/contexttest-temp-lilypond-0 lilytemp/contexttest-temp- lilypond-0.tmp t-filter: state : t-filter: cached output file lilytemp/contexttest-temp-lilypond-0.pdf m issing. Rerunning filter t-filter: file lilytemp/contexttest-temp-lilypond-0.pdf cannot be found t-filter: current filter : lilypond t-filter: base file : contexttest-temp-lilypond-0 t-filter: input file : lilytemp/contexttest-temp-lilypond-0.tmp t-filter: output file : lilytemp/contexttest-temp-lilypond-0.pdf There's no output file created, probably LilyPond isn’t installed or not in the PATH (the call after : command : must be able to work). Otherwise you’d get LilyPond’s status messages. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Am 2013-01-20 um 23:02 schrieb Henning Hraban Ramm: I’m working on a sample to use single system inclusion instead of whole page inclusion, will document that at http://wiki.contextgarden.net/LilyPond Ok, there’s now an example how to include all pages of a multi-page score. It uses a bit of Lua code, so works only with ConTeXt MkIV (based on LuaTeX). I thought LilyPond used to write single EPS for every line when using lilypond-book. (I’d like to do the page breaking with TeX.) Do I mis-remember? I couldn’t find an appropriate command line switch. Greetlings, Hraban --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: page footer and (on-page ...) in combination with \label
On Sun, Jan 20, 2013 at 1:53 PM, Marc Hohl m...@hohlart.de wrote: For one specific page I have to remove the footer completely. I set \label #'emptypage Can the page without a footer be in a book-part of its own? That would be too simple so I'm assuming not. Below is adapted from some help I got a while back to move the hymn number to the outside of the page depending if the page is even or odd. In this case it blanks the footer when the current page is the same as the page number for the label (you can't reuse the same label on multiple pages). \version 2.17.10 #(define-markup-command (empty-with-label layout props sym markup) (symbol? markup?) (let* ((stencil (interpret-markup layout props markup)) (x-ext (ly:stencil-extent stencil X)) (y-ext (ly:stencil-extent stencil Y))) (ly:make-stencil `(delay-stencil-evaluation ,(delay (ly:stencil-expr (let* ((curr-page (chain-assoc-get 'page:page-number props -1)) (table (ly:output-def-lookup layout 'label-page-table)) (page-number (if (list? table) (assoc-get sym table) #f))) (if (= page-number curr-page) empty-stencil (interpret-markup layout props markup)) x-ext y-ext))) \paper { oddFooterMarkup = \markup {\empty-with-label #'emptypage \fill-line {footer} } evenFooterMarkup = #oddFooterMarkup } \bookpart { \markup A \pageBreak \markup B \pageBreak \label #'emptypage \markup C \pageBreak \markup D \pageBreak } -Jay ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Requesting an addition
I'm not sure if this the right place to ask this, but I'd be willing to send somebody some money via Paypal to add the so-called Haydn turn (reversed turn with vertical slash) to Lilypond. Please provide a scan (or a link to it) of such a symbol which you consider as good-looking.. I have no idea how much work this would take and what the going rate for a feature like this is. If an existing symbol can be reused, implementing this is rather straightforward, and a few hours of work will do. A design from scratch probably needs three or four times as long. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: context and lilypond
Dear Henning, I've tried to add the path to the filter-command with filtercommand={/home/stefan/lilypond/usr/bin/lilypond -dbackend=eps -dinclude-eps-fonts -dno-gs-load-fonts -olilytemp/\externalfilterbasefile \externalfilterinputfile}] but it doesn't work! Any ideas? 2013/1/20 Henning Hraban Ramm hra...@fiee.net filtercommand ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user