-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7fc1ee
commit cd2d91c
Showing
18 changed files
with
200 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
use crate::channel::{ChannelAudioEvent, ChannelConfigEvent}; | ||
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 { | ||
/// An audio event to be sent to the specified channel. | ||
/// See `ChannelAudioEvent` documentation for more information. | ||
Channel(u32, ChannelAudioEvent), | ||
/// A channel event to be sent to the specified channel. | ||
/// See `ChannelEvent` documentation for more information. | ||
Channel(u32, ChannelEvent), | ||
|
||
/// An audio event to be sent to all available channels. | ||
/// A channel event to be sent to all available channels. | ||
/// See `ChannelAudioEvent` documentation for more information. | ||
AllChannels(ChannelAudioEvent), | ||
|
||
/// Configuration event for all channels. | ||
/// See `ChannelConfigEvent` documentation for more information. | ||
ChannelConfig(ChannelConfigEvent), | ||
AllChannels(ChannelEvent), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.