Re: Explicit placement of rests in a percussion staff

2021-02-27 Thread David Kastrup
Aaron Hill writes: > On 2021-02-27 3:10 am, David Kastrup wrote: >> [...] Which begs the >> question whether it would not make sense to let Rest_engraver look at >> drum-type in the same manner it looks at pitch for the sake of >> potentially resolving the drum-type to staff-position mapping. >

Re: Explicit placement of rests in a percussion staff

2021-02-27 Thread Aaron Hill
On 2021-02-27 3:10 am, David Kastrup wrote: [...] Which begs the question whether it would not make sense to let Rest_engraver look at drum-type in the same manner it looks at pitch for the sake of potentially resolving the drum-type to staff-position mapping. I'm not a percussionist; but it

Re: Explicit placement of rests in a percussion staff

2021-02-27 Thread David Kastrup
Lukas-Fabian Moser writes: > Hi Aaron, > >> \tweak form is a little shorter, although you could bake this into a >> function if you needed to use this a lot: >> >> >> \version "2.22.0" >> >> "\\@" = >> #(define-music-function >>   (staff-position music) >>   (integer? ly:music?) >>   #{

Re: Explicit placement of rests in a percussion staff

2021-02-27 Thread Lukas-Fabian Moser
Hi Aaron, \tweak form is a little shorter, although you could bake this into a function if you needed to use this a lot: \version "2.22.0" "\\@" = #(define-music-function   (staff-position music)   (integer? ly:music?)   #{ \tweak staff-position #staff-position #music #}) \new

Re: Explicit placement of rests in a percussion staff

2021-02-27 Thread Aaron Hill
On 2021-02-27 1:22 am, Thomas Morley wrote: I'd use an override for 'staff-position: \once \override Rest.staff-position = -4 looks ok here. \tweak form is a little shorter, although you could bake this into a function if you needed to use this a lot: \version "2.22.0" "\\@" =

Re: Explicit placement of rests in a percussion staff

2021-02-27 Thread Thomas Morley
Am Sa., 27. Feb. 2021 um 00:05 Uhr schrieb Calvin Ransom : > > I copied the wrong snippet version, my apologies. > **begining of snippet** > \score{ > \new DrumStaff > \drummode { > bd4\rest > } > } > **end of snippet** > > On Sat, Feb 27, 2021 at 3:03 PM Calvin Ransom wrote: >> >> Good

Re: Explicit placement of rests in a percussion staff

2021-02-27 Thread Lukas-Fabian Moser
\once \override Rest.Y-offset = #2 r Or, saving a few keystrokes: \tweak Y-offset 2 r4 Lukas

Re: Explicit placement of rests in a percussion staff

2021-02-26 Thread Andrew Bernard
You could say something like: \once \override Rest.extra-offset = #'(0 . 3) r4 People don't like using extra-offset for various reasons, but sometimes it does the job just fine. Andrew

Re: Explicit placement of rests in a percussion staff

2021-02-26 Thread Calvin Ransom
\version "2.22.0" \score{ \new DrumStaff \drummode { << { sn16 16 16 16 } \\ { \once \override Rest.Y-offset = #1.5 r4 } >>%m54-65 } } On Fri, Feb 26, 2021 at 4:31 PM Calvin Ransom wrote: > Hi Andrew, > It half-works on what I am trying to do,

Re: Explicit placement of rests in a percussion staff

2021-02-26 Thread Andrew Bernard
Post an MWE with the polyphony. Andrew Calvin Ransom wrote on 27/02/2021 11:31 AM: Hi Andrew, It half-works on what I am trying to do, I am attempting to get the rest closer to the one above it (I have polyphony) Your code works but I can't get the rest closer, I believe I have to do

Re: Explicit placement of rests in a percussion staff

2021-02-26 Thread Calvin Ransom
Hi Andrew, It half-works on what I am trying to do, I am attempting to get the rest closer to the one above it (I have polyphony) Your code works but I can't get the rest closer, I believe I have to do another override but I am unsure as to what. Thank you! Calvin Ransom On Fri, Feb 26, 2021 at

Re: Explicit placement of rests in a percussion staff

2021-02-26 Thread Andrew Bernard
Would something like this work for you? \version "2.23.0" \score{ \new DrumStaff { \drummode { cymc hh ss tomh bd \once \override Rest.Y-offset = #2 r } } } Andrew

Re: Explicit placement of rests in a percussion staff

2021-02-26 Thread Calvin Ransom
I copied the wrong snippet version, my apologies. **begining of snippet** \score{ \new DrumStaff \drummode { bd4\rest } } **end of snippet** On Sat, Feb 27, 2021 at 3:03 PM Calvin Ransom wrote: > Good afternoon everyone, > I am trying to move the vertical position of a rest in some

Explicit placement of rests in a percussion staff

2021-02-26 Thread Calvin Ransom
Good afternoon everyone, I am trying to move the vertical position of a rest in some percussion music I am typesetting for my teacher. I am using v. 2.22.0 In the manual it says 'To explicitly specify a rest’s vertical position, write a note followed by \rest." When I use the following snippet it