Re: Grace note beams won't hide correctly
Hi Ben, For the slash, may I commend to you my very well debugged and mature slash functions in the openlilylib library? They are quite general anbd have lots of parameters, If you don't have openlilylib already installed, it is not daunting as people seem to think. It's easy to install and use. You can pick the modules you need. Not to disparage the slash code in this thread, but a bit of reinventing a wheel here! I suppose a problem with openlilylib is that it is not well known what it contains. Not sure how we solve that problem. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grace note beams won't hide correctly
On 7/4/2019 5:50 PM, Aaron Hill wrote: On 2019-07-04 2:02 pm, Ben wrote: This is the first time I've encountered the need to hide /grace note/ beams and/or stems. Can someone show me what I am doing wrong? Here's my attempt, though it may not be the most ideal: \version "2.19.82" \language "english" overlaySlash = #(define-music-function (thickness length angle offset) (number? number? number? number-pair?) #{ \once \override Beam.stencil = #(grob-transformer 'stencil (lambda (grob orig) (let ((th (* (ly:staff-symbol-line-thickness grob) thickness)) (x (interval-start (ly:stencil-extent orig X))) (y (interval-start (ly:stencil-extent orig Y))) (hl (/ length 2))) (ly:stencil-add orig (ly:stencil-translate (ly:stencil-rotate (make-line-stencil th (- hl) 0 hl 0) angle 0 0) (cons (+ x (car offset)) (+ y (cdr offset #}) noStem = \omit Stem \relative c' { \overlaySlash 1.2 7 35 #'(2 . -1) \appoggiatura { e!8^[ \noStem g! c! fs bf ef bf fs c! \undo \noStem e,!] } \noStem df4 } -- Aaron Hill Aaron, This code works perfectly. Why do you say it's not ideal? It looks spot on. Thank you! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grace note beams won't hide correctly
On 7/4/2019 5:45 PM, Shane Brandes wrote: \undo \omit Stem That turns it back on. regards, Shane On Thu, Jul 4, 2019 at 5:07 PM Ben wrote: Hi all, This is the first time I've encountered the need to hide grace note beams and/or stems. Can someone show me what I am doing wrong? I'm attaching an image of what I am after. Thank you! Here is my code so far: \version "2.19.82" \language "english" \relative c' %% This hide the beams and stems, but I only want to hide the middle notes. { \omit Beam \omit Stem \appoggiatura { e!8(^[ g! c! fs bf ef bf fs c! e,!] df4) } } %% This hide the stems, and it's 99% there, but I can't figure out how to finish this with the correct beaming and slash. \relative c' { \appoggiatura { e!8(^[ \omit Beam \omit Stem g! c! fs bf ef bf fs c! e,!] df4) } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-use Hi Shane, When I try your code suggestion, it does look correct but I have errors in my log? Drawing systems... programming error: bounds of this piece aren't breakable. continuing, cross fingers % code \relative c' { \appoggiatura { e!8(^[ \omit Beam \omit Stem g! c! fs bf ef bf fs c! \undo \omit Stem e,!] df4) } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grace note beams won't hide correctly
On 2019-07-04 2:02 pm, Ben wrote: This is the first time I've encountered the need to hide /grace note/ beams and/or stems. Can someone show me what I am doing wrong? Here's my attempt, though it may not be the most ideal: \version "2.19.82" \language "english" overlaySlash = #(define-music-function (thickness length angle offset) (number? number? number? number-pair?) #{ \once \override Beam.stencil = #(grob-transformer 'stencil (lambda (grob orig) (let ((th (* (ly:staff-symbol-line-thickness grob) thickness)) (x (interval-start (ly:stencil-extent orig X))) (y (interval-start (ly:stencil-extent orig Y))) (hl (/ length 2))) (ly:stencil-add orig (ly:stencil-translate (ly:stencil-rotate (make-line-stencil th (- hl) 0 hl 0) angle 0 0) (cons (+ x (car offset)) (+ y (cdr offset #}) noStem = \omit Stem \relative c' { \overlaySlash 1.2 7 35 #'(2 . -1) \appoggiatura { e!8^[ \noStem g! c! fs bf ef bf fs c! \undo \noStem e,!] } \noStem df4 } -- Aaron Hill___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grace note beams won't hide correctly
\undo \omit Stem That turns it back on. regards, Shane On Thu, Jul 4, 2019 at 5:07 PM Ben wrote: > > Hi all, > > This is the first time I've encountered the need to hide grace note beams > and/or stems. Can someone show me what I am doing wrong? > > I'm attaching an image of what I am after. > > Thank you! > > Here is my code so far: > > > > \version "2.19.82" > \language "english" > > > \relative c' > > %% This hide the beams and stems, but I only want to hide the middle notes. > { > \omit Beam > \omit Stem > \appoggiatura { > e!8(^[ > > g! c! fs bf ef bf fs c! e,!] > df4) > } > } > > > %% This hide the stems, and it's 99% there, but I can't figure out how to > finish this with the correct beaming and slash. > > \relative c' > { > \appoggiatura { > e!8(^[ > > \omit Beam > \omit Stem > g! c! fs bf ef bf fs c! e,!] > > df4) > } > > } > > ___ > 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
Grace note beams won't hide correctly
Hi all, This is the first time I've encountered the need to hide /grace note/ beams and/or stems. Can someone show me what I am doing wrong? I'm attaching an image of what I am after. Thank you! Here is my code so far: \version "2.19.82" \language "english" \relative c' %% This hide the beams and stems, but I only want to hide the middle notes. { \omit Beam \omit Stem \appoggiatura { e!8(^[ g! c! fs bf ef bf fs c! e,!] df4) } } %% This hide the stems, and it's 99% there, but I can't figure out how to finish this with the correct beaming and slash. \relative c' { \appoggiatura { e!8(^[ \omit Beam \omit Stem g! c! fs bf ef bf fs c! e,!] df4) } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user