get_tempo: get_tempo function

Description Usage Arguments Value Examples

View source: R/get_tempo.R

Description

Takes a unit table and computes the number of notes/sec (tempo) for each recording.

Usage

1
get_tempo(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 2 column dataframe containing each of the recording and its tempo.

Examples

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

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