Re: function does not replicate \markup?

2012-06-24 Thread and...@andis59.se
On 2012-06-24 05:43, David Kastrup wrote: Because it is a rehearsal mark rather than a text script? This makes sense! I tried to use TextScript but it didn't work. fN = #(define-music-function (parser location fretp ) (string?) #{ \once \override TextScript #'self-alignment-X =

Re: function does not replicate \markup?

2012-06-24 Thread David Kastrup
and...@andis59.se and...@andis59.se writes: On 2012-06-24 05:43, David Kastrup wrote: Because it is a rehearsal mark rather than a text script? This makes sense! I tried to use TextScript but it didn't work. fN = #(define-music-function (parser location fretp ) (string?) #{

Re: function does not replicate \markup?

2012-06-24 Thread and...@andis59.se
On 2012-06-24 11:19, David Kastrup wrote: You make overrides for a TextScript but still use a mark here. I see what your are saying, but ... In my function I need a command? \mark is the only one I have found that output a text, but obviously it's not the correct command! So what is the

Re: function does not replicate \markup?

2012-06-24 Thread David Kastrup
and...@andis59.se and...@andis59.se writes: On 2012-06-24 11:19, David Kastrup wrote: You make overrides for a TextScript but still use a mark here. I see what your are saying, but ... In my function I need a command? \mark is the only one I have found that output a text, but obviously

Re: function does not replicate \markup?

2012-06-24 Thread Thomas Morley
2012/6/24 and...@andis59.se and...@andis59.se: I want the first result. Where the number is located directly under the note or chord. Try: \version 2.14.2 fN = #(define-music-function (parser location fretp) (string?) (make-music 'TextScriptEvent 'direction -1

Re: function does not replicate \markup?

2012-06-24 Thread David Kastrup
David Kastrup d...@gnu.org writes: Then you should not be using a mark. If you want to be using a textscript, this is actually more fun to do with current versions of LilyPond (2.15.not-too-old). It would look something like fN = #(define-event-function (parser location fretp ) (string?)

Re: function does not replicate \markup?

2012-06-24 Thread and...@andis59.se
On 2012-06-24 12:36, David Kastrup wrote: Thunderbird does not really seem to like quoting code... This now was a mixed HTML/plain text mail. The plain text version looked actually fine, so it is not quite clear why you would need a combined mail just to get the correct plain text version out.

Re: function does not replicate \markup?

2012-06-24 Thread and...@andis59.se
On 2012-06-24 12:40, Thomas Morley wrote: Try: \version 2.14.2 fN = #(define-music-function (parser location fretp) (string?) (make-music 'TextScriptEvent 'direction -1 'text (markup #:line (#:box (#:italic fretp) { c' e' g' _\markup {

function does not replicate \markup?

2012-06-23 Thread and...@andis59.se
I have just made my first Lilypond function! but somehow it doesn't do what I want it to do... The box with the number isn't located at the same position and it's a bigger size. WHY? // Anders %% Start of file \version 2.14.2 fN = #(define-music-function (parser location fretp ) (string?)

Re: function does not replicate \markup?

2012-06-23 Thread David Kastrup
and...@andis59.se and...@andis59.se writes: I have just made my first Lilypond function! but somehow it doesn't do what I want it to do... The box with the number isn't located at the same position and it's a bigger size. WHY? Because it is a rehearsal mark rather than a text script? If