- sourceDir
path to the directory containing the Bas Partitur File collection
- targetDir
directory where the new emuDB should be saved; if it does not exist,
the function tries to create one
- dbName
name given to the new emuDB
- bpfExt
extension of BPF files (default = "par")
- audioExt
extension of audio files (default = "wav")
- extractLevels
optional vector containing the names of levels that should be extracted.
If NULL (the default) all levels found in the BPF collection are extracted.
- refLevel
optional name of level used as reference for symbolic links. If NULL (the default), a link-less data base is created.
- newLevels
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.
- newLevelClasses
optional vector containing the classes of levels in the newLevels vector as integers.
Must have the same length and order as newLevels.
- segmentToEventLevels
optional vector containing names of segment levels with overlapping segments.
The parser treats segments on these levels as events (SEGMENT xyz becomes EVENT xyz_start and EVENT xyz_end).
If a level contains segmental overlap but is not in this vector, the parser will throw an error. If overlap
resolution leads to event overlap (e.g. if one segment's end coincides with the next segment's start), an error is thrown either way. If in doubt whether a level contains segmental overlap, try running the converter with segmentToEventLevels = NULL and see whether an error occurs.
- unifyLevels
optional vector containing names of levels to be unified with the reference level. This means that
they are treated as labels of the reference level rather than independent items. At the moment, only purely symbolic
(class 1) levels can be unified. Links between the reference level and levels in unifyLevels must be one-to-one.
- verbose
display infos, warnings and show progress bar