Re: markup? and number?
Am 04.02.2014 16:07, schrieb Kevin Patrick Barry: Can you please post what you have achieved so far? It's hard to guess without seeing your code. Marc Sorry for the slow reply. A small example of what I am trying follows: #(define-markup-command (sus layout props args) (markup-list?) (interpret-markup layout props #{ \markup \concat { \fontsize #-2 \number #(car args) \raise #0.7 \draw-line #(cons (cddr args) 0) \fontsize #-2 \number #(cadr args) } #} )) I just grepped through the code and found out that number-or-markup? is already defined. SO you can use it like this: #(define-markup-command (sus layout props num-or-markup) (number-or-markup?) (interpret-markup layout props (if (number? num-or-markup) -- stuff for numbers -- -- stuff for markup -- ))) HTH, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
markup? and number?
Dear LilyPond users, I am trying to make a markup function that will take a list as an argument. Some of the members of the list will be treated as markup and some will be treated as numbers. Is there a way to convert one type to the other? Or am I going about this all the wrong way (I have no idea what I'm doing). Thank you in advance Kevin Barry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: markup? and number?
Am 03.02.2014 11:47, schrieb Kevin Patrick Barry: Dear LilyPond users, I am trying to make a markup function that will take a list as an argument. Some of the members of the list will be treated as markup and some will be treated as numbers. Is there a way to convert one type to the other? Or am I going about this all the wrong way (I have no idea what I'm doing). Can you please post what you have achieved so far? It's hard to guess without seeing your code. Marc Thank you in advance Kevin Barry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user