Skip to contents

Summary of difference in onsets

Usage

summary_onsets(
  onset_obj,
  recording,
  instruments,
  splicing_dfr = NULL,
  expr = NULL,
  show_plot = FALSE,
  filter_pair = NULL,
  na_omit = TRUE,
  time_breaks = NULL
)

Arguments

onset_obj

OnsetsSelected object.

recording

Recording object.

instruments

character vector of instrument names.

splicing_dfr

Splice object

expr

R expression to subset onsetsSelected

show_plot

show a plot? (Default is FALSE).

filter_pair

regular expression to filter instrument pair names.

na_omit

omit NAs (Default is TRUE).

time_breaks

suggests the number of major time tick marks (default is NULL).

Value

a summary data frame of onset difference statistics.

Examples

r1 <- get_sample_recording()
o1 <- get_onsets_selected_data(r1)
d1 <- get_duration_annotation_data(r1)
splice_dfr <- splice_time(d1, tier = 'FORM')
summary_onsets(o1, r1, instruments = c('Inst', 'Tabla'),
  splicing_dfr = splice_dfr, show_plot = TRUE)