Re: How to display a rim shot
Nice ... I was wondering just how to do something like that!! Thanks so much Lukas > On September 10, 2018 at 1:59 PM Lukas-Fabian Moser wrote: > > > > >> Would something like the following help? > > Just for ease of use: > > > \version "2.19.82" > > slash-over-note = #(lambda (grob) >(let* ((note (ly:note-head::print grob)) > (x-extent (ly:stencil-extent note X)) > (y-extent (ly:stencil-extent note Y)) > (scaling (magstep (ly:grob-property grob 'font-size 0.0))) > (slash (ly:make-stencil (list 'draw-line 0.15 0 1.5 1.5 0) '(0 > . 1.5) '(0 . 1.5))) > (transformed (ly:stencil-translate > (ly:stencil-scale (centered-stencil slash) scaling scaling) > (cons (interval-center x-extent) (interval-center y-extent > (combined (ly:stencil-add note transformed))) > (ly:make-stencil (ly:stencil-expr combined) x-extent y-extent))) > > slashesOn = \override NoteHead.stencil = #slash-over-note > slashesOff = \revert NoteHead.stencil > withSlash = \once \slashesOn > > rhythms = \drummode { >snare 4 \withSlash 8 8 2 >\slashesOn 4 8 8 16 16 8 \slashesOff 4 > } > \score { >\new DrumStaff \rhythms > } > > Best > Lukas > > ___ > 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: How to display a rim shot
Awesome!!! That is just what I wanted. Thanks so much Aaron > On September 10, 2018 at 12:31 PM Aaron Hill wrote: > > > On 2018-09-09 4:46 pm, OTIS DOSS III wrote: > > > > As my subject indicates, I want to display a rim shot, which is > > typically indicated by a note with a diagonal slash: > > > > I've searched the documentation, but I can't find out how to do > > this. > > Can this been done? And how? Thanks times infinity in advance for > > any help. > > > > > Hi Bill, > > Would something like the following help? > > > \version "2.19.82" > > slash-over-note = #(lambda (grob) > (let* ((note (ly:note-head::print grob)) > (x-extent (ly:stencil-extent note X)) > (y-extent (ly:stencil-extent note Y)) > (scaling (magstep (ly:grob-property grob 'font-size 0.0))) > (slash (ly:make-stencil (list 'draw-line 0.15 0 1.5 1.5 0) '(0 > . 1.5) '(0 . 1.5))) > (transformed (ly:stencil-translate > (ly:stencil-scale (centered-stencil slash) scaling scaling) > (cons (interval-center x-extent) (interval-center > y-extent > (combined (ly:stencil-add note transformed))) > (ly:make-stencil (ly:stencil-expr combined) x-extent y-extent))) > > rhythms = \drummode { snare 4 8 8 2 } > \score { << \new DrumStaff { \rhythms > \override NoteHead.stencil = #slash-over-note \rhythms > \revert NoteHead.stencil \rhythms > } >> } > > > -- Aaron Hill___ > lilypond-user mailing list > lilypond-user@gnu.org mailto: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
How to display a rim shot
Hi I'm a newbie to the lilypond-user list (so please go easy on me :) . I've been using LilyPond for several years now to create drum transcriptions. I absolutely love it!! (A job well done to all of the developers.) As my subject indicates, I want to display a rim shot, which is typically indicated by a note with a diagonal slash: I've searched the documentation, but I can't find out how to do this. Can this been done? And how? Thanks times infinity in advance for any help. Bill___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user