difference_onsets {movementsync} | R Documentation |
Get onset differences
Description
Calculates the difference in onset times for each instrument pair in milli-seconds.
Usage
difference_onsets(onset_obj, instruments, expr = NULL, splicing_dfr = NULL)
Arguments
onset_obj |
|
instruments |
character vector of instrument names. |
expr |
R expression to subset onsets (not required). |
splicing_dfr |
|
Value
OnsetsDifference
object.
See Also
Other statistical and analysis functions:
apply_column_spliceview()
,
apply_segment_spliceview()
,
ave_cross_power_over_splices()
,
ave_cross_power_spliceview()
,
ave_power_over_splices()
,
ave_power_spliceview()
,
calculate_ave_cross_power1()
,
calculate_ave_power1()
,
compare_ave_cross_power1()
,
compare_ave_power1()
,
compare_avg_cross_power2()
,
compare_avg_power2()
,
pull_segment_spliceview()
,
sample_gap_splice()
,
sample_offset_splice()
,
summary_onsets()
,
visualise_sample_splices()
Examples
r1 <- get_sample_recording()
o1 <- get_onsets_selected_data(r1)
head(difference_onsets(o1, instruments = c('Inst', 'Tabla')))
head(difference_onsets(o1, instruments = c('Inst', 'Tabla'), expr = 'Matra == 3'))
[Package movementsync version 0.1.4 Index]