Class daisysp::Looper¶
#include <looper.h>
Public Types¶
Type | Name |
---|---|
enum | Mode |
Public Functions¶
Type | Name |
---|---|
void | Clear () |
bool | GetHalfSpeed () const |
float | GetIncrementSize () const |
const Mode | GetMode () const |
float | GetPos () const |
size_t | GetRecSize () const |
bool | GetReverse () const |
void | IncrementMode () |
void | Init (float * mem, size_t size) |
bool | IsNearBeginning () const |
Looper () |
|
float | Process (const float input) |
const bool | Recording () const |
const bool | RecordingQueued () const |
void | SetHalfSpeed (bool state) |
void | SetIncrementSize (float increment) |
void | SetMode (Mode mode) |
void | SetReverse (bool state) |
void | ToggleHalfSpeed () |
void | ToggleReverse () |
void | TrigRecord () |
~Looper () |
Detailed Description¶
Multimode audio looper
Modes are: * Normal * Onetime Dub * Replace * Frippertronics
Read more about the looper modes in the mode enum documentation.
Public Types Documentation¶
enum Mode¶
Normal Mode: Input is added to the existing loop infinitely while recording
Onetime Dub Mode: Recording starts at the first sample of the buffer and is added to the existing buffer contents. Recording automatically stops after one full loop.
Replace Mode: Audio in the buffer is replaced while recording is on.
Frippertronics Mode: infinite looping recording with fixed decay on each loop. The module acts like tape-delay set up.
Public Functions Documentation¶
function Clear¶
Effectively erases the buffer Note: This does not actually change what is in the buffer
function GetHalfSpeed¶
function GetIncrementSize¶
function GetMode¶
Returns the specific recording mode that is currently set.
function GetPos¶
function GetRecSize¶
function GetReverse¶
function IncrementMode¶
Increments the Mode by one step useful for buttons, etc. that need to step through the Looper modes.
function Init¶
function IsNearBeginning¶
function Looper¶
function Process¶
Handles reading/writing to the Buffer depending on the mode.
function Recording¶
Returns true if the looper is currently being written to.
function RecordingQueued¶
function SetHalfSpeed¶
function SetIncrementSize¶
function SetMode¶
Sets the recording mode to the specified Mode.
function SetReverse¶
function ToggleHalfSpeed¶
function ToggleReverse¶
function TrigRecord¶
Engages/Disengages the recording, depending on Mode. In all modes, the first time this is triggered a new loop will be started. The second trigger will set the loop size, and begin playback of the loop.
function ~Looper¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Utility/looper.h