Forcing Litlypond-book
Dear members, I have a group of .ly files that I need to update because o some changes I have made on a layout file which is included in some files of my document (not all of them). Executing lilypond-book gives no updating, because the files themselves have not been changed. Is there a way to force Lilypond-book processing all the files without having to clear my folder of all the generated files all the times? thank you, A -- View this message in context: http://lilypond.1069038.n5.nabble.com/Forcing-Litlypond-book-tp168763.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: Forcing Litlypond-book
Hello A, touch filename will change the modification date (part of so-called metadata) and lilypond-book will handle it alright. Otherwise, tools such as make and make can handle dependencies as you need. JM Le 17 nov. 2014 à 09:17:37, Jayaratna jayara...@gmail.com a écrit : Dear members, I have a group of .ly files that I need to update because o some changes I have made on a layout file which is included in some files of my document (not all of them). Executing lilypond-book gives no updating, because the files themselves have not been changed. Is there a way to force Lilypond-book processing all the files without having to clear my folder of all the generated files all the times? thank you, A -- View this message in context: http://lilypond.1069038.n5.nabble.com/Forcing-Litlypond-book-tp168763.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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Forcing Litlypond-book
Sorry : make and cmake… Le 17 nov. 2014 à 10:47:39, Jacques Menu imj-muz...@bluewin.ch a écrit : Hello A, touch filename will change the modification date (part of so-called metadata) and lilypond-book will handle it alright. Otherwise, tools such as make and make can handle dependencies as you need. JM Le 17 nov. 2014 à 09:17:37, Jayaratna jayara...@gmail.com a écrit : Dear members, I have a group of .ly files that I need to update because o some changes I have made on a layout file which is included in some files of my document (not all of them). Executing lilypond-book gives no updating, because the files themselves have not been changed. Is there a way to force Lilypond-book processing all the files without having to clear my folder of all the generated files all the times? thank you, A -- View this message in context: http://lilypond.1069038.n5.nabble.com/Forcing-Litlypond-book-tp168763.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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: would 'gn' for G-natural be useful in \language english ?
On Sun, Nov 16, 2014 at 11:31 PM, Keith OHara k-ohara5...@oco.net wrote: Dear list, In English, pronouncing the 'natural' in 'C-natural' is required if the note is out-of-key. LilyPond does not consider the key when reading note-input, but could easily accept 'cn' as a name for the pitch C-natural. There was a feature request on the bug-list, that LilyPond do so. Among those responding to the proposal, the Americans were in favor, while the British Germans Dutch and Flemish opposed. I have started using English note-entry with 'cn', etc., for naturals when I would say natural and I find it helpful. If anyone else will use it, I'll push for it and put it in LilyPond. Hmm. . . . I am an American and I am opposed, for the reasons given in the previous discussion(s). My 2 cents. Thanks to all for your help and input, Ralph -- Ralph Palmer Brattleboro, VT USA palmer.r.vio...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Replace slur events with skip
I tried to change the tiedNoteToSkip procedure to also skip slurs. For some reason, it does not seem to work the same way. It skips the first note in a 3 note slur, but not the second. Here is the script: \version 2.19.15 #(define (name-of music) (ly:music-property music 'name)) tiedNoteToSkip = #(define-music-function (parser location music) (ly:music?) (let ((prev-was-tie? #f)) (map-some-music (lambda (evt) (cond ((memq (name-of evt) '(EventChord NoteEvent)) (let ((old-flag prev-was-tie?)) (set! prev-was-tie? #f) (let ((res (music-filter (lambda(x) (or (not (or (eq? (name-of x) 'SlurEvent) (eq? (name-of x) 'TieEvent))) (begin (set! prev-was-tie? #t) #f))) evt))) (if old-flag (skip-of-length evt) res (else (ly:music-property music 'duration #f music))) music = \relative c' {e4 e8 ( d16 e16) g2 g g16 (c16 a8) g4 c4 ~c~ c} mus = \tiedNoteToSkip \music \score { \new Staff { \new Voice { \music } \context NoteNames { \mus } } \layout { \context { \Voice %\consists \SarigamaEngraver \remove Note_heads_engraver \remove Rest_engraver \consists Completion_heads_engraver \consists Completion_rest_engraver } } } [image: Inline image 1] ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Forcing Litlypond-book
Thank you, Jacques, touch is enough for my needs at present. Andrea -- View this message in context: http://lilypond.1069038.n5.nabble.com/Forcing-Lilypond-book-tp168763p168768.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: Replace slur events with skip
Hi Jay, On Mon, Nov 17, 2014 at 6:37 AM, Jay Vara j...@diljun.com wrote: I tried to change the tiedNoteToSkip procedure to also skip slurs. For some reason, it does not seem to work the same way. It skips the first note in a 3 note slur, but not the second. No time to look at this in depth, but my first guess is that you need to find a way to remember that you still have a slur between the event that creates it and the event that terminates it. David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Replace slur events with skip
On Mon, Nov 17, 2014 at 7:06 AM, David Nalesnik david.nales...@gmail.com wrote: Hi Jay, On Mon, Nov 17, 2014 at 6:37 AM, Jay Vara j...@diljun.com wrote: I tried to change the tiedNoteToSkip procedure to also skip slurs. For some reason, it does not seem to work the same way. It skips the first note in a 3 note slur, but not the second. No time to look at this in depth, but my first guess is that you need to find a way to remember that you still have a slur between the event that creates it and the event that terminates it. To see how the music expression is different for slurs versus ties, compare the output of the following: \displayMusic { c''4( b' c'') } \displayMusic { c''4~ c''~ c'' } You'll see that for slurs, there is a SlurEvent with span-direction which begins and ends the slur, but no evidence of a slur in between. Ties are from note-to-note, and apparently there was thought to be no need of both initiating and terminating events. How you'd ever get this to work with tieWaitForNote set to #t, I couldn't say. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Replace slur events with skip
On Mon, Nov 17, 2014 at 7:35 AM, David Nalesnik david.nales...@gmail.com wrote: Ties are from note-to-note, and apparently there was thought to be no need of both initiating and terminating events. It does make sense--didn't mean to suggest otherwise! DN ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why does removing Bar_engraver also removes clef?
On 14/11/2014 17:14, Marc Hohl wrote: Am 13.11.2014 um 23:29 schrieb Gez: I'd be really grateful if someone can also point me to where the documentation explains why removing the the Bar_engraver also removes the Clefs. I don't think that this is documented in the docs, but in the sources: In lily/clef-engraver.cc: 85/** 86 Generate a clef at the start of a measure. (when you see a Bar, 87 ie. a breakpoint) 88*/ 89void 90Clef_engraver::acknowledge_bar_line (Grob_info info) 91{ 92 Item *item = info.item (); 93 if (item scm_is_string (get_property (clefGlyph))) 94create_clef (); 95} If there is not bar line to be acknowledged, the clef will not be printed. I don't know whether this is the desired behaviour as there are cases where you need the clef and line breaks, but no bar lines. HTH a bit, Thanks, Marc - that does help. Even if I'd thought to look in the sources I wouldn't have really grasped what that meant. For me, for this purpose, it isn't the desired behaviour. I wonder if there's a good reason for it? Anyway, at least now on the email list there's a note of the behaviour if anyone searches for it in future, So, to summarise - to remove bar lines and have automatic line breaking but retain the clef at the new line you can't use \context {Staff \remove Bar_engraver} (.e.g in layout, for a group of scores) - instead, you need to use \override Staff.BarLine.stencil = ##f which has to go in each score, but for batch overriding you can add the override to the score using a variable, which can of course be used for other purposes as well. --- \version 2.18.0 thistest = { \override Staff.BarLine.stencil = ##f } \score { \relative c'{ \thistest \repeat unfold 40 { c1 } } \header { piece = Using variable override stencil keeps clef engraved with automatic line breaks } } -- HTH someone! Gez ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: would 'gn' for G-natural be useful in \language english ?
American here, the cn is a waste of effort and more liable to muddle things up. regards, Shane On Mon, Nov 17, 2014 at 7:36 AM, Ralph Palmer palmer.r.vio...@gmail.com wrote: On Sun, Nov 16, 2014 at 11:31 PM, Keith OHara k-ohara5...@oco.net wrote: Dear list, In English, pronouncing the 'natural' in 'C-natural' is required if the note is out-of-key. LilyPond does not consider the key when reading note-input, but could easily accept 'cn' as a name for the pitch C-natural. There was a feature request on the bug-list, that LilyPond do so. Among those responding to the proposal, the Americans were in favor, while the British Germans Dutch and Flemish opposed. I have started using English note-entry with 'cn', etc., for naturals when I would say natural and I find it helpful. If anyone else will use it, I'll push for it and put it in LilyPond. Hmm. . . . I am an American and I am opposed, for the reasons given in the previous discussion(s). My 2 cents. Thanks to all for your help and input, Ralph -- Ralph Palmer Brattleboro, VT USA palmer.r.vio...@gmail.com ___ 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: Beaming on the quarter note
Peter, This was an excellent suggestion. I now have a BeamingOverrides variable in my standard header which I insert in the \score [here] of my LY file. Works like magic. As I almost always write choral music where delineating visually beats is an aid in singing (one's average Chancel Choir is not composed of professional, trained singers), I love being able to do it this way. Once again Lilypond rocks. Thank you. On 11/16/2014 08:23 PM, pe...@chubb.wattle.id.au wrote: You can do it once for each time signature you're going to use. \version 2.18.2 \score { % Beam 4/4 at crotchets \overrideTimeSignatureSettings 4/4 1/4 #'(1 1 1 1) #'() % Beam 3/4 at crotchets \overrideTimeSignatureSettings 3/4 1/4 #'(1 1 1) #'() \new Staff { \relative c' { \time 4/4 \repeat unfold 8 b8 | \time 3/4 \repeat unfold 6 b8 | \time 2/4 \repeat unfold 4 b8 | \time 5/4 \repeat unfold 10 b8 | } } } -- “Happiness is the meaning and the purpose of life, the whole aim and end of human existence.” ― Aristotle Guy Stalnaker jimmyg...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
bracket for semitone
Dear community, I would like to draw a bracket for a semitone, like You can see it at http://www.musiklehre.at/Bilder/b0048.gif How can this be done in lilypond? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: bracket for semitone
2014-11-17 21:34 GMT+01:00 Stefan Thomas kontrapunktste...@gmail.com: Dear community, I would like to draw a bracket for a semitone, like You can see it at http://www.musiklehre.at/Bilder/b0048.gif How can this be done in lilypond? Hi, maybe you can adept this older code: \version 2.16.2 #(define ((elbowed-glissando coords) grob) (define (pair-to-list pair) (list (car pair) (cdr pair))) (define (normalize-coords goods x y) (map (lambda (coord) (cons (* x (car coord)) (* y (cdr coord goods)) (define (my-c-p-s points thick) (make-connected-path-stencil points thick 1.0 1.0 #f #f)) ; outer let to trigger suicide (let ((sten (ly:line-spanner::print grob))) (if (grob::is-live? grob) (let* ((thick (ly:grob-property grob 'thickness 0.1)) (xex (ly:stencil-extent sten X)) (lenx (interval-length xex)) (yex (ly:stencil-extent sten Y)) (xtrans (car xex)) (ytrans (car yex)) (uplist (map pair-to-list (normalize-coords coords lenx 3 (ly:stencil-translate (my-c-p-s uplist thick) (cons xtrans ytrans))) '( #(define semi-tone-gliss (elbowed-glissando '((0.5 . -1.0) (1.0 . 0.15 #(define tone-gliss (elbowed-glissando '((0 . -0.5) (1.0 . -0.35) (1.0 . 0.16 #(define three-semi-tone-gliss (elbowed-glissando '((0 . -0.5) (0.5 . -1.0) (1.0 . -0.35) (1.0 . 0.15 glissandoSettings = { \override Glissando #'Y-offset = #-1 \override Glissando #'thickness = #0.2 \override Glissando #'bound-details = #'((left(padding . 0.2)) (right (end-on-accidental . #f) (padding . 0.2))) } revertGlissando = { \revert Glissando #'Y-offset \revert Glissando #'thickness \revert Glissando #'bound-details } semiTone = #(define-event-function (parser location)() #{ \tweak #'stencil #semi-tone-gliss \glissando #}) tone = #(define-event-function (parser location)() #{ \tweak #'stencil #tone-gliss \glissando #}) threeSemiTone = #(define-event-function (parser location)() #{ \tweak #'stencil #three-semi-tone-gliss \glissando #}) \relative c' { \override Staff.TimeSignature #'stencil = ##f \override Staff.BarLine #'stencil = ##f \glissandoSettings c1 \tone d \semiTone ees \tone f \tone g \semiTone as \threeSemiTone b! \semiTone c % \revertGlissando % c,\glissando % c'' \revert Staff.BarLine #'stencil \bar |. } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: bracket for semitone
Hi, Am 17.11.2014 um 22:07 schrieb Thomas Morley: 2014-11-17 21:34 GMT+01:00 Stefan Thomas kontrapunktste...@gmail.com: Dear community, I would like to draw a bracket for a semitone, like You can see it at http://www.musiklehre.at/Bilder/b0048.gif How can this be done in lilypond? Hi, maybe you can adept this older code: I once pushed your nice code to openlilylib: https://github.com/openlilylib/openlilylib/blob/master/notation-snippets/interval-brackets/example.ly It can definitely be helpful here with some adaptions. Thanks again, Harm! Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics Chords sheet
2014-11-17 0:29 GMT+01:00 pe...@chubb.wattle.id.au: Peter == Peter Crighton petecrigh...@gmail.com writes: Peter Hello all, I’m in the process of creating sheets that only Peter contain lyrics and correctly aligned chords. (This belongs to Peter other sheets with music in them, otherwise LilyPond probably Peter wouldn’t be the ideal choice for this. But I want to do these Peter all together in LilyPond.) I have two approaches so far, and Peter none of them are ideal … You can use explicit durations on the lyrics and the chords. Something like: accomp=\chords { c4 c c c:7 f f c c } words=\lyricmode { Twinkle2 twinkle little star } \score { \context ChordNames \accomp \context Lyrics \words \layout { \context { \ChordNames chordChanges = ##t } } } Hi Peter, using \lyricmode gives me very badly aligned lyrics with differing amounts of space between the words. After all I want them to be printed as continuous text, so a markup would be my best choice, I guess. But thanks for the suggestion! -- Peter Crighton | Musician Music Engraver based in Mainz, Germany http://www.petercrighton.de ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics Chords sheet
2014-11-17 23:27 GMT+01:00 Peter Crighton petecrigh...@gmail.com: 2014-11-17 0:29 GMT+01:00 pe...@chubb.wattle.id.au: Peter == Peter Crighton petecrigh...@gmail.com writes: Peter Hello all, I’m in the process of creating sheets that only Peter contain lyrics and correctly aligned chords. (This belongs to Peter other sheets with music in them, otherwise LilyPond probably Peter wouldn’t be the ideal choice for this. But I want to do these Peter all together in LilyPond.) I have two approaches so far, and Peter none of them are ideal … You can use explicit durations on the lyrics and the chords. Something like: accomp=\chords { c4 c c c:7 f f c c } words=\lyricmode { Twinkle2 twinkle little star } \score { \context ChordNames \accomp \context Lyrics \words \layout { \context { \ChordNames chordChanges = ##t } } } Hi Peter, using \lyricmode gives me very badly aligned lyrics with differing amounts of space between the words. After all I want them to be printed as continuous text, so a markup would be my best choice, I guess. But thanks for the suggestion! -- Peter Crighton | Musician Music Engraver based in Mainz, Germany http://www.petercrighton.de ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Not really what you wish, less typing, though: \version 2.19.13 addMarkup = #(define-music-function (parser location nmbr mrkp)((number? 0) markup?) #{ \once \override ChordName.before-line-breaking = #(lambda (grob) (ly:grob-set-property! grob 'text #{ \markup \override #'(direction . -1) \dir-column { $(ly:grob-property grob 'text) \translate #(cons nmbr 0) \override #'(font-family . serif) #mrkp } #})) #}) \new ChordNames \chordmode { \override ChordName.extra-spacing-width = #'(0 . -0.1) \addMarkup 5 Wir stecken doch al d \addMarkup le in einem K fis:m/cis \addMarkup artenhaus, b:m d:/a \break \addMarkup 5 das sich Leben nen g \addMarkup nt und schau’n zum F b:7/fis \addMarkup enster raus. e:m } \paper { indent = 0 ragged-right = ##t } \layout { \context { \Score \remove Bar_number_engraver } } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Nalesnik's Roman number analysis code
Mr. Nalesnik: thank you for making public your scheme code for writing Roman Numeral/figured bass analysis: http://comments.gmane.org/gmane.comp.gnu.lilypond.general/70354 This code has been invaluable to me for writing examples for a music theory course. I have one small issue, and that is, when I want to put three Arabic numerals that are to be in one vertical line after a roman number, the numbers are not rendered this way, as demo-ed by my attached sample lilypond file. Yes, I know that the figured bass 6 5 3 is usually abbreviated as 6 5, but for the purposes of instruction, I find it desirable to sometimes have all three Arabic numbers. Is there a way that your code can be expanded to accommodate three Arabic numbers in one vertical column? I see that your above post is dated March of 2012, and so perhaps, you have some more recent code that has been made available? Thank you again for your code. Ivan. P.S. For those you would like to run my sample lilypond file, you need to download the rN.ly file from the above link, edit out everything after ... %%% EXAMPLE %%% ... and include this file in the same directory. \include english.ly \include rN.ly % Used as is, except delete everything after EXAMPLE \score { \new Staff = f_major \with { \remove Time_signature_engraver } { \time 4/4 \key f \major \clef treble \voiceOne { c'' e' g' bf'1 } } \addlyrics{ \markup \rN { V 6 5 3 } } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Nalesnik's Roman number analysis code
Hi Ivan, On Mon, Nov 17, 2014 at 5:38 PM, ivan.k.kuznet...@gmail.com wrote: Mr. Nalesnik: thank you for making public your scheme code for writing Roman Numeral/figured bass analysis: http://comments.gmane.org/gmane.comp.gnu.lilypond.general/70354 This code has been invaluable to me for writing examples for a music theory course. Glad to hear it! Is there a way that your code can be expanded to accommodate three Arabic numbers in one vertical column? I see that your above post is dated March of 2012, and so perhaps, you have some more recent code that has been made available? Yes--I'm pretty sure I got it to work with larger columns. I'll have to search around for that version of the file. I'll get back to you when I do. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Nalesnik's Roman number analysis code
Thank you; I appreciate that. On Mon, Nov 17, 2014 at 6:04 PM, David Nalesnik david.nales...@gmail.com wrote: Yes--I'm pretty sure I got it to work with larger columns. I'll have to search around for that version of the file. I'll get back to you when I do. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user