Skip to content

Commit

Permalink
load/save midi channel to preset
Browse files Browse the repository at this point in the history
  • Loading branch information
iurienistor committed Feb 18, 2024
1 parent 80ec2ef commit 88d6f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/geonkick_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ std::unique_ptr<PercussionState> GeonkickApi::getPercussionState() const
state->tuneOutput(isAudioOutputTuned(state->getId()));
state->setPlayingKey(getPercussionPlayingKey(state->getId()));
state->setChannel(getPercussionChannel(state->getId()));
state->setMidiChannel(getPercussionMidiChannel(state->getId()));
state->setMute(isPercussionMuted(state->getId()));
state->setSolo(isPercussionSolo(state->getId()));
for (int i = 0; i < 3; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/percussion_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ void PercussionState::kickJson(std::ostringstream &jsonStream) const
jsonStream << "\"PercussionAppVersion\": " << GEONKICK_VERSION << "," << std::endl;
jsonStream << "\"id\": " << getId() << "," << std::endl;
jsonStream << "\"channel\": " << getChannel() << "," << std::endl;
jsonStream << "\"midiChannel\": " << getMidiChannel() << "," << std::endl;
jsonStream << "\"midiChannel\": " << static_cast<int>(getMidiChannel()) << "," << std::endl;
jsonStream << "\"mute\": " << (isMuted() ? "true" : "false") << "," << std::endl;
jsonStream << "\"solo\": " << (isSolo() ? "true" : "false") << "," << std::endl;
jsonStream << "\"name\": \"" << getName() << "\"," << std::endl;
Expand Down

0 comments on commit 88d6f16

Please sign in to comment.