Skip to content

Commit

Permalink
"SWS/S&M: Toolbar - Toggle track envelopes in touch/latch/write" - ad…
Browse files Browse the repository at this point in the history
…d latch preview (reaper-oss#945)
  • Loading branch information
nofishonfriday committed Feb 4, 2018
1 parent 1a61f53 commit d67656e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SnM/SnM.cpp
Expand Up @@ -433,7 +433,7 @@ static COMMAND_T s_cmdTable[] =

// Toolbar ----------------------------------------------------------------
{ { DEFACCEL, "SWS/S&M: Toggle toolbars auto refresh enable" }, "S&M_TOOLBAR_REFRESH_ENABLE", EnableToolbarsAutoRefesh, NULL, 0, IsToolbarsAutoRefeshEnabled},
{ { DEFACCEL, "SWS/S&M: Toolbar - Toggle track envelopes in touch/latch/write" }, "S&M_TOOLBAR_WRITE_ENV", ToggleWriteEnvExists, NULL, 0, WriteEnvExists},
{ { DEFACCEL, "SWS/S&M: Toolbar - Toggle track envelopes in touch/latch/latch preview/write" }, "S&M_TOOLBAR_WRITE_ENV", ToggleWriteEnvExists, NULL, 0, WriteEnvExists},
{ { DEFACCEL, "SWS/S&M: Toolbar - Toggle offscreen item selection (left)" }, "S&M_TOOLBAR_ITEM_SEL0", ToggleOffscreenSelItems, NULL, SNM_ITEM_SEL_LEFT, HasOffscreenSelItems},
{ { DEFACCEL, "SWS/S&M: Toolbar - Toggle offscreen item selection (right)" },"S&M_TOOLBAR_ITEM_SEL1", ToggleOffscreenSelItems, NULL, SNM_ITEM_SEL_RIGHT, HasOffscreenSelItems},
{ { DEFACCEL, "SWS/S&M: Toolbar - Toggle offscreen item selection (top)" }, "S&M_TOOLBAR_ITEM_SEL2", ToggleOffscreenSelItems, NULL, SNM_ITEM_SEL_UP, HasOffscreenSelItems},
Expand Down
4 changes: 2 additions & 2 deletions SnM/SnM_Track.cpp
Expand Up @@ -619,7 +619,7 @@ void ToggleWriteEnvExists(COMMAND_T* _ct)
{
MediaTrack* tr = CSurf_TrackFromID(i, false);
int autoMode = tr ? *(int*)GetSetMediaTrackInfo(tr, "I_AUTOMODE", NULL) : -1;
if (autoMode >= 2 /* touch */ && autoMode <= 4 /* latch */)
if (autoMode >= 2 /* touch */ && autoMode <= 5 /* latch preview */)
{
GetSetMediaTrackInfo(tr, "I_AUTOMODE", &g_i1); // set read mode
g_toolbarAutoModeToggles.Add(new SNM_TrackInt(tr, autoMode));
Expand All @@ -640,7 +640,7 @@ int WriteEnvExists(COMMAND_T* _ct)
{
MediaTrack* tr = CSurf_TrackFromID(i, false);
int autoMode = tr ? *(int*)GetSetMediaTrackInfo(tr, "I_AUTOMODE", NULL) : -1;
if (autoMode >= 2 /* touch */ && autoMode <= 4 /* latch */)
if (autoMode >= 2 /* touch */ && autoMode <= 5 /* latch preview */)
return true;
}
return false;
Expand Down
2 changes: 2 additions & 0 deletions whatsnew.txt
@@ -1,3 +1,5 @@
+Issue 945: "SWS/S&M: Toolbar - Toggle track envelopes in touch/latch/write" - add latch preview

!v2.9.7 featured build (September 28, 2017)
Fixes:
+Issue 897: Fix major issues with OSX 10.13 High Sierra
Expand Down

0 comments on commit d67656e

Please sign in to comment.