| [ << Notazione musicale ] | [Top][Contents][Index] | [ Notazione specialistica >> ] |
| [ < Scritte ] | [ Up: Inserimento del testo ] | [ Indicazioni testuali > ] |
Estensori del testo ¶
Alcune indicazioni esecutive, per esempio rallentando o accelerando, appaiono in forma testuale e vengono estese lungo molteplici note con delle linee punteggiate. Tali oggetti, chiamati “estensori” (spanner), si creano collegando due note con la seguente sintassi:
\relative { \override TextSpanner.bound-details.left.text = "rit." b'1\startTextSpan e,\stopTextSpan }![]()
La stringa testuale da stampare viene impostata attraverso le proprietà
dell’oggetto. Per impostazione predefinita, appare in corsivo, ma si
può ottenere una formattazione diversa tramite i blocchi \markup, come
è spiegato in Formattazione del testo.
\relative { \override TextSpanner.bound-details.left.text = \markup { \upright "rit." } b'1\startTextSpan c e,\stopTextSpan }![]()
Lo stile della linea, così come la stringa testuale, può essere definito come una proprietà dell’oggetto. Questa sintassi è descritta in Stili della linea.
Comandi predefiniti ¶
Problemi noti e avvertimenti ¶
LilyPond è capace di gestire un solo estensore del testo per ogni voce.
Frammenti di codice selezionati ¶
Dynamics spanner with custom text ¶
Postfix functions for custom crescendo text spanners. The spanners
should start on the first note of the measure. One has to use
-\mycresc, otherwise the spanner start will rather be assigned
to the next note.
% Two functions for (de)crescendo spanners where you can explicitly % give the spanner text. mycresc = #(define-music-function (mymarkup) (markup?) (make-music 'CrescendoEvent 'span-direction START 'span-type 'text 'span-text mymarkup)) mydecresc = #(define-music-function (mymarkup) (markup?) (make-music 'DecrescendoEvent 'span-direction START 'span-type 'text 'span-text mymarkup)) \relative c' { c4-\mycresc "custom cresc" c4 c4 c4 | c4 c4 c4 c4 | c4-\mydecresc "custom decresc" c4 c4 c4 | c4 c4 c4 c4 | c4 c4\! c4 c4 }![]()
Vedi anche ¶
Guida alla notazione: Stili della linea, Dinamiche, Formattazione del testo.
Frammenti: Text, Expressive marks.
Guida al funzionamento interno: TextSpanner.
| [ << Notazione musicale ] | [Top][Contents][Index] | [ Notazione specialistica >> ] |
| [ < Scritte ] | [ Up: Inserimento del testo ] | [ Indicazioni testuali > ] |
![[image of music]](../d4/lily-aab9cb2a.png)
![[image of music]](../54/lily-cb71fa46.png)
![[image of music]](../14/lily-69d9d4a2.png)