This is just a gimmick: a circle of fifths drawn with Lilypond.
Usage:
\QuiZi
or if you want to change size and position:
\markup \move-and-scale \QuiZi #0.8 #40
What's this? Searching the LSR Browse by date Contributing Snippet database | Browsing items 210−219 out of 940 |
This snippet defines a new \clarTab
markup command to draw tablatures for the clarinet.
The syntax is
\clarTab twelfthKey? holes keysByFinger
with
twelfthKey?: a boolean: #t
if the twelfth key is pressed, #f
for low pitch
holes: a list of closed holes represented by digit:
for example, #'(0 1 2 3)
for the c'.
keysByFinger: a list of pairs composed by the name of the finger and the note that this finger produce when presses the key.
For example, the pair '("Llittle" . "cis")
is the key pressed by the left little finger to make a cis. See note 5 below.
Here is a list of all strings for '(fingerName . noteName)
pairs accepted (note that all altered notes are defined with a sharp):
Rlittle
: Right little finger. Associated note: "e" "f" "fis" "gis". See note 3-6.
Llittle
: Left little finger. Associated note: "e" "f" "fis" "cis". (note 6-7-8)
Rfore
: Right forefinger. Associated note: "dis" "fis" "ais" "b"
"ees" and "bes" are allowed instead of "dis" and "ais")
When you use "fis", the "dis" key is automatically pressed too, because the "fis" key is always used with the "dis" key (note 9-10).
Lfore
: Left forefinger. Associated note: "gis" "a"
"gis" is automatically pressed when "a" is pressed.
Rring
: Right ring finger. Associated note: "b"
Lring
: Left ring finger. Associated note: "dis" ("ees" instead allowed).
To see all keys unpressed, specify a dummy value for the noteName, like in 13:
\clarTab ##t #'() #'(("Rlittle" . "") ("Llittle" . "") ("Rfore" . "")("Lfore" . "") ("Rring" . "")("Lring" . ""))
Eventually, you can specify the size of the clarinet tablature by writing at the begining of the .ly
file:
clarTabScale = #x
By default x=1. Specifying other values multiplies the size by x
.
Example: clarTabScale = #1.5
bracketify-stencil
function around the object's stencil function. By using \once \override
, the effect can be applied to just one clef/key/time signature; by using \override
it applies to the whole piece.
The clef indicates which lines of the staff correspond to which
pitches. The clef is set with the \clef
command:
{ c''2 \clef alto g'2 }
Supported clefs include:
treble, violin, G, G2
alto, C
tenor
bass, F
french
soprano
mezzosoprano
baritone
varbaritone
subbass
percussion
tab
By adding _8
or ^8
to the clef name, the clef is
transposed one octave down or up, respectively, and _15
and
^15
transposes by two octaves. The argument clefname
must be enclosed in quotes when it contains underscores or digits. See the last two bars for an example.
This file needs to be run separately with -dclip-systems
; the
snippets page may not adequately show the results.
The result will be files named
base-from-start-to-end[-count].eps.
If system starts and ends are included, they include extents of the System grob, e.g., instrument names.
Grace notes at the end point of the region are not included.
Regions can span multiple systems. In this case, multiple EPS files are generated.