
Generate spliced timeline using an OnsetsDifference object
splice_time.OnsetsDifference.RdGenerate spliced timeline using an OnsetsDifference object
Usage
# S3 method for OnsetsDifference
splice_time(x, window_duration, metres = NULL, make.unique = TRUE, ...)Arguments
- x
OnsetsDifferenceobject.- 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().
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()
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)
#> Segment Start End
#> 1 Reference_Beat_All.5276 1146.402 1147.402
#> 2 Reference_Beat_All.5277 1147.755 1148.755
#> 3 Reference_Beat_All.5278 1149.081 1150.081
#> 4 Reference_Beat_All.5279 1150.510 1151.510
#> 5 Reference_Beat_All.5280 1151.135 1152.135
#> 6 Reference_Beat_All.5281 1151.818 1152.818