Re: Transparent box around notes

2024-05-04 Thread Paolo Prete
Thanks, I'll check it out! Il ven 3 mag 2024, 14:23 K. Blum ha scritto: > Hi Paolo, hi David, > > I've replaced the current stencil function with the one from the > openLilyLib "frames" module (which has even more capabilities). > Here is the result: > https://github.com/KlausBlum/Ly-Boxer-Snipp

Re: Transparent box around notes

2024-05-03 Thread K. Blum
Hi Paolo, hi David, I've replaced the current stencil function with the one from the openLilyLib "frames" module (which has even more capabilities). Here is the result: https://github.com/KlausBlum/Ly-Boxer-Snippet If you like, please feel free to experiment or add further things... I'll try to

Re: Transparent box around notes

2024-05-01 Thread K. Blum
Hi Paolo, But the alpha channel is ignored... Is there a way to fix this? AFAIK LilyPond cannot deal with alpha transparency at all. The impression of transparency is only achieved by placing the boxes in a layer behind the staff. I therefore replaced (see the attached file):        (if

Re: Transparent box around notes

2024-05-01 Thread Paolo Prete
Hello David and Klaus, A further improvement is to add colors with alpha channel. I therefore replaced (see the attached file): (if filled (ly:make-stencil (list 'color fill-color (list 'round-filled-box (- (- (car xext

Re: Transparent box around notes

2024-04-30 Thread Aaron Hill
On 2024-04-30 5:30 pm, David Nalesnik wrote: What LilyPond version is the LSR currently running? (I'm wondering if you are able to use the revised add-grob-definition there.) This is documented on the Contributing page [1]. [1]: https://lsr.di.unimi.it/LSR/html/contributing.html LSR appea

Re: Transparent box around notes

2024-04-30 Thread David Nalesnik
Hi Paolo, On Tue, Apr 30, 2024 at 4:09 PM Paolo Prete wrote: > Ta > > On Tue, Apr 30, 2024 at 8:04 PM K. Blum wrote: > >> Hi Paolo, hi everyone, >> >> > Yeah, it works if I just replace add-grob-definition with: >> > >> > #(define (add-grob-definition grob-name grob-entry) >> >(set! all-gro

Re: Transparent box around notes

2024-04-30 Thread Paolo Prete
Ta On Tue, Apr 30, 2024 at 8:04 PM K. Blum wrote: > Hi Paolo, hi everyone, > > > Yeah, it works if I just replace add-grob-definition with: > > > > #(define (add-grob-definition grob-name grob-entry) > >(set! all-grob-descriptions > > (cons ((@@ (lily) completize-grob-entry) > >

Re: Transparent box around notes

2024-04-30 Thread K. Blum
Hi Paolo, hi everyone, Yeah, it works if I just replace add-grob-definition with: #(define (add-grob-definition grob-name grob-entry)    (set! all-grob-descriptions          (cons ((@@ (lily) completize-grob-entry)                 (cons grob-name grob-entry))                all-grob-description

Re: Transparent box around notes

2024-04-30 Thread Paolo Prete
On Tue, Apr 30, 2024 at 6:38 AM Werner LEMBERG wrote: > > > [...] the snippet is _very_ useful, and certainly much easier to use > > than the lsr snippet. > > Please submit the example as a new LSR snippet. > > I submitted it (see: https://lsr.di.unimi.it/LSR/Item?u=1&id=1188 ) but the second box

Re: Transparent box around notes

2024-04-29 Thread Werner LEMBERG
> [...] the snippet is _very_ useful, and certainly much easier to use > than the lsr snippet. Please submit the example as a new LSR snippet. Note that we already have a (slightly different) issue for that: https://gitlab.com/lilypond/lilypond/-/issues/833 It would certainly help if you co

Re: Transparent box around notes

2024-04-29 Thread Paolo Prete
Yeah, it works if I just replace add-grob-definition with: #(define (add-grob-definition grob-name grob-entry) (set! all-grob-descriptions (cons ((@@ (lily) completize-grob-entry) (cons grob-name grob-entry)) all-grob-descriptions))) That said, the snipp

Re: Transparent box around notes

2024-04-28 Thread Robin Bannister
Paolo Prete wrote: Note that there's also this (no trial-and-error): https://lists.gnu.org/archive/html/lilypond-user/2015-01/msg00142.html But it doesn't compile with 2.24... That's due to merge request !818 [1], applied between 2.23.3 and 2.23.4. Simon Albrecht ran into the same problem i

Re: Transparent box around notes

2024-04-27 Thread Paolo Prete
Note that there's also this (no trial-and-error): https://lists.gnu.org/archive/html/lilypond-user/2015-01/msg00142.html But it doesn't compile with 2.24... On Sat, Apr 27, 2024 at 2:20 PM Paolo Prete wrote: > Thanks for the tip, but unfortunately it doesn't seem to fit what I'm > looking for.

Re: Transparent box around notes

2024-04-27 Thread Paolo Prete
Thanks for the tip, but unfortunately it doesn't seem to fit what I'm looking for. Looking for example at https://lsr.di.unimi.it/LSR/Search?q=background+%7C+colorspan , the box coordinates must be calculated with a trial and error procedure, which is pretty tedious. Cheers, P On Sat, Apr 27, 202

Re: Transparent box around notes

2024-04-27 Thread Robin Bannister
Paolo Prete wrote: Something like: \coloredBox color offsLeft offsTop offsRight offsBottom "labelstring" labeldirection { c' e' f' } Many thanks for your help! Paolo This may get you started: https://lsr.di.unimi.it/LSR/Search?q=background+%7C+colorspan Cheers, Robin

Transparent box around notes

2024-04-26 Thread Paolo Prete
Hello LilyPonders, How can I draw a box around a group of notes so that (see the attached image) 1) it is filled with a transparent color 2) it occupies the minimum area that includes the notes + four (optional) offsets (left, top, right, bottom) that can be set by the user? 3) ... it would be gr

Re: box around notes

2015-04-09 Thread Klaus Blum
nding-pure-properties Yeah, always open to new challenges, even if understanding this will be a task for a lifetime... I'll be back in a few years. ;-) Seriously, I'll give it a try. David Nalesnik-2 wrote > Hope this helps somewhat! Definitely! Cheers, Klaus -- View this

Re: box around notes

2015-04-07 Thread David Nalesnik
Hi Klaus. On Mon, Apr 6, 2015 at 4:55 PM, Klaus Blum wrote: > Hi David, > > here's my first attempt to apply my drawing function to your project. > Thanks > again for sharing this really cool tool! > You're very welcome. What you've done with it is really impressive, and I hope that one day th

Re: box around notes

2015-04-06 Thread Pierre Perol-Schneider
I've add it as a markup, just in case. Cheers Pierre 2015-04-07 6:08 GMT+02:00 Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com>: > Hi Simon, > Hmm interesting question... > Well, actually I don't remember, it's quite old now. > What I can imagine is that I didn't want to have to add '\m

Re: box around notes

2015-04-06 Thread Pierre Perol-Schneider
Hi Simon, Hmm interesting question... Well, actually I don't remember, it's quite old now. What I can imagine is that I didn't want to have to add '\markup'-s, e.g.: title = \markup\smiley #size instead of: title = \smiley #size But to be honest, there must be a reason, I simply don't remember it

Re: box around notes

2015-04-06 Thread Simon Albrecht
Am 07.04.2015 um 00:07 schrieb Pierre Perol-Schneider: BTW, regarding the smiley up on the last rest, did you see this: http://lsr.di.unimi.it/LSR/Item?id=904 What’s your reason to not code that one with smiley = #(define-markup-function …)? Just asking, it might be irrelevant to the output. Bu

Re: box around notes

2015-04-06 Thread Pierre Perol-Schneider
LilyPond acts behind the scenes is still a mystery to me... >> >> Cheers, >> Klaus >> >> boxer4.ly <http://lilypond.1069038.n5.nabble.com/file/n174138/boxer4.ly> >> boxer4.pdf <http://lilypond.1069038.n5.nabble.com/file/n174138/boxer4.pdf >> >

Re: box around notes

2015-04-06 Thread Pierre Perol-Schneider
Cheers, > Klaus > > boxer4.ly <http://lilypond.1069038.n5.nabble.com/file/n174138/boxer4.ly> > boxer4.pdf <http://lilypond.1069038.n5.nabble.com/file/n174138/boxer4.pdf> > > > > -- > View this message in context: > http://lilypond.1069038.n5.nabble.com/b

Re: box around notes

2015-04-06 Thread Klaus Blum
d acts behind the scenes is still a mystery to me... Cheers, Klaus boxer4.ly <http://lilypond.1069038.n5.nabble.com/file/n174138/boxer4.ly> boxer4.pdf <http://lilypond.1069038.n5.nabble.com/file/n174138/boxer4.pdf> -- View this message in context: http://lilypond.1069038.n5.

Re: box around notes

2015-01-18 Thread David Nalesnik
Hi Klaus, On Sat, Jan 17, 2015 at 9:54 AM, Klaus Blum wrote: > Hi David, > > one more big THANK YOU for your fast reply. > You're very welcome! > Yes, it was very helpful. > I have updated music-boxer-stencil so that it works again with the > boxEngraver. Finally I did some cleanup to my mes

Re: box around notes

2015-01-17 Thread Klaus Blum
Hi David, one more big THANK YOU for your fast reply. Yes, it was very helpful. I have updated music-boxer-stencil so that it works again with the boxEngraver. Finally I did some cleanup to my messy code in make-box. Greetings from Germany, Klaus Am 16.01.2015 um 20:30 schrieb David Nalesnik

Re: box around notes

2015-01-16 Thread David Nalesnik
Hi Klaus, On Fri, Jan 16, 2015 at 11:35 AM, Klaus Blum wrote: > Hi David, > thanks again. You're my hero: now it works. > > > I've added a few things so far: > > - "thickness" property can be used to control frame thickness, can even be > set to zero ("color" property and "layer" property work b

Re: box around notes

2015-01-16 Thread Klaus Blum
t-object-property! symbol 'backend-type? type?) > (set-object-property! symbol 'backend-doc description) > symbol) > > #(map > (lambda (x) > (apply define-grob-property x)) > > `( > (filled ,boolean? > "Should we fill in this box?

Re: box around notes

2015-01-10 Thread David Nalesnik
Hi Klaus, On Sat, Jan 10, 2015 at 7:03 PM, Klaus Blum wrote: > Hi David, > > thanks for your work - this is a really great tool. > > I often work with things like this: > http://lsr.di.unimi.it/LSR/Item?id=960 > > so what I found in this thread is very

Re: box around notes

2015-01-10 Thread Klaus Blum
boxer-attempt.ly <http://lilypond.1069038.n5.nabble.com/file/n170307/boxer-attempt.ly> boxer-attempt.png <http://lilypond.1069038.n5.nabble.com/file/n170307/boxer-attempt.png> -- View this message in context: http://lilypond.1069038.n5.nabble.com/box-around-notes

Re: box around notes

2015-01-08 Thread David Nalesnik
Hi, On Thu, Jan 8, 2015 at 7:58 AM, David Nalesnik wrote: > Hi Marc, > > On Wed, Jan 7, 2015 at 7:43 PM, MarcM wrote: > >> i tried examples in this old post but none of them compile in 2.19.15. >> > > [Visible at Nabble link at bottom of message] > > Yes, there have been a lot of changes to Lil

Re: box around notes

2015-01-08 Thread David Nalesnik
Hi Marc, On Wed, Jan 7, 2015 at 7:43 PM, MarcM wrote: > i tried examples in this old post but none of them compile in 2.19.15. > [Visible at Nabble link at bottom of message] Yes, there have been a lot of changes to LilyPond internals since that was written. > > I created a sample example. >

Re: box around notes

2015-01-07 Thread MarcM
ns #'(-2 . 2.5) #'(0 . 5.5) \null} g8-3 d-0 g d g8-4 d-0 g d } } \score { \new Staff { \melody } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/box-around-notes-tp35581p170210.html Sent from the User mailing list archive at Nabble.com. __

Re: box around notes

2011-12-16 Thread David Nalesnik
Hi Mike, Thank you so much for pointing me in the right direction! On Fri, Dec 16, 2011 at 2:06 AM, m...@apollinemike.com < m...@apollinemike.com> wrote: > > Hey David, > > Once articulations are in the game, I'd recommend creating a custom Scheme > engraver that collects all the grobs you want,

Re: box around notes

2011-12-16 Thread m...@apollinemike.com
On Dec 16, 2011, at 6:27 AM, David Nalesnik wrote: > Hi all, > > I'm trying to write a function to add a box around notes. I've come up with > the following, and I'm wondering if anyone has any ideas how to improve it or > perhaps a different approach. > &g

box around notes

2011-12-15 Thread David Nalesnik
Hi all, I'm trying to write a function to add a box around notes. I've come up with the following, and I'm wondering if anyone has any ideas how to improve it or perhaps a different approach. Basically, the function creates a box as a TextSpanner. The height of the box is based