merge_events: Merge output

View source: R/merge_events.R

merge_eventsR Documentation

Merge output

Description

Loops through folder and merges files with extension "extracted.wav" into a new file 'merged.events.wav' (and the same with audacity labels). Optionally, rescales to a new bit rate (e.g., "8" or "16") to avoid memory issues. If file size is to large, automatically tries to downsample to 32 kHz.

Usage

merge_events(path, rescale = NULL)

Arguments

path

Path to a set of recordings (all same format and continuous time span). Important note: File are expected to be named using a YYYYMMDD_HHMMSS string or set reaname = TRUE to allow renaming. Files including the extensions "_extracted.WAV" or "merged_events.WAV" are reserved to write output files and ignored as inputs.

rescale

optional. allows to resacale the wav to a new bit rate (e.g., "8", "16", "24").


mottensmann/NocMigR documentation built on Oct. 3, 2023, 3:36 a.m.