Skip to content

Commit

Permalink
Fix MIDI out information not being refreshed properly on MIDI channels (
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Dec 5, 2024
1 parent fe2a814 commit 1b7e8df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/api/IOApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void IOApi::channel_enableMidiLightning(ID channelId, bool v)
void IOApi::channel_enableMidiOutput(ID channelId, bool v)
{
m_model.get().tracks.getChannel(channelId).midiChannel->outputEnabled = v;
m_model.swap(m::model::SwapType::NONE);
m_model.swap(m::model::SwapType::HARD); // Rebuild info printed in MIDI channels
}

/* -------------------------------------------------------------------------- */
Expand All @@ -94,7 +94,7 @@ void IOApi::channel_setMidiInputFilter(ID channelId, int ch)
void IOApi::channel_setMidiOutputFilter(ID channelId, int ch)
{
m_model.get().tracks.getChannel(channelId).midiChannel->outputFilter = ch;
m_model.swap(m::model::SwapType::NONE);
m_model.swap(m::model::SwapType::HARD); // Rebuild info printed in MIDI channels
}

/* -------------------------------------------------------------------------- */
Expand Down

0 comments on commit 1b7e8df

Please sign in to comment.