You need to define-markup-command,
not define-music-function.
#(define-markup-command (timesig layout props numerator denominator)
(number? number?)
(interpret-markup layout props
(markup
[...]
\markup \timesig #3 #4
Regards,
Neil
--
Dmytro O. Redchuk
2009/4/14 Wei-Wei Guo wwgu...@gmail.com:
I want to define a new command \timesig instead of a new \markup, because I
need to use it in \markup with other texts, such as
\markup { \timesig #3 #4 blur blur }
You can include markups in markups.
I did such a commands int this way,
not sure if
2009/4/14 Dmytro O. Redchuk brownian@gmail.com:
2009/4/14 Wei-Wei Guo wwgu...@gmail.com:
I want to define a new command \timesig instead of a new \markup, because I
need to use it in \markup with other texts, such as
\markup { \timesig #3 #4 blur blur }
You can include markups in
I tried the following expr with the new command defined by
'define-markup-command'
\markup { \timesig #3 #4 }
\markup { \markup \timesig #3 #4 }
I don't know why.
Wei-Wei
Dmytro O. Redchuk 写道:
2009/4/14 Dmytro O. Redchuk brownian@gmail.com:
2009/4/14 Wei-Wei Guo wwgu...@gmail.com:
I
2009/4/14 Wei-Wei Guo wwgu...@gmail.com:
I tried the following expr with the new command defined by
'define-markup-command'
\markup { \timesig #3 #4 }
\markup { \markup \timesig #3 #4 }
I don't know why.
Try to define markup command as Neil suggested
#(define-markup-command (timesig
Sorry for wasting your time. It works now. I didn't notice in my test
file the command is
\markup { \timesig #3 #4}
instead of
\markup { \timesig #3 #4 }
Why is a white space so important?
Wei-Wei
Dmytro O. Redchuk 写道:
2009/4/14 Wei-Wei Guo wwgu...@gmail.com:
I tried the
hi,
On 14 Apr 2009, at 18:15, Wei-Wei Guo wrote:
Sorry for wasting your time. It works now. I didn't notice in my test
file the command is
\markup { \timesig #3 #4}
instead of
\markup { \timesig #3 #4 }
Why is a white space so important?
i assume that the whitespace is required to
Hi Simon,
Thanks!
Best wishes,
Wei-Wei
Simon Bailey 写道:
hi,
On 14 Apr 2009, at 18:15, Wei-Wei Guo wrote:
Sorry for wasting your time. It works now. I didn't notice in my test
file the command is
\markup { \timesig #3 #4}
instead of
\markup { \timesig #3 #4 }
Why is a white space
Dear all,
I want to present time signatures in my reading notes. I tried
\markup { \time 2/4 }
It seems \time cannot be used in this way. I got a dirty way
\markup { \center-column { {\musicglyph #2} {\musicglyph #4} } }
which can show a time signature, but the vertical space between the
2009/4/13 Wei-Wei Guo wwgu...@gmail.com:
\markup { \center-column { {\musicglyph #2} {\musicglyph #4} } }
This (just stacking two markups):
\relative c'' { c4 -\markup {\number 4} -\markup{\number 2} c c c }
shows numbers closer to each other in my case.
No sure this is a good way.
--
Hi Wei-Wei,
I want to present time signatures in my reading notes. I tried
\markup { \time 2/4 }
It seems \time cannot be used in this way. I got a dirty way
\markup { \center-column { {\musicglyph #2} {\musicglyph #4} } }
which can show a time signature, but the vertical space between the
On Apr 13, 2009, at 3:17 PM, Wei-Wei Guo wrote:
Combining your solutions, the following way is the better, but still
to long...
\markup{ \override #'(baseline-skip . 1) {\center-column {\number 2
\number 4}}}
define this as a variable, then you only have to type it once:
ttf =
2009/4/13 Simon Bailey bina...@gmail.com:
On Apr 13, 2009, at 3:17 PM, Wei-Wei Guo wrote:
Combining your solutions, the following way is the better, but still to
long...
\markup{ \override #'(baseline-skip . 1) {\center-column {\number 2
\number 4}}}
define this as a variable, then you
13 matches
Mail list logo