-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change channel/synth configuration methods (#93)
- Loading branch information
1 parent
2cbfc9e
commit 5b13b2d
Showing
19 changed files
with
221 additions
and
176 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
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), | ||
} |
Oops, something went wrong.