Skip to content

Commit

Permalink
Makes double clicking step enter note editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Quixotic7 committed Mar 18, 2024
1 parent 53afe0e commit c08b5d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OMX-27-firmware/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// OMX_VERSION = 1.13.3
const int MAJOR_VERSION = 1;
const int MINOR_VERSION = 14;
const int POINT_VERSION = 2;
const int POINT_VERSION = 3;
extern const char* VERSION_STRING;

// 1.13.2 - Adds CV Trigger modes for legato and regtrig
Expand Down
17 changes: 17 additions & 0 deletions OMX-27-firmware/src/form/machines/form_machine_omni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,22 @@ namespace FormOmni
case OMNIUIMODE_CONFIG:
case OMNIUIMODE_MIX:
{
// Double click to enter note edit
if (!e.down() && thisKey >= 11 && e.clicks() == 2)
{
auto track = getTrack();

selStep(thisKey - 11);
stepReleased(thisKey - 11);
uint8_t stepIndex = key16toStep(thisKey - 11);
// reverse effects of quick click mute
track->steps[stepIndex].mute = !track->steps[stepIndex].mute;

changeUIMode(OMNIUIMODE_NOTEEDIT, false);
omxFormGlobal.auxBlock = true;
return true;
}

if (stepHeld_)
{
// Shortcut to set mute
Expand Down Expand Up @@ -1805,6 +1821,7 @@ namespace FormOmni
{
if (thisKey >= 11 && thisKey < 27)
{
// Shortcut to set mute, not sure this is needed here
if (e.quickClicked())
{
auto track = getTrack();
Expand Down

0 comments on commit c08b5d8

Please sign in to comment.