Skip to content
Snippets Groups Projects
Commit 1fdae3d2 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Add pad-y markup command

parent 1e233215
No related branches found
No related tags found
No related merge requests found
...@@ -1238,6 +1238,14 @@ addArticulation = #(define-music-function (parser location type music) ...@@ -1238,6 +1238,14 @@ addArticulation = #(define-music-function (parser location type music)
(add-articulation music type)) (add-articulation music type))
#(define-markup-command (pad-y layout props amount arg)
(number? markup?)
#:category align
(let* ((m (interpret-markup layout props arg))
(x (ly:stencil-extent m X))
(y (ly:stencil-extent m Y)))
(ly:make-stencil (ly:stencil-expr m) x
(interval-widen y amount))))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment