Generic accessor for converting block-wise onsets to global onsets.
Usage
global_onsets(x, ...)
# S3 method for class 'sampling_frame'
global_onsets(x, onsets, blockids, ...)
Arguments
- x
Object describing the sampling frame
- ...
Additional arguments passed to methods
- onsets
Numeric vector of onset times within blocks
- blockids
Integer vector identifying the block for each onset. Values
must be whole numbers with no NAs.
Value
Numeric vector of global onset times