[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make Grid take an edit id

From: Valentin Petzel
Subject: Re: Make Grid take an edit id
Date: Sat, 01 Jan 2022 23:51:04 +0100

Hello Jean,

Thank you for your input. We can of course use details for an id, that is 
true. A context name based approach would be thinkable, but maybe a bit 
complicated at times.

Similarly one could use an ID based approach like
\makeGrid id moment music
or something.

One important aspect of having an ID is being able to handle the produced 
grobs differently, as for example in the regtest file
where one id is blue, one red.


Am Samstag, 1. Jänner 2022, 23:23:51 CET schrieb Jean Abou Samra:
> Le 01/01/2022 à 21:14, Valentin Petzel a écrit :
> > Hello,
> > 
> > I’ve started an attempt for allow multiple different Grids by giving ids.
> > See the MR:
> > 
> > I’d love to hear your thoughts and critique on that. Also I suppose it
> > would be reasonable to add more controllable way of doing GridPoints than
> > just having them appear periodically. This would probably either call for
> > some sort of grid point event or at least some context property to force
> > a gridpoint even if the timestep is not a multiple of the grid interval.
> > Or something similar.
> I think it's a good idea to allow for several simulatenous
> grids not necessarily sharing the same period. On the other
> hand, the grid-id property seems a bit special-purpose to
> me given that you can already put any kind of ID on any
> grob using 'details. How about an interface based on
> context names?
> <<
>    \new Staff {
>      \makeGrid 4.*5/12 "down" % period as duration and grid end context
>      ...
>    }
>    \new Staff = "down" {
>      ...
>    }
> or
> <<
>    \makeGrid 4.*5/12 "up" "down"
>    \new Staff = "up" ...
>    \new Staff = "down" ...
> Best,
> Jean

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]