lilypond-user
[Top][All Lists]
Advanced

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

Re: Bowing instruction mid-note


From: Simon Albrecht
Subject: Re: Bowing instruction mid-note
Date: Sun, 25 Sep 2016 14:24:08 +0200

On 25.09.2016 13:34, B~M wrote:
Dear All, I would like to add an up bow symbol to the
middle of a tie between two notes. The file seg.pdf is a snippet
of the problem. In the second tie I would like to place a V to denote
up bow. However, the up bow and down bow symbols are attached
to notes in the lilypond file.

Technically speaking, this is only a problem of the input syntax: the bowing symbols are input as post-events, which are attached to a note or chord, but that chord can be an empty chord – a handy construct in many situations.

Is there some way I can arbitrarily place a V over the tie with x y co-ordinates?

Even better, you can place it at the exact (or approximate) time when the bow change should happen, using a music function. Here’s an example with dynamic indications:

%%%%%%%%%%%%%%
\version "2.18.2"

% Thanks to David Kastrup for the inspiration!
after =
#(define-music-function (parser location t e m) (ly:duration? ly:music? ly:music?)
   #{
     \context Bottom <<
       #m
       { \skip $t <> -\tweak extra-spacing-width #empty-interval $e }
     >>
   #})

{ \after 4 \< \after 2 \> \after 2. \! c'1 }
%%%%%%%%%%%%%%

\after 4 \<
means
‘start a crescendo after a quarter note duration’.

The same can be done with the bowing instructions – I attach a modified file, where the change happens in the middle of a note.

Note that I didn’t make or test it for version 2.14 – that’s quite ancient and you should really update (at least) to 2.18.2, the current stable version.

Also a small note on your abbreviations: As long as you don’t want to include any tweaks or other refinements like
DB = -\tweak font-size 3 \downbow
I’d advise you to keep with the LilyPond default syntax here. Honestly, \downbow isn’t that many characters, and for sharing code or code highlighting in an editor it’s advantageous to stay with the standard.

HTH, Simon

Attachment: Seg.ly
Description: Text Data


reply via email to

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