While waiting for your answer, I tried to put the slash in a crude manual way with extra-offset, like this :
Slash = \markup {\musicglyph #"flags.ugrace"} % must use ^ PlaceSlash = #(define-music-function (parser location xy) (pair?) #{ \once \override TextScript #'extra-offset = #$xy #}) \version "2.11.1" \relative { \PlaceSlash #'(1.1 . -3.2) c^\Slash } It works, although you must calculate the offset for each situation and you must use two functions for one action. How could you program a function so when you type for example : c8\Slash #'(1.1 . -3.2) you get the same result. Also, is there a way to start the offset from the base of the stem, so you can have a constant value for the slash offset? That kind of offset would be also useful to put other symbol on the stem, like an "x" on the stem (over the notehead), which can mean "slap tongue" in modern saxophone writing. Also, if you know the file where the slash is put with stroke-style = "grace", please tell me so I can try to to put code for beamed notes with my basic programming skills. Thanks, Frédéric 2006/12/8, Frédéric Chiasson <[EMAIL PROTECTED]>:
Sorry for not answering to everyone ---------- Forwarded message ---------- From: Frédéric Chiasson <[EMAIL PROTECTED] > Date: 8 déc. 2006 15:21 Subject: Re: Put a slash on acciaccatura beamed eighth notes To: Mats Bengtsson <[EMAIL PROTECTED]> Good, let's try it then. So in which file is the code and the missing support. In which langage should I program for this? 2006/12/8, Mats Bengtsson < [EMAIL PROTECTED]>: > > Frédéric Chiasson wrote: > > > Hello everyone, > > > > I would like to know if anyone has found a way to put a slash on > > beamed eighth notes in acciaccatura? With the \acciaccatura function, > > the slash appears on single notes, but not on beamed notes. The ideal > > engraving would be a slash at the start of the beam, like in Berio's > > Sequenza IXb for alto saxophone (attachment too large for sending) > > > > I have compared the codes of "\acciaccatura c8" and "\acciaccatura { > > c8[ d8]}" with \displayMusic. The code requesting the slash is the > same : > > ... > > > > No change for the beamed eighth notes, although the slash doesn't > > appear. No difference either in ly/grace- init.ly <http://init.ly >. > > Does anyone know where the denial of this request for beamed notes is > > programmed? How can I change it? > > The problem isn't that the request is denied, but that the > support for slashes through beams never has been implemented. > In the mailing list archives, you can find that this question has > popped up a number of times and you can also find some tricks > to fake the slash. However, it would be great if you could take > a look and make a proper implementation. > > /Mats >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user