identify_intro: identify_intro function

Description Usage Arguments Value Examples

View source: R/identify_intro.R

Description

Takes a unit table and identifies the notes that are part of the introduction. An introduction are a contiguous sequence of notes at the beginning of a song, which are less than 0.25s apart. The introductions cut off after 5 notes.

Usage

1
identify_intro(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

The input unit table with an additional column indicating whether each note is in an introduction or not.

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")
identify_intro(intro_table)

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