check_times | R Documentation |
For a character string with the timing information for one or more measures the total time is calculated in units of steps
. See Details for the timing information that is recognized.
check_times(times, steps = 8)
times |
Character string with |
steps |
Integer indicating the unit that the total time is reported in. E.g. 4 when the time is measured in quarter notes. |
Named list with in the first element times
the time information without the '|' character and in the second element counts
the number of units in each measure.
The following information is recognized:
an integer number like 1, 2, 4, 8, 16, 32
such a number with one or two dots
such a number with a replication factor like '*2', '*3' etc
## Not run: x= check_times(" 2. | 8*3 16*4 8|8*6| 8*3 16*4 8",8) identical(x$times,"2. 8*3 16*4 8 8*6 8*3 16*4 8") # [1] TRUE identical(x$counts,rep(6,4)) # [1] TRUE ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.