Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
AccidentalRows::Layout Class Reference

#include <accidental_rows.h>

Collaboration diagram for AccidentalRows::Layout:

Public Member Functions

 Layout ()
 For the current clip.
bool mayHaveHiddenRows () const
 False if the current clip can't have hidden rows at all (a kit, or not in scale mode).
std::optional< YNoteRange > hiddenYNotes (int32_t yDisplay) const

Private Attributes

InstrumentClip * clip_ = nullptr
 Null if the clip can't have hidden rows.
bool flats_ = false

Detailed Description

Which pitches are hidden behind which pad rows, for the current clip in the song's key. Finding the key's spelling takes some work, so make one of these per render or pad press and ask it about each row.

Member Function Documentation

◆ hiddenYNotes()

std::optional< YNoteRange > AccidentalRows::Layout::hiddenYNotes ( int32_t yDisplay) const
nodiscard

The pitches drawn on the in-scale row at yDisplay: the semitones just below the next in-scale pitch in a sharp key, or just above the previous in-scale pitch in a flat key. Empty if there are none.


The documentation for this class was generated from the following files: