get_trackdata {emuR} | R Documentation |
Get trackdata from loaded emuDB
Description
Extract trackdata information from a loaded emuDB that corresponds to the entries in a segment list.
Usage
get_trackdata(
emuDBhandle,
seglist = NULL,
ssffTrackName = NULL,
cut = NULL,
npoints = NULL,
onTheFlyFunctionName = NULL,
onTheFlyParams = NULL,
onTheFlyOptLogFilePath = NULL,
onTheFlyFunction = NULL,
resultType = "tibble",
consistentOutputType = TRUE,
verbose = TRUE
)
Arguments
emuDBhandle |
emuDB handle as returned by |
seglist |
|
ssffTrackName |
The name of track that one wishes to extract (see
|
cut |
An optional cut time for segment data, ranges between 0 and 1, a value of 0.5 will extract data only at the segment midpoint. |
npoints |
An optional number of points to retrieve for each segment or event.
For segments this requires the |
onTheFlyFunctionName |
Name of wrassp function that will perform the on-the-fly
calculation (see |
onTheFlyParams |
A |
onTheFlyOptLogFilePath |
Path to optional log file for on-the-fly function |
onTheFlyFunction |
pass in a function pointer. This function will be called with the path to the
current media file. It is required that the function returns a tibble/data.frame like object that contains
a column called |
resultType |
Specify class of returned object. Either |
consistentOutputType |
Prevent converting the output object to a |
verbose |
Show progress bars and further information |
Details
This function utilizes the wrassp package for signal processing and
SSFF/audio file handling. It reads time relevant data from a given
segment list (emuRsegs
or emusegs
), extracts the
specified trackdata and places it into a
trackdata object (analogous to the deprecated emu.track
). This function
replaces the deprecated emu.track
function. Note that an warning is issued
if the bundles in the emuRsegs
or emusegs
object
have in-homogeneous sampling rates as this could lead to inconsistent/erroneous
trackdata
, emuRtrackdata
or tibble
result objects. For
more information on the structural elements of an emuDB
see the signal data extraction chapter of the EMU-SDMS manual
(https://ips-lmu.github.io/The-EMU-SDMS-Manual/chap-sigDataExtr.html).
Value
object of type specified with resultType
See Also
formals
, wrasspOutputInfos
,
trackdata
, emuRtrackdata
Examples
## Not run:
##################################
# prerequisite: loaded ae emuDB
# (see ?load_emuDB for more information)
# query loaded "ae" emuDB for all "i:" segments of the "Phonetic" level
sl = query(emuDBhandle = ae,
query = "Phonetic == i:")
# get the corresponding formant trackdata
td = get_trackdata(emuDBhandle = ae,
seglist = sl,
ssffTrackName = "fm")
# get the corresponding F0 trackdata
# as there is no F0 ssffTrack defined in the "ae" emuDB we will
# calculate the necessary values on-the-fly
td = get_trackdata(emuDBhandle = ae,
seglist = sl,
onTheFlyFunctionName = "ksvF0")
## End(Not run)