Skip to content

Instantly share code, notes, and snippets.

@TimovNiedek
TimovNiedek / main.rs
Last active March 11, 2023 14:12
This is an implementation of using MIDI messages to control values in the nannou model. The MIDI connection is running on a separate thread per device. Custom devices can be added by extending midi.rs. Tested with nannou = "0.15", midir = "0.7.0".
use nannou::prelude::*;
mod midi;
use std::sync::mpsc;
fn main() {
nannou::app(model).update(update).run();
}
struct Model {
_window: window::Id,