Re: function with markup

2013-05-24 Thread luis jure
on 2013-05-25 at 04:21 David Kastrup wrote: > Since tiempo will never return anything but a "post-event", there is no > point in using define-music-function rather than define-event-function > here. With define-event-function, c''4\tiempo "1" will be acceptable as > well. indeed. i'm still not

Re: function with markup

2013-05-24 Thread David Kastrup
David Kastrup writes: > Janek Warchoł writes: > >> I don't know how to explain this accurately, but maybe seeing this >> variation will help you get an idea what's happening: >> >> tiempo = #(define-music-function (parser location secs) (string?) >> #{ _\markup { \hspace #-1.6 \lower #3

Re: function with markup

2013-05-24 Thread David Kastrup
Janek Warchoł writes: > I don't know how to explain this accurately, but maybe seeing this > variation will help you get an idea what's happening: > > tiempo = #(define-music-function (parser location secs) (string?) > #{ _\markup { \hspace #-1.6 \lower #3 \sans #secs } #}) > > { c''4-\t

Re: function with markup

2013-05-24 Thread luis jure
on 2013-05-24 at 18:18 Janek Warchoł wrote: > I don't know how to explain this accurately, but maybe seeing this > variation will help you get an idea what's happening: > > tiempo = #(define-music-function (parser location secs) (string?) > #{ _\markup { \hspace #-1.6 \lower #3 \sans #s

Re: function with markup

2013-05-24 Thread luis jure
on 2013-05-24 at 17:51 David Kastrup wrote: > At top level? no, attached to notes, as in my example. > > now, that *does* work, but i don't understand why it does > > Because an empty chord with a markup subscript is music. OK, this part i get now... ___

Re: function with markup

2013-05-24 Thread Janek Warchoł
hi, 2013/5/24 luis jure > i wrote the following expecting that it would work, but it didn't: > > \version "2.17.18" > tiempo = #(define-music-function (parser location secs) (string?) >#{ \markup { \hspace #-1.6 \lower #3 \sans #secs } #}) > > { c''4\tiempo "1" } > > > reading the documen

Re: function with markup

2013-05-24 Thread David Kastrup
luis jure writes: > in my score i have a series of markups all with the same format, for > example something like: > > \markup { \hspace #-1.6 \lower #3 \sans "1" } > \markup { \hspace #-1.6 \lower #3 \sans "2" } > \markup { \hspace #-1.6 \lower #3 \sans "3" } > etc. At top level? > so i decide

function with markup

2013-05-24 Thread luis jure
hello list, in my score i have a series of markups all with the same format, for example something like: \markup { \hspace #-1.6 \lower #3 \sans "1" } \markup { \hspace #-1.6 \lower #3 \sans "2" } \markup { \hspace #-1.6 \lower #3 \sans "3" } etc. so i decided to create a function to save typin