24class AutomationEditorLayout {
26 AutomationEditorLayout() =
default;
27 virtual ~AutomationEditorLayout() {}
32 inline RootUI* getAutomationView() {
return &automationView; }
33 inline AutomationParamType& getAutomationParamType() {
return automationView.automationParamType; }
34 inline bool& getOnArrangerView() {
return automationView.onArrangerView; }
35 inline int32_t& getNavSysId() {
return automationView.navSysId; }
38 inline void renderDisplay(int32_t knobPosLeft = kNoSelection, int32_t knobPosRight = kNoSelection,
39 bool modEncoderAction =
false) {
40 automationView.renderDisplay(knobPosLeft, knobPosRight, modEncoderAction);
42 inline void displayAutomation(
bool padSelected =
false,
bool updateDisplay =
true) {
43 automationView.displayAutomation(padSelected, updateDisplay);
45 inline void renderUndefinedArea(int32_t xScroll, uint32_t xZoom, int32_t lengthToDisplay,
46 RGB image[][kDisplayWidth + kSideBarWidth],
47 uint8_t occupancyMask[][kDisplayWidth + kSideBarWidth], int32_t imageWidth,
48 TimelineView* timelineView,
bool tripletsOnHere, int32_t xDisplay) {
49 automationView.renderUndefinedArea(xScroll, xZoom, lengthToDisplay, image, occupancyMask, imageWidth,
50 timelineView, tripletsOnHere, xDisplay);
54 inline void initInterpolation() { automationView.initInterpolation(); }
55 inline void resetInterpolationShortcutBlinking() { automationView.resetInterpolationShortcutBlinking(); }
56 inline void blinkInterpolationShortcut() { automationView.blinkInterpolationShortcut(); }
57 inline bool& getInterpolation() {
return automationView.interpolation; }
58 inline bool& getInterpolationBefore() {
return automationView.interpolationBefore; }
59 inline bool& getInterpolationAfter() {
return automationView.interpolationAfter; }
62 inline bool& getPadSelectionOn() {
return automationView.padSelectionOn; }
63 inline void initPadSelection() { automationView.initPadSelection(); }
64 inline void blinkPadSelectionShortcut() { automationView.blinkPadSelectionShortcut(); }
67 inline int32_t getPosFromSquare(int32_t square, int32_t localScroll = -1)
const {
68 return automationView.getPosFromSquare(square, localScroll);
70 inline int32_t getPosFromSquare(int32_t square, int32_t xScroll, uint32_t xZoom)
const {
71 return automationView.getPosFromSquare(square, xScroll, xZoom);
73 inline bool& getMultiPadPressActive() {
return automationView.multiPadPressActive; }
74 inline bool& getMultiPadPressSelected() {
return automationView.multiPadPressSelected; }
75 inline bool& getMiddlePadPressSelected() {
return automationView.middlePadPressSelected; }
76 inline int32_t& getLeftPadSelectedX() {
return automationView.leftPadSelectedX; }
77 inline int32_t& getLeftPadSelectedY() {
return automationView.leftPadSelectedY; }
78 inline int32_t& getRightPadSelectedX() {
return automationView.rightPadSelectedX; }
79 inline int32_t& getRightPadSelectedY() {
return automationView.rightPadSelectedY; }
80 inline int32_t& getLastPadSelectedKnobPos() {
return automationView.lastPadSelectedKnobPos; }
83 inline CopiedParamAutomation* getCopiedParamAutomation() {
return &automationView.copiedParamAutomation; }
90 return automationView.getModelStackWithParamForClip(modelStack, clip, paramID, paramKind);