Crates.io | mseq |
lib.rs | mseq |
version | 0.1.2 |
source | src |
created_at | 2024-10-10 20:42:32.764056 |
updated_at | 2024-11-06 21:16:32.138024 |
description | Library for developing MIDI Sequencers. |
homepage | |
repository | https://github.com/MF-Room/mseq |
max_upload_size | |
id | 1404402 |
size | 119,079 |
Library for developing MIDI Sequencers.
Add this to your Cargo.toml
:
[dependencies]
mseq = "0.1"
To start using mseq
, create a struct that implements the Conductor
trait.
You can then add tracks to your sequencer by adding fields (to your struct that implements the
Conductor
trait) of type DeteTrack
or more generally fields that implement the trait Track
.
Once this is done, you can play your track in the Conductor::update
function of your struct that
implements the Conductor
trait. To do so, call the method MidiController::play_track
(of
the Context::midi
) with the track you want to play as a parameter.
You can find some examples in the examples
directory.