Learn R Programming

movementsync (version 0.1.5)

splice_time.OnsetsDifference: Generate spliced timeline using an OnsetsDifference object

Description

Generate spliced timeline using an OnsetsDifference object

Usage

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

Value

a Splice object.

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

See Also

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

Examples

Run this code
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)

Run the code above in your browser using DataLab