Re: 'cloning' Voice properties

2024-07-15 Thread Werner LEMBERG
> ``` > \version "2.25.18" > > foo = > #(define-music-function () () > #{ > << > c'4 > \new Voice { g''4 } > >> > #}) > > { > \override Staff.NoteColumn.ignore-collision = ##t > c'4 \foo \stemUp \foo \stemDown \foo > } > ``` > > As can be seen, the `\new Voice` doesn't

get interval size of chord in music function

2024-07-15 Thread Werner LEMBERG
I want to find the interval size of a two-note chord in a music function, and I came up with the following solution. ```tex showInterval = #(define-music-function (ev-chord) (ly:music?) (define (interval-string a b) (number->string (1+ (ly:pitch-steps (- b a) (let* ((notes (ex

Re: Suggestion for LSR #304

2024-07-15 Thread Werner LEMBERG
> Also, I’m sure you didn’t mean it that way, but the improvement to > the LSR snippet is worthwile regardless, I think. Yep. > Going to greater lengths though—while reading your code I wondered > whether it wouldn’t make sense to go the step of not taking strings > as arguments (specifying the

Re: Suggestion for LSR #304

2024-07-15 Thread Simon Albrecht
Hi Werner, On 13.07.24 06:36, Werner LEMBERG wrote: I came across LSR #304https://lsr.di.unimi.it/LSR/Item?id=304 and I think we should suggest a coding with variables there, like this: [...] Yes, LilyPond should be both more supportive and more 'user friendly' here; this is tracked as htt

Re: beaming of eighth note question for 4/4

2024-07-15 Thread Mats Bengtsson
As far as I can understand, the automatic beaming algorithm is not clever enough to be able to handle the requested behavior, i.e. to distinguish between full groups of 4 8th notes and patterns like "r8 c c c". I'm afraid that it would be fairly complicated t

Re: baseMoment in the latter half of a measure

2024-07-15 Thread Xavier Scheuer
On Mon, 15 Jul 2024 at 14:26, Masaki, Akikazu < masaki-0.56714...@zeus.eonet.ne.jp> wrote: > > Hello, > > \set Timing.baseMoment seems not to work in the latter half of a measure. > Is it a bug, or some setting is missing? > > % > \version "2.24.3" > { >\set Timing.baseMoment = #(ly:mak

baseMoment in the latter half of a measure

2024-07-15 Thread Masaki, Akikazu
Hello, \set Timing.baseMoment seems not to work in the latter half of a measure. Is it a bug, or some setting is missing? % \version "2.24.3" { \set Timing.baseMoment = #(ly:make-moment 1/8) \set beamExceptions = #'() \repeat unfold 32 { a32 } }

Re: Vertically align objects of same class?

2024-07-15 Thread Valentin Petzel
Adapting my previous code to work with spanners: % #(define (outside-staff-collecting-engraver context) (let* ((span_up #f) (span_down #f)) (make-engraver ((initialize engraver) (set! span_up (ly:engraver-make-grob engraver 'TextSpanner '())) (ly:grob-set-property! span_up

Re: beaming of eighth note question for 4/4

2024-07-15 Thread Paul Hodges
The way to change the beaming behaviour in LilyPond is described at: https://lilypond.org/doc/v2.25/Documentation/notation/setting-automatic-beam-behavior For the case of quavers in 4/4 time, Gould starts with the grouping used in the LilyPond default, but also suggests (page 154) situations whe

Re: Matching Lilypond and Word font sizes

2024-07-15 Thread Xavier Scheuer
On Mon, 15 Jul 2024 at 09:18, Werner LEMBERG wrote: > > If you use `\abs-fontsize`, you get a font size (in markups) in points > regardless of the selected staff size. Hello, And the default text font size is 11pt for a default staff size (20pt), as documented by Werner in NR 1.8.2 https://lilyp

Re: Matching Lilypond and Word font sizes

2024-07-15 Thread Werner LEMBERG
> Tell me where you can find out or see how the font sizes in > lilypond and Word correspond. For example, \SetFontSize = #1, What is `\SetFontSize`? > \abs-font size #1, how do they match the font size in Word? If you use `\abs-fontsize`, you get a font size (in markups) in points regardl