Learn R Programming

movementsync (version 0.1.5)

splice_time.Metre: Generate spliced timeline using a Metre object

Description

Generate spliced timeline using a Metre object

Usage

# S3 method for Metre
splice_time(
  x,
  window_duration = NULL,
  window_proportion = NULL,
  tactus = NULL,
  ...
)

Value

a Splice object.

Arguments

x

Metre object.

window_duration

duration of window around beat (may lead to overlapping windows if large).

window_proportion

sets the window duration around beat based on a proportion (0, 0.5] of the gap to the previous and following cycles. The first and last beats in each Metre are removed.

tactus

vector of Metres to subset on.

...

ignored.

See Also

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

Examples

Run this code
r <- get_sample_recording()
m <- get_metre_data(r)
splicing_df <- splice_time(m, window_duration = 1)
head(splicing_df)
splicing_df <- splice_time(m, window_proportion = 0.25)
head(splicing_df)

Run the code above in your browser using DataLab