sync_sample_paired: Take equal number of samples from two instruments

View source: R/sync_sample_paired.R

sync_sample_pairedR Documentation

Take equal number of samples from two instruments

Description

taken N samples of two instruments (where they both have onsets)

Usage

sync_sample_paired(
  df = NULL,
  instr1 = NULL,
  instr2 = NULL,
  n = 0,
  bootn = NULL,
  beat = NULL,
  verbose = FALSE
)

Arguments

df

data frame to be processed (required)

instr1

Instrument 1 name to be processed (required)

instr2

Instrument 2 name to be processed (required)

n

Number of samples to be drawn from the pool of joint onsets. If 0, do not sample (default)

bootn

How many bootstraps are drawn (default none, which is 1)

beat

Beat structure (subdivisions) to be included

verbose

Display no. of shared onsets (default FALSE)

Value

List containing asynchronies and beat structures

See Also

sync_execute_pairs


tuomaseerola/onsetsynch documentation built on Jan. 17, 2024, 10:58 a.m.