note_compare: note_compare function

View source: R/note_compare.R

note_compareR Documentation

note_compare function

Description

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

Usage

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

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)

Anthony-Kwong/birdsong.tools documentation built on April 14, 2023, 9:50 a.m.