tatum | R Documentation |
In humdrumR
, we define a tatum as the greatest common denominator of
a set of durations.
In other words, given a set of durations, the largest duration that divides all the given beats is the tatum—a common unit
which can measure any of the other durations
tatum(x, ...)
## S3 method for class 'meter'
tatum(x, deparser = recip)
## S3 method for class 'character'
tatum(x, deparser = recip)
## S3 method for class 'numeric'
tatum(x, deparser = duration)
## S3 method for class 'rational'
tatum(x)
## S3 method for class 'token'
tatum(x)
## S3 method for class ''NULL''
tatum(x)
x |
The input to compute the tatum of. Must be a For |
deparser |
What output format is desired? For Must be a rhythm function or |
tatum()
is a generic function; it can read any input which can be parsed by the rhythm parser.
If can also take a meter()
object or character
string of the form "MX/Y"
.
The tatum of a meter()
is the tatum of all that meters metric levels.
If meters and durations are provided—like tatum(c('M4/4', '6')
—, the tatum of all the meters'
levels and all the durations is computed.
The deparser
argument is a rhythm function which controls the output format.
If deparser
is NULL
, the tatum is returned as a rational()
value.
Other Metric functions:
meter
,
tactus()
tatum(c("4", "8", "12"))
tatum(c("M4/4"))
tatum("M4/4", '6')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.