]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/snap-pizzicato-markup-bartok-pizzicato.ly
9f8135a6b723da1663f8ee29ef029778806e3c8f
[lilypond.git] / input / lsr / snap-pizzicato-markup-bartok-pizzicato.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   lsrtags = "expressive-marks, unfretted-strings"
7
8   texidoces = "
9 El pizzicato de chasquido (también llamado \"Pizzicato
10 de Bartók\") es un \"pizzicato fuerte en que la cuerda se pulsa
11 verticalmente produciendo un chasquido y rebotando en el diapasón del
12 instrumento\" (Wikipedia).  Se denota mediante una circunferencia con
13 una línea vertical corta que parte del centro de aquélla hacia
14 fuera. Aunque Lilypond no tiene ninguna instrucción predefinida para
15 crear esta marca, es fácil hacer la definición y colocarla
16 directamente en el archivo de lilypond.
17
18 "
19   doctitlees = "Marca de pizzicato de chasquido (\"pizzicato de Bartók\")"
20
21   texidoc = "
22 A snap-pizzicato (also known as \"Bartok pizzicato\") is a \"strong
23 pizzicato where the string is plucked vertically by snapping and
24 rebounds off the fingerboard of the instrument\" (Wikipedia). It is
25 denoted by a cicle with a vertical line going from the center upwards
26 outside the circle. While Lilypond does not have a pre-defined command
27 to created this markup, it is easy to create a definition and place it
28 directly into the lilypond file. 
29
30 "
31   doctitle = "Snap-pizzicato markup (\"Bartok pizzicato\")"
32 } % begin verbatim
33
34 % Definition of the snappizz markup to print snap-pizzicato articulations.
35 % These are also known as "Bartok pizzicato" and are denotes by a circle with a
36 % vertical line from the center of the circle upwards:
37 #(define-markup-command (snappizz layout props) ()
38   (interpret-markup layout props
39     (markup #:stencil
40       (ly:stencil-translate-axis
41         (ly:stencil-add
42           (make-circle-stencil 0.7 0.1 #f)
43           (ly:make-stencil
44             (list 'draw-line 0.1 0 0.1 0 1)
45             '(-0.1 . 0.1) '(0.1 . 1)
46           )
47         )
48         0.7 X
49       )
50     )
51   )
52 )
53 snappizzicato = \markup \snappizz
54
55 % now it can be used as \snappizzicato after the note/chord
56 % Note, that a direction (-, ^ or _) is REQUIRED!
57 \relative c'{
58    c4^\snappizzicato
59 %    < c e g>\snappizzicato  % This does NOT work
60    < c' e g>-\snappizzicato
61    < c' e g>^\snappizzicato
62    < c, e g>_\snappizzicato
63 }
64