e_midi 0.1.13

An interactive/CLI/library MIDI player with advanced playback options, looping, and scan modes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use e_midi::cli::run_cli;
use e_midi::set_shutdown_flag;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    // Set up Ctrl+C handler
    ctrlc::set_handler(move || {
        println!("\n🛑 Received Ctrl+C, shutting down gracefully...");
        set_shutdown_flag();
        std::process::exit(0);
    })?;

    run_cli()
}