pub fn map_source_to_param(
infos: &[ParamInfo],
channel: u8,
source: MidiSource,
) -> Option<u32>Expand description
Resolve which parameter a MIDI source on channel is bound to,
from a param-info list. The first param whose binding matches the
source and whose channel scope is unset (any) or equal wins;
#[derive(Params)] rejects ambiguous overlaps at compile time, so
at most one matches. Used by the format wrappers’ mapping paths.