clip_splice {movementsync}R Documentation

Clip a splice so segments are of fixed duration

Description

Clip a splice so segments are of fixed duration

Usage

clip_splice(splice_dfr, duration, location = "middle")

Arguments

splice_dfr

Splice object.

duration

window duration in seconds.

location

'beginning', 'middle' or 'end'.

Value

a Splice object.

See Also

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

Examples

l <- list(a = c(10, 20), b = c(30, 40),c = c(50, 55))
splice_dfr <- splice_time(l)
clip_splice(splice_dfr, duration = 1)
clip_splice(splice_dfr, duration = 6)
clip_splice(splice_dfr, duration = 1, location = 'beginning')
clip_splice(splice_dfr, duration = 10, location = 'beginning')
clip_splice(splice_dfr, duration = 1, location = 'end')
clip_splice(splice_dfr, duration = 10, location = 'end')

[Package movementsync version 0.1.4 Index]