Learn R Programming

soundgen (version 2.8.0)

annotation_app: Annotation app

Description

Starts a shiny app for annotating audio. This is a simplified and faster version of formant_app intended only for making annotations.

Usage

annotation_app(...)

Value

A list of the last used settings ($settings) plus a data.frame with the annotations. Every time a new annotation is added, the app creates a backup csv file and creates or updates a global object called "my_annot", which contains all the annotations.

Arguments

...

presets like windowLength = 25. Full list: dynamicRange, specContrast, specBrightness, blur_freq, blur_time, reass_cex, zp, spec_maxPoints, osc_maxPoints, windowLength, step, spec_xlim, spec_ylim, spec_colorTheme, osc, wn

Examples

Run this code
if (FALSE) {
ann = annotation_app()  # runs in default browser such as Firefox or Chrome

ann = annotation_app(specType = 'reassigned', windowLength = 5, step = 1)
# full list of parameters that can be passed to annotation_app():
# paste0(c(names(input)[which(names(input) %in% rownames(def_form))],
#  'spec_xlim', 'spec_ylim', 'spec_colorTheme', 'osc', 'wn'), collapse = ', ')

# save the complete output, including the settings used
saveRDS(ann, 'my_annotations.rds')

# To change system default browser, run something like:
options('browser' = '/usr/bin/firefox')  # path to the executable on Linux
}

Run the code above in your browser using DataLab