Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ArpeggiatorBase Class Referenceabstract

#include <Arpeggiator.h>

Inheritance diagram for ArpeggiatorBase:
Inheritance graph
Collaboration diagram for ArpeggiatorBase:
Collaboration graph

Public Member Functions

virtual void noteOn (ArpeggiatorSettings *settings, int noteCode, int velocity, ArpReturnInstruction *instruction, int fromMIDIChannel, int16_t const *mpeValues)=0
 
void render (ArpeggiatorSettings *settings, int numSamples, uint32_t gateThreshold, uint32_t phaseIncrement, ArpReturnInstruction *instruction)
 
int32_t doTickForward (ArpeggiatorSettings *settings, ArpReturnInstruction *instruction, uint32_t ClipCurrentPos, bool currentlyPlayingReversed)
 
virtual bool hasAnyInputNotesActive ()=0
 
virtual void reset ()=0
 

Public Attributes

bool gateCurrentlyActive
 
uint32_t gatePos
 
int8_t currentOctave
 
int8_t currentDirection
 
bool playedFirstArpeggiatedNoteYet
 
uint8_t lastVelocity
 
int16_t noteCodeCurrentlyOnPostArp
 
uint8_t outputMIDIChannelForNoteCurrentlyOnPostArp
 

Protected Member Functions

virtual void switchNoteOn (ArpeggiatorSettings *settings, ArpReturnInstruction *instruction)=0
 
void switchAnyNoteOff (ArpReturnInstruction *instruction)
 

Member Function Documentation

◆ doTickForward()

int32_t ArpeggiatorBase::doTickForward ( ArpeggiatorSettings settings,
ArpReturnInstruction instruction,
uint32_t  ClipCurrentPos,
bool  currentlyPlayingReversed 
)

◆ hasAnyInputNotesActive()

virtual bool ArpeggiatorBase::hasAnyInputNotesActive ( )
pure virtual

Implemented in ArpeggiatorForDrum, and Arpeggiator.

◆ noteOn()

virtual void ArpeggiatorBase::noteOn ( ArpeggiatorSettings settings,
int  noteCode,
int  velocity,
ArpReturnInstruction instruction,
int  fromMIDIChannel,
int16_t const *  mpeValues 
)
pure virtual

Implemented in ArpeggiatorForDrum, and Arpeggiator.

◆ render()

void ArpeggiatorBase::render ( ArpeggiatorSettings settings,
int  numSamples,
uint32_t  gateThreshold,
uint32_t  phaseIncrement,
ArpReturnInstruction instruction 
)

◆ reset()

virtual void ArpeggiatorBase::reset ( )
pure virtual

Implemented in ArpeggiatorForDrum, and Arpeggiator.

◆ switchAnyNoteOff()

void ArpeggiatorBase::switchAnyNoteOff ( ArpReturnInstruction instruction)
protected

◆ switchNoteOn()

virtual void ArpeggiatorBase::switchNoteOn ( ArpeggiatorSettings settings,
ArpReturnInstruction instruction 
)
protectedpure virtual

Implemented in ArpeggiatorForDrum, and Arpeggiator.

Member Data Documentation

◆ currentDirection

int8_t ArpeggiatorBase::currentDirection

◆ currentOctave

int8_t ArpeggiatorBase::currentOctave

◆ gateCurrentlyActive

bool ArpeggiatorBase::gateCurrentlyActive

◆ gatePos

uint32_t ArpeggiatorBase::gatePos

◆ lastVelocity

uint8_t ArpeggiatorBase::lastVelocity

◆ noteCodeCurrentlyOnPostArp

int16_t ArpeggiatorBase::noteCodeCurrentlyOnPostArp

◆ outputMIDIChannelForNoteCurrentlyOnPostArp

uint8_t ArpeggiatorBase::outputMIDIChannelForNoteCurrentlyOnPostArp

◆ playedFirstArpeggiatedNoteYet

bool ArpeggiatorBase::playedFirstArpeggiatedNoteYet

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