@@ -574,10 +574,8 @@ bool SoundEditor::beginScreen(MenuItem* oldMenuItem) {
574
574
575
575
// Find param shortcut
576
576
currentParamShorcutX = 255 ;
577
- bool isUISessionView =
578
- (getRootUI () == &performanceSessionView) || (getRootUI () == &sessionView) || (getRootUI () == &arrangerView);
579
577
580
- if (isUISessionView ) {
578
+ if (! rootUIIsClipMinderScreen () ) {
581
579
int32_t x, y;
582
580
583
581
// First, see if there's a shortcut for the actual MenuItem we're currently on
@@ -862,10 +860,13 @@ static const uint32_t shortcutPadUIModes[] = {UI_MODE_AUDITIONING, 0};
862
860
863
861
ActionResult SoundEditor::potentialShortcutPadAction (int32_t x, int32_t y, bool on) {
864
862
863
+ bool isUIPerformanceSessionView =
864
+ (getRootUI () == &performanceSessionView) || (getCurrentUI () == &performanceSessionView);
865
+
865
866
bool ignoreAction = false ;
866
867
if (!Buttons::isShiftButtonPressed ()) {
867
868
// if in Performance Session View
868
- if (( getRootUI () == &performanceSessionView) || ( getCurrentUI () == &performanceSessionView) ) {
869
+ if (isUIPerformanceSessionView ) {
869
870
// ignore if you're not in editing mode or if you're in editing mode but editing a param
870
871
ignoreAction = (!performanceSessionView.defaultEditingMode || performanceSessionView.editingParam );
871
872
}
@@ -889,8 +890,7 @@ ActionResult SoundEditor::potentialShortcutPadAction(int32_t x, int32_t y, bool
889
890
return ActionResult::NOT_DEALT_WITH;
890
891
}
891
892
892
- bool isUIPerformanceSessionView =
893
- (getRootUI () == &performanceSessionView) || (getCurrentUI () == &performanceSessionView);
893
+ bool isUISessionView = isUIPerformanceSessionView || !rootUIIsClipMinderScreen ();
894
894
895
895
if (on && (isUIModeWithinRange (shortcutPadUIModes) || isUIPerformanceSessionView)) {
896
896
@@ -900,8 +900,8 @@ ActionResult SoundEditor::potentialShortcutPadAction(int32_t x, int32_t y, bool
900
900
901
901
const MenuItem* item = nullptr ;
902
902
903
- // performance session view
904
- if (isUIPerformanceSessionView ) {
903
+ // session views (arranger, song, performance)
904
+ if (isUISessionView ) {
905
905
if (x <= (kDisplayWidth - 2 )) {
906
906
item = paramShortcutsForSongView[x][y];
907
907
}
@@ -1322,15 +1322,10 @@ bool SoundEditor::setup(Clip* clip, const MenuItem* item, int32_t sourceIndex) {
1322
1322
ModControllableAudio* newModControllable = nullptr ;
1323
1323
1324
1324
UI* currentUI = getCurrentUI ();
1325
- AutomationSubType automationSubType = AutomationSubType::NONE;
1326
- if (currentUI == &automationView) {
1327
- automationSubType = automationView.getAutomationSubType ();
1328
- }
1329
1325
1330
1326
bool isUIPerformanceView = ((getRootUI () == &performanceSessionView) || currentUI == &performanceSessionView);
1331
1327
1332
- bool isUISessionView = isUIPerformanceView || (currentUI == &sessionView) || (currentUI == &arrangerView)
1333
- || (automationSubType == AutomationSubType::ARRANGER);
1328
+ bool isUISessionView = isUIPerformanceView || !currentUIIsClipMinderScreen ();
1334
1329
1335
1330
// getParamManager and ModControllable for Performance Session View (and Session View)
1336
1331
if (isUISessionView) {
@@ -1594,19 +1589,10 @@ AudioFileHolder* SoundEditor::getCurrentAudioFileHolder() {
1594
1589
}
1595
1590
1596
1591
ModelStackWithThreeMainThings* SoundEditor::getCurrentModelStack (void * memory) {
1597
- RootUI* rootUI = getRootUI ();
1598
- AutomationSubType automationSubType = AutomationSubType::NONE;
1599
- if (rootUI == &automationView) {
1600
- automationSubType = automationView.getAutomationSubType ();
1601
- }
1602
-
1603
- bool isUISessionView = (rootUI == &performanceSessionView) || (rootUI == &sessionView) || (rootUI == &arrangerView)
1604
- || (automationSubType == AutomationSubType::ARRANGER);
1605
-
1606
1592
InstrumentClip* clip = getCurrentInstrumentClip ();
1607
1593
Instrument* instrument = getCurrentInstrument ();
1608
1594
1609
- if (isUISessionView ) {
1595
+ if (! rootUIIsClipMinderScreen () ) {
1610
1596
return currentSong->setupModelStackWithSongAsTimelineCounter (memory);
1611
1597
}
1612
1598
else if (instrument->type == OutputType::KIT && clip->affectEntire ) {
0 commit comments