Engraving ties manually: Difference between revisions

m New category
Tags: Mobile edit Mobile web edit
mNo edit summary
 
Line 1: Line 1:
A single tie may be engraved manually by changing the <code>staff-position</code> property (an offset) of the <code>Tie</code> grob; if there are multiple ties at the same musical moment, they can be adjusted manually by changing the <code>tie-configuration</code> property (a list of offset/direction pairs) of the <code>TieColumn</code> object.
A single tie may be engraved manually by changing the <code>staff-position</code> property (an offset) of the <code>Tie</code> grob; if there are multiple ties at the same musical moment, they can be adjusted manually by changing the <code>tie-configuration</code> property (a list of offset/direction pairs) of the <code>TieColumn</code> object.


The offset indicates the distance from the center of the staff in half staff spaces, the direction can be either 1 (up) or -1 (down).
The offset indicates the distance from the center of the staff in half-staff spaces, the direction can be either 1 (up) or -1 (down).


Note that LilyPond makes a distinction between exact and inexact values for the offset. If using an exact value (i.e., either an integer or a fraction like <code>(/ 4 5)</code>), the value serves as a rough vertical position that gets further tuned by LilyPond to make the tie avoid staff lines. If using an inexact value like a floating point number, it is taken as the precise vertical position without further adjustments.
Note that LilyPond makes a distinction between exact and inexact values for the offset. If using an exact value (i.e., either an integer or a fraction like <code>(/ 4 5)</code>), the value serves as a rough vertical position that gets further tuned by LilyPond to make the tie avoid staff lines. If using an inexact value like a floating point number, it is taken as the precise vertical position without further adjustments.
Line 44: Line 44:
   <c e g>1~ <c e g>
   <c e g>1~ <c e g>
}
}
\paper { tagline = ##f }
</lilypond>
</lilypond>