Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
instrument_clip_view.h
1/*
2 * Copyright © 2014-2023 Synthstrom Audible Limited
3 *
4 * This file is part of The Synthstrom Audible Deluge Firmware.
5 *
6 * The Synthstrom Audible Deluge Firmware is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software Foundation,
8 * either version 3 of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along with this program.
15 * If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#include "definitions_cxx.hpp"
21#include "gui/views/accidental_rows.h"
22#include "gui/views/clip_view.h"
23#include "gui/views/note_lock_editor.h"
24#include "hid/button.h"
25#include "model/clip/instrument_clip_minder.h"
26#include "model/iterance/iterance.h"
27#include "model/note/note_row.h"
28#include "modulation/automation/copied_param_automation.h"
29#include "modulation/params/param_node.h"
30#include "util/d_string.h"
31#include <optional>
32#include <span>
33
34class InstrumentClip;
35class NoteRow;
36class Note;
37class Editor;
38class Instrument;
39class Sound;
40class ModControllable;
41class Kit;
42class Drum;
43class SoundDrum;
45class Action;
46class ParamCollection;
47class CopiedNoteRow;
48class ParamNode;
51
55constexpr int32_t kEditPadHoldTime = 80 * 44;
56
58 bool isActive;
59 uint8_t yDisplay;
60 uint8_t xDisplay;
63 std::optional<int16_t> yNoteOverride;
64 bool deleteOnDepress; // Can also mean to delete tail
65 uint8_t intendedVelocity;
66 uint8_t intendedProbability;
67 Iterance intendedIterance;
68 uint8_t intendedFill;
69 bool deleteOnScroll;
70 bool isBlurredSquare;
71 bool mpeCachedYet;
72 StolenParamNodes stolenMPE[kNumExpressionDimensions];
73 uint32_t intendedPos; // For "blurred squares", means start of square
74 uint32_t intendedLength; // For "blurred squares", means length of square
75 uint16_t intendedLockSet; // The note's parameter locks while it's lifted out of its row by a vertical drag
76};
77
78#define MPE_RECORD_LENGTH_FOR_NOTE_EDITING 3
79#define MPE_RECORD_INTERVAL_TIME (kSampleRate >> 2) // 250ms
80static constexpr const char* PATTERN_FILE_VERSION = "0.0.1";
81
82enum class NudgeMode { QUANTIZE, QUANTIZE_ALL };
83
84class InstrumentClipView final : public ClipView, public InstrumentClipMinder {
85public:
86 InstrumentClipView();
87 bool opened() override;
88 void focusRegained() override;
89 void displayOrLanguageChanged() override;
90
91 // BUTTON ACTION button press / release handling
92
93 ActionResult buttonAction(deluge::hid::Button b, bool on, bool inCardRoutine) override;
94 // Used to reveal Session macros only after the Session button has passed the long-press threshold.
95 ActionResult timerCallback() override;
96 ActionResult handleScaleButtonAction(bool on, bool inCardRoutine);
97 bool handleInstrumentChange(OutputType outputType);
98
99 // PAD ACTION pad press / release handling
100
101 ActionResult padAction(int32_t x, int32_t y, int32_t velocity) override;
102 ActionResult potentiallyRandomizeDrumSamples();
103 ActionResult potentiallyRandomizeDrumSample(Kit* kit, Drum* drum, char* chosenFilename);
104 ActionResult commandEnterNoteVelocityEditor(int32_t x, int32_t y);
105 ActionResult commandLearnMutePad(int32_t y, int32_t velocity);
106 ActionResult commandLearnAuditionPad(InstrumentClip* clip, Output* output, OutputType outputType, int32_t yDisplay,
107 int32_t velocity);
108 ActionResult commandSaveKitRow(InstrumentClip* clip, Output* output, OutputType outputType, int32_t yDisplay);
109 ActionResult commandActivateSongMacro(int32_t y, int32_t velocity);
110
111 // SCALE MODE related commands.
112
115 ActionResult commandLearnUserScale();
117 ActionResult commandSelectScale();
119 void onScaleChanged();
121 ActionResult commandFlashRootNote();
123 ActionResult commandEnterScaleModeWithRoot(uint8_t root);
125 ActionResult commandEnterScaleMode();
127 ActionResult commandExitScaleMode();
129 ActionResult commandChangeRootNote(uint8_t yDisplay);
130
132 ActionResult verticalEncoderAction(int32_t offset, bool inCardRoutine) override;
133 ActionResult commandTransposeKey(int32_t offset, bool inCardRoutine);
134 void commandTransposeScreen(int32_t offset, bool inOctave);
135 void commandShiftColour(int32_t offset);
136 ActionResult scrollVertical(int32_t scrollAmount, bool inCardRoutine, bool draggingNoteRow = false,
137 ModelStackWithTimelineCounter* modelStack = nullptr);
138 ActionResult scrollVertical_limit(int32_t scrollAmount, bool inCardRoutine, bool draggingNoteRow,
139 ModelStackWithTimelineCounter* modelStack, InstrumentClip* clip, bool isKit,
140 bool preventOverScrolling, int32_t& noteRowToShiftI, int32_t& noteRowToSwapWithI);
141 void scrollVertical_potentiallySwitchOffAuditionedNotes(bool draggingNoteRow,
143 InstrumentClip* clip, bool currentClipIsActive);
144 void scrollVertical_grabNotesPressed(ModelStackWithTimelineCounter* modelStack, InstrumentClip* clip);
145 void scrollVertical_dragSelectedNoteRow(InstrumentClip* clip, Output* output, bool isKit, int32_t noteRowToShiftI,
146 int32_t noteRowToSwapWithI);
147 void scrollVertical_potentiallySwitchOnAuditionedNotes(bool draggingNoteRow,
149 InstrumentClip* clip, Output* output, OutputType outputType,
150 bool isKit, bool inSoundEditor, bool currentClipIsActive,
151 bool renderDisplay, bool updateDrumSelection);
152 void scrollVertical_placeNotesPressed(ModelStackWithTimelineCounter* modelStack, InstrumentClip* clip, bool isKit,
153 bool keepYNoteOverride = false);
154 void nudgeHeldNotesBySemitone(int32_t offset);
155
157 uint8_t getEditPadPressXDisplayOnScreen(uint8_t yDisplay);
158 void editPadAction(bool state, uint8_t yDisplay, uint8_t xDisplay, uint32_t xZoom);
159 void mutePadPress(uint8_t yDisplay);
160 bool ensureNoteRowExistsForYDisplay(uint8_t yDisplay);
161 void recalculateColours();
162 void recalculateColour(uint8_t yDisplay);
163 void reassessAllAuditionStatus();
164 void reassessAuditionStatus(uint8_t yDisplay);
165 uint8_t getVelocityForAudition(uint8_t yDisplay, uint32_t* sampleSyncLength);
166 uint8_t getNumNoteRowsAuditioning();
167 uint8_t oneNoteAuditioning();
168 void offsetNoteCodeAction(int32_t newOffset);
169 int32_t getYVisualFromYDisplay(int32_t yDisplay);
170 int32_t getYVisualWithinOctaveFromYDisplay(int32_t yDisplay);
171 ActionResult auditionPadAction(int32_t velocity, int32_t yDisplay, bool shiftButtonDown);
172 void potentiallyUpdateMultiRangeMenu(int32_t velocity, int32_t yDisplay, Instrument* instrument);
173 void potentiallyRecordAuditionPadAction(bool clipIsActiveOnInstrument, int32_t velocity, int32_t yDisplay,
174 Instrument* instrument, bool isKit,
175 ModelStackWithTimelineCounter* modelStackWithTimelineCounter,
176 ModelStackWithNoteRow* modelStackWithNoteRowOnCurrentClip, Drum* drum);
177 void recordNoteOnEarly(int32_t velocity, int32_t yDisplay, Instrument* instrument, bool isKit,
178 ModelStackWithNoteRow* modelStackWithNoteRowOnCurrentClip, Drum* drum);
179 void recordNoteOn(int32_t velocity, int32_t yDisplay, Instrument* instrument,
180 ModelStackWithTimelineCounter* modelStackWithTimelineCounter,
181 ModelStackWithNoteRow* modelStackWithNoteRowOnCurrentClip);
182 NoteRow* getNoteRowOnActiveClip(int32_t yDisplay, Instrument* instrument, bool clipIsActiveOnInstrument,
183 ModelStackWithNoteRow* modelStackWithNoteRowOnCurrentClip, Drum* drum);
184 void potentiallyRefreshNoteRowMenu();
185 bool startAuditioningRow(int32_t velocity, int32_t yDisplay, bool shiftButtonDown, bool isKit,
186 NoteRow* noteRowOnActiveClip, Drum* drum, bool displayNoteCode = true);
187 void finishAuditioningRow(int32_t yDisplay, ModelStackWithNoteRow* modelStack, NoteRow* noteRowOnActiveClip,
188 bool changeRowSelection = true);
189 void enterScaleMode(uint8_t yDisplay = 255);
190 void exitScaleMode();
191 void drawMuteSquare(NoteRow* thisNoteRow, RGB thisImage[], uint8_t thisOccupancyMask[]);
192 void cutAuditionedNotesToOne();
193 ActionResult horizontalEncoderAction(int32_t offset) override;
194 void fillOffScreenImageStores();
195 void graphicsRoutine() override;
196
197 void drawAuditionSquare(uint8_t yDisplay, RGB thisImage[]);
198 void flashDefaultRootNote();
199 void selectEncoderAction(int8_t offset) override;
200 void doubleClipLengthAction();
201 void setSelectedDrum(Drum* drum, bool shouldRedrawStuff = true, Kit* selectedKit = nullptr,
202 bool shouldSendMidiFeedback = true);
203 bool isDrumAuditioned(Drum* drum);
204 int32_t setupForEnteringScaleMode(int32_t newRootNote = 2147483647, int32_t yDisplay = (kDisplayHeight / 2));
205 int32_t setupForExitingScaleMode();
206 void setupChangingOfRootNote(int32_t newRootNote, int32_t yDisplay = (kDisplayHeight / 2));
207 void deleteDrum(SoundDrum* drum);
208 void cancelAllAuditioning();
209 void modEncoderButtonAction(uint8_t whichModEncoder, bool on) override;
210
211 void drawDrumName(Drum* drum, bool justPopUp = false);
212 void notifyPlaybackBegun() override;
213 void openedInBackground();
214 bool renderMainPads(uint32_t whichRows, RGB image[][kDisplayWidth + kSideBarWidth],
215 uint8_t occupancyMask[][kDisplayWidth + kSideBarWidth], bool drawUndefinedArea = true) override;
216 void performActualRender(uint32_t whichRows, RGB* image, uint8_t occupancyMask[][kDisplayWidth + kSideBarWidth],
217 int32_t xScroll, uint32_t xZoom, int32_t renderWidth, int32_t imageWidth,
218 bool drawUndefinedArea = true);
219 bool renderSidebar(uint32_t whichRows, RGB image[][kDisplayWidth + kSideBarWidth],
220 uint8_t occupancyMask[][kDisplayWidth + kSideBarWidth]) override;
221
222 void playbackEnded() override;
223 void scrollFinished() override;
224 void clipNeedsReRendering(Clip* clip) override;
225 void modEncoderAction(int32_t whichModEncoder, int32_t offset) override;
226 ClipMinder* toClipMinder() override { return this; }
227 void reportMPEInitialValuesForNoteEditing(ModelStackWithNoteRow* modelStack, int16_t const* mpeValues);
228 void reportMPEValueForNoteEditing(int32_t expressionDimension, int32_t value);
229 void reportNoteOffForMPEEditing(ModelStackWithNoteRow* modelStack);
230 void dontDeleteNotesOnDepress();
231
232 // tempo encoder commands
233 void tempoEncoderAction(int8_t offset, bool encoderButtonPressed, bool shiftButtonPressed);
234 ActionResult commandStopQuantize(int32_t y);
235
236 void sendAuditionNote(bool on, uint8_t yDisplay, uint8_t velocity, uint32_t sampleSyncLength);
237
238 // made these public so they can be accessed by the automation clip view
239 void setLedStates();
240 uint32_t getSquareWidth(int32_t square, int32_t effectiveLength);
241 void drawNoteCode(uint8_t yDisplay);
242 bool createNewInstrument(OutputType instrumentType, bool is_fm = false);
243 bool changeOutputType(OutputType newOutputType);
244 Sound* getSoundForNoteRow(NoteRow* noteRow, ParamManagerForTimeline** getParamManager);
245 void someAuditioningHasEnded(bool recalculateLastAuditionedNoteOnScreen);
246 bool getAffectEntire() override;
247 void checkIfAllEditPadPressesEnded(bool mayRenderSidebar = true);
248 void endEditPadPress(uint8_t i);
249 void endAllEditPadPresses();
250 void copyAutomation(int32_t whichModEncoder, int32_t navSysId = NAVIGATION_CLIP);
251 void pasteAutomation(int32_t whichModEncoder, int32_t navSysId = NAVIGATION_CLIP);
252 // made these public so they can be accessed by the automation clip view
253
254 void renderOLED(deluge::hid::display::oled_canvas::Canvas& canvas) override {
255 InstrumentClipMinder::renderOLED(canvas);
256 }
257
258 CopiedParamAutomation copiedParamAutomation{};
259 // Sometimes the user will want to hold an audition pad without actually sounding the note, by holding an encoder
260 bool auditioningSilently{};
261 // Archaic leftover feature that users wouldn't let me get rid of
262 bool fileBrowserShouldNotPreview{};
263
264 int16_t mpeValuesAtHighestPressure[MPE_RECORD_LENGTH_FOR_NOTE_EDITING][kNumExpressionDimensions]{};
265 int16_t mpeMostRecentPressure{};
266 uint32_t mpeRecordLastUpdateTime{};
267
268 // made these public so they can be accessed by the automation clip view
269 EditPadPress editPadPresses[kEditPadPressBufferSize];
270 uint8_t lastAuditionedVelocityOnScreen[kDisplayHeight]{}; // 255 seems to mean none
273 uint8_t auditionPadIsPressed[kDisplayHeight]{};
274 uint8_t numEditPadPressesPerNoteRowOnScreen[kDisplayHeight]{};
275 uint8_t lastAuditionedYDisplay{};
276 uint8_t numEditPadPresses;
277 uint32_t timeLastEditPadPress;
278 uint32_t timeFirstEditPadPress{};
279 // Only to be looked at if shouldIgnoreHorizontalScrollKnobActionIfNotAlsoPressedForThisNotePress is true after they
280 // rotated a NoteRow and might now be wanting to instead edit its length after releasing the knob
281 uint32_t timeHorizontalKnobLastReleased{};
282 bool shouldIgnoreVerticalScrollKnobActionIfNotAlsoPressedForThisNotePress{};
283 bool shouldIgnoreHorizontalScrollKnobActionIfNotAlsoPressedForThisNotePress{};
284 // Because in this case we can assume that if they press a main pad while auditioning, they're not intending to do
285 // that shortcut into the SoundEditor!
286 bool editedAnyPerNoteRowStuffSinceAuditioningBegan{};
287 // made these public so they can be accessed by the automation clip view
288
289 // ui
290 UIType getUIType() override { return UIType::INSTRUMENT_CLIP; }
291 UIModControllableContext getUIModControllableContext() override { return UIModControllableContext::CLIP; }
292
293 // note editor
294 bool enterNoteEditor();
295 std::span<EditPadPress> get_note_edit_targets();
296 void exitNoteEditor();
297 void handleNoteEditorEditPadAction(int32_t x, int32_t y, int32_t on);
298 void deselectNoteAndGoUpOneLevel();
299 ActionResult handleNoteEditorVerticalEncoderAction(int32_t offset, bool inCardRoutine);
300 ActionResult handleNoteEditorHorizontalEncoderAction(int32_t offset);
301 ActionResult handleNoteEditorButtonAction(deluge::hid::Button b, bool on, bool inCardRoutine);
302
303 SquareInfo gridSquareInfo[kDisplayHeight][kDisplayWidth]{};
304
306 NoteLockEditor noteLocks{*this};
307
308 // adjust note parameters
309 void adjustVelocity(int32_t velocityChange, bool display_value = true);
310 void updateVelocityValue(int32_t& velocityValue, int32_t newVelocity);
311 void displayVelocity(int32_t velocityValue, int32_t velocityChange);
312 void popupVelocity(char const* displayString);
313
314 void handleProbabilityOrIteranceEditing(int8_t offset, bool editNoteRow);
315 void adjustNoteProbabilityWithOffset(int32_t offset);
316 void adjustNoteIteranceWithOffset(int32_t offset, bool allowTogglingBetweenPresetsAndCustom = true);
317 void adjustNoteIteranceWithFinalValue(Iterance finalValue);
318 void adjustNoteFillWithOffset(int32_t offset);
319 Note* getLeftMostNotePressed();
320 void adjustNoteParameterValue(int32_t withOffset, int32_t withFinalValue, int32_t changeType,
321 int32_t parameterMinValue, int32_t parameterMaxValue,
322 bool allowTogglingBetweenPresetsAndCustom = true);
323
324 // other note functions
325 void editNoteRepeat(int32_t offset);
326
327 // pulse selected note
328 void pulseSelectedNote();
329
330 // note row editor
331 bool enterNoteRowEditor();
332 void exitNoteRowEditor();
333 bool handleNoteRowEditorPadAction(int32_t x, int32_t y, int32_t on);
334 bool handleNoteRowEditorMainPadAction(int32_t x, int32_t y, int32_t on);
335 void handleNoteRowEditorAuditionPadAction(int32_t y);
336 void copyNotesToFile(Serializer& writer, bool selectedDrumOnly = false);
337 Error pasteNotesFromFile(Deserializer& reader, bool overwriteExisting, bool noScaling, bool previewOnly,
338 bool selectedDrumOnly);
339 void patternPreview();
340 void patternClear();
341 ActionResult handleNoteRowEditorVerticalEncoderAction(int32_t offset, bool inCardRoutine);
342 ActionResult handleNoteRowEditorHorizontalEncoderAction(int32_t offset);
343 ActionResult handleNoteRowEditorButtonAction(deluge::hid::Button b, bool on, bool inCardRoutine);
344
345 // adjust note row parameters
346 int32_t setNoteRowProbabilityWithOffset(int32_t offset);
347 int32_t setNoteRowIteranceWithOffset(int32_t offset, bool allowTogglingBetweenPresetsAndCustom = true);
348 int32_t setNoteRowIteranceWithFinalValue(Iterance finalValue);
349 int32_t setNoteRowFillWithOffset(int32_t offset);
350 int32_t setNoteRowParameterValue(int32_t withOffset, int32_t withFinalValue, int32_t changeType,
351 int32_t parameterMinValue, int32_t parameterMaxValue,
352 bool allowTogglingBetweenPresetsAndCustom = true);
353 // other note row functions
354 ModelStackWithNoteRow* createNoteRowForYDisplay(ModelStackWithTimelineCounter* modelStack, int32_t yDisplay);
355 ModelStackWithNoteRow* getOrCreateNoteRowForYDisplay(ModelStackWithTimelineCounter* modelStack, int32_t yDisplay);
356 void commandEuclidean(int32_t offset);
357 void editNumEuclideanEvents(ModelStackWithNoteRow* modelStack, int32_t offset, int32_t yDisplay);
358 void editNoteRowLength(int32_t offset);
359 void rotateNoteRowHorizontally(int32_t offset);
360 void editNoteRowLength(ModelStackWithNoteRow* modelStack, int32_t offset, int32_t yDisplay);
361 void noteRowChanged(InstrumentClip* clip, NoteRow* noteRow) override;
362
363 // blink selected note row
364 void blinkSelectedNoteRow(int32_t whichMainRows = 0);
365 void resetSelectedNoteRowBlinking();
366 bool noteRowFlashOn;
367 bool noteRowBlinking;
368
369 const char* getFillString(uint8_t fill);
370
371 // public for velocity keyboard view to access
372 void enterDrumCreator(ModelStackWithNoteRow* modelStack, bool doRecording = false);
373
374 ModControllableAudio* getModControllableAudioOrNone() override;
375
376private:
377 bool doneAnyNudgingSinceFirstEditPadPress{};
378 bool offsettingNudgeNumberDisplay{};
379
380 uint8_t flashScaleModeLedErrorCount{};
381
382 Drum* drumForNewNoteRow{};
383 uint8_t yDisplayOfNewNoteRow{};
384
385 int32_t quantizeAmount{};
386 uint32_t timeSongButtonPressed{};
387 // Set once a held Session button passes the long-press threshold, so short presses never flash macro colours into
388 // the sidebar on their way to Session view.
389 bool sessionMacroSidebarActive{};
390
391 std::array<RGB, kDisplayHeight> rowColour;
392 std::array<RGB, kDisplayHeight> rowTailColour;
393 std::array<RGB, kDisplayHeight> rowBlurColour;
394
395 // note functions
396 void nudgeNotes(int32_t offset);
397 void displayProbability(uint8_t probability, bool prevBase);
398 void displayIterance(Iterance iterance);
399 void displayFill(uint8_t mode);
400
401 // note editor functions
402 // note editor selected / remembered note targets
403 Note* get_remembered_note(int32_t selection_index = -1);
404 ModelStackWithNoteRow* get_note_edit_row(ModelStackWithTimelineCounter* model_stack, const EditPadPress& target);
405 friend class NoteLockEditor; // Edits the notes the note editor targets
406 EditPadPress remembered_notes[kEditPadPressBufferSize]{};
407 int32_t remembered_note_row_ids[kEditPadPressBufferSize]{};
408 int32_t remembered_note_count = 0;
409
410 // note editor selected note pulsing
411 void render_selected_note_pulse(uint32_t which_rows, RGB image[][kDisplayWidth + kSideBarWidth]);
412 void render_selected_square_pulse(int32_t selection_index, uint32_t which_rows,
413 RGB image[][kDisplayWidth + kSideBarWidth], uint32_t* pulsed_columns);
414 void stopSelectedNotePulsing();
415 int32_t note_pulse_progress = 1;
416 bool note_pulse_increasing = true;
417 RGB note_pulse_base_colours[kDisplayHeight][kDisplayWidth]{};
418 bool updating_note_pulse_directly = false;
419
420 // note row functions
421 void copyNotes(Serializer* writer, bool selectedDrumOnly = false);
422 void pasteNotes(bool overwriteExisting = true, bool pasteFromFile = false, bool noScaling = false,
423 bool previewOnly = false, bool selectedDrumOnly = false);
424 void deleteCopiedNoteRows();
425 CopiedNoteRow* firstCopiedNoteRow;
426 int32_t copiedScreenWidth{};
427 ScaleType copiedScaleType{};
428 int16_t copiedYNoteOfBottomRow{};
429
430 void rotateNoteRowHorizontally(ModelStackWithNoteRow* modelStack, int32_t offset, int32_t yDisplay,
431 bool shouldDisplayDirectionEvenIfNoNoteRow = false);
432
433 Drum* getNextDrum(Drum* oldDrum, bool mayBeNone = false);
434 Drum* flipThroughAvailableDrums(int32_t newOffset, Drum* drum, bool mayBeNone = false);
435 NoteRow* getOrCreateEmptyNoteRowForKit(ModelStackWithTimelineCounter* modelStack, int32_t yDisplay,
436 int32_t* getIndex = nullptr);
437 void createDrumForAuditionedNoteRow(DrumType drumType);
438 bool isRowAuditionedByInstrument(int32_t yDisplay);
439
440 // TEMPO encoder commands
441 void commandQuantizeNotes(int8_t offset, NudgeMode nudgeMode);
442 void commandStartQuantize(int8_t offset, NudgeMode nudgeMode);
443 void silenceAllAuditions();
444
445 // auditionPadAction functions
446 Drum* getAuditionedDrum(int32_t velocity, int32_t yDisplay, bool shiftButtonDown, Instrument* instrument,
447 ModelStackWithTimelineCounter* modelStackWithTimelineCounter,
448 ModelStackWithNoteRow* modelStackWithNoteRowOnCurrentClip);
449 void recordNoteOff(int32_t yDisplay, ModelStackWithNoteRow* modelStackWithNoteRowOnCurrentClip);
450 int32_t getVelocityToSound(int32_t velocity);
451};
452
453extern InstrumentClipView instrumentClipView;
Definition accidental_rows.h:44
Definition action.h:78
Definition clip_minder.h:23
Definition clip.h:46
Definition copied_note_row.h:24
Definition storage_manager.h:190
Definition drum.h:44
Definition instrument_clip_view.h:84
ClipMinder * toClipMinder() override
Definition instrument_clip_view.h:226
ActionResult verticalEncoderAction(int32_t offset, bool inCardRoutine) override
VERTICAL ENCODER ACTION related.
Definition instrument_clip_view.cpp:6575
AccidentalRows accidentalRows
Accidentals of a scale mode clip, which are shown on a neighbouring row.
Definition instrument_clip_view.h:272
Note * get_remembered_note(int32_t selection_index=-1)
used with note editor to get remembered notes
Definition instrument_clip_view.cpp:3678
ActionResult commandLearnUserScale()
Definition instrument_clip_view.cpp:182
UIType getUIType() override
What type of UI is this? e.g. UIType::ARRANGER.
Definition instrument_clip_view.h:290
ActionResult commandExitScaleMode()
Exit scale mdoe. SCALE when in scale mode.
Definition instrument_clip_view.cpp:252
std::span< EditPadPress > get_note_edit_targets()
used with
Definition instrument_clip_view.cpp:3749
void onScaleChanged()
The song's scale was changed: redraw with the new colours.
Definition instrument_clip_view.cpp:205
ActionResult commandChangeRootNote(uint8_t yDisplay)
Change current root note. AUDITION + SCALE or SCALE + AUDITION in scale mod.
Definition instrument_clip_view.cpp:228
ActionResult commandSelectScale()
Pick a scale from a popup list. SHIFT + SCALE in scale mode.
Definition instrument_clip_view.cpp:197
ActionResult commandFlashRootNote()
Flash the current root note. Part of SCALE down.
Definition instrument_clip_view.cpp:212
NoteLockEditor noteLocks
Per-note parameter locks: knob turns on held note pads, and the note editor's "Param locks" menu.
Definition instrument_clip_view.h:306
UIModControllableContext getUIModControllableContext() override
What mod controllable context is this UI using? E.g. Automation View can use the Song ModControllable...
Definition instrument_clip_view.h:291
uint8_t getEditPadPressXDisplayOnScreen(uint8_t yDisplay)
OTHER uncategorized (yet).
Definition instrument_clip_view.cpp:2314
ActionResult commandEnterScaleMode()
Enter scale mode. SCALE when in chromatic mode.
Definition instrument_clip_view.cpp:247
ActionResult commandEnterScaleModeWithRoot(uint8_t root)
Enter scale mode with selected root. AUDITION + SCALE or SCALE + AUDITION in schromatic mode.
Definition instrument_clip_view.cpp:222
Definition instrument_clip.h:52
Definition instrument.h:45
Definition kit.h:34
Definition mod_controllable_audio.h:47
Definition mod_controllable.h:40
Definition model_stack.h:187
Definition model_stack.h:129
Definition note_row.h:106
Definition note.h:25
Definition output.h:81
Definition param_collection.h:39
Definition param_manager.h:156
Definition param_node.h:23
This class represents the colour format most used by the Deluge globally.
Definition rgb.h:14
Definition storage_manager.h:124
Definition sound_drum.h:28
Definition sound.h:78
Definition instrument_clip_view.h:57
std::optional< int16_t > yNoteOverride
Definition instrument_clip_view.h:63
Definition iterance.h:26
Definition note_row.h:61
Definition param_node.h:45