tactus | R Documentation |
These functions take meter()
objects—or values parseable as meters—and return
specific levels from the meter.
tactus()
extracts the tactus of a meter; measure()
extracts the length of the full measure of a meter.
nbeats()
counts the number of tactus beats in the meter.
These functions are particularly useful as arguments to the timecount and subpos functions.
tactus(x, deparser, ...)
## S3 method for class 'meter'
tactus(x, deparser = recip, sep = "+", ...)
## S3 method for class 'character'
tactus(x, deparser = recip)
## S3 method for class ''NULL''
tactus(x)
measure(x, deparser, ...)
## S3 method for class 'meter'
measure(x, deparser = recip)
## S3 method for class 'character'
measure(x, deparser = recip)
## S3 method for class ''NULL''
measure(x)
x |
The input to compute the desired duration from. Must be a A |
deparser |
What output format is desired? The default is Must be a rhythm function or |
sep |
Seperator between irregular beat patterns. Defaults to A singleton If the tactus is a pattern of irregular beats, they are pasted together using this separator. |
By default, tactus()
and measure()
deparse their output as recip()
;
an alternative deparser (output format) can be chosen using the deparser
argument.
Other Metric functions:
meter
,
tatum()
tactus("M4/4")
tactus("M6/8")
measure("M4/4")
measure("M6/8")
measure("M6/8", deparser = duration)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.