Re: Chord glissTweak padding

2020-11-02 Thread David Kastrup
Aaron Hill writes: > On 2020-11-02 12:18 pm, Aaron Hill wrote: >> #{ \once \override Glissando.after-line-breaking = #proc >> <>\glissando #}) > > You can even simplify that expression using \tweak: > > #{ <>-\tweak after-line-breaking #proc \glissando #} > > Not sure if \tweak is cheape

Re: Chord glissTweak padding

2020-11-02 Thread Aaron Hill
On 2020-11-02 12:18 pm, Aaron Hill wrote: #{ \once \override Glissando.after-line-breaking = #proc <>\glissando #}) You can even simplify that expression using \tweak: #{ <>-\tweak after-line-breaking #proc \glissando #} Not sure if \tweak is cheaper than \once \override. -- Aaron

Re: Chord glissTweak padding

2020-11-02 Thread Aaron Hill
On 2020-11-02 12:18 pm, Aaron Hill wrote: \glissTweak needs to be able to handle using ly:grob-set-nested-property!: glissTweak = #(define-music-function (parser location lst) (pair?) (define (proc grob) (let ((gliss-count (ly:grob-property grob 'glissando-index))) (for-each

Re: Chord glissTweak padding

2020-11-02 Thread Aaron Hill
On 2020-11-02 11:48 am, Dimitris Marinakis wrote: Is it possible to modify this tweak to include padding (left & right) for the individual gliss lines? [...] \glissTweak needs to be able to handle using ly:grob-set-nested-property!: glissTweak = #(define-music-function (parser locat

Chord glissTweak padding

2020-11-02 Thread Dimitris Marinakis
Is it possible to modify this tweak to include padding (left & right) for the individual gliss lines? #(define (radians->degree radians) (/ (* radians 180) PI)) #(define ((gliss-plus-text padding text) grob) (let* ((text-stencil (grob-interpret-markup grob text)) (spanner-stencil (ly