Re: Help understanding event listeners

2023-01-17 Thread Saul Tobin
Yeah, I played around with it a bit more and discovered the same thing. So the autoTransposeEngraver is listening to the event, and it's transposing the pitch-alist, but the Key_engraver is still actually engraving the untransposed version. A slightly different problem than what I initially

Re: Help understanding event listeners

2023-01-17 Thread Jean Abou Samra
Le 17/01/2023 à 10:10, Saul Tobin a écrit : What I can't figure out is why when my autoKeysigEngraver broadcasts a KeyChangeEvent, it gets picked up by the Key_engraver but not by the autoTransposeEngraver. What do you mean? If I insert ly:message calls, I see the event from

Re: Help understanding event listeners

2023-01-17 Thread Kieren MacMillan
Hi Saul, > I've been tinkering with the auto-transpose engraver from OLL, trying to > automatically print key signatures if the transposition has been changed. I'm just here to say (or maybe even sing?) “Did you ever know that you’re my hero?”. :) Kieren.

Help understanding event listeners

2023-01-17 Thread Saul Tobin
I've been tinkering with the auto-transpose engraver from OLL, trying to automatically print key signatures if the transposition has been changed. In the original code it looks like the plan was to have the engraver broadcast a KeyChangeEvent, but when I tried that it ended up in an infinite loop