summary_onsets function

Summary of difference in onsets

Summary of difference in onsets

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).

Returns

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)

See Also

Other statistical and analysis functions: apply_column_spliceview(), apply_segment_spliceview(), ave_cross_power_over_splices(), ave_cross_power_spliceview(), ave_power_over_splices(), ave_power_spliceview(), calculate_ave_cross_power1(), calculate_ave_power1(), compare_ave_cross_power1(), compare_ave_power1(), compare_avg_cross_power2(), compare_avg_power2(), difference_onsets(), pull_segment_spliceview(), sample_gap_splice(), sample_offset_splice(), visualise_sample_splices()

  • Maintainer: Tuomas Eerola
  • License: MIT + file LICENSE
  • Last published: 2023-06-09

Useful links