splice_time.OnsetsDifference {movementsync}R Documentation

Generate spliced timeline using an OnsetsDifference object

Description

Generate spliced timeline using an OnsetsDifference object

Usage

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

Value

a Splice object.

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)

[Package movementsync version 0.1.4 Index]