pub trait MatrixObserver {
    fn update_prop(&self, key: &str);
    fn update_monitor(&self, cell: &Cell);
    fn update_param(&self, param_id: &ParamId);
    fn update_matrix(&self);
    fn update_all(&self);
    fn midi_event(&self, midi_ev: HxMidiEvent);
}
Expand description

This trait can be passed into Matrix as trait object to get feedback when things change.

Required Methods

Called when a property is changing eg. via Matrix::set_prop or some other yet unknown method. Not called, when MatrixObserver::update_all tells you that everything has changed.

Called when a new cell is monitored via Matrix::monitor_cell. Not called, when MatrixObserver::update_all tells you that everything has changed.

Called when a parameter or it’s modulation amount is changing. Not called, when MatrixObserver::update_all tells you that everything has changed.

Called when the matrix graph was changed, usually called when Matrix::sync is called. Usually also called when MatrixObserver::update_all was called.

Called when the complete matrix has been changing. The called then needs up update all it’s internal state it knows about Matrix.

Called when a MIDI event was received.

Implementors