Create a Meter object to represent a time signature.
Usage
Meter(
number,
unit,
bar = NULL,
actual_number = NULL,
actual_unit = NULL,
invisible = NULL
)
Value
A list of class Meter.
Arguments
number
A positive integer to represent the upper numeral of the
time signature, which indicates how many beats each measure has.
unit
A single integer which can be
1, 2, 4, 8, 16, 32 or 64. It represents the lower numeral of the
time signature, which indicates the duration of one single beat.
bar
Optional. A positive integer, which indicates the number of
the measure where to add the time signature. By default, the
time signature will be added at the first measure.
actual_number, actual_unit
Optional. They define the actual
time signature rather than the one that appears on the score. Usually
used to create a pickup measure. By default, they are the
same as number and unit.
invisible
Optional. A single logical, which indicates whether to
show the time signature on the score. Usually used to create a
pickup measure. The default value is FALSE.
# Create a 3/4 time signaturemeter <- Meter(3, 4)
# Add it to a `Music`music <- Music() + Line(c("C4", "D4", "E4")) + meter
music
# Generate the music scoreif (interactive()) {
show(music)
}