xsynth-core 0.4.0

A fast Rust-based SoundFont synthesizer designed for high voice counts and low latency.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::channel::ChannelEvent;

/// Wrapper enum for various events to be sent to a MIDI synthesizer.
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub enum SynthEvent {
    /// A channel event to be sent to the specified channel.
    /// See `ChannelEvent` documentation for more information.
    Channel(u32, ChannelEvent),

    /// A channel event to be sent to all available channels.
    /// See `ChannelAudioEvent` documentation for more information.
    AllChannels(ChannelEvent),
}