note_compare: note_compare function

Description Usage Arguments Value Examples

View source: R/note_compare.R

Description

Takes a note from one unit table and compares it with the corresponding note found in another unit table.

Usage

1
note_compare(note, unit_table)

Arguments

note

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

unit_table

: A tibble of notes containing the original sound file, start/end times of the note and the note class.

Value

A tibble with the sound file, the square difference in the intervals, a logical indicating whether a note match was found and the note class. If no match it found, the difference is the square interval length of the input note.

Examples

1
2
3
note = tibble(start = 0.35, end = 0.49, sound.files = "JS001.wav", pnote_label = "Curve")
unit_table = tibble(start = c(0.35, 0.55), end = c(0.49, 0.7), sound.files = "JS001.wav")
note_compare(note, unit_table)

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