lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use ^markup in a scheme function?


From: Erik Sandberg
Subject: Re: How to use ^markup in a scheme function?
Date: Sat, 16 Dec 2006 19:04:14 +0100
User-agent: KMail/1.9.5

On Friday 15 December 2006 22:07, Frédéric Chiasson wrote:
> Then, well, who can help me??
>
> Frédéric
>
> 2006/12/15, Mats Bengtsson <address@hidden>:
> > I'm certainly not any expert in Scheme coding for LilyPond. Please
> > always keep the discussion on the mailing list, for the
> > benefit of yourself since you get access to the collected
> > expertise on the list and for the benefit of others who experience
> > similar problems.
> >
> >    /Mats
> >
> > Quoting Frédéric Chiasson <address@hidden>:
> > > Thanks, at last I understood how to do it?
> > >
> > > One problem left, I copied the code displayed for "\once \override
> > > TextScript #'extra-offset = #$xy" to put it in the code of the Slash
> > > function. The code is compiled without errors, but there is no offset
> > > produced. Why? Do I use the right prefixes for xy?
> > >
> > > Also it is possible to use both LilyPond and Scheme code like this?
> > > (define-music-function (variables)
> > > #{
> > >    LilyPond code
> > > #}
> > > (Scheme code))

I think #{ #} simply produces a Music tree, so you can probably do

 (define-music-function (variables)
 (let ((music #{ LilyPond code #}))
  (Scheme code using music)))


BTW, wouldn't it be possible to just do something like:

#{
    \once \override TextScript #'extra-offset = #$xy
    << $note 
        \skip 1*0^\markup{\musicglyph #"flags.ugrace"}
    >>
#})

(that should work in most cases AFAICS)

-- 
Erik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]