Re: Remove all occurrencies of "0" fingerings

2017-08-15 Thread Marc Hohl
Am 15.08.2017 um 10:15 schrieb David Kastrup: Marc Hohl writes: [...] For the record: First, I used the solution with grob-transformer, but then I found out that removing the grob completely yields to problems with glissando lines between fingerings, so I switched to the

Re: Remove all occurrencies of "0" fingerings

2017-08-15 Thread David Kastrup
Marc Hohl writes: > Am 08.08.2017 um 12:35 schrieb Thomas Morley: >> 2017-08-08 11:46 GMT+02:00 Marc Hohl : > [...] >> Hi Marc, >> >> your initial code had two problems, comments inline: >> >> \override Fingering.stencil = >>#(lambda (grob) >> (let*

Re: Remove all occurrencies of "0" fingerings

2017-08-15 Thread Marc Hohl
Am 08.08.2017 um 12:35 schrieb Thomas Morley: 2017-08-08 11:46 GMT+02:00 Marc Hohl : [...] Hi Marc, your initial code had two problems, comments inline: \override Fingering.stencil = #(lambda (grob) (let* ((text (ly:grob-property grob 'text)) (stencil

Re: Remove all occurrencies of "0" fingerings

2017-08-09 Thread Marc Hohl
Am 08.08.2017 um 18:44 schrieb David Kastrup: Marc Hohl writes: Am 08.08.2017 um 13:00 schrieb Thomas Morley: 2017-08-08 12:47 GMT+02:00 David Kastrup : You can do this by using [...] Nice one. I always forget about 'grob-transformer'. Missing bracket,

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread David Kastrup
Marc Hohl writes: > Am 08.08.2017 um 13:00 schrieb Thomas Morley: >> 2017-08-08 12:47 GMT+02:00 David Kastrup : >> >>> >>> You can do this by using >> [...] >> >> Nice one. I always forget about 'grob-transformer'. Missing bracket, tho' > > I wasn't aware of

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread Marc Hohl
Am 08.08.2017 um 13:00 schrieb Thomas Morley: 2017-08-08 12:47 GMT+02:00 David Kastrup : You can do this by using [...] Nice one. I always forget about 'grob-transformer'. Missing bracket, tho' I wasn't aware of grob-transformer at all. And I am still unsure about what it

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread Marc Hohl
Am 08.08.2017 um 12:47 schrieb David Kastrup: Marc Hohl writes: I wanted to write a little callback to remove all occurrencies of "0" fingerings. This is what I got so far: \version "2.19.63" music = { c'4-3 d'-0 e'-2 f'-3 | g'1-0 } \score { \new Staff \with {

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread David Kastrup
Thomas Morley writes: > 2017-08-08 12:47 GMT+02:00 David Kastrup : > >> >> You can do this by using > [...] > > Nice one. I always forget about 'grob-transformer'. Missing bracket, tho' Edited out a debug printer before posting (which is why I figured the

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread Thomas Morley
2017-08-08 12:47 GMT+02:00 David Kastrup : > > You can do this by using [...] Nice one. I always forget about 'grob-transformer'. Missing bracket, tho' \score { \new Staff \with { \override Fingering.text = #(grob-transformer 'text (lambda (grob default) (if

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread David Kastrup
Marc Hohl writes: > I wanted to write a little callback to remove all occurrencies > of "0" fingerings. This is what I got so far: > > > \version "2.19.63" > > music = { > c'4-3 d'-0 e'-2 f'-3 | g'1-0 > } > > \score { > \new Staff \with { > \override Fingering.stencil =

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread Thomas Morley
2017-08-08 11:46 GMT+02:00 Marc Hohl : > Hi Malte, > > Am 08.08.2017 um 10:30 schrieb Malte Meyn: >> >> >> >> Am 08.08.2017 um 10:23 schrieb Marc Hohl: >>> >>> >>> I wanted to write a little callback to remove all occurrencies >>> of "0" fingerings. >> >> >> This doesn’t empty the

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread Marc Hohl
Hi Malte, Am 08.08.2017 um 10:30 schrieb Malte Meyn: Am 08.08.2017 um 10:23 schrieb Marc Hohl: I wanted to write a little callback to remove all occurrencies of "0" fingerings. This doesn’t empty the stencil but removes the Fingering grobs completely (by suicide): thanks for this

Re: Remove all occurrencies of "0" fingerings

2017-08-08 Thread Malte Meyn
Am 08.08.2017 um 10:23 schrieb Marc Hohl: I wanted to write a little callback to remove all occurrencies of "0" fingerings. This doesn’t empty the stencil but removes the Fingering grobs completely (by suicide): \override Fingering.before-line-breaking = #(lambda (grob)