clip_splice function

Clip a splice so segments are of fixed duration

Clip a splice so segments are of fixed duration

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

Arguments

  • splice_dfr: Splice object.
  • duration: window duration in seconds.
  • location: 'beginning', 'middle' or 'end'.

Returns

a Splice object.

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')

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

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

Useful links