Re: scheme problem: colored background, layers
Hi, 2014-11-29 1:15 GMT+01:00 Big Noise benbigno...@gmx.de: Here is my problem: Now the staff lines and the yellow rectangle are located in the same layer, so it's not possible to place the blue cluster between them. Is there a way to make the scheme function put the staff lines (StaffSymbol) and the yellow rectangle into different layers? How about changing the layer value from -10 to -2 ? bgColor = #(define-music-function (parser location y-lower y-upper color) (number? number? string?) #{ \stopStaff \override Staff.StaffSymbol.stencil = $(lambda (grob) (let* ((staff (ly:staff-symbol::print grob)) (X-ext (ly:stencil-extent staff X)) (Y-ext (ly:stencil-extent staff Y))) (set! Y-ext (cons (- (car Y-ext) y-lower) (+ (cdr Y-ext) y-upper))) ;; change layer's value to -2 (ly:grob-set-property! grob 'layer -2) (ly:stencil-add (ly:make-stencil (list 'color (eval-string color) (ly:stencil-expr (ly:round-filled-box X-ext Y-ext 0)) X-ext Y-ext)) staff))) \startStaff #}) HTH Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scheme problem: colored background, layers
Salut Pierre, thanks for your reply. Unfortunately, changing the layer value from -10 to -2 doesn't help. The problem is that the function places the staff lines and the colored rectangle into the *same* layer, whereas I need to leave the staff lines in layer 0 and put the rectangle into layer -2 (or even less). This would allow me to put other clusters *between* them like in the first example. I have already found another interesting snippet: http://lsr.di.unimi.it/LSR/Item?id=953 But in that case, I would have to find the dimensions for the rectangle by trial-and-error, whereas overriding the StaffSymbol seems to be a very easy way... Cordialement, Klaus Blum Am 29.11.2014 um 10:05 schrieb Pierre Perol-Schneider: Hi, 2014-11-29 1:15 GMT+01:00 Big Noise benbigno...@gmx.de mailto:benbigno...@gmx.de: Here is my problem: Now the staff lines and the yellow rectangle are located in the same layer, so it's not possible to place the blue cluster between them. Is there a way to make the scheme function put the staff lines (StaffSymbol) and the yellow rectangle into different layers? How about changing the layer value from -10 to -2 ? bgColor = #(define-music-function (parser location y-lower y-upper color) (number? number? string?) #{ \stopStaff \override Staff.StaffSymbol.stencil = $(lambda (grob) (let* ((staff (ly:staff-symbol::print grob)) (X-ext (ly:stencil-extent staff X)) (Y-ext (ly:stencil-extent staff Y))) (set! Y-ext (cons (- (car Y-ext) y-lower) (+ (cdr Y-ext) y-upper))) ;; change layer's value to -2 (ly:grob-set-property! grob 'layer -2) (ly:stencil-add (ly:make-stencil (list 'color (eval-string color) (ly:stencil-expr (ly:round-filled-box X-ext Y-ext 0)) X-ext Y-ext)) staff))) \startStaff #}) HTH Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scheme problem: colored background, layers
Hi Klaus, 2014-11-29 10:30 GMT+01:00 Big Noise benbigno...@gmx.de: thanks for your reply. Unfortunately, changing the layer value from -10 to -2 doesn't help. The problem is that the function places the staff lines and the colored rectangle into the *same* layer, whereas I need to leave the staff lines in layer 0 and put the rectangle into layer -2 (or even less). This would allow me to put other clusters *between* them like in the first example. Right ! Now I see the problem, 'seems that I've replied without thinking... I have already found another interesting snippet: http://lsr.di.unimi.it/LSR/Item?id=953 But in that case, I would have to find the dimensions for the rectangle by trial-and-error, whereas overriding the StaffSymbol seems to be a very easy way... Actually I've made this one (which is more or less a draft). I'll try to see what I can do with it. No promise though :( Cheers, Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Why does \skip extend an extender
In the following snippet: music = \relative b' { c4 d e f f g a b c,1 } Lyrics = \lyricmode { c d e __ _ _ \skip 1 \skip 1 \skip 1 C } \score { \new Staff \music \addlyrics \Lyrics \layout { } } I want the three skips to skip past the notes g a b. That is, I want the singing of “e” to terminate with the 2nd “f”. But for some reason the extender is extended through the notes “g a b”. How can I fix this? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Beaming and grace notes
Thank you both for your relies. Keith, your second suggestion is what I need, if I could designate a zero length note. Requirements: * An actual eighth note * Grace notes need to attached with a beam to the eighth note * Grace notes add no duration to the measure I've attached a picture of the measure. It has a lot of challenges in it for me. Knute Snortum (via Gmail) On Thu, Nov 27, 2014 at 2:17 PM, Thomas Morley thomasmorle...@gmail.com wrote: 2014-11-27 23:08 GMT+01:00 Keith OHara k-ohara5...@oco.net: Knute Snortum ksnortum at gmail.com writes: I want to start a run of grace notes with a note with a normal head. ...but with the c' beamed to the d'. If these notes all happen before the beat, then \relative c' { \grace { \tweak #'font-size #0 c32 d e f g a b } c8 } This looks like it might be a situation where the first note is on the beat. In these cases, even though we call them 'grace-notes' LilyPonds \grace is not what I want to use. I just make the notes small and grace-style and tell LilyPond their actual (as opposed to printed) duration so she understands how I want them to fit in the music. \relative c' { c16[ \teeny \override Stem #'no-stem-extend = ##t \override Stem #'length-fraction = #0.7 d32*1/3 e f g a b] \normalsize \revert Stem #'no-stem-extend \revert Stem #'length-fraction c8 r4 r2 } Maybe http://lsr.di.unimi.it/LSR/Item?id=193 is of some help as well. Cheers, Harm ___ 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: Why does \skip extend an extender
- Original Message - From: Patrick or Cynthia Karl pck...@me.com To: lilypond-user@gnu.org Sent: Saturday, November 29, 2014 3:41 PM Subject: Why does \skip extend an extender In the following snippet: music = \relative b' { c4 d e f f g a b c,1 } Lyrics = \lyricmode { c d e __ _ _ \skip 1 \skip 1 \skip 1 C } \score { \new Staff \music \addlyrics \Lyrics \layout { } } I want the three skips to skip past the notes g a b. That is, I want the singing of “e” to terminate with the 2nd “f”. But for some reason the extender is extended through the notes “g a b”. How can I fix this? Clearly the extender continues since the expectation is that the singer has to do something with these notes, and continuing to sing e is the only option. If the extender ended on the 2nd f, I would have no idea what is intended for the next 3 notes. It would be very confusing. However, if you want to do this, replace \skip with . -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: using \markup to display short rhythms
I think it's { \markup { \score { } } } you're looking for. Yes. I know of this. Perhaps is there a simpler way than this?: \version 2.18.2 stencilF = { \override Score.BarLine.stencil = ##f \override Staff.Clef.stencil = ##f \override Staff.TimeSignature.stencil = ##f \override Score.BarLine.stencil = ##f \stopStaff } \markup { blah \score{ \new Voice { \stencilF \repeat unfold 4 { c''8} } \layout {indent = 0\in} } blah } Thanks. IC, Josh On Sat, Nov 29, 2014 at 12:41 AM, Urs Liska u...@openlilylib.org wrote: I think it's { \markup { \score { } } } you're looking for. HTH Urs Am 29. November 2014 05:02:41 MEZ, schrieb Joshua Nichols josh.d.nich...@gmail.com: Has anyone used \markup (or know of a way to use \markup) to create beamed rhythms? I imagine being able to do this: \markup { \note #8[ 8 8 8] #UP } I checked a cursory search for it on the interwebs. Alas, no immediate luck. Thanks, Josh -- 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 and grace notes
On Sat, 29 Nov 2014 07:44:39 -0800, Knute Snortum ksnor...@gmail.com wrote: Thank you both for your relies. Keith, your second suggestion is what I need, if I could designate a zero length note. Requirements: * An actual eighth note * Grace notes need to attached with a beam to the eighth note * Grace notes add no duration to the measure I've attached a picture of the measure. It has a lot of challenges in it for me. These small notes are not what LilyPond's \grace was designed for, but more like the small-note tuplet that Harm pointed out. We want these note to be spaced across the beat, but more quickly than their visible duration. LilyPond will do most of the beaming you want if you tell her how the music splits into two voices at the E-flat. Ignoring the fact that there are two staves for the moment, try something like this: \version 2.18.2 { \key des\major \clef bass \time 2/4 aes32 bes aes ges {\voiceTwo ees8 ~ ees4 |} \new Voice { \voiceOne \scaleDurations 4/14 { ees32[ \teeny \override Stem #'no-stem-extend = ##t \override Stem #'length-fraction = #0.7 ges aes bes des' ges, bes, c des f] ges[ bes c' des'] \normalsize \revert Stem #'no-stem-extend \revert Stem #'length-fraction } f'16- des' c32 des c bes,| } } We should probably put a Debussy example in the user manual (if he's in public domain in europe by now) and also make a shorthand for \graceStyleOn \graceStyleOff because often we want the style but do not want LilyPond's \grace timing. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Beaming and grace notes
Am 29. November 2014 19:31:22 MEZ, schrieb Keith OHara k-ohara5...@oco.net: On Sat, 29 Nov 2014 07:44:39 -0800, Knute Snortum ksnor...@gmail.com wrote: Thank you both for your relies. Keith, your second suggestion is what I need, if I could designate a zero length note. Requirements: * An actual eighth note * Grace notes need to attached with a beam to the eighth note * Grace notes add no duration to the measure I've attached a picture of the measure. It has a lot of challenges in it for me. These small notes are not what LilyPond's \grace was designed for, but more like the small-note tuplet that Harm pointed out. We want these note to be spaced across the beat, but more quickly than their visible duration. LilyPond will do most of the beaming you want if you tell her how the music splits into two voices at the E-flat. Ignoring the fact that there are two staves for the moment, try something like this: \version 2.18.2 { \key des\major \clef bass \time 2/4 aes32 bes aes ges {\voiceTwo ees8 ~ ees4 |} \new Voice { \voiceOne \scaleDurations 4/14 { ees32[ \teeny \override Stem #'no-stem-extend = ##t \override Stem #'length-fraction = #0.7 ges aes bes des' ges, bes, c des f] ges[ bes c' des'] \normalsize \revert Stem #'no-stem-extend \revert Stem #'length-fraction } f'16- des' c32 des c bes,| } } We should probably put a Debussy example in the user manual (if he's in public domain in europe by now) He is so since 1988. and also make a shorthand for \graceStyleOn \graceStyleOff because often we want the style but do not want LilyPond's \grace timing. ___ 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 and grace notes
Ah, I see. Use two voices so one is the eighth note and the other is the grace notes with their duration divided over the eighth. This also gets me the slur. Thank you. Knute Snortum (via Gmail) On Sat, Nov 29, 2014 at 10:31 AM, Keith OHara k-ohara5...@oco.net wrote: On Sat, 29 Nov 2014 07:44:39 -0800, Knute Snortum ksnor...@gmail.com wrote: Thank you both for your relies. Keith, your second suggestion is what I need, if I could designate a zero length note. Requirements: * An actual eighth note * Grace notes need to attached with a beam to the eighth note * Grace notes add no duration to the measure I've attached a picture of the measure. It has a lot of challenges in it for me. These small notes are not what LilyPond's \grace was designed for, but more like the small-note tuplet that Harm pointed out. We want these note to be spaced across the beat, but more quickly than their visible duration. LilyPond will do most of the beaming you want if you tell her how the music splits into two voices at the E-flat. Ignoring the fact that there are two staves for the moment, try something like this: \version 2.18.2 { \key des\major \clef bass \time 2/4 aes32 bes aes ges {\voiceTwo ees8 ~ ees4 |} \new Voice { \voiceOne \scaleDurations 4/14 { ees32[ \teeny \override Stem #'no-stem-extend = ##t \override Stem #'length-fraction = #0.7 ges aes bes des' ges, bes, c des f] ges[ bes c' des'] \normalsize \revert Stem #'no-stem-extend \revert Stem #'length-fraction } f'16- des' c32 des c bes,| } } We should probably put a Debussy example in the user manual (if he's in public domain in europe by now) and also make a shorthand for \graceStyleOn \graceStyleOff because often we want the style but do not want LilyPond's \grace timing. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
hairpin Y-offset
I want to place a hairpin inside the staff. I have found that I can move hairpins vertically with: \override Hairpin.Y-offset = #'n ...but this will only allow me to move them farther from the staff and will not allow them to move into the staff. I have not managed to find an example of this. Help? David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hairpin Y-offset
On Nov 29, 2014, at 9:30 PM, bobr...@centrum.is wrote: I want to place a hairpin inside the staff. I have found that I can move hairpins vertically with: \override Hairpin.Y-offset = #'n ...but this will only allow me to move them farther from the staff and will not allow them to move into the staff. I have not managed to find an example of this. Help? David \relative c''’ { % stops outside staff placement \override DynamicLineSpanner.outside-staff-priority = ##f % also stops outside staff placement in a different interface \override DynamicLineSpanner.staff-padding = ##f a\ b c d\! } %Cheers, %MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hairpin Y-offset
There is another override for getting widgets to lay over the staff. Can't recall what it is at the moment. It might be this: \override Script #'outside-staff-priority = ##f regards, Shane On Sat, Nov 29, 2014 at 2:30 PM, bobr...@centrum.is bobr...@centrum.is wrote: I want to place a hairpin inside the staff. I have found that I can move hairpins vertically with: \override Hairpin.Y-offset = #'n ...but this will only allow me to move them farther from the staff and will not allow them to move into the staff. I have not managed to find an example of this. Help? David ___ 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: hairpin Y-offset
Less elegant than Mike's, here's a one shot tweak : \version 2.18.2 \relative c'' { e4-\tweak extra-offset #'(0 . 3)\ e2. c1\! } Cheers, Pierre 2014-11-29 20:34 GMT+01:00 Mike Solomon m...@mikesolomon.org: On Nov 29, 2014, at 9:30 PM, bobr...@centrum.is wrote: I want to place a hairpin inside the staff. I have found that I can move hairpins vertically with: \override Hairpin.Y-offset = #'n ...but this will only allow me to move them farther from the staff and will not allow them to move into the staff. I have not managed to find an example of this. Help? David \relative c''’ { % stops outside staff placement \override DynamicLineSpanner.outside-staff-priority = ##f % also stops outside staff placement in a different interface \override DynamicLineSpanner.staff-padding = ##f a\ b c d\! } %Cheers, %MS ___ 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
Problems with Completion_heads_engraver
For some reason the Completion heads engraver does not seem to be working in some situations. In some cases it swallows up a note (although timing wise it seems ok) and sometimes it produces some weird looking notes. Here is one example I was able to recreate in a small example: [image: Inline image 1] Here is the code: %%% %%% \version 2.19.15 music = \relative c' {d4 c e fis1 g4 } \score { \new Staff { \music } \layout { \context { \Staff \remove Note_heads_engraver \consists Completion_heads_engraver } } } % % ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hairpin Y-offset
Thanks all! I've got what I need! -David - Original Message - From: Pierre Perol-Schneider pierre.schneider.pa...@gmail.com To: Mike Solomon m...@mikesolomon.org Cc: bobr...@centrum.is, Lillypond Users Mailing List lilypond-user@gnu.org Sent: Saturday, November 29, 2014 7:52:15 PM Subject: Re: hairpin Y-offset Less elegant than Mike's, here's a one shot tweak : \version 2.18.2 \relative c'' { e4-\tweak extra-offset #'(0 . 3)\ e2. c1\! } Cheers, Pierre 2014-11-29 20:34 GMT+01:00 Mike Solomon m...@mikesolomon.org: On Nov 29, 2014, at 9:30 PM, bobr...@centrum.is wrote: I want to place a hairpin inside the staff. I have found that I can move hairpins vertically with: \override Hairpin.Y-offset = #'n ...but this will only allow me to move them farther from the staff and will not allow them to move into the staff. I have not managed to find an example of this. Help? David \relative c''’ { % stops outside staff placement \override DynamicLineSpanner.outside-staff-priority = ##f % also stops outside staff placement in a different interface \override DynamicLineSpanner.staff-padding = ##f a\ b c d\! } %Cheers, %MS ___ 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
Nachschlag - Passing Appoggiatura - hook?
I'm typesetting BWV 1055, which includes these so-called nachschlags (or passing appoggiaturas, accents) They can appear coming down or up to the following note (see attached). These are explained here: http://www.iment.com/maida/familytree/henry/music/bachnotation.htm#passinga How to typeset these with LP? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Nachschlag - Passing Appoggiatura - hook?
Hi Javier, it's probably not what you are looking for and your case is perhaps easier to solve. But there might be ideas to take from this post: http://lilypondblog.org/2013/08/adding-ornamentations-to-note-heads-part-1/ Just because the symbol looks similar. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Nachschlag - Passing Appoggiatura - hook?
On 29 Nov 2014, at 23:19, Javier Ruiz-Alma jav...@ruiz-alma.com wrote: I'm typesetting BWV 1055, which includes these so-called nachschlags (or passing appoggiaturas, accents) They can appear coming down or up to the following note (see attached). These are explained here: http://www.iment.com/maida/familytree/henry/music/bachnotation.htm#passinga How to typeset these with LP? “Harvard concise” says it is attached to the main note, and writes it as a small 8th note with a slash and a slur to the note before it. So this would be \afterGrace, but Notation does not say if \slashedGrace can be used with it. Perhaps LilyPond should have a \nachschlag counterpart to \acciaccatura. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problems with Completion_heads_engraver
On 2014-11-29 02:59 PM, Jay Vara wrote: For some reason the Completion heads engraver does not seem to be working in some situations. In some cases it swallows up a note (although timing wise it seems ok) and sometimes it produces some weird looking notes. Here is one example I was able to recreate in a small example: Inline image 1 Here is the code: %%% %%% \version 2.19.15 music = \relative c' {d4 c e fis1 g4 } \score { \new Staff { \music } \layout { \context { \Staff \remove Note_heads_engraver \consists Completion_heads_engraver } } } Entered as ssue 4207 https://code.google.com/p/lilypond/issues/detail?id=4207: Completion_heads_engraver not splitting notes, and may be related to Issue 3560 https://code.google.com/p/lilypond/issues/detail?id=3560: Completion_heads_engraver with \scaleDurations Cheers, Colin -- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- ) ___ 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 ?
Keith OHara wrote Then I'll propose that LilyPond accept 'cn' only when the user requests that input style, and I won't call that style 'American'. Another inconvenience with \languageenglish is that its default names are the long forms, so \displayLilyMusic \transpose c e {fs as cs} is not as helpful for rearranging music as it could be. I'm proposing \languageabbreviated for people who want to use \displayLilyMusic to generate brief english, and/or want to type 'cn' for the same reasons that we sometimes pronounce 'natural' in English. lt;https://code.google.com/p/lilypond/issues/detail?id=4076#c26gt; +1 for adding an opt-in way to use 'cn' (etc.) via another version of the 'english' input language. This allows for use of this helpful form of input without confusing new users who still haven't learned LilyPond's input syntax (which I believe was the main objection to modifying 'english' itself). Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/would-gn-for-G-natural-be-useful-in-language-english-tp165872p169051.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: Problems with Completion_heads_engraver
Jay Vara jay at diljun.com writes: \layout { \context { \Staff \remove Note_heads_engraver \consists Completion_heads_engraver } } We need to remove the Note_heads_engraver from the *Voice* and replace it with Completion_heads_engraver. \new Staff { \new Voice \with{ \remove Note_heads_engraver \consists Completion_heads_engraver } \relative c' { d4 c e fis1 g4 } } In your example, you asked the Staff to create split notes, but the Staff doesn't have engravers to make the Stems or Dots. The Voice still had its Note_heads_engraver, so was creating notes that overlaid those created by the Staff. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user