duration {voice} | R Documentation |
Duration of sequences
Description
Duration of sequences
Usage
duration(x, windowShift = 5)
Arguments
x |
A vector containing symbols and |
windowShift |
Window shift to duration in ms (default: 5.0). |
Value
A data frame with duration in number of lines/ocurrences (dur_line
), milliseconds (dur_ms
) and proportional (dur_prop
).
Examples
library(voice)
duration(letters)
duration(c('a','a','a',letters,'z'))
nts <- c('NA','NA','A3','A3','A3','A3','A#3','B3','B3','C4','C4','C4','C4',
'C4','C4','C#4','C4','C4','C4','B3','A#3','NA','NA','NA','NA','NA','NA','NA',
'NA','NA','NA','NA','NA','NA','NA','NA','NA','NA','NA','D4','D4','D4','C#4',
'C#4','C#4','C4','C4','B3','B3','A#3','A#3','A3','A3','G3','G#3','G3','F#3')
duration(nts)
[Package voice version 0.4.21 Index]