get_duration | R Documentation |
Computes the duration of a song using its unit table.
get_duration(unit_table)
unit_table: |
A unit table tibble containing the original sound file, start/end times of the note,the note position and note_label. |
: A numeric scalar, the end of the first note minus the start of the first note.
unit_table = tibble::tibble(start = c(0.37, 0.6, 0.75, 0.2, 1.8, 2.5),
end = c(0.45, 0.7, 0.9, 0.4, 2, 3),
sound.files = "JS001.wav",
select = seq(6),
note_label = "Curve")
get_duration(unit_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.