This function exports an emuDB into the BAS Partitur File format, with one BPF file per bundle. The user must pass a list of matching label names and BPF keys. Important: The BPF format does not support explicit hierarchies with more than three levels. Hence, you will probably lose information when exporting complex hierarchies.
export_BPFCollection(
handle,
targetDir,
extractLevels,
refLevel = NULL,
verbose = TRUE,
newLevels = NULL,
newLevelClasses = NULL,
copyAudio = FALSE
)
handle to the emuDB
directory where the BPF collection should be saved
list containing the names of labels (not levels!) that should be extracted, and their matching BPF keys, e.g. extractLevels = list(SampleRate="SAM", Text="ORT", Phonemes="SAP")
optional name of level (not label!) used as reference for symbolic links. If NULL (the default), a link-less BPF collection is created.
display infos, warnings and show progress bar
optional vector containing names of levels in the BPF collection that are not part of the standard BPF levels. See http://www.bas.uni-muenchen.de/forschung/Bas/BasFormatseng.html#Partitur_tiersdef for details on standard BPF levels.
optional vector containing the classes of levels in the newLevels vector as integers. Must have the same length and order as newLevels.
if true, audio files are copied to the new BPF collection
export_TextGridCollection