use gled_model::asset::midi_controller::{MidiController, MidiControllerMapping};
fn load(json: &str) -> MidiControllerMapping {
serde_json::from_str::<MidiController>(json)
.unwrap_or_else(|error| panic!("fixture must load: {error}"))
.mapping
}
pub(crate) fn p1x() -> MidiControllerMapping {
load(include_str!("fixtures/p1x.json"))
}
pub(crate) fn apc40() -> MidiControllerMapping {
load(include_str!("fixtures/apc40.json"))
}