|
Krotos Modules 3
|
A fractional delay line with several interpolation methods. More...
#include <AudioSampleCircularBuffer.h>
Classes | |
| class | MU |
| creates and stores the fractional part of a float and its inverse More... | |
Public Types | |
| enum | InterpolationType { cubic = 0 , linear , cosine , cubic3d } |
Public Member Functions | |
| float | fract (float input) |
| returns the fractional part of a float | |
| AudioSampleCircularBuffer (int numSamples, long sampleRate) noexcept | |
| int | getNumSamples () const noexcept |
| int | getHead () const noexcept |
| void | setReadPosition (float sample) noexcept |
| void | incrementReadPosition () noexcept |
| void | copySamples (juce::AudioSampleBuffer &source, int numSamples) noexcept |
| void | copySample (float source) noexcept |
| void | addSample (int indexOffset, float newSample) noexcept |
| float | getSample (float sampleToRead) noexcept |
| void | setSize (int numSamples) noexcept |
| void | fillWithZeroes () |
Protected Member Functions | |
| float | wrapFloatValue (float valueToWrap) noexcept |
| int | wrapIntValue (int valueToWrap) noexcept |
Protected Attributes | |
| int | m_numChannels |
| int | m_head |
| float | m_readPosition |
| bool | m_useInterpolation |
| std::unique_ptr< juce::AudioSampleBuffer > | m_circularDelayBuffer |
| const int | m_size |
| const float | m_sizeAsFloat |
| const int | m_sizeMultiple |
| const float | m_sizeMultipleAsFloat |
| InterpolationType | m_interpolationType {InterpolationType::cubic3d} |
Static Protected Attributes | |
| static const int | BUFFER_MULTIPLE_FOR_NEG_MODULUS_CALC {4} |
A fractional delay line with several interpolation methods.
TODO: See if this class can be replaced with juce::DelayLine
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| void krotos::AudioSampleCircularBuffer::fillWithZeroes | ( | ) |
| float krotos::AudioSampleCircularBuffer::fract | ( | float | input | ) |
returns the fractional part of a float
| input |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlineprotectednoexcept |
|
inlineprotectednoexcept |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |