Re: CrossStaff and Slashed grace
Hi Paul, I would guess that someone here has a better solution (I'm basically ignorantly chiming in because I was thinking about grace slashes recently), but here’s what I’ve been doing to slash-beamed graces, in order to show an option other than \slash. And it visually matches the slashed flags a little more consistently. my-hack-slash = { \once \override Stem.stencil = #(lambda (grob) (let* ((x-parent (ly:grob-parent grob X)) (is-rest? (ly:grob? (ly:grob-object x-parent 'rest (if is-rest? empty-stencil (ly:stencil-combine-at-edge (ly:stem::print grob) Y (+ (ly:grob-property grob 'direction)) (grob-interpret-markup grob (markup #:hspace 0.25 #:fontsize 3 #:musicglyph "flags.ugrace")) -0.9 } Here I print the font’s flag slash on the first stem of the grace notes. You can fiddle with the positioning or even use the downward slash symbol as needed. I haven’t tested it in cross-staff situations. And by Cross Staff, I assume you mean the use of Span_stem_engraver and \crossStaff? Because \slash appears to handle the following kind of cross-staff grace music as seen in the LSR: https://lsr.di.unimi.it/LSR/Item?id=721 regards, GR On Fri, Jan 6, 2023 at 12:33 PM Paul Hodges wrote: > I am using a function "\slash" from the snippets repository to add a slash > to acciaccaturas with multiple notes. This works fine in isolation. > > However, if I use CrossStaff on the same notes, the slash no longer > appears. I presume this is because both the slash code and the CrossStaff > code are modifying the same stem definition, and the CrossStaff code wins. > But I have no idea how to overcome this, other than by generating this > particular slash as markup. > > Any pointers? > > Regards, > Paul > -- gregory rowland evans http://www.gregoryrowlandevans.com https://github.com/GregoryREvans https://soundcloud.com/gregory-rowland-evans
Re: is this a slashed grace?
Hello Ken, I have a workaround for this problem, namely to create an oblique line and move it onto the beam. I did not use \acciaccatura but rather smaller notes because I wanted to control the spacing of the notes. See the attached slashedacciaccworkaround.pdf and .ly. I hope this may be of use. Archer On 16/09/2022 06:07, David Wright wrote: Kenneth Wolcott wrote: I asked this question regarding a different piece that I was engraving. It looks like the slashed grace as shown in the Lilypond documentation is not the same as what I have engraved (there is no slash). Now another piece has come up with the same question. Maybe these aren't slashed grace notes? Maybe (as usual) I'm doing something wrong? My input, my engraving and the origin I'm reading from are attached. Mark Stephen Mrotek wrote: Are you referring to the ornaments is measures 3, 11, and 25? Kenneth Wolcott wrote: That's correct. https://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns Scroll down to: Known issues and warnings A multi-note beamed acciaccatura is printed without a slash, and looks exactly the same as a multi-note beamed appoggiatura. Cheers, David. slashedacciaccworkaround.pdf Description: Adobe PDF document %slashedacciaccworkaround.ly \version "2.22.1" % WORKAROUND FOR A SLASHED ACCIACCATURA % Uses (mostly) 7/4 virtual bars (invisible bar lines in the ly file) \score { \new PianoStaff << \new Staff = "up" \with { \remove "Time_signature_engraver" \override TupletBracket.bracket-visibility = ##t \clef treble midiInstrument = #"acoustic grand" } { % Bar 9 (7/4) - big problem with 'keep-alive' -- see LH part 1\p s8 % 7-note Change staff passage \override NoteHead.font-size = #-3 \once \override Beam.positions = #'(-4.0 . -4.0) \once \override TextScript.extra-offset = #'(-0.5 . -2.5) \stemDown fis''!8_\markup{\dynamic f \italic{secco}}[ \change Staff = "down" \stemUp c''8 \change Staff = "up" \stemDown e'' \change Staff = "down" \stemUp f' \change Staff = "up" \stemDown b'' \change Staff = "down" \stemUp a' \change Staff = "up" \stemDown g''] ~ g''4 \bar "" % Bar 10 \revert NoteHead.font-size \stemNeutral } %LOWER STAFF \new Staff = "down" \with { \remove "Time_signature_engraver" \override TupletBracket.bracket-visibility = ##t } { \set Staff.pedalSustainStyle = #'mixed % Bar 9 (2/4 + s8 + 5/4) << { g'1 \once \override TextScript.extra-offset = #'(2.5 . 4.0) s8^\markup{\draw-line #'(-2.5 . 4.0)}} \\ {des'8\sustainOn_( bes4 des'8 ~ des'8[ bes] ~ bes4_) s8\sustainOff} >> s2. s8 r4 \bar "" } >> }
Re: is this a slashed grace?
Hi David; It is amazingly sad that I read right past that warning. Thanks, Ken On Thu, Sep 15, 2022 at 10:07 PM David Wright wrote: > > Kenneth Wolcott wrote: > > > I asked this question regarding a different piece that I was engraving. > > > It looks like the slashed grace as shown in the Lilypond documentation > > > is not the same as what I have engraved (there is no slash). > > > Now another piece has come up with the same question. > > > Maybe these aren't slashed grace notes? Maybe (as usual) I'm doing > > > something wrong? > > > My input, my engraving and the origin I'm reading from are attached. > > Mark Stephen Mrotek wrote: > > > Are you referring to the ornaments is measures 3, 11, and 25? > > Kenneth Wolcott wrote: > > That's correct. > > https://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns > > Scroll down to: > > Known issues and warnings > > A multi-note beamed acciaccatura is printed without a slash, > and looks exactly the same as a multi-note beamed appoggiatura. > > Cheers, > David.
Re: is this a slashed grace?
> A multi-note beamed acciaccatura is printed without a slash, > and looks exactly the same as a multi-note beamed appoggiatura. And if you want to overcome this, look at https://lsr.di.unimi.it/LSR/Item?id=721 Werner
Re: is this a slashed grace?
Kenneth Wolcott wrote: > > I asked this question regarding a different piece that I was engraving. > > It looks like the slashed grace as shown in the Lilypond documentation is > > not the same as what I have engraved (there is no slash). > > Now another piece has come up with the same question. > > Maybe these aren't slashed grace notes? Maybe (as usual) I'm doing > > something wrong? > > My input, my engraving and the origin I'm reading from are attached. Mark Stephen Mrotek wrote: > > Are you referring to the ornaments is measures 3, 11, and 25? Kenneth Wolcott wrote: > That's correct. https://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns Scroll down to: Known issues and warnings A multi-note beamed acciaccatura is printed without a slash, and looks exactly the same as a multi-note beamed appoggiatura. Cheers, David.
Re: is this a slashed grace?
That's correct. On Thu, Sep 15, 2022 at 8:56 PM Mark Stephen Mrotek wrote: > > Kenneth, > > Are you referring to the ornaments is measures 3, 11, and 25? > > > > MArk > > > > From: lilypond-user > [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of > Kenneth Wolcott > Sent: Thursday, September 15, 2022 7:58 PM > To: Andrew Bernard > Cc: lilypond-user@gnu.org > Subject: Re: is this a slashed grace? > > > > Hi Andrew; > > > > I asked this question regarding a different piece that I was engraving. It > looks like the slashed grace as shown in the Lilypond documentation is not > the same as what I have engraved (there is no slash). > > > > Now another piece has come up with the same question. > > > > Maybe these aren't slashed grace notes? Maybe (as usual) I'm doing > something wrong? > > > > My input, my engraving and the origin I'm reading from are attached. > > > > Thanks, > > Ken Wolcott > > > > > > On Wed, Aug 24, 2022 at 8:44 PM Kenneth Wolcott > wrote: > > That's all I want to know, thanks! > > > > On Wed, Aug 24, 2022 at 8:36 PM Andrew Bernard > wrote: > > Yes. > > What is the problem? > > On 25/08/2022 12:35 pm, Kenneth Wolcott wrote: > > Is this a slashed grace? See attached screenshot. > >
RE: is this a slashed grace?
Kenneth, Are you referring to the ornaments is measures 3, 11, and 25? MArk From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Kenneth Wolcott Sent: Thursday, September 15, 2022 7:58 PM To: Andrew Bernard Cc: lilypond-user@gnu.org Subject: Re: is this a slashed grace? Hi Andrew; I asked this question regarding a different piece that I was engraving. It looks like the slashed grace as shown in the Lilypond documentation is not the same as what I have engraved (there is no slash). Now another piece has come up with the same question. Maybe these aren't slashed grace notes? Maybe (as usual) I'm doing something wrong? My input, my engraving and the origin I'm reading from are attached. Thanks, Ken Wolcott On Wed, Aug 24, 2022 at 8:44 PM Kenneth Wolcott mailto:kennethwolc...@gmail.com> > wrote: That's all I want to know, thanks! On Wed, Aug 24, 2022 at 8:36 PM Andrew Bernard mailto:andrew.bern...@mailbox.org> > wrote: Yes. What is the problem? On 25/08/2022 12:35 pm, Kenneth Wolcott wrote: > Is this a slashed grace? See attached screenshot. >
Re: is this a slashed grace?
That's all I want to know, thanks! On Wed, Aug 24, 2022 at 8:36 PM Andrew Bernard wrote: > Yes. > > What is the problem? > > On 25/08/2022 12:35 pm, Kenneth Wolcott wrote: > > Is this a slashed grace? See attached screenshot. > > > >
Re: is this a slashed grace?
Yes. What is the problem? On 25/08/2022 12:35 pm, Kenneth Wolcott wrote: Is this a slashed grace? See attached screenshot.
is this a slashed grace?
Is this a slashed grace? See attached screenshot.