rtpmidi
This provides functions for working with RTP-MIDI in Rust.
Usage
let session = new.await.unwrap;
// Wait for midi commands
session
.add_listener
.await;
// start listening for packets - this can be accept_all_invitations, reject_all_invitations, or a function
// that takes the form my_function(packet: &SessionInitiationPacket, socket: &SocketAddr) -> bool
let _ = server.start.await;
// invite another participant to the session
let addr = new;
let _ = invite_server.invite_participant.await.unwrap;
// send MIDI commands
let command = NoteOn ;
session.send_midi.await.unwrap;
See the Examples directory for more examples.
Installation
cargo add rtpmidi
Status
Supported:
- Responding to invitations (currently auto-accepts all invitations)
- Inviting others
- Advertising via MDNS / Bonjour (optional - enable the 'mdns' feature for this)
- SysEx
Not supported:
- Recovery journal