Re: 'cloning' Voice properties

2024-07-17 Thread Werner LEMBERG
> > > why not: > > > [\once] \override Staff.Stem.direction = #UP/DOWN > > > ? > > > > Well, if I could get this info within the music function, I would > > pass it on to `\new Voice` as you describe. So: How do I get this > > info from the current context? Ah, bad answer from me; I missed th

Re: 'cloning' Voice properties

2024-07-17 Thread Thomas Morley
Am Mi., 17. Juli 2024 um 11:02 Uhr schrieb Werner LEMBERG : > > > >> ``` > >> \version "2.25.18" > >> > >> foo = > >> #(define-music-function () () > >> #{ > >> << > >> c'4 > >> \new Voice { g''4 } > >> >> > >> #}) > >> > >> { > >> \override Staff.NoteColumn.ignore-collisio

Re: 'cloning' Voice properties

2024-07-17 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 `\

Re: 'cloning' Voice properties

2024-07-17 Thread Thomas Morley
Am So., 14. Juli 2024 um 18:38 Uhr schrieb Werner LEMBERG : > > > Folks, > > > consider the following snippet. > > > ``` > \version "2.25.18" > > foo = > #(define-music-function () () > #{ > << > c'4 > \new Voice { g''4 } > >> > #}) > > { > \override Staff.NoteColumn.ignore

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

'cloning' Voice properties

2024-07-14 Thread Werner LEMBERG
Folks, consider the following snippet. ``` \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` d