observe

abstract suspend fun observe(tag: String? = null, observer: (ProcessingParameterState<T>) -> Unit)

Observes updates indicating the current state of the MimiProcessingParameter.

The MimiProcessingParameter always emits the most recent state to the observe handler functions; a newly registered observer will immediately receive the current state of the MimiProcessingParameter.

IMPORTANT: DO NOT USE THIS TO RECEIVE UPDATES TO YOUR PROCESSING SYSTEM (e.g. headphones). Instead: use addApplicator to register a MimiParameterApplicator instance.

Since

10.0.0

Parameters

observer

A function called when the MimiProcessingParameter has changed its state.