get_gaps: get_gaps function

Description Usage Arguments Value Examples

View source: R/get_gaps.R

Description

Takes a unit table of notes and generates a corresponding unit table for its gaps.

Usage

1
get_gaps(unit_table)

Arguments

unit_table:

A unit table tibble containing the original sound file, start/end times of the note,the note position and note_label.

Value

A dataframe with the recording, position of gap and the gap duration.

Examples

1
2
unit_table = tibble::tibble(start = c(0.37, 0.6, 0.75, 0.2, 1.8, 2.5), end = c(0.45, 0.7, 0.9, 0.4, 2, 3), pos = c(1,2,3,1,2,3),sound.files = c(rep("JS001.wav",3),rep("JS002.wav", 3)), note_label = "Curve")
get_gaps(unit_table)

deponent-verb/birdsong.tools documentation built on Dec. 19, 2021, 10:12 p.m.