Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
LilyPond wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Stylized movement numbers
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Create stylized movement numbers for the instrumentName field (or wherever else a markup can be used). <lilypond version="2.24.0"> %% http://lsr.di.unimi.it/LSR/Item?id=614 %LSR modified by P.P.Schneider on Feb.2014 for v2.18 % "\No" markup: create stylized movement number for the instrumentName field. % syntax example: instrumentName = \markup \No #"14a" #(define-markup-command (No layout props n) (string?) (define (format-char c) (let ((s (string c))) (if (number? (string->number s)) (markup #:hspace 0.125 #:number s #:hspace 0.125) (markup #:hspace 0 #:fontsize 2 s)))) (define (format-string s i) (let ((n (string-length s))) (if (= n 0) (markup #:null) (markup (format-char (string-ref s i)) (if (= (1+ i) n) (markup #:null) (format-string s (1+ i))))))) (let ((i (string-length n))) (interpret-markup layout props (markup #:concat (#:concat (#:fontsize 2 "N" #:hspace 0 #:override '(baseline-skip . 0.825) #:override '(direction . 1) #:dir-column (#:fontsize 2 #:center-align "." #:fontsize 1 #:center-align "o")) #:hspace 0.5 #:concat ((format-string n 0) #:hspace -.8 #:fontsize 2 ".")) #:hspace -2)))) %\markup \No #"7" %\markup \No #"14a" \relative c' { \override Score.InstrumentName.padding = #3 % a simple workaround against LSR bug: not needed. \set Staff.instrumentName = \markup { \No #"8" } % or: %\set Staff.instrumentName = \markup\magnify #1.3 \concat { β \hspace#.4 8. \hspace#-2 } \time 6/8 c8 e g c g e c2. } </lilypond> [[Category:Text]] [[Category:Text]] [[Category:Scheme]] [[Category:Really cool]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Stylized movement numbers
Add topic