Created
November 30, 2010 13:36
-
-
Save tockrock/721686 to your computer and use it in GitHub Desktop.
Basic snippets for lilypond files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\version "2.12.3" | |
% ========================= | |
% = Snippetss for Lilypond = | |
% ========================= | |
% | |
% snippets.ly | |
% Basic snippets for Lilypond projects | |
% | |
% Created by Takeshi Suzuki on 2010-11-30. | |
% Snippets for Lilypond by Takeshi Suzuki is licensed under a Creative Commons Attribution 3.0 Unported License. | |
% | |
% For the Newest version see http://gist.github.com/721686 | |
% | |
% ======================== | |
% = positionning helpers = | |
% ======================== | |
ul = { % mark to the upper left of the marker | |
\once \override Score.RehearsalMark #'self-alignment-X = #RIGHT % Aligning to the Right | |
\once \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible % Even at the end of the line | |
} | |
ll = { % mark to the lower left of the marker | |
\ul % setting it to the upper right first | |
\once \override Score.RehearsalMark #'direction = #DOWN % lowering the mark | |
} | |
% ==================== | |
% = segnos and codas = | |
% ==================== | |
segno = \mark \markup { \musicglyph #"scripts.segno" } % segno as a mark | |
segnot = ^\markup { \musicglyph #"scripts.segno" } % segno as a Text incase of a rehearsal mark | |
coda = \mark \markup { \musicglyph #"scripts.coda" } % coda as a mark | |
codat = ^\markup { \musicglyph #"scripts.coda" } % coda as a Text incase of a rehearsal mark | |
% =========================================== | |
% = helper script for marking D.S. and D.C. = | |
% =========================================== | |
dsh = \mark \markup{ \bold "D.S."} % D.S. Helper | |
dch = \mark \markup{ \bold "D.C."} % D.C. Helper | |
dsafh = \mark \markup{ \italic "D.S. al Fine"} % D.S. Al Fine Helper | |
dcafh = \mark \markup{ \italic "D.C. al Fine"} % D.C. Al Fine Helper | |
dsl = { \ll \dsh } % D.S. in the Lower right | |
dsu = { \ul \dsh } % D.S. in the Upper right | |
dcl = { \ll \dch } % D.C. in the Lower right | |
dcu = { \ul \dch } % D.C. in the Upper right | |
% ========= | |
% = Misc. = | |
% ========= | |
rmo = { \mark \default } % Rehearsal Mark Only, when you don't want the double bar. | |
% ==================================== | |
% = Defaults to be used for notation = | |
% ==================================== | |
db = \bar "||" % double bar | |
rm = { \rmo \db } % rehearsal mark with double bar | |
rms = {} % TODO: implement to display rehearsal mark and segno at once | |
ds = \dsl | |
dc = \dcl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment