Expand description
§bevy_midi_params
Hardware MIDI controller integration for live parameter tweaking in Bevy games.
§Quick Start
#[derive(Resource, MidiParams)]
struct GameSettings {
#[midi(1, 0.0..1.0)]
pub player_speed: f32,
#[midi(33)]
pub debug_mode: bool,
}
impl Default for GameSettings {
fn default() -> Self {
Self {
player_speed: 5.0,
debug_mode: false,
}
}
}
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(MidiParamsPlugin::default())
.run();Re-exports§
pub use inventory;
Modules§
- prelude
- Prelude module for easy imports
Structs§
- Midi
Controller - Resource that manages MIDI controller input and state
- Midi
Mapping - MIDI control mapping information
- Midi
Param Changed - Event emitted when MIDI parameters change
- Midi
Params Plugin - Main plugin for MIDI parameter integration
- Midi
Params Registration - Registration data for auto-discovered MidiParams types
Enums§
- Control
Type - Type of MIDI control
- Midi
Error - Errors that can occur in bevy_midi_params
Traits§
- Midi
Controllable - Trait for types that can be controlled via MIDI
Functions§
- register_
midi_ type - Register a MidiParams type with the controller
Type Aliases§
- Midi
Result - Result type for MIDI operations
Derive Macros§
- Midi
Params - Derive macro for MIDI parameter mapping