splice_time.OnsetsDifference function

Generate spliced timeline using an OnsetsDifference object

Generate spliced timeline using an OnsetsDifference object

## S3 method for class 'OnsetsDifference' splice_time(x, window_duration, metres = NULL, make.unique = TRUE, ...)

Arguments

  • x: OnsetsDifference object.
  • window_duration: duration of window around onset point in seconds.
  • metres: vector of metres to subset.
  • make.unique: give unique names to each segment?
  • ...: passed to make.unique().

Returns

a Splice object.

Examples

r <- get_sample_recording() o1 <- get_onsets_selected_data(r) po1 <- difference_onsets(o1, instruments = c('Inst', 'Tabla')) splicing_df <- splice_time(po1, window_duration = 1) head(splicing_df)

See Also

Other splicing functions: clip_splice(), get_spliced_view(), is_splice_overlapping(), merge_splice(), splice_time.Duration(), splice_time.Metre(), splice_time.View(), splice_time.list(), splice_time(), split.SplicedView()

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

Useful links