Tie {gm} | R Documentation |
Create Tie
Object
Description
Create a Tie
to tie some notes together.
Usage
Tie(i, j = NULL, to = NULL, above = NULL)
Arguments
i |
A single positive integer, which represents the start position of the tie in a musical line. |
j |
Optional. A single positive integer, which represents the start position of the tie in a chord. If not provided, all notes in the chords that have equivalent pitches are tied. |
to |
Optional. A single character or a single positive integer, which indicates the musical line where to add the tie. |
above |
Optional. A single logical, which indicates if the tie is placed above the notes. By default, the position is decided by MuseScore. |
Value
A list of class Tie
.
See Also
+.Music()
for adding a tie to a Music
object.
Examples
# Create a tie
tie <- Tie(1)
tie
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "C4")) + tie
music
# Generate the music score
if (interactive()) {
show(music)
}
[Package gm version 2.0.0 Index]