read.audacity {seewave} | R Documentation |
Read audio markers as exported by Audacity.
read.audacity(file, format)
file |
A .txt file produced by Audacity when exporting time or time x frequency markers. |
format |
The format of the file name that will appear in the
value, that is in the first column of the data frame returned. if
|
Audacity opens the possibility to annotate sound files with a
marker channel. These markers can be exported as .txt files. The
function read.audacity
import such .txt files whether they
contain time markers or time x frequency markers.
A data.frame
. The size of the data.frame
differs
whether the .txt file contains time markers or time x frequency
markers.
For time markers, the data.frame
contains 4 columns:
file
returning the name of the input file either with
the full path or with the base name only (see argument format
),
label
the text label,
t1
the start time in seconds,
t2
the end time in seconds.
For time x frequency markers, the data.frame
contains 6
columns:
file
returning the name of the input file either with
the full path or with the base name only (see argument format
),
label
the text label,
t1
the start time in seconds,
t2
the end time in seconds,
f1
the lower frequency in Hz,
f2
the upper frequency in Hz.
Jerome Sueur
Audacity is a free software
distributed under the terms of the GNU General Public License.
Web site: https://audacityteam.org/.
## Not run: ## If 'markers.txt' is an export of Audacity markers x <- read.audacity("markers.txt") ## End(Not run)