lilypond-user
[Top][All Lists]
Advanced

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

Moving just text, leaving articulations in place?


From: Robert Hickman
Subject: Moving just text, leaving articulations in place?
Date: Wed, 18 Apr 2018 17:38:05 +0100

Tried using "\override TextScript.staff-padding" to move the text
annotations in the attached image up but it also moves the Larson
articulation symbols up as well. I want these to stay in the same
place and the text to move up a bit away from them. Is lilypond
treating the articulation symbols as text?

Complete below, my code is at the bottom:

\version "2.18.2"

% Copyright © 2014, Bret Pimentel. http://bretpimentel.com


% HOW TO USE

  % 1. Put this file in the same folder as the .ly file you are
working on, or, even better, somewhere in your Lilypond include path.
  % 2. Add the following line near the top of your .ly file, under the
"version" line (do not include the percent sign):
  %  \include "larsen-symbols.ily"
  % 3. Add symbols to notes using this syntax (no percent sign):
  %  c\crann
  % The following symbols are available:
  %    cut
  %    strike
  %    slideUp
  %    slideDown
  %    longRoll
  %    shortRoll
  %    longDoubleCutRoll
  %    shortDoubleCutRoll
  %    crann
  %    shortCrann
  %    trill
  %    singleTrill
  %    shake
  %    breathe
  % ("trill" and "breathe" are already built into Lilypond, but are
listed here because they form part of Mr. Larsen's system of symbols.)
  % For a thorough introduction to Mr. Larsen's excellent
ornamentation system, buy this book (affiliate link):
http://www.amazon.com/gp/product/0786649429/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=0786649429&linkCode=as2&tag=bretpimewood-20&linkId=DQYNUO6ZFISH6REA


% OPTIONS -- ADJUST AS DESIRED

  larsenSymbolsScale = #1.5
    % Adjust this to scale all symbols up or down (default #1.5).
Known issue: adjusting this affects the spacing of the components of
the long and short double-cut roll symbols.

  larsenSymbolsOutlineWidth = #.065
    % Adjust this to change outline thicknesses for all symbols.

% DON'T CHANGE ANYTHING BELOW HERE UNLESS YOU KNOW WHAT YOU'RE DOING


% SOME VARIABLES
  larsenSymbolsHalignFactor = #(+ (* larsenSymbolsScale ( / 2 3 ) )
.15 ) % this is an arbitrary number discovered by trial and error; it
helps keep the symbols roughly aligned with noteheads if the symbols
are resized using \larsenSymbolsScale
  larsenSymbolsHalfSize = #(* .5 larsenSymbolsScale)
  larsenSymbolsFlipVertical = #(* -1 larsenSymbolsScale)

% SYMBOL: CUT

  cutCoordinates =   #'(
    (.4 .9)
    (.55 .825)
  )

  cutStencil =
    \markup \halign #(/ -3 larsenSymbolsHalignFactor) \stencil
    #(make-connected-path-stencil
      cutCoordinates
      larsenSymbolsOutlineWidth
      larsenSymbolsScale
      larsenSymbolsScale
      #t
      #t
    )

  cut = ^\cutStencil

  tinyCutStencil = % The "tiny cut" is used as a component of some of
the more complex symbols
    \markup \stencil
    #(make-connected-path-stencil
      cutCoordinates
      larsenSymbolsOutlineWidth
      larsenSymbolsHalfSize
      larsenSymbolsHalfSize
      #t
      #t
    )

  tinyCut = \tinyCutStencil

  tinyCuts =
    \markup
      \halign #(/ -6.25 larsenSymbolsHalignFactor) \raise #(/ .35
larsenSymbolsHalignFactor)
      \combine
        \tinyCut
        \halign #(/ .25 larsenSymbolsHalignFactor) \raise #(/ .2
larsenSymbolsHalignFactor) \tinyCut

% SYMBOL: STRIKE

  strikeStencil = \markup \halign #(/ -1.75 larsenSymbolsHalignFactor) \stencil
    #(make-connected-path-stencil
      '(
        (.234 .831)
        (.156 .831)
        (-.012 .317)
        (-.156 .831)
        (-.293 .831)
       )
      larsenSymbolsOutlineWidth
      larsenSymbolsScale
      larsenSymbolsScale
      #t
      #t
    )

  strike = ^\strikeStencil

%-----------------
\header {tagline = ""}

{
    \override TextScript.staff-padding = #5
    \numericTimeSignature
    \time 3/8

    g'4.\cut^\markup {\tiny Cut } |  g'4.\strike^\markup {\tiny Strike } |
}

Attachment: both_moved.png
Description: PNG image


reply via email to

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