mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 04:58:21 +00:00
48 lines
953 B
Org Mode
48 lines
953 B
Org Mode
:PROPERTIES:
|
|
:ID: 700ed776-8663-4a15-ab39-13ed31027bfd
|
|
:END:
|
|
#+title: Lilypond
|
|
#+date: "2021-05-10 19:36:43 +08:00"
|
|
#+date_modified: "2021-07-22 14:34:36 +08:00"
|
|
#+language: en
|
|
#+property: header-args:lilypond :exports both
|
|
|
|
|
|
The LaTeX of music notation.
|
|
It is a formatting language for music notation that has to be compiled into various output formats.
|
|
The input file is a plain-text file making it very good with version control systems.
|
|
|
|
|
|
|
|
|
|
* Notes, chords, and scales
|
|
|
|
#+begin_src lilypond :file notes.png
|
|
<<lilypond-paper>>
|
|
{ c d e f g a b c' }
|
|
\relative d' { c d e f g a b c' }
|
|
#+end_src
|
|
|
|
#+results:
|
|
[[file:assets/lang.lilypond/notes.png]]
|
|
|
|
#+begin_src lilypond :file chords.png
|
|
<<lilypond-paper>>
|
|
\chordmode { c1 d e f g a b c' }
|
|
#+end_src
|
|
|
|
#+results:
|
|
[[file:assets/lang.lilypond/chords.png]]
|
|
|
|
|
|
|
|
* Paper configuration
|
|
|
|
#+name: lilypond-paper
|
|
#+begin_src lilypond :exports code
|
|
\paper {
|
|
indent=10\mm
|
|
oddFooterMarkup=##f
|
|
}
|
|
#+end_src
|