Skip to contents

Generate spliced timeline using a view

Usage

# S3 method for View
splice_time(x, win_size, step_size, ...)

Arguments

x

View object.

win_size

duration of window segment in seconds.

step_size

increment in seconds between segments.

...

ignored.

Value

a Splice object.

Examples

r <- get_sample_recording()
rv <- get_raw_view(r, "Central", "", "Sitar")
df <- splice_time(rv, win_size = 3, step_size = 0.5)
head(df)
#>   Segment Start End
#> 1      w1   0.0 3.0
#> 2      w2   0.5 3.5
#> 3      w3   1.0 4.0
#> 4      w4   1.5 4.5
#> 5      w5   2.0 5.0
#> 6      w6   2.5 5.5