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: >

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

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

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!

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))                

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=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

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

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

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

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,

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

Re: box around notes

2015-04-09 Thread Klaus Blum
... 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 message in context: http://lilypond.1069038.n5.nabble.com/box-around-notes-tp35581p174286.html Sent from the User mailing list

Re: box around notes

2015-04-07 Thread David Nalesnik
Hi Klaus. On Mon, Apr 6, 2015 at 4:55 PM, Klaus Blum benbigno...@gmx.de 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

Re: box around notes

2015-04-06 Thread Pierre Perol-Schneider
.nabble.com/box-around-notes-tp35581p174138.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: box around notes

2015-04-06 Thread Klaus Blum
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.nabble.com/box-around-notes-tp35581p174138.html Sent from

Re: box around notes

2015-04-06 Thread Pierre Perol-Schneider
/boxer4.pdf -- View this message in context: http://lilypond.1069038.n5.nabble.com/box-around-notes-tp35581p174138.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https

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.

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 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

Re: box around notes

2015-01-18 Thread David Nalesnik
Hi Klaus, On Sat, Jan 17, 2015 at 9:54 AM, Klaus Blum benbigno...@gmx.de 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

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

Re: box around notes

2015-01-16 Thread Klaus Blum
)) `( (filled ,boolean? Should we fill in this box?) ; add more properties here )) % -- View this message in context: http://lilypond.1069038.n5.nabble.com/box-around-notes-tp35581p170575.html Sent from the User mailing list archive at Nabble.com

Re: box around notes

2015-01-16 Thread David Nalesnik
Hi Klaus, On Fri, Jan 16, 2015 at 11:35 AM, Klaus Blum benbigno...@gmx.de 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

Re: box around notes

2015-01-10 Thread Klaus Blum
/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-tp35581p170307.html Sent from the User mailing list archive at Nabble.com

Re: box around notes

2015-01-10 Thread David Nalesnik
Hi Klaus, On Sat, Jan 10, 2015 at 7:03 PM, Klaus Blum benbigno...@gmx.de 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 http://lsr.di.unimi.it/LSR/Item?id=960 so what I found in this thread

Re: box around notes

2015-01-08 Thread David Nalesnik
Hi, On Thu, Jan 8, 2015 at 7:58 AM, David Nalesnik david.nales...@gmail.com wrote: Hi Marc, On Wed, Jan 7, 2015 at 7:43 PM, MarcM m...@mouries.net 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

Re: box around notes

2015-01-08 Thread David Nalesnik
Hi Marc, On Wed, Jan 7, 2015 at 7:43 PM, MarcM m...@mouries.net 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

Re: box around notes

2015-01-07 Thread MarcM
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. ___ lilypond-user mailing

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. Basically, the function creates a box

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,

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 on the highest