Deluge Firmware
|
#include <Sample.h>
Public Member Functions | |
Sample () | |
~Sample () | |
void | workOutBitMask () |
int | initialize (int numClusters) |
void | markAsUnloadable () |
float | determinePitch (bool doingSingleCycle, float minFreqHz, float maxFreqHz, bool doPrimeTest) |
void | workOutMIDINote (bool doingSingleCycle, float minFreqHz=20, float maxFreqHz=10000, bool doPrimeTest=true) |
uint32_t | getLengthInMSec () |
SampleCache * | getOrCreateCache (SampleHolder *sampleHolder, int32_t phaseIncrement, int32_t timeStretchRatio, bool reversed, bool mayCreate, bool *created) |
void | deleteCache (SampleCache *cache) |
int | getFirstClusterIndexWithAudioData () |
int | getFirstClusterIndexWithNoAudioData () |
int | fillPercCache (TimeStretcher *timeStretcher, int32_t startPosSamples, int32_t endPosSamples, int playDirection, int maxNumSamplesToProcess) |
void | percCacheClusterStolen (Cluster *cluster) |
void | deletePercCache (bool beingDestructed=false) |
uint8_t * | prepareToReadPercCache (int pixellatedPos, int playDirection, int *earliestPixellatedPos, int *latestPixellatedPos) |
bool | getAveragesForCrossfade (int32_t *totals, int startBytePos, int crossfadeLengthSamples, int playDirection, int lengthToAverageEach) |
void | convertDataOnAnyClustersIfNecessary () |
int32_t | getMaxPeakFromZero () |
int32_t | getFoundValueCentrePoint () |
int32_t | getValueSpan () |
void | finalizeAfterLoad (uint32_t fileSize) |
void | convertOneData (int32_t *value) |
![]() | |
AudioFile (int newType) | |
virtual | ~AudioFile () |
int | loadFile (AudioFileReader *reader, bool isAiff, bool makeWaveTableWorkAtAllCosts) |
virtual void | finalizeAfterLoad (uint32_t fileSize) |
void | addReason () |
void | removeReason (char const *errorCode) |
bool | mayBeStolen (void *thingNotToStealFrom=NULL) |
void | steal (char const *errorCode) |
int | getAppropriateQueue () |
![]() | |
Stealable () | |
virtual bool | mayBeStolen (void *thingNotToStealFrom)=0 |
virtual void | steal (char const *errorCode)=0 |
virtual int | getAppropriateQueue ()=0 |
![]() | |
BidirectionalLinkedListNode () | |
virtual | ~BidirectionalLinkedListNode () |
void | remove () |
void | insertOtherNodeBefore (BidirectionalLinkedListNode *otherNode) |
bool | isLast () |
Protected Member Functions | |
void | numReasonsDecreasedToZero (char const *errorCode) |
![]() | |
virtual void | numReasonsIncreasedFromZero () |
virtual void | numReasonsDecreasedToZero (char const *errorCode) |
Sample::Sample | ( | ) |
Sample::~Sample | ( | ) |
void Sample::convertDataOnAnyClustersIfNecessary | ( | ) |
|
inline |
void Sample::deleteCache | ( | SampleCache * | cache | ) |
void Sample::deletePercCache | ( | bool | beingDestructed = false | ) |
float Sample::determinePitch | ( | bool | doingSingleCycle, |
float | minFreqHz, | ||
float | maxFreqHz, | ||
bool | doPrimeTest | ||
) |
int Sample::fillPercCache | ( | TimeStretcher * | timeStretcher, |
int32_t | startPosSamples, | ||
int32_t | endPosSamples, | ||
int | playDirection, | ||
int | maxNumSamplesToProcess | ||
) |
|
virtual |
Reimplemented from AudioFile.
bool Sample::getAveragesForCrossfade | ( | int32_t * | totals, |
int | startBytePos, | ||
int | crossfadeLengthSamples, | ||
int | playDirection, | ||
int | lengthToAverageEach | ||
) |
int Sample::getFirstClusterIndexWithAudioData | ( | ) |
int Sample::getFirstClusterIndexWithNoAudioData | ( | ) |
int32_t Sample::getFoundValueCentrePoint | ( | ) |
uint32_t Sample::getLengthInMSec | ( | ) |
int32_t Sample::getMaxPeakFromZero | ( | ) |
SampleCache * Sample::getOrCreateCache | ( | SampleHolder * | sampleHolder, |
int32_t | phaseIncrement, | ||
int32_t | timeStretchRatio, | ||
bool | reversed, | ||
bool | mayCreate, | ||
bool * | created | ||
) |
int32_t Sample::getValueSpan | ( | ) |
int Sample::initialize | ( | int | numClusters | ) |
void Sample::markAsUnloadable | ( | ) |
|
protectedvirtual |
Reimplemented from AudioFile.
void Sample::percCacheClusterStolen | ( | Cluster * | cluster | ) |
uint8_t * Sample::prepareToReadPercCache | ( | int | pixellatedPos, |
int | playDirection, | ||
int * | earliestPixellatedPos, | ||
int * | latestPixellatedPos | ||
) |
void Sample::workOutBitMask | ( | ) |
void Sample::workOutMIDINote | ( | bool | doingSingleCycle, |
float | minFreqHz = 20 , |
||
float | maxFreqHz = 10000 , |
||
bool | doPrimeTest = true |
||
) |
uint64_t Sample::audioDataLengthBytes |
uint32_t Sample::audioDataStartPosBytes |
int32_t Sample::beginningOffsetForPitchDetection |
bool Sample::beginningOffsetForPitchDetectionFound |
uint32_t Sample::bitMask |
uint8_t Sample::byteDepth |
OrderedResizeableArrayWithMultiWordKey Sample::caches |
SampleClusterArray Sample::clusters |
bool Sample::fileExplicitlySpecifiesSelfAsWaveTable |
uint32_t Sample::fileLoopEndSamples |
uint32_t Sample::fileLoopStartSamples |
uint64_t Sample::lengthInSamples |
bool Sample::lock |
int32_t Sample::maxValueFound |
float Sample::midiNote |
float Sample::midiNoteFromFile |
int32_t Sample::minValueFound |
int Sample::numPercCacheClusters |
bool Sample::partOfFolderBeingLoaded |
Cluster** Sample::percCacheClusters[2] |
uint8_t* Sample::percCacheMemory[2] |
OrderedResizeableArrayWith32bitKey Sample::percCacheZones[2] |
uint8_t Sample::rawDataFormat |
uint32_t Sample::sampleRate |
String Sample::tempFilePathForRecording |
bool Sample::unloadable |
bool Sample::unplayable |
uint32_t Sample::waveTableCycleSize |