Clef {gm} | R Documentation |
Create Clef
Object
Description
Create a Clef
object.
Clef
objects represent clefs.
Usage
Clef(sign, line = NULL, octave = NULL, to = NULL, bar = NULL, offset = NULL)
Arguments
sign |
"G", "F" or "C", case insensitive. |
line |
Optional, 1 or 2 if |
octave |
Optional, -1 or 1. |
to |
an index or a |
bar |
Optional. A positive integer which indicates the number of
the measure to which to add the |
offset |
Optional. A duration value, sum of duration values or 0,
which indicates the position in a measure, at which to add the |
Value
A list with class Clef
.
See Also
+.Music()
for adding Clef
objects to a Music
object.
vignette("gm", package = "gm")
for details about duration values.
Examples
# create a Clef object
Clef("G", line = 2, octave = 1)
# add a Clef object to a Music object
Music() +
Line(list("C4"), list(1)) +
Clef("F", to = 1, bar = 10, offset = 1)