On 06/29/2011 08:54 AM, Giso Grimm wrote:
> On 06/27/2011 11:26 PM, Nicolas Sceaux wrote:
>> Le 27 juin 2011 à 21:23, Giso Grimm a écrit :
>>
>>> How can I create ornaments like those in the attached example?
>>>
>>> I tried \markup with creating a path, however, this is always placed
>>> outside the staff. The desired ornament should always appear at a fixed
>>> distance to the note head (similar to accidentials, but after the note
>>> head).
>>
>> This file might gives some basis for what you want:
>> <https://github.com/nsceaux/nenuvar/blob/master/common/side-ornementations.ily>
>>
>> For instance:
>>
>> \include "side-ornementations.ily"
>> {
>>   \parc bes'4. \parb c''!8 \para d''4. <\pralla c'' \pralla e''>8 \bar ""
>> }
> 
> Is it easily possible to vertically shift the musicglyph in one of the
> functions para/parb/... without changing the other scripts?

The answer was yes, the #:raise command does what I wanted:

%% Battement after note head
battement =
#(define-music-function (parser loc arg) (ly:music?)
   (side-ornate-event arg
                      (markup #:fontsize -2 #:raise 1 #:rotate 30
#:concat (#:hspace 0.5 #:vspace 0.3 #:musicglyph "scripts.prall"))
                      RIGHT))

Still I don't know how to get it printed after the dot.

Giso


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

Reply via email to