Deluge Firmware
|
#include <Session.h>
Public Member Functions | |
Session () | |
void | armAllClipsToStop (int afterNumRepeats) |
void | armNextSection (int oldSection, int numRepetitions=-1) |
void | doLaunch () |
void | scheduleLaunchTiming (int64_t atTickCount, int numRepeatsUntil, int32_t armedLaunchLengthForOneRepeat) |
void | cancelAllLaunchScheduling () |
void | launchSchedulingMightNeedCancelling () |
void | reSyncClipToSongTicks (Clip *clip) |
void | reSyncClip (ModelStackWithTimelineCounter *modelStack, bool mustSetPosToSomething=false, bool mayResumeClip=true) |
void | userWantsToUnsoloClip (Clip *clip, bool forceLateStart, int buttonPressLatency) |
void | toggleClipStatus (Clip *clip, int *clipIndex, bool doInstant, int buttonPressLatency) |
void | soloClipAction (Clip *clip, int buttonPressLatency) |
void | armSection (uint8_t section, int buttonPressLatency) |
void | armingChanged () |
void | userWantsToArmClipsToStartOrSolo (uint8_t section, Clip *clip, bool stopAllOtherClips, bool forceLateStart=false, bool allowLateStart=true, int numRepeatsTilLaunch=1, bool allowSubdividedQuantization=true, int armState=ARM_STATE_ON_NORMAL) |
int | investigateSyncedLaunch (Clip *waitForClip, uint32_t *currentPosWithinQuantization, uint32_t *quantization, uint32_t longestStartingClipLength, bool allowSubdividedQuantization) |
bool | armForSongSwap () |
bool | armForSwitchToArrangement () |
void | armClipsToStartOrSoloWithQuantization (uint32_t pos, uint32_t quantization, uint8_t section, bool stopAllOtherClips, Clip *clip, bool forceLateStart, bool allowLateStart, int numRepeatsTilLaunch, int armState=ARM_STATE_ON_NORMAL) |
void | armClipToStartOrSoloUsingQuantization (Clip *thisClip, bool doLateStart, uint32_t pos, int armState=ARM_STATE_ON_NORMAL, bool mustUnarmOtherClipsWithSameOutput=true) |
void | cancelAllArming () |
void | armClipLowLevel (Clip *loopableToArm, int armState, bool mustUnarmOtherClipsWithSameOutput=true) |
int | userWantsToArmNextSection (int numRepetitions=-1) |
int | getCurrentSection () |
bool | areAnyClipsArmed () |
void | unsoloClip (Clip *clip) |
void | soloClipRightNow (ModelStackWithTimelineCounter *modelStack) |
bool | deletingClipWhichCouldBeAbandonedOverdub (Clip *clip) |
void | scheduleOverdubToStartRecording (Clip *overdub, Clip *clipAbove) |
void | justAbortedSomeLinearRecording () |
void | setupPlayback () |
bool | endPlayback () |
void | doTickForward (int posIncrement) |
void | resetPlayPos (int32_t newPos, bool doingComplete=true, int buttonPressLatency=0) |
void | resyncToSongTicks (Song *song) |
void | reversionDone () |
bool | isOutputAvailable (Output *output) |
bool | considerLaunchEvent (int32_t numTicksBeingIncremented) |
void | stopOutputRecordingAtLoopEnd () |
int32_t | getPosAtWhichClipWillCut (ModelStackWithTimelineCounter const *modelStack) |
bool | willClipContinuePlayingAtEnd (ModelStackWithTimelineCounter const *modelStack) |
bool | willClipLoopAtSomePoint (ModelStackWithTimelineCounter const *modelStack) |
bool | wantsToDoTempolessRecord (int32_t newPos) |
![]() | |
PlaybackMode () | |
virtual | ~PlaybackMode () |
bool | hasPlaybackActive () |
virtual void | setupPlayback ()=0 |
virtual bool | endPlayback ()=0 |
virtual void | doTickForward (int posIncrement)=0 |
virtual void | resetPlayPos (int32_t newPos, bool doingComplete=true, int buttonPressLatency=0)=0 |
virtual void | resyncToSongTicks (Song *song)=0 |
virtual void | reversionDone ()=0 |
virtual bool | isOutputAvailable (Output *output)=0 |
virtual bool | considerLaunchEvent (int32_t numTicksBeingIncremented) |
virtual void | stopOutputRecordingAtLoopEnd ()=0 |
virtual int32_t | getPosAtWhichClipWillCut (ModelStackWithTimelineCounter const *modelStack)=0 |
virtual bool | willClipContinuePlayingAtEnd (ModelStackWithTimelineCounter const *modelStack)=0 |
virtual bool | willClipLoopAtSomePoint (ModelStackWithTimelineCounter const *modelStack)=0 |
virtual bool | wantsToDoTempolessRecord (int32_t newPos) |
virtual void | reSyncClip (ModelStackWithTimelineCounter *modelStack, bool mustSetPosToSomething=false, bool mayResumeClip=true)=0 |
Public Attributes | |
uint8_t | lastSectionArmed |
uint32_t | timeLastSectionPlayed |
int64_t | launchEventAtSwungTickCount |
int16_t | numRepeatsTilLaunch |
int32_t | currentArmedLaunchLengthForOneRepeat |
bool | switchToArrangementAtLaunchEvent |
Session::Session | ( | ) |
bool Session::areAnyClipsArmed | ( | ) |
void Session::armAllClipsToStop | ( | int | afterNumRepeats | ) |
void Session::armClipLowLevel | ( | Clip * | loopableToArm, |
int | armState, | ||
bool | mustUnarmOtherClipsWithSameOutput = true |
||
) |
void Session::armClipsToStartOrSoloWithQuantization | ( | uint32_t | pos, |
uint32_t | quantization, | ||
uint8_t | section, | ||
bool | stopAllOtherClips, | ||
Clip * | clip, | ||
bool | forceLateStart, | ||
bool | allowLateStart, | ||
int | numRepeatsTilLaunch, | ||
int | armState = ARM_STATE_ON_NORMAL |
||
) |
void Session::armClipToStartOrSoloUsingQuantization | ( | Clip * | thisClip, |
bool | doLateStart, | ||
uint32_t | pos, | ||
int | armState = ARM_STATE_ON_NORMAL , |
||
bool | mustUnarmOtherClipsWithSameOutput = true |
||
) |
bool Session::armForSongSwap | ( | ) |
bool Session::armForSwitchToArrangement | ( | ) |
void Session::armingChanged | ( | ) |
void Session::armNextSection | ( | int | oldSection, |
int | numRepetitions = -1 |
||
) |
void Session::armSection | ( | uint8_t | section, |
int | buttonPressLatency | ||
) |
void Session::cancelAllArming | ( | ) |
void Session::cancelAllLaunchScheduling | ( | ) |
|
virtual |
Reimplemented from PlaybackMode.
bool Session::deletingClipWhichCouldBeAbandonedOverdub | ( | Clip * | clip | ) |
void Session::doLaunch | ( | ) |
|
virtual |
Implements PlaybackMode.
|
virtual |
Implements PlaybackMode.
int Session::getCurrentSection | ( | ) |
|
virtual |
Implements PlaybackMode.
int Session::investigateSyncedLaunch | ( | Clip * | waitForClip, |
uint32_t * | currentPosWithinQuantization, | ||
uint32_t * | quantization, | ||
uint32_t | longestStartingClipLength, | ||
bool | allowSubdividedQuantization | ||
) |
|
virtual |
Implements PlaybackMode.
void Session::justAbortedSomeLinearRecording | ( | ) |
void Session::launchSchedulingMightNeedCancelling | ( | ) |
|
virtual |
Implements PlaybackMode.
|
virtual |
Implements PlaybackMode.
void Session::reSyncClipToSongTicks | ( | Clip * | clip | ) |
|
virtual |
Implements PlaybackMode.
|
virtual |
Implements PlaybackMode.
void Session::scheduleLaunchTiming | ( | int64_t | atTickCount, |
int | numRepeatsUntil, | ||
int32_t | armedLaunchLengthForOneRepeat | ||
) |
|
virtual |
Implements PlaybackMode.
void Session::soloClipAction | ( | Clip * | clip, |
int | buttonPressLatency | ||
) |
void Session::soloClipRightNow | ( | ModelStackWithTimelineCounter * | modelStack | ) |
|
virtual |
Implements PlaybackMode.
void Session::toggleClipStatus | ( | Clip * | clip, |
int * | clipIndex, | ||
bool | doInstant, | ||
int | buttonPressLatency | ||
) |
void Session::unsoloClip | ( | Clip * | clip | ) |
void Session::userWantsToArmClipsToStartOrSolo | ( | uint8_t | section, |
Clip * | clip, | ||
bool | stopAllOtherClips, | ||
bool | forceLateStart = false , |
||
bool | allowLateStart = true , |
||
int | numRepeatsTilLaunch = 1 , |
||
bool | allowSubdividedQuantization = true , |
||
int | armState = ARM_STATE_ON_NORMAL |
||
) |
int Session::userWantsToArmNextSection | ( | int | numRepetitions = -1 | ) |
void Session::userWantsToUnsoloClip | ( | Clip * | clip, |
bool | forceLateStart, | ||
int | buttonPressLatency | ||
) |
|
virtual |
Reimplemented from PlaybackMode.
|
virtual |
Implements PlaybackMode.
|
virtual |
Implements PlaybackMode.
int32_t Session::currentArmedLaunchLengthForOneRepeat |
uint8_t Session::lastSectionArmed |
int64_t Session::launchEventAtSwungTickCount |
int16_t Session::numRepeatsTilLaunch |
bool Session::switchToArrangementAtLaunchEvent |
uint32_t Session::timeLastSectionPlayed |