On 28/09/2011 09:07, Neil Puttock wrote:
On 28 September 2011 09:04, David Kastrup<d...@gnu.org>  wrote:

With the current development version, you can write this as

partialInline = #(define-music-function (parser location dur mus)
(ly:duration? ly:music?)
  #{
    \set Timing.measureLength = $dur

measureLength is a moment, so you have to convert it:

\set Timing.measureLength = $(ly:duration-length dur)

Cheers,
Neil

Hey
Thanks for the macro. It will be VERY helpful (still have more than 100 musics to convert-ly to recent version, and most of them use \partial (Priests, or Portuguese ones, do not know much about music metric :P)

Is there any way to write some kind of the equivalent to the latex .sty file, where I can define these files? Or is it just a standard .ly file, \include'd?

If so, is there any INCLUDEPATH I can set, so I do not need to copy it for each music I use?

Thank you :)
Alberto


--
Alberto Simoes
CEHUM

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to