Skip to content

Commit

Permalink
Playtime: Multiple additions
Browse files Browse the repository at this point in the history
- #1069 Add MIDI panic button
- #1062 Add action "Insert column for each selected track"
- #1064 Make it possible to not overwrite existing arrangement
  • Loading branch information
helgoboss committed Aug 2, 2024
1 parent 58dde40 commit d3e8e73
Show file tree
Hide file tree
Showing 6 changed files with 1,049 additions and 507 deletions.
14 changes: 14 additions & 0 deletions api/src/runtime/global_info_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Eq, PartialEq, Debug, Serialize, Deserialize)]
#[serde(tag = "kind")]
pub enum GlobalInfoEvent {
Generic(GenericGlobalInfoEvent),
AutoAddedController(AutoAddedControllerEvent),
PlaytimeActivationSucceeded,
PlaytimeActivationFailed,
}

impl GlobalInfoEvent {
pub fn generic(message: impl Into<String>) -> Self {
Self::Generic(GenericGlobalInfoEvent {
message: message.into(),
})
}
}

#[derive(Clone, Eq, PartialEq, Debug, Serialize, Deserialize)]
pub struct GenericGlobalInfoEvent {
pub message: String,
}

#[derive(Clone, Eq, PartialEq, Debug, Serialize, Deserialize)]
pub struct AutoAddedControllerEvent {
pub controller_id: String,
Expand Down
1 change: 1 addition & 0 deletions api/src/runtime/instance_info_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub enum InstanceInfoEvent {
MidiLearnFromFxInputButTrackNotArmed,
MidiLearnFromFxInputButTrackHasAudioInput,
}

impl InstanceInfoEvent {
pub fn generic(message: impl Into<String>) -> Self {
Self::Generic(GenericInstanceInfoEvent {
Expand Down
Loading

0 comments on commit d3e8e73

Please sign in to comment.