32 releases (2 stable)
1.0.1 | Aug 27, 2024 |
---|---|
1.0.0 | Jan 7, 2024 |
0.19.2 | Jun 13, 2022 |
0.14.0 | Mar 31, 2022 |
0.13.2 | Oct 18, 2021 |
#101 in Audio
Used in 4 crates
32KB
697 lines
Nodi
Nodi provides types and functions for playback and abstraction of MIDI files.
This crate works alongside the midly and midir crates. However you can implement your own MIDI player, instead of relying on midir.
Features
- Time-map MIDI events.
- Join or merge multiple MIDI tracks.
- Play MIDI files.
- Split a MIDI track into measures/bars.
- Transpose a track.
Examples
Check out /examples/play_midi.rs
for a basic midi player.
I started developping this crate because I needed the features it now offers. Here are some real-world examples of nodi in action:
Crate Features
Features enabled by default:
hybrid-sleep
: A more accurate sleep, mixing regular sleep with spin locking efficiently. With this feature enabled the default implementations of timers in this crate will use this. Highly recommended for Windows users but it may also increase timing on other platforms.
Optional features:
midir
: Adds implementations ofConnection
formidir::MidiOutputConnection
.midir-jack
: Same withmidir
but uses the Jack backend.midir-winrt
: Same withmidir
but uses the WinRT backend.
Dependencies
~0.2–25MB
~354K SLoC