A block through which hosts provide musical tempo, time signature, and beat position.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
If the host app provides this block to an audio unit, via the
musical property, then the block may be called at the beginning of each render cycle to obtain information about the current render cycle’s musical context. Any of the provided parameters may be null to indicate that the audio unit is not interested in that particular piece of information.
This block returns
YES if the operation was successful and
The block takes the following parameters:
The current tempo, in beats per minute.
The numerator of the current time signature.
The denominator of the current time signature.
The precise beat position of the beginning of the current buffer being rendered.
The number of samples between the beginning of the buffer being rendered and the next beat. Can be
The beat position corresponding to the beginning of the current measure.