WIP: MIDI

This commit is contained in:
Dandaedre 2024-12-14 00:05:33 +01:00
parent dfd5577cbc
commit 97dc21de64
1 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,18 @@
// The midi module should provide a high-level interface for receiving and sending MIDI messages.
// It should handle the low-level details of communicating with the MIDI devices.
//! The midi module should provide a high-level interface for receiving and sending MIDI messages.
//! It should handle the low-level details of communicating with the MIDI devices.
//!
//! Generic Midi controller:
//! * Load from disk
//! * save default
//! * await_message(Mutex glob messages)
//! * Loop sending messages
//! * update status (global status)
//!
//! Global status:
//! * Vec<VP <- Trait>
//! * VP me.status -> Status
//! globalmessage fifo with <Commands>
//! Command: One VP-> Action
use std::{
sync::{Arc, Mutex},