Re: Conditional markup? UP|DOWN

2024-05-01 Thread Pierre-Luc Gauthier
Thank you so much Aaron, How could I have *never* used chain-assoc-get. I've read the docs about it since then. I also used (display props) to know what was available (which by itself was instructing). Again, I'm very grateful for your help. Le lun. 29 avr. 2024, à 12 h 43, Aaron Hill a écrit :

Re: Conditional markup? UP|DOWN

2024-04-29 Thread Aaron Hill
On 2024-04-29 7:50 am, Pierre-Luc Gauthier wrote: Can a markup command introspect its direction ? Is it possible to set in a markup command some conditionals (not paper related) ? \version "2.25.15" #(define-markup-command (conditionalMrkp layout props) () (interpret-markup layout props

Conditional markup? UP|DOWN

2024-04-29 Thread Pierre-Luc Gauthier
Can a markup command introspect its direction ? Is it possible to set in a markup command some conditionals (not paper related) ? \version "2.25.15" #(define-markup-command (conditionalMrkp layout props) () (interpret-markup layout props #{ \markup { %\if #DOWN "↑"

Re: conditional markup

2014-06-15 Thread James
On 15/06/14 15:43, Orm Finnendahl wrote: > Hi David, > > thanks a lot for the comment. > > Am Sonntag, den 15. Juni 2014 um 16:07:01 Uhr (+0200) schrieb David Kastrup: >> A music function has to return music, period. Different music may be >> used in different contexts, but a music function cannot

Re: conditional markup

2014-06-15 Thread Orm Finnendahl
Hi David, thanks a lot for the comment. Am Sonntag, den 15. Juni 2014 um 16:07:01 Uhr (+0200) schrieb David Kastrup: > > A music function has to return music, period. Different music may be > used in different contexts, but a music function cannot return anything > but music. Maybe it would be

Re: conditional markup

2014-06-15 Thread David Kastrup
Orm Finnendahl writes: > Am Sonntag, den 15. Juni 2014 um 14:26:36 Uhr (+0200) schrieb David Kastrup: >> Orm Finnendahl writes: >> Would you have preferred >> >> orm.ly:11:20: error: music function cannot return \markup \line { "Test"} > > that doesn't really matter, the problem for me was, wh

Re: conditional markup

2014-06-15 Thread Orm Finnendahl
Am Sonntag, den 15. Juni 2014 um 14:26:36 Uhr (+0200) schrieb David Kastrup: > Orm Finnendahl writes: > Would you have preferred > > orm.ly:11:20: error: music function cannot return \markup \line { "Test"} that doesn't really matter, the problem for me was, whether the error message meant "mus

Re: conditional markup

2014-06-15 Thread David Kastrup
Orm Finnendahl writes: > Hi, > > Am Samstag, den 14. Juni 2014 um 16:56:36 Uhr (+0200) schrieb David Kastrup: >> Notice the - before the markup, turning this into a post-event. > > Thanks, that was the missing link. I had tried define-event-function > and got stuck as it appeared to be pre-event.

Re: conditional markup

2014-06-15 Thread Orm Finnendahl
Hi, Am Samstag, den 14. Juni 2014 um 16:56:36 Uhr (+0200) schrieb David Kastrup: > Notice the - before the markup, turning this into a post-event. Thanks, that was the missing link. I had tried define-event-function and got stuck as it appeared to be pre-event. BTW: This meaning of the error mes

Re: conditional markup

2014-06-14 Thread David Kastrup
Orm Finnendahl writes: > Hi, > > for defining markups which appear selectively either only in the > parts or only in the score I'm trying to use the following strategy: > > I include a "score-defs.ly" or "part-defs.ly" file in the score or > part respectively and define commands like "sMarkup" f

Re: conditional markup

2014-06-14 Thread Orm Finnendahl
Am Samstag, den 14. Juni 2014 um 14:17:44 Uhr (+0100) schrieb Phil Holmes: > Had you considered using tags instead? No, thanks, I wasn't aware of this. Seems to be exactly what I need. -- Orm ___ lilypond-user mailing list lilypond-user@gnu.org https:/

Re: conditional markup

2014-06-14 Thread Phil Holmes
- Original Message - From: "Orm Finnendahl" To: Sent: Saturday, June 14, 2014 2:07 PM Subject: conditional markup Hi, for defining markups which appear selectively either only in the parts or only in the score I'm trying to use the following strategy: I include a

conditional markup

2014-06-14 Thread Orm Finnendahl
Hi, for defining markups which appear selectively either only in the parts or only in the score I'm trying to use the following strategy: I include a "score-defs.ly" or "part-defs.ly" file in the score or part respectively and define commands like "sMarkup" for markup only appearing in the score