Re: Request for a stencil alignment helper

2021-02-27 Thread Aaron Hill
On 2021-02-27 3:55 pm, Dimitris Marinakis wrote: Is it possible to make a "stencil-wrapper" that will show the vertical centre of a stencil and have an extending line of variable length (which of course won't distort the spacing of the actual score)? Yes, though much of the particular work

Request for a stencil alignment helper

2021-02-27 Thread Dimitris Marinakis
Is it possible to make a "stencil-wrapper" that will show the vertical centre of a stencil and have an extending line of variable length (which of course won't distort the spacing of the actual score)? Something along the lines of the special-points stencil for slurs in the shapeII code. This

Re: Lilypond Substitution Function

2021-02-27 Thread Ken Ledeen
Jean, Merci This is a perfect solution, and, a clear explanation about why my solution failed. Thank you very much Ken Ledeen Mobile:617-817-3183 www.nevo.com www.bitsbook.com tiny.cc/KenLedeen tiny.cc/KenLedeenAmazon ᐧ On Sat, Feb 27, 2021 at 10:43 AM Jean Abou Samra

Re: Lilypond Substitution Function

2021-02-27 Thread Jean Abou Samra
Le 27/02/2021 à 02:16, Ken Ledeen a écrit : I am struggling to understand the restrictions on substitution functions. For example: 1) can a function include "\score { ...}"  or can it only be invoked INSIDE a \score? 2) is it possible to include \header { ...}  inside a substitution

Lilypond Substitution Function

2021-02-27 Thread Ken Ledeen
I am struggling to understand the restrictions on substitution functions. For example: 1) can a function include "\score { ...}" or can it only be invoked INSIDE a \score? 2) is it possible to include \header { ...} inside a substitution function? It fails when I try, but I don't understand

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