View source: R/1-construct-tie.R
Tie | R Documentation |
Tie
ObjectCreate a Tie
to tie some notes together.
Tie(i, j = NULL, to = NULL, above = NULL)
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. |
A list of class Tie
.
+.Music()
for adding a tie to a Music
object.
# 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.