Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
AudioClipView Class Referencefinal
Inheritance diagram for AudioClipView:
Collaboration diagram for AudioClipView:

Public Member Functions

bool opened () override
 
void focusRegained () override
 
bool renderMainPads (uint32_t whichRows, RGB image[][kDisplayWidth+kSideBarWidth], uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth], bool drawUndefinedArea=true) override
 
bool renderSidebar (uint32_t whichRows, RGB image[][kDisplayWidth+kSideBarWidth], uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth]) override
 
bool setupScroll (uint32_t oldScroll) override
 
void tellMatrixDriverWhichRowsContainSomethingZoomable () override
 
bool supportsTriplets () const override
 
ClipMindertoClipMinder () override
 
ActionResult buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) override
 
ActionResult padAction (int32_t x, int32_t y, int32_t velocity) override
 
void graphicsRoutine () override
 
void playbackEnded () override
 
void clipNeedsReRendering (Clip *clip) override
 
void sampleNeedsReRendering (Sample *sample) override
 
void selectEncoderAction (int8_t offset) override
 
void setClipLengthEqualToSampleLength ()
 
void adjustLoopLength (int32_t newLength)
 
ActionResult horizontalEncoderAction (int32_t offset) override
 
ActionResult editClipLengthWithoutTimestretching (int32_t offset)
 
ActionResult verticalEncoderAction (int32_t offset, bool inCardRoutine) override
 
ActionResult timerCallback () override
 
uint32_t getMaxLength () override
 
uint32_t getMaxZoom () override
 
void renderOLED (deluge::hid::display::oled_canvas::Canvas &canvas) override
 
UIType getUIType () override
 
- Public Member Functions inherited from ClipView
uint32_t getMaxZoom () override
 
uint32_t getMaxLength () override
 
ActionResult horizontalEncoderAction (int32_t offset) override
 
int32_t getLengthChopAmount (int32_t square)
 
int32_t getLengthExtendAmount (int32_t square)
 
void focusRegained () override
 
ActionResult buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) override
 
- Public Member Functions inherited from TimelineView
void scrollFinished () override
 
TimelineViewtoTimelineView () final
 Convert this view to a TimelineView.
 
virtual bool calculateZoomPinSquares (uint32_t oldScroll, uint32_t newScroll, uint32_t newZoom, uint32_t oldZoom)
 
virtual int32_t getNavSysId () const
 
ActionResult buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) override
 
void displayZoomLevel (bool justPopup=false)
 
ActionResult horizontalEncoderAction (int32_t offset) override
 
void displayScrollPos ()
 
void displayNumberOfBarsAndBeats (uint32_t number, uint32_t quantization, bool countFromOne, char const *tooLongText)
 
void initiateXScroll (uint32_t newXScroll, int32_t numSquaresToScroll=kDisplayWidth)
 
bool zoomToMax (bool inOnly=false)
 
void initiateXZoom (int32_t zoomMagnitude, int32_t newScroll, uint32_t oldZoom)
 
void midiLearnFlash () override
 
bool scrollRightToEndOfLengthIfNecessary (int32_t maxLength)
 
bool scrollLeftIfTooFarRight (int32_t maxLength)
 
void tripletsButtonPressed ()
 
void setTripletsLEDState ()
 
int32_t getPosFromSquare (int32_t square, int32_t localScroll=-1) const
 
int32_t getPosFromSquare (int32_t square, int32_t xScroll, uint32_t xZoom) const
 
int32_t getSquareFromPos (int32_t pos, bool *rightOnSquare=nullptr, 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 (int32_t square, int32_t xScroll=-1)
 
bool isSquareDefined (int32_t square, int32_t xScroll, uint32_t xZoom)
 
bool inTripletsView () const
 
- Public Member Functions inherited from RootUI
virtual bool getAffectEntire ()
 
bool canSeeViewUnderneath () final
 
virtual void notifyPlaybackBegun ()
 
virtual uint32_t getGreyedOutRowsNotRepresentingOutput (Output *output)
 
virtual void noteRowChanged (InstrumentClip *clip, NoteRow *noteRow)
 
- Public Member Functions inherited from UI
virtual void modEncoderAction (int32_t whichModEncoder, int32_t offset)
 
virtual void modButtonAction (uint8_t whichButton, bool on)
 
virtual void modEncoderButtonAction (uint8_t whichModEncoder, bool on)
 
virtual void displayOrLanguageChanged ()
 
virtual bool pcReceivedForMidiLearn (MIDICable &fromCable, int32_t channel, int32_t program)
 
virtual bool noteOnReceivedForMidiLearn (MIDICable &fromCable, int32_t channel, int32_t note, int32_t velocity)
 
virtual bool getGreyoutColsAndRows (uint32_t *cols, uint32_t *rows)
 
virtual bool exitUI ()
 returns whether a UI exited
 
void close ()
 
- Public Member Functions inherited from ClipMinder
ActionResult buttonAction (deluge::hid::Button b, bool on)
 

Private Member Functions

void needsRenderingDependingOnSubMode ()
 
void changeUnderlyingSampleLength (AudioClip &clip, const Sample *sample, int32_t newLength, int32_t oldLength, uint64_t oldLengthSamples) const
 
void changeUnderlyingSampleStart (AudioClip &clip, const Sample *sample, int32_t newStartTicks, int32_t oldLength, uint64_t oldLengthSamples) const
 

Private Attributes

uint32_t timeSongButtonPressed
 
int32_t lastTickSquare
 
bool mustRedrawTickSquares
 
bool endMarkerVisible
 
bool startMarkerVisible
 
bool blinkOn
 

Additional Inherited Members

- Public Attributes inherited from UI
bool oledShowsUIUnderneath
 
- Protected Member Functions inherited from ClipView
int32_t getTickSquare ()
 
ActionlengthenClip (int32_t newLength)
 
ActionshortenClip (int32_t newLength)
 
uint32_t changeClipLength (int32_t offset, uint32_t oldLength, Action *&action)
 
- Protected Member Functions inherited from ClipNavigationTimelineView
void horizontalScrollForLinearRecording (int32_t newXScroll)
 
- Protected Attributes inherited from UI
UIType uiType
 
- Static Protected Attributes inherited from ClipNavigationTimelineView
static int32_t xScrollBeforeFollowingAutoExtendingLinearRecording
 

Member Function Documentation

◆ buttonAction()

ActionResult AudioClipView::buttonAction ( deluge::hid::Button b,
bool on,
bool inCardRoutine )
overridevirtual

Reimplemented from UI.

◆ clipNeedsReRendering()

void AudioClipView::clipNeedsReRendering ( Clip * clip)
overridevirtual

Reimplemented from RootUI.

◆ focusRegained()

void AudioClipView::focusRegained ( )
overridevirtual

Reimplemented from UI.

◆ getMaxLength()

uint32_t AudioClipView::getMaxLength ( )
overridevirtual

Implements TimelineView.

◆ getMaxZoom()

uint32_t AudioClipView::getMaxZoom ( )
overridevirtual

Implements TimelineView.

◆ getUIType()

UIType AudioClipView::getUIType ( )
inlineoverridevirtual

Implements UI.

◆ graphicsRoutine()

void AudioClipView::graphicsRoutine ( )
overridevirtual

Reimplemented from UI.

◆ horizontalEncoderAction()

ActionResult AudioClipView::horizontalEncoderAction ( int32_t offset)
overridevirtual

Reimplemented from UI.

◆ opened()

bool AudioClipView::opened ( )
overridevirtual

Reimplemented from UI.

◆ padAction()

ActionResult AudioClipView::padAction ( int32_t x,
int32_t y,
int32_t velocity )
overridevirtual

Reimplemented from UI.

◆ playbackEnded()

void AudioClipView::playbackEnded ( )
overridevirtual

Reimplemented from RootUI.

◆ renderMainPads()

bool AudioClipView::renderMainPads ( uint32_t whichRows,
RGB image[][kDisplayWidth+kSideBarWidth],
uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth],
bool drawUndefinedArea = true )
overridevirtual

Reimplemented from UI.

◆ renderOLED()

void AudioClipView::renderOLED ( deluge::hid::display::oled_canvas::Canvas & canvas)
overridevirtual

Implements UI.

◆ renderSidebar()

bool AudioClipView::renderSidebar ( uint32_t whichRows,
RGB image[][kDisplayWidth+kSideBarWidth],
uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth] )
overridevirtual

Reimplemented from UI.

◆ sampleNeedsReRendering()

void AudioClipView::sampleNeedsReRendering ( Sample * sample)
overridevirtual

Reimplemented from RootUI.

◆ selectEncoderAction()

void AudioClipView::selectEncoderAction ( int8_t offset)
overridevirtual

Reimplemented from UI.

◆ setupScroll()

bool AudioClipView::setupScroll ( uint32_t oldScroll)
overridevirtual

Reimplemented from TimelineView.

◆ supportsTriplets()

bool AudioClipView::supportsTriplets ( ) const
inlinenodiscardoverridevirtual

Reimplemented from RootUI.

◆ tellMatrixDriverWhichRowsContainSomethingZoomable()

void AudioClipView::tellMatrixDriverWhichRowsContainSomethingZoomable ( )
overridevirtual

Reimplemented from TimelineView.

◆ timerCallback()

ActionResult AudioClipView::timerCallback ( )
overridevirtual

Reimplemented from UI.

◆ toClipMinder()

ClipMinder * AudioClipView::toClipMinder ( )
inlineoverridevirtual

Convert this clip to a clip minder. Returns true for views which manage a single clip, false for song level views

Reimplemented from UI.

◆ verticalEncoderAction()

ActionResult AudioClipView::verticalEncoderAction ( int32_t offset,
bool inCardRoutine )
overridevirtual

Reimplemented from UI.


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