Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ArrangerView Class Referencefinal

#include <ArrangerView.h>

Inheritance diagram for ArrangerView:
Inheritance graph
Collaboration diagram for ArrangerView:
Collaboration graph

Public Member Functions

 ArrangerView ()
 
bool opened ()
 
void focusRegained ()
 
int padAction (int x, int y, int velocity)
 
int buttonAction (int x, int y, bool on, bool inCardRoutine)
 
int verticalEncoderAction (int offset, bool inCardRoutine)
 
void selectEncoderAction (int8_t offset)
 
void repopulateOutputsOnScreen (bool doRender=true)
 
bool renderSidebar (uint32_t whichRows, uint8_t image[][displayWidth+sideBarWidth][3], uint8_t occupancyMask[][displayWidth+sideBarWidth])
 
void drawMuteSquare (int yDisplay, uint8_t thisImage[][3])
 
bool renderMainPads (uint32_t whichRows, uint8_t image[][displayWidth+sideBarWidth][3], uint8_t occupancyMask[][displayWidth+sideBarWidth], bool drawUndefinedArea=true)
 
bool renderRow (ModelStack *modelStack, int yDisplay, int32_t xScroll, uint32_t xZoom, uint8_t *thisImage, uint8_t thisOccupancyMask[], int renderWidth)
 
void editPadAction (int x, int y, bool on)
 
int horizontalEncoderAction (int offset)
 
uint32_t getMaxLength ()
 
unsigned int getMaxZoom ()
 
void graphicsRoutine ()
 
int getNavSysId ()
 
void navigateThroughPresets (int offset)
 
void notifyActiveClipChangedOnOutput (Output *output)
 
int timerCallback ()
 
void reassessWhetherDoingAutoScroll (int32_t pos=-1)
 
void autoScrollOnPlaybackEnd ()
 
bool initiateXScroll (int32_t newScrollPos)
 
bool supportsTriplets ()
 
bool putDraggedClipInstanceInNewPosition (Output *output)
 
void tellMatrixDriverWhichRowsContainSomethingZoomable ()
 
void scrollFinished ()
 
void notifyPlaybackBegun ()
 
uint32_t getGreyedOutRowsNotRepresentingOutput (Output *output)
 
void playbackEnded ()
 
void clipNeedsReRendering (Clip *clip)
 
void exitSubModeWithoutAction ()
 
bool transitionToArrangementEditor ()
 
bool getGreyoutRowsAndCols (uint32_t *cols, uint32_t *rows)
 
void setLedStates ()
 
int verticalScrollOneSquare (int direction)
 
int horizontalScrollOneSquare (int direction)
 
- Public Member Functions inherited from TimelineView
 TimelineView ()
 
void scrollFinished ()
 
virtual unsigned int getMaxZoom ()=0
 
virtual bool calculateZoomPinSquares (uint32_t oldScroll, uint32_t newScroll, uint32_t newZoom, uint32_t oldZoom)
 
virtual uint32_t getMaxLength ()=0
 
virtual bool setupScroll (uint32_t oldScroll)
 
virtual int getNavSysId ()
 
virtual void tellMatrixDriverWhichRowsContainSomethingZoomable ()
 
bool isTimelineView ()
 
int buttonAction (int x, int y, bool on, bool inCardRoutine)
 
void displayZoomLevel (bool justPopup=false)
 
int horizontalEncoderAction (int offset)
 
void displayScrollPos ()
 
void displayNumberOfBarsAndBeats (uint32_t number, uint32_t quantization, bool countFromOne, char const *tooLongText)
 
void initiateXScroll (uint32_t newXScroll, int numSquaresToScroll=displayWidth)
 
bool zoomToMax (bool inOnly=false)
 
void initiateXZoom (int zoomMagnitude, int32_t newScroll, uint32_t oldZoom)
 
void midiLearnFlash ()
 
bool scrollRightToEndOfLengthIfNecessary (int32_t maxLength)
 
bool scrollLeftIfTooFarRight (int32_t maxLength)
 
void tripletsButtonPressed ()
 
int32_t getPosFromSquare (int32_t square, int32_t localScroll=-1)
 
int32_t getPosFromSquare (int32_t square, int32_t xScroll, uint32_t xZoom)
 
int32_t getSquareFromPos (int32_t pos, bool *rightOnSquare=NULL, int32_t localScroll=-1)
 
int32_t getSquareFromPos (int32_t pos, bool *rightOnSquare, int32_t xScroll, uint32_t xZoom)
 
int32_t getSquareEndFromPos (int32_t pos, int32_t localScroll=-1)
 
bool isSquareDefined (int square, int32_t xScroll=-1)
 
bool isSquareDefined (int square, int32_t xScroll, uint32_t xZoom)
 
bool inTripletsView ()
 
- Public Member Functions inherited from RootUI
 RootUI ()
 
virtual bool getAffectEntire ()
 
bool canSeeViewUnderneath () final
 
virtual bool supportsTriplets ()
 
virtual void notifyPlaybackBegun ()
 
virtual uint32_t getGreyedOutRowsNotRepresentingOutput (Output *output)
 
virtual void noteRowChanged (InstrumentClip *clip, NoteRow *noteRow)
 
virtual void playbackEnded ()
 
virtual bool isTimelineView ()
 
virtual void clipNeedsReRendering (Clip *clip)
 
virtual void sampleNeedsReRendering (Sample *sample)
 
virtual void midiLearnFlash ()
 
- Public Member Functions inherited from UI
 UI ()
 
virtual int padAction (int x, int y, int velocity)
 
virtual int buttonAction (int x, int y, bool on, bool inCardRoutine)
 
virtual int horizontalEncoderAction (int offset)
 
virtual int verticalEncoderAction (int offset, bool inCardRoutine)
 
virtual void selectEncoderAction (int8_t offset)
 
virtual void modEncoderAction (int whichModEncoder, int offset)
 
virtual void modButtonAction (uint8_t whichButton, bool on)
 
virtual void modEncoderButtonAction (uint8_t whichModEncoder, bool on)
 
virtual void graphicsRoutine ()
 
virtual int timerCallback ()
 
virtual bool opened ()
 
virtual void focusRegained ()
 
virtual bool canSeeViewUnderneath ()
 
virtual ClipMindertoClipMinder ()
 
virtual void scrollFinished ()
 
virtual bool noteOnReceivedForMidiLearn (MIDIDevice *fromDevice, int channel, int note, int velocity)
 
virtual bool getGreyoutRowsAndCols (uint32_t *cols, uint32_t *rows)
 
virtual bool renderMainPads (uint32_t whichRows=0, uint8_t image[][displayWidth+sideBarWidth][3]=NULL, uint8_t occupancyMask[][displayWidth+sideBarWidth]=NULL, bool drawUndefinedArea=true)
 
virtual bool renderSidebar (uint32_t whichRows=0, uint8_t image[][displayWidth+sideBarWidth][3]=NULL, uint8_t occupancyMask[][displayWidth+sideBarWidth]=NULL)
 
void close ()
 

Public Attributes

OutputoutputsOnScreen [displayHeight]
 
int8_t yPressedEffective
 
int8_t yPressedActual
 
int8_t xPressed
 
bool actionOnDepress
 
uint32_t pressTime
 
int32_t desiredLength
 
int32_t originallyPressedClipActualLength
 
bool pressedHead
 
int pressedClipInstanceIndex
 
OutputpressedClipInstanceOutput
 
int32_t pressedClipInstanceXScrollWhenLastInValidPosition
 
bool pressedClipInstanceIsInValidPosition
 
bool blinkOn
 
bool doingAutoScrollNow
 
bool mustRedrawTickSquares
 
int autoScrollNumSquaresBehind
 
int lastInteractedOutputIndex
 
int lastInteractedPos
 
uint8_t lastInteractedSection
 
int lastTickSquare
 
int32_t xScrollWhenPlaybackStarted
 

Constructor & Destructor Documentation

◆ ArrangerView()

ArrangerView::ArrangerView ( )

Member Function Documentation

◆ autoScrollOnPlaybackEnd()

void ArrangerView::autoScrollOnPlaybackEnd ( )

◆ buttonAction()

int ArrangerView::buttonAction ( int  x,
int  y,
bool  on,
bool  inCardRoutine 
)
virtual

Reimplemented from UI.

◆ clipNeedsReRendering()

void ArrangerView::clipNeedsReRendering ( Clip clip)
virtual

Reimplemented from RootUI.

◆ drawMuteSquare()

void ArrangerView::drawMuteSquare ( int  yDisplay,
uint8_t  thisImage[][3] 
)

◆ editPadAction()

void ArrangerView::editPadAction ( int  x,
int  y,
bool  on 
)

◆ exitSubModeWithoutAction()

void ArrangerView::exitSubModeWithoutAction ( )

◆ focusRegained()

void ArrangerView::focusRegained ( )
virtual

Reimplemented from UI.

◆ getGreyedOutRowsNotRepresentingOutput()

uint32_t ArrangerView::getGreyedOutRowsNotRepresentingOutput ( Output output)
virtual

Reimplemented from RootUI.

◆ getGreyoutRowsAndCols()

bool ArrangerView::getGreyoutRowsAndCols ( uint32_t *  cols,
uint32_t *  rows 
)
virtual

Reimplemented from UI.

◆ getMaxLength()

uint32_t ArrangerView::getMaxLength ( )
virtual

Implements TimelineView.

◆ getMaxZoom()

unsigned int ArrangerView::getMaxZoom ( )
virtual

Implements TimelineView.

◆ getNavSysId()

int ArrangerView::getNavSysId ( )
inlinevirtual

Reimplemented from TimelineView.

◆ graphicsRoutine()

void ArrangerView::graphicsRoutine ( )
virtual

Reimplemented from UI.

◆ horizontalEncoderAction()

int ArrangerView::horizontalEncoderAction ( int  offset)
virtual

Reimplemented from UI.

◆ horizontalScrollOneSquare()

int ArrangerView::horizontalScrollOneSquare ( int  direction)

◆ initiateXScroll()

bool ArrangerView::initiateXScroll ( int32_t  newScrollPos)

◆ navigateThroughPresets()

void ArrangerView::navigateThroughPresets ( int  offset)

◆ notifyActiveClipChangedOnOutput()

void ArrangerView::notifyActiveClipChangedOnOutput ( Output output)

◆ notifyPlaybackBegun()

void ArrangerView::notifyPlaybackBegun ( )
virtual

Reimplemented from RootUI.

◆ opened()

bool ArrangerView::opened ( )
virtual

Reimplemented from UI.

◆ padAction()

int ArrangerView::padAction ( int  x,
int  y,
int  velocity 
)
virtual

Reimplemented from UI.

◆ playbackEnded()

void ArrangerView::playbackEnded ( )
virtual

Reimplemented from RootUI.

◆ putDraggedClipInstanceInNewPosition()

bool ArrangerView::putDraggedClipInstanceInNewPosition ( Output output)

◆ reassessWhetherDoingAutoScroll()

void ArrangerView::reassessWhetherDoingAutoScroll ( int32_t  pos = -1)

◆ renderMainPads()

bool ArrangerView::renderMainPads ( uint32_t  whichRows,
uint8_t  image[][displayWidth+sideBarWidth][3],
uint8_t  occupancyMask[][displayWidth+sideBarWidth],
bool  drawUndefinedArea = true 
)
virtual

Reimplemented from UI.

◆ renderRow()

bool ArrangerView::renderRow ( ModelStack modelStack,
int  yDisplay,
int32_t  xScroll,
uint32_t  xZoom,
uint8_t *  thisImage,
uint8_t  thisOccupancyMask[],
int  renderWidth 
)

◆ renderSidebar()

bool ArrangerView::renderSidebar ( uint32_t  whichRows,
uint8_t  image[][displayWidth+sideBarWidth][3],
uint8_t  occupancyMask[][displayWidth+sideBarWidth] 
)
virtual

Reimplemented from UI.

◆ repopulateOutputsOnScreen()

void ArrangerView::repopulateOutputsOnScreen ( bool  doRender = true)

◆ scrollFinished()

void ArrangerView::scrollFinished ( )
virtual

Reimplemented from UI.

◆ selectEncoderAction()

void ArrangerView::selectEncoderAction ( int8_t  offset)
virtual

Reimplemented from UI.

◆ setLedStates()

void ArrangerView::setLedStates ( )

◆ supportsTriplets()

bool ArrangerView::supportsTriplets ( )
inlinevirtual

Reimplemented from RootUI.

◆ tellMatrixDriverWhichRowsContainSomethingZoomable()

void ArrangerView::tellMatrixDriverWhichRowsContainSomethingZoomable ( )
virtual

Reimplemented from TimelineView.

◆ timerCallback()

int ArrangerView::timerCallback ( )
virtual

Reimplemented from UI.

◆ transitionToArrangementEditor()

bool ArrangerView::transitionToArrangementEditor ( )

◆ verticalEncoderAction()

int ArrangerView::verticalEncoderAction ( int  offset,
bool  inCardRoutine 
)
virtual

Reimplemented from UI.

◆ verticalScrollOneSquare()

int ArrangerView::verticalScrollOneSquare ( int  direction)

Member Data Documentation

◆ actionOnDepress

bool ArrangerView::actionOnDepress

◆ autoScrollNumSquaresBehind

int ArrangerView::autoScrollNumSquaresBehind

◆ blinkOn

bool ArrangerView::blinkOn

◆ desiredLength

int32_t ArrangerView::desiredLength

◆ doingAutoScrollNow

bool ArrangerView::doingAutoScrollNow

◆ lastInteractedOutputIndex

int ArrangerView::lastInteractedOutputIndex

◆ lastInteractedPos

int ArrangerView::lastInteractedPos

◆ lastInteractedSection

uint8_t ArrangerView::lastInteractedSection

◆ lastTickSquare

int ArrangerView::lastTickSquare

◆ mustRedrawTickSquares

bool ArrangerView::mustRedrawTickSquares

◆ originallyPressedClipActualLength

int32_t ArrangerView::originallyPressedClipActualLength

◆ outputsOnScreen

Output* ArrangerView::outputsOnScreen[displayHeight]

◆ pressedClipInstanceIndex

int ArrangerView::pressedClipInstanceIndex

◆ pressedClipInstanceIsInValidPosition

bool ArrangerView::pressedClipInstanceIsInValidPosition

◆ pressedClipInstanceOutput

Output* ArrangerView::pressedClipInstanceOutput

◆ pressedClipInstanceXScrollWhenLastInValidPosition

int32_t ArrangerView::pressedClipInstanceXScrollWhenLastInValidPosition

◆ pressedHead

bool ArrangerView::pressedHead

◆ pressTime

uint32_t ArrangerView::pressTime

◆ xPressed

int8_t ArrangerView::xPressed

◆ xScrollWhenPlaybackStarted

int32_t ArrangerView::xScrollWhenPlaybackStarted

◆ yPressedActual

int8_t ArrangerView::yPressedActual

◆ yPressedEffective

int8_t ArrangerView::yPressedEffective

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