bevy_midix 3.3.0

The MIDI plugin for humans. Out-of-the-box soundfont synthesizer, commands, and input!
Documentation
use crate::MidiSettings;

use super::MidiInput;
use bevy::prelude::*;

#[doc = r#"
Inserts [`MidiInput`] as a resource.

See [`MidiSettings`] for configuration options.
"#]
#[derive(Clone, Copy, Debug, Default)]
pub struct MidiInputPlugin {
    /// The settings to apply to [`MidiInput`] on instantiation.
    pub settings: MidiSettings,
}

impl Plugin for MidiInputPlugin {
    fn build(&self, app: &mut App) {
        app.insert_resource(MidiInput::new(self.settings));
    }
}