Exclude staves from keep-alive-together
Hi all, Can individual staves in eg. a StaffGroup with \consists "Keep_alive_together_engraver" be excluded from keep-alive-together? I'm aware of VerticalAxisGroup.remove-layer which possibly does what I need it to, but this morning I can't wrap my head around it in the attached example. - Empty staves for player 1, 2a and 3a should only be removed when the whole group is empty (system 3). But: - 2b should also be removed on the second system - 3b should also be removed on both the first and second system. Thanks! keep-alive.pdf Description: Adobe PDF document \version "2.23.4" \paper { indent = 1 \in short-indent = 1 \in } \layout { \context { \Staff \RemoveAllEmptyStaves } } music = \repeat unfold 4 { c'1 } rests = \repeat unfold 4 { R1 } \score { << \new Staff \with { instrumentName = "0" shortInstrumentName = "0" } { \music \break \music \break \music } \new StaffGroup \with { \consists "Keep_alive_together_engraver" } { << \new Staff \with { instrumentName = "1" shortInstrumentName = "1" } { \rests \rests } \new StaffGroup \with { systemStartDelimiter = #'SystemStartBrace } { << \new Staff \with { instrumentName = "2a" shortInstrumentName = "2a" } { \music \music } \new Staff \with { instrumentName = "2b" shortInstrumentName = "2b" } { \music \rests } >> } \new StaffGroup \with { systemStartDelimiter = #'SystemStartBrace } { << \new Staff \with { instrumentName = "3a" shortInstrumentName = "3a" } { \rests \rests } \new Staff \with { instrumentName = "3b" shortInstrumentName = "3b" } { \rests \rests } >> } >> } >> }
Re: Scheme: help with "Center text below hairpin dynamics"
Many thanks for this! For my case the hairpin-attached text will have a different size to other text anyway, so a slight difference is perfectly fine. Best, David On Wed, 27 Jan 2021 at 22:59, Thomas Morley wrote: > > Am Mi., 27. Jan. 2021 um 21:32 Uhr schrieb David Stephen Grant > : > > > > Hi all, > > > > For "Center text below hairpin dynamics" in the LSR > > (http://lsr.di.unimi.it/LSR/Snippet?id=233) I'd like the text to scale > > with the staff size for ossia staves. Does anyone have any pointers? > > > > hairpinWithCenteredText = > > #(define-music-function (parser location text) (markup?) > > #{ > > \once \override Voice.Hairpin.after-line-breaking = > > #(lambda (grob) > > (let* ((stencil (ly:hairpin::print grob)) > >(par-y (ly:grob-parent grob Y)) > >(dir (ly:grob-property par-y 'direction)) > >(staff-space (ly:output-def-lookup > > (ly:grob-layout grob) 'staff-space)) > >(staff-line-thickness > > (ly:output-def-lookup (ly:grob-layout grob) > > 'line-thickness)) > >(new-stencil (ly:stencil-aligned-to > > (ly:stencil-combine-at-edge > >(ly:stencil-aligned-to stencil X CENTER) > >Y dir > >(ly:stencil-aligned-to > > (grob-interpret-markup grob text) X CENTER)) > > X LEFT)) > >(par-x (ly:grob-parent grob X)) > >(dyn-text (grob::has-interface par-x > > 'dynamic-text-interface)) > >(dyn-text-stencil-x-length > > (if dyn-text > >(interval-length > > (ly:stencil-extent (ly:grob-property par-x 'stencil) > > X)) > >0)) > >(x-shift > > (if dyn-text > >(- > > (+ staff-space dyn-text-stencil-x-length) > > (* 0.5 staff-line-thickness)) 0))) > > > > (ly:grob-set-property! grob 'Y-offset 0) > > (ly:grob-set-property! grob 'stencil > >(ly:stencil-translate-axis > > new-stencil > > x-shift X > > #}) > > > > hairpinPoco = > > \hairpinWithCenteredText \markup { \fontsize #-1 "poco" } > > > > music = { > > \hairpinPoco > > c'4 \< e' f' g' \! > > } > > > > \score { > > << > > \new Staff \with { > > fontSize = #-5 > > \override StaffSymbol.staff-space = #(magstep -5) > > } \music > > \new Staff \music > > >> > > } > > > > Hi David, > > below does a fairly good job. > Alas, it's not perfect: The added TextScript does not have exactly the > same size as the text added text to the hairpin and I have no clue why > not ... > > hairpinWithCenteredText = > #(define-music-function (parser location text) (markup?) > #{ > \once \override Voice.Hairpin.after-line-breaking = > #(lambda (grob) > (let* ((stencil (ly:hairpin::print grob)) >(par-y (ly:grob-parent grob Y)) >(dir (ly:grob-property par-y 'direction)) >(staff-space (ly:output-def-lookup > (ly:grob-layout grob) 'staff-space)) >(staff-line-thickness > (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness)) >(new-stencil (ly:stencil-aligned-to > (ly:stencil-combine-at-edge >(ly:stencil-aligned-to stencil X CENTER) >Y dir >(ly:stencil-aligned-to > (grob-interpret-markup >grob >(make-fontsize-markup > (magnification->font-size >(+ (ly:staff-symbol-staff-space grob) > (/ staff-line-thickness 2))) >text)) X CENTER)) > X LEFT)) >(par-x (ly:grob-parent grob X)) >(dyn-text (grob::has-interface par-x 'dynamic-text-interface)) >(dyn-text-stencil-x-length > (if dyn-text >(interval-length > (ly:stencil-extent (ly:grob-property par-x 'stencil) X)) >0)) >(x-shift > (if dyn-text >
Scheme: help with "Center text below hairpin dynamics"
Hi all, For "Center text below hairpin dynamics" in the LSR (http://lsr.di.unimi.it/LSR/Snippet?id=233) I'd like the text to scale with the staff size for ossia staves. Does anyone have any pointers? hairpinWithCenteredText = #(define-music-function (parser location text) (markup?) #{ \once \override Voice.Hairpin.after-line-breaking = #(lambda (grob) (let* ((stencil (ly:hairpin::print grob)) (par-y (ly:grob-parent grob Y)) (dir (ly:grob-property par-y 'direction)) (staff-space (ly:output-def-lookup (ly:grob-layout grob) 'staff-space)) (staff-line-thickness (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness)) (new-stencil (ly:stencil-aligned-to (ly:stencil-combine-at-edge (ly:stencil-aligned-to stencil X CENTER) Y dir (ly:stencil-aligned-to (grob-interpret-markup grob text) X CENTER)) X LEFT)) (par-x (ly:grob-parent grob X)) (dyn-text (grob::has-interface par-x 'dynamic-text-interface)) (dyn-text-stencil-x-length (if dyn-text (interval-length (ly:stencil-extent (ly:grob-property par-x 'stencil) X)) 0)) (x-shift (if dyn-text (- (+ staff-space dyn-text-stencil-x-length) (* 0.5 staff-line-thickness)) 0))) (ly:grob-set-property! grob 'Y-offset 0) (ly:grob-set-property! grob 'stencil (ly:stencil-translate-axis new-stencil x-shift X #}) hairpinPoco = \hairpinWithCenteredText \markup { \fontsize #-1 "poco" } music = { \hairpinPoco c'4 \< e' f' g' \! } \score { << \new Staff \with { fontSize = #-5 \override StaffSymbol.staff-space = #(magstep -5) } \music \new Staff \music >> }
Re: Orchestral strings, how to organise score and parts for divisi, solos, desks etc.
> > On 6/7/20 9:26 AM, Rutger Hofman wrote: > > My first attempt is here: > > > > https://www.rutgerhofman.nl/lilypond/divisi-doc/divisi-doc.html > > > Thank you for sharing this, Rutger - I'm looking forward to reading in more detail as soon as I have a chance. Best, David >
Re: Piano Pedal placement
Hi Martin, You could try the attached, with the commands pedOn, pedRetake and pedOff. Best, David Sustain-Pedal-2.pdf Description: Adobe PDF document \version "2.19.83" \pointAndClickOff pedOn = #(define-event-function () () #{ -\tweak shorten-pair #'(0 . -1) -\tweak self-alignment-X #LEFT \sustainOn #} ) pedRetake = #(define-event-function () () #{ \sustainOff -\tweak shorten-pair #'(1 . -1) -\tweak self-alignment-X #LEFT \sustainOn #} ) pedOff = #(define-event-function () () #{ -\tweak self-alignment-X #LEFT \sustainOff #} ) rh = \relative c' { \clef treble %\set Dynamics.pedalSustainStyle = #'text 1_\markup \tiny "pedalSustainStyle = #'text" | | ~ | q | \bar "|." \break \set Dynamics.pedalSustainStyle = #'mixed 1_\markup \tiny "pedalSustainStyle = #'mixed" | | ~ | q | \bar "|." \break \set Dynamics.pedalSustainStyle = #'bracket 1_\markup \tiny "pedalSustainStyle = #'bracket" | | ~ | q | \bar "|." } lh = \relative c { \clef bass \repeat unfold 3 { c1 | c | c ~ | c | \bar "|." } } pedalA = { \repeat unfold 3 { s1\sustainOn | s1\sustainOff\sustainOn | s1\sustainOff\sustainOn | s2. s4\sustainOff | } } pedalB = { \repeat unfold 3 { s1\pedOn | s1\pedRetake | s1\pedRetake | s2. s4\pedOff | } } \header { title = "Sustain Pedal Test" } \score { \header { piece = "Default" } \new PianoStaff << \new Staff \rh \new Staff \lh \new Dynamics \pedalA >> \layout {} } \score { \header { piece = "Optimized" } \new PianoStaff << \new Staff \rh \new Staff \lh \new Dynamics \pedalB >> \layout {} }
Re: Scheme: get current beam-thickness
Thank you for the responses - I'll look into Aaron's suggestion, which looks like it may do the trick.
Scheme: get current beam-thickness
I'm trying to create a custom flag stencil, and would like to get the current _beam_ thickness. As a first step, in the following example I would expect 0.5, then 1, to be printed to the console. Is there a way of doing this? Thanks, David \version "2.19.83" #(define (my-flag) (lambda (grob) (format #t "~a" ;;; GET THE CURRENT BEAM-THICKNESS ) empty-stencil)) { \override Flag.stencil = #(my-flag) \override Beam.beam-thickness = #0.5 c'8 r8 \override Beam.beam-thickness = #1.0 c'8 r8 }
Re: Help posting to lilypond-devel
My message finally did go through after a while longer, so all is now well. Apologies for the the noise.
Help posting to lilypond-devel
Hello, I tried posting (a new thread) to the lilypond-devel list a couple of hours ago, but it doesn't seem to have got through; at least my message is not showing up in the archives. I'm already subscribed to the list - is there something else I should be doing? Thanks, David
Re: fill-line for specified width?
I'm happy to make an attempt this weekend, unless anyone beats me to it. On Thu, 9 Jan 2020 at 10:30, Werner LEMBERG wrote: > > > \fill-line references the line-width property. By default it is set > > to #f which indicates the entire line. > > > > > > \version "2.18" > > \markup \fill-line { left center right } > > \markup \override #'(line-width . 100) > > \fill-line { left center right } > > \markup \override #'(line-width . 80) > > \fill-line { left center right } > > > > Could you provide a patch for the notation reference so that something > similar to this is shown as an example for the documentation of > `\fill-line`? > > > Werner > > -- David Stephen Grant da...@davidgrant.no www.davidgrant.no Phone: (+47) 918 14 276
Re: fill-line for specified width?
Many thanks, Aaron! That certainly makes things easier. Best, David On Thu, 9 Jan 2020, 00:01 Aaron Hill, wrote: > On 2020-01-08 2:39 pm, David Stephen Grant wrote: > > Hi all, > > > > Is there a markup command that works like fill-line, but for any > > specified > > width? > > \fill-line references the line-width property. By default it is set to > #f which indicates the entire line. > > > \version "2.18" > \markup \fill-line { left center right } > \markup \override #'(line-width . 100) > \fill-line { left center right } > \markup \override #'(line-width . 80) > \fill-line { left center right } > > > > -- Aaron Hill > >
fill-line for specified width?
Hi all, Is there a markup command that works like fill-line, but for any specified width? If not: I've copied and modified fill-line to take a width argument, but it calls justify-line-helper in define-markup-commands.scm (which in turn calls get-fill-space), and these functions aren't visible in my .ly file (Unbound variable: justify-line-helper). Can these helper functions be called somehow? For now I've just copied them also into my .ly file, which I would of course rather avoid. #(define-markup-command (fill-width layout props width args) (number? markup-list?) #:category align #:properties ((text-direction RIGHT) (word-space 0.6)) (justify-line-helper layout props args text-direction word-space width #f) ) I'm using fill-width to position player numbers sensibly in staff labels looking up the width of the indent, but perhaps there is some existing functionality I've overlooked. Thanks! David -- David Stephen Grant da...@davidgrant.no www.davidgrant.no
Profondo: note symbols in TupletBracket
Hi all, I'm using Abraham's Profondo font, but having some trouble with TupletBrackets. I would like to indicate the duration of some feathered beamed groups with a TupletBracket showing the total duration. The following simplified code works fine with the default font, but the symbol in the first bracket doesn't print when I switch to Profondo. I also get the error: warning: Found infinity or nan in output. Substituting 0.0 \version "2.19.25" \include "profondo.ily" { \override TupletBracket.padding = #1.5 \override TupletBracket.bracket-visibility = ##t \once \override TupletNumber.text = \markup { \note #"4" #UP } \tuplet 5/8 { a'16 a' a' a' a' } \revert Staff.TupletNumber.font-name \once \override TupletNumber.text = \markup { \note #"4" #UP } \tuplet 5/8 { a'16 a' a' a' a' } \override Staff.TupletNumber.font-name = #"ProfondoTupletNumbers" \tuplet 5/8 { a'16 a' a' a' a' } } As most TupletBrackets should be using the Profondo tuplet number font I thought about reverting to the default for these brackets, but ideally I would prefer not to have to remember to turn Profondo back on afterwards as in the above code. Any ideas? Best, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Levelling hairpins
This is how I deal with it. Not exactly automatic, but works well for me :-) \version 2.19.15 dynPadYOn = #(define-music-function (parser location padding)(number?) #{ \override DynamicLineSpanner.staff-padding = $padding #}) dynPadYOff = #(define-music-function (parser location)() #{ \revert DynamicLineSpanner.staff-padding #}) testMusic = { c'4 g c'\ a'\f | c'4\ g c' a'\p } { \testMusic | \break \dynPadYOn #4 \testMusic | \break \dynPadYOff \testMusic } On 13 February 2015 at 21:53, Peter Gentry peter.gen...@sunscales.co.uk wrote: This is too well known to need an example, indeed one is given in the documentation *http://www.lilypond.org/doc/v2.18/Documentation/notation/expressive-marks-attached-to-notes#dynamics* http://www.lilypond.org/doc/v2.18/Documentation/notation/expressive-marks-attached-to-notes where the solution is discussed A Dynamics context is available to engrave dynamics on their own horizontal line. Use spacer rests to indicate timing. (Notes in a Dynamics context will also take up musical time, but will not be engraved.) The Dynamics context can usefully contain some other items such as text scripts, text spanners, and piano pedal marks. Richard This is very true but the dynamics context is very cumbersome for this purpose alone. Surely there must be a simpler way to align hairpins. regards Peter Gentry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- David Stephen Grant da...@davidgrant.no www.davidgrant.no Phone: (+47) 918 14 276 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [Announce] Boulez anyone?
I've been wondering - is there an easy way to use the built-in straight LilyPond flags also in metronome marks and markups? \version 2.19.15 \relative c' { \override Score.Flag.stencil = #modern-straight-flag \time 2/4 \autoBeamOff \tempo Default flag: 8 = 120 c8 d16 c32 d64 \acciaccatura { c8 } d64^\markup { Default flag:\note-by-number #3 #0 #UP } r4 } On 13 February 2015 at 12:15, Noeck noeck.marb...@gmx.de wrote: Thanks a lot Abraham, it is just great to see all these styles. You know that, but for all who don't: straight flags and other flag styles can also be easily set in LilyPond for fonts that support it like the default font: http://www.lilypond.org/doc/v2.19/Documentation/snippets/rhythms#rhythms-using-alternative-flag-styles Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- David Stephen Grant da...@davidgrant.no www.davidgrant.no Phone: (+47) 918 14 276 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [Announce] Boulez anyone?
Oh, but I guess the Boulez font does this automatically, right? Thanks! David On 13 February 2015 at 13:10, David Stephen Grant da...@davidgrant.no wrote: I've been wondering - is there an easy way to use the built-in straight LilyPond flags also in metronome marks and markups? \version 2.19.15 \relative c' { \override Score.Flag.stencil = #modern-straight-flag \time 2/4 \autoBeamOff \tempo Default flag: 8 = 120 c8 d16 c32 d64 \acciaccatura { c8 } d64^\markup { Default flag:\note-by-number #3 #0 #UP } r4 } On 13 February 2015 at 12:15, Noeck noeck.marb...@gmx.de wrote: Thanks a lot Abraham, it is just great to see all these styles. You know that, but for all who don't: straight flags and other flag styles can also be easily set in LilyPond for fonts that support it like the default font: http://www.lilypond.org/doc/v2.19/Documentation/snippets/rhythms#rhythms-using-alternative-flag-styles Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- David Stephen Grant da...@davidgrant.no www.davidgrant.no Phone: (+47) 918 14 276 -- David Stephen Grant da...@davidgrant.no www.davidgrant.no Phone: (+47) 918 14 276 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Putting a natural sign on a note
Also you may like to look at options for automatic handling of accidentals in the documentation: http://www.lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#automatic-accidentals Best, David On 10 February 2015 at 16:24, William Marchant wmarch...@eastlink.ca wrote: Thanks to you and Jan-Peter. Bill On 15-02-10 11:16 AM, Kevin Barry wrote: On Tue, Feb 10, 2015 at 3:13 PM, William Marchant wmarch...@eastlink.ca wrote: I would like to place a natural symbol on the first note of the second bar, just to remind folks that it is different. I know this is not the convention, but I want to do it anyhow. Is there a way? Bill There's nothing unconventional about it at all! To add a cautionary accidental just put an exclamation mark after the pitch, i.e. bf4 bf bf8 bf bf bf | b! b b b d4 d | hth, Kevin ___ 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: Pitched trill glissando
I've just seen I overlooked your message, Harm. Thank you both, and for the upload to the LSR! Best, David On 23 January 2015 at 13:18, Pierre Perol-Schneider pierre.schneider.pa...@gmail.com wrote: Added to the LSR : http://lsr.di.unimi.it/LSR/Item?id=972 Cheers, Piere 2015-01-23 11:19 GMT+01:00 Pierre Perol-Schneider pierre.schneider.pa...@gmail.com: Oups, grace's note head looks a little too big. So here again: \version 2.19.13 parentGrace = #(define-music-function (parser loc myGrace ) (ly:music?) #{ \once \override NoteHead.X-offset = #-.5 \once \omit Staff.Flag \once \omit Staff.Stem \once \override ParenthesesItem.font-size = #-1 \once \override NoteHead.font-size = #-4 \once \override ParenthesesItem.stencil = #(lambda (grob) (let* ((acc (ly:grob-object (ly:grob-parent grob Y) 'accidental-grob)) (dot (ly:grob-object (ly:grob-parent grob Y) 'dot))) (if (not (null? acc)) (ly:pointer-group-interface::add-grob grob 'elements acc)) (if (not (null? dot)) (ly:pointer-group-interface::add-grob grob 'elements dot)) (parentheses-item::print grob))) \parenthesize $myGrace #}) { \clef altovarC \pitchedTrill c2\startTrillSpan -\tweak minimum-length #10 -\tweak springs-and-rods #ly:spanner::set-spacing-rods -\tweak bound-details.left.Y #-3.25 -\tweak bound-details.right.Y #-2.75 -\tweak bound-details.left.padding #3.5 -\tweak bound-details.right.padding #.8 \glissando ~ des \grace { \parentGrace d8 } c8\stopTrillSpan r8 } Cheers, Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Pitched trill glissando
Thanks Pierre, This seems to work perfectly in the score I'm working on. All the best, David On 23 January 2015 at 10:26, Pierre Perol-Schneider pierre.schneider.pa...@gmail.com wrote: Hi David, my first idea was to change the grace note head stencil but, for some reason, I cannot change the ledger lin length: parentGrace = { \once\omit Flag \once\omit Stem \once\omit Accidental \once\override NoteHead.stencil = #(lambda (grob) (grob-interpret-markup grob #{ \markup\concat\fontsize #-1 { \musicglyph #accidentals.leftparen \hspace #.3 \musicglyph #accidentals.natural \hspace #.2 \musicglyph #noteheads.s2 \hspace #.2 \musicglyph #accidentals.rightparen } #} )) } { \clef altovarC %{ \once \override Glissando.minimum-length = #10 \once \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods \once \override Glissando.bound-details.left.Y = #-3.25 \once \override Glissando.bound-details.right.Y = #-2.75 \once \override Glissando.bound-details.left.padding = #3.5 \once \override Glissando.bound-details.right.padding = #.8 %} \pitchedTrill c2\startTrillSpan %% shorter syntax: %-\tweak minimum-length #8 % = for a similar note to note distance -\tweak minimum-length #10 -\tweak springs-and-rods #ly:spanner::set-spacing-rods -\tweak bound-details.left.Y #-3.25 -\tweak bound-details.right.Y #-2.75 -\tweak bound-details.left.padding #3.5 -\tweak bound-details.right.padding #.8 \glissando ~ des \parentGrace \grace { d8 } c8\stopTrillSpan r8 } So I finally change my mind for grace's accidental : parentAccidental = { \once\omit Flag \once\omit Stem \once\override NoteHead.X-offset = #-.5 \once\override Accidental.extra-offset = #'(1.9 . 0) \once\override Accidental.stencil = #(lambda (grob) (grob-interpret-markup grob #{ \markup\concat { \musicglyph #accidentals.leftparen \hspace #.3 \musicglyph #accidentals.natural \hspace #1.4 \musicglyph #accidentals.rightparen } #} )) } { \clef altovarC \pitchedTrill c2\startTrillSpan -\tweak minimum-length #10 -\tweak springs-and-rods #ly:spanner::set-spacing-rods -\tweak bound-details.left.Y #-3.25 -\tweak bound-details.right.Y #-2.85 -\tweak bound-details.left.padding #3.5 -\tweak bound-details.right.padding #-1.6 \glissando ~ des \parentAccidental \grace { d8 } c8\stopTrillSpan r8 } I bet that some more elegant solutions exist but I don't see any right now. HTH, Pierre 2015-01-23 8:01 GMT+01:00 David Stephen Grant da...@davidgrant.no: Hi list, I'm trying to create a pitched trill where the parenthesized note glisses to a new note. I've got quite close to the notation I'm after, but I can't find a way to parenthesize the goal note the same way as the pitchedTrill. \parenthesize doesn't seem to include the accidental, and is in a different style to pitchedTrill. Any ideas? Thanks! Best, 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
Pitched trill glissando
Hi list, I'm trying to create a pitched trill where the parenthesized note glisses to a new note. I've got quite close to the notation I'm after, but I can't find a way to parenthesize the goal note the same way as the pitchedTrill. \parenthesize doesn't seem to include the accidental, and is in a different style to pitchedTrill. Any ideas? Thanks! Best, David \version 2.19.13 { \clef altovarC \once \override Glissando.minimum-length = #10 \once \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods \once \override Glissando.bound-details.left.Y = #-3.25 \once \override Glissando.bound-details.right.Y = #-2.75 \once \override Glissando.bound-details.left.padding = #3.5 \pitchedTrill c2\startTrillSpan \glissando ~ des \once \omit Staff.Flag \once \omit Staff.Stem \grace {d8} c8\stopTrillSpan r8 }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Fwd: Change TupletBracket slope?
Thank you Abraham, this is just what I need. Best, David On 23 June 2014 21:07, tisimst tisi...@gmail.com wrote: David, You can manually place the left and right ends of the bracket like this (and adjusting to taste): \version 2.19.8 { \clef bass { a, a4 } \\ { /*\once \override TupletBracket.positions = #'(-7 . -7)*/ \tuplet 6/4 { r16 g e d b, a, } } } http://lilypond.1069038.n5.nabble.com/file/n163571/flat-tuplet-bracket.png This is also true for beams and other kinds of notation objects like this. Regards, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Change-TupletBracket-slope-tp163546p163571.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
Change TupletBracket slope?
Hello list, In the following example the tuplet bracket follows the notes nicely, but the first rest forces it way out of position. I would like to be able to adjust the Y position of the right side to flatten the bracket, but can't work out how to override the defaults. Thanks! David \version 2.19.8 { \clef bass { a, a4 } \\ { \tuplet 6/4 { r16 g e d b, a, } } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
TrillSpanners not lining up
Hello, I'm having some trouble with TrillSpanners not lining up correctly. The manuals seem to indicate that two successive TrillSpanners should be able to line up vertically without any explicit \stopTrillSpan, but in the following example the second trill is printed higher than the first, as if avoiding a collision. Any ideas? Best, David http://www.lilypond.org/doc/v2.19/Documentation/notation/expressive-marks-as-lines#trills \version 2.19.8 { d''1\startTrillSpan | d''1\startTrillSpan | R1\stopTrillSpan | } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: TrillSpanners not lining up
Thanks Pierre, that works perfectly! Best, David On 17 June 2014 13:56, Pierre Perol-Schneider pierre.schneider.pa...@gmail.com wrote: Hi David, 2014-06-17 13:01 GMT+02:00 David Stephen Grant da...@davidgrant.no: in the following example the second trill is printed higher than the first, as if avoiding a collision. Any ideas? This should do the job : % \version 2.19.8 { \once\override TrillSpanner.bound-details.right.attach-dir = #-1 d''1\startTrillSpan | d''1\startTrillSpan | R1\stopTrillSpan | } % Cheers, Pierre -- David Stephen Grant da...@davidgrant.no www.davidgrant.no Phone: (+47) 918 14 276 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Compile last n bars
Hello list, I'm sure I have read somewhere that it is possible to compile only the last n bars of a Lilypond file, but I cannot seem to find it anywhere! Or is this a feature of some front-end? Any tips or pointers to the relevant documentation are much appreciated. Best, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Tuplet bracket / articulation collision
Hello list, Please see code snippet: In the second system the slur seems to be pushing the tuplet bracket down, causing it to collide with the wedge. I'm looking for a way to nudge the articulation slightly to the left, but can't work out how to do this. Help or other suggestions much appreciated! Best, David \version 2.18.2 \relative c { \clef bass r8. c=16 \tuplet 3/2 { c,16^^ g' bes } d8~ d4~ d8-. r8 | } \relative c { \clef bass r8. c=16( \tuplet 3/2 { c,16^^ g' bes } d8~ d4~ d8-.) r8 | } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Symbol to indicate an unmetered (cadenza) bar
Gould recommends a cross together with a tempo marking senza misura. Kurt Stone however recommends a zero. Best, David On 17 Apr 2014 11:28, James Harkins jamshar...@gmail.com wrote: I'm writing a piece that will have a few cadenzas. In the cadenza pseudo-bars, I want to print some kind of glyph where the time signature would normally go, to indicate that this bar is unmetered. My first thought was a 0, and I found in the manual that I can actually get the 0 to appear in the right place like this (using 2.18): \once \override Staff.TimeSignature.style = #'single-digit \time 0/4 \cadenzaOn (Compilable example below, with a further hack.) But this breaks note spacing. If I change it to \time 1/4, then I get reasonable note spacing. \time 0/4 puts the minimum space between note heads. In one passage, I'm using two voices with spacer rests to suggest something like polyphony from a clarinet, and the minimum-space issue completely destroys the spacers. I can hack around that problem like this, but... wow, that smells as foul as 6-month-old milk left out of the fridge... \version 2.18.0 \language english \score { \new Staff \relative c' { cs1 R1\fermataMarkup \bar || \once \override Staff.TimeSignature.style = #'single-digit \time 0/4 \cadenzaOn s32 \once \override Staff.TimeSignature.stencil = ##f \time 1/4 r8 f, ( d' [ e ] ) e'' [ ( cs b ] ) } } Is there a more elegant way? (Out of curiosity, what glyph would Gould recommend for this case?) hjh ___ 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: acciaccatura before barline
Elaine Gould writes: Grace notes sounding on the beat should always be placed after the barline. However, a group of three or more grace notes sounding before the beat may go before the barline so that the first beat of the following bar is not pushed too far from the barline. (Behind Bars, p. 127). However, to avoid ambiguity it is recommended to specify how the grace notes should be performed, eg. All grace notes to be performed before/on the beat. As for slurs, she advises slurring to the following measured value provided that this is the intended articulation. Kurt Stone (Music Notation in the Twentieth Century, p. 22) seems to recommend omitting the slur entirely, and adding a staccato dot if the grace note(s) should be detached. On 27 March 2014 18:22, Urs Liska u...@openlilylib.org wrote: Is that really true? I've seen this notation regularly. What the composers seem to intend - and what is easily understood - is that the slur indicates that the grpup logically belongs to the _next_ note while the position before the barline tells to okay _before_ the beat. David Raleigh Arnold d...@openguitar.com schrieb am 27.03.2014: On Thu, 27 Mar 2014 17:16:51 +0100 Urs Liska u...@openlilylib.org wrote: Hi all, consider the attached image. Apart from the problematic slur which I don't want to deal with right now, how can I typeset the acciaccatura _before_ the barline. I was thinking of hacking something with \afterGrace, but that's not what it is. But that is what it is. The legatura (slur) should attach to a previous something in the previous measure if you want the grace before the beat. If that is not what you mean, omit the legatura and just use small notes. What you want would have notes before the beat which the legatura mark indicates to be played on the beat. That is a self-contradiction, and therefore ambiguous. Regards, Rale -- Diese Nachricht wurde mit *K-@ Mail*https://play.google.com/store/apps/details?id=com.onegravity.k10.pro2gesendet. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- David Stephen Grant da...@davidgrant.no www.davidgrant.no Phone: (+47) 918 14 276 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Temporary polyphony with lyrics
Hello, A suggestion using spacer notes in the second voice. Best, David \version 2.18.0 \new Staff { \new Voice = first \relative c' { \voiceOne c1 c'1 c,1 } \new Voice = second \relative c' { \voiceTwo s1 c1 s1 } } \new Lyrics { \lyricsto first { One one one } } \new Lyrics { \lyricsto second { two } } On 17 March 2014 05:34, TaoCG tao_lilypondu...@gmx.net wrote: Hey all, I have a one-staff vocal part where I need somewhere in the middle a temporary two-voice part withe different lyrics to each voice but my attempts so far have failed and I have the feeling that I'm trying to solve this the wrong way. I prepared a minimal example and what strikes me as odd is that after the temporary polyphony all notes are registered on the same time as if duration wasn't important anymore. I also tried \set associatedVoice with named voices instead of \addlyrics but then the lyrics simply won't show. \version 2.18.0 foo = \relative { \voiceOne c'1 } \addlyrics { foo } barr = \relative { \voiceTwo c''1 } \addlyrics { bar } music = \relative { c'1 \foo \\ \barr c1 c2 } text = \lyricmode { text here } \score { \new Staff \new Voice = v \music \new Lyrics \lyricsto v \text } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Temporary-polyphony-with-lyrics-tp160493.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: Temporary polyphony with lyrics
...or even: \version 2.18.0 \new Voice = first { a'4 { \voiceOne g' f' } \new Voice = second { \voiceTwo d'2 } \oneVoice e'4 } \new Lyrics \lyricsto first { One One One } \new Lyrics \lyricsto second { Two } (Slightly modified example from http://lilypond.org/doc/v2.18/Documentation/notation/multiple-voices ) On 17 March 2014 09:20, David Stephen Grant da...@davidgrant.no wrote: Hello, A suggestion using spacer notes in the second voice. Best, David \version 2.18.0 \new Staff { \new Voice = first \relative c' { \voiceOne c1 c'1 c,1 } \new Voice = second \relative c' { \voiceTwo s1 c1 s1 } } \new Lyrics { \lyricsto first { One one one } } \new Lyrics { \lyricsto second { two } } On 17 March 2014 05:34, TaoCG tao_lilypondu...@gmx.net wrote: Hey all, I have a one-staff vocal part where I need somewhere in the middle a temporary two-voice part withe different lyrics to each voice but my attempts so far have failed and I have the feeling that I'm trying to solve this the wrong way. I prepared a minimal example and what strikes me as odd is that after the temporary polyphony all notes are registered on the same time as if duration wasn't important anymore. I also tried \set associatedVoice with named voices instead of \addlyrics but then the lyrics simply won't show. \version 2.18.0 foo = \relative { \voiceOne c'1 } \addlyrics { foo } barr = \relative { \voiceTwo c''1 } \addlyrics { bar } music = \relative { c'1 \foo \\ \barr c1 c2 } text = \lyricmode { text here } \score { \new Staff \new Voice = v \music \new Lyrics \lyricsto v \text } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Temporary-polyphony-with-lyrics-tp160493.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
Fwd: Replace dot symbol?
Paul, this certainly cleans things up! Thank you. A minor follow up question - in this code the cross notehead dot glyph is being printed and offset through markup - would it be possible to replace the symbol directly (\once \override Dots #'stencil = #??), ensuring that the new glyph would be printed in the exact same position? David On 16 March 2014 22:00, Paul Morris p...@paulwmorris.com wrote: David Stephen Grant wrote Ideally I'd like to be able to append something other than . to a duration, that would then automatically assign the correct duration value to the note, and change the dot symbol. Hello, the next step would be to put your solution in a music function as shown below. Then you would just add \crs (or whatever you called your fuction) before any dotted note you wanted to make a crossed note. Pretty close to your ideal scenario, but not all the way. HTH, -Paul \version 2.18.0 crs = #(define-music-function (parser location note) (ly:music?) #{ \once \override Dots #'stencil = #ly:text-interface::print \once \override Dots #'text = \markup { \halign #-2 \abs-fontsize #6 \musicglyph #noteheads.s2cross } \scaleDurations 5/6 { #note } #}) \relative c' { \new Staff { c4 c16 a a8 a2 a1 } \new Staff { \crs c4. a16 a8 a2 a1 } \new Staff { c4. a8 a2 a1 } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Replace-dot-symbol-tp160473p160477.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