Jump to content

Ordering scripts stack: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Scripts can be stacked. The order is determined by a priority field, but when objects have the same priority, the input order determines the order. Objects specified first are closest to the note. You may also want to override the #'script-priority to give your Script or TextScript overall priority (if you do so, remember to use \once if you don't want the whole score to be affected).
Scripts can be stacked. The order is determined by a priority field, but when objects have the same priority, the input order determines the order. Objects specified first are closest to the note. You may also want to override the #'script-priority to give your Script or TextScript overall priority (if you do so, remember to use \once if you don't want the whole score to be affected).


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=255
%% http://lsr.di.unimi.it/LSR/Item?id=255


Line 11: Line 11:
[[Category:Spacing]]
[[Category:Spacing]]
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Snippet]]

Latest revision as of 23:22, 21 November 2025

Scripts can be stacked. The order is determined by a priority field, but when objects have the same priority, the input order determines the order. Objects specified first are closest to the note. You may also want to override the #'script-priority to give your Script or TextScript overall priority (if you do so, remember to use \once if you don't want the whole score to be affected).

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=255

\relative c'' { c4^"inner up"^"outer up"_"inner down"_"outer down" }