Krotos Modules 3
Loading...
Searching...
No Matches
krotos::RecorderDropName Class Reference

#include <RecorderDropName.h>

Classes

struct  Variable
 

Public Member Functions

 RecorderDropName ()
 
void setNameFormat (String formatString)
 
void setPresetName (String newPresetName)
 
String getNextName ()
 

Private Member Functions

String getFormattedName ()
 
String getDate ()
 
bool recordedFileAlreadyExists (String filename)
 

Private Attributes

String m_nameFormatting {"Bounce_%DATE%"}
 
String m_presetName
 
int m_takeNumber {1}
 

Detailed Description

Filename maker for Kwidget_Recorder

Generates a filename for drag and drop recorded samples that can be customised to include variables such as a take count, preset name, and the date/time. Set the chosen format using setNameFormat then call getNextName for an updated filename string.

See also
Kwidget_Recorder

Constructor & Destructor Documentation

◆ RecorderDropName()

krotos::RecorderDropName::RecorderDropName ( )
inline

Member Function Documentation

◆ getDate()

String krotos::RecorderDropName::getDate ( )
private

◆ getFormattedName()

String krotos::RecorderDropName::getFormattedName ( )
private

◆ getNextName()

String krotos::RecorderDropName::getNextName ( )

Gets the name to use for the next recorded sample, any variables used will be updated i.e. the take count or date

Returns
Filename to use in the next recording drop. Includes .wav file extension

◆ recordedFileAlreadyExists()

bool krotos::RecorderDropName::recordedFileAlreadyExists ( String filename)
private

◆ setNameFormat()

void krotos::RecorderDropName::setNameFormat ( String formatString)

Sets the filename formatting to be used. Supports variables listed in the RecorderDropName::Variable struct. e.g. "Sample_%TAKECOUNT%"

See also
For krotos studio, see KwidgetAudioProcessor::DroppedFileNameFormat and KwidgetAudioProcessor::DefaultDroppedFileNameFormat

◆ setPresetName()

void krotos::RecorderDropName::setPresetName ( String newPresetName)

The preset name must be set in order to use the PRESETNAME% variable

Parameters
newPresetNameThe name of the current preset
Note
The take count variable is reset back to 1 whenever a new preset name is set.

Member Data Documentation

◆ m_nameFormatting

String krotos::RecorderDropName::m_nameFormatting {"Bounce_%DATE%"}
private

◆ m_presetName

String krotos::RecorderDropName::m_presetName
private

◆ m_takeNumber

int krotos::RecorderDropName::m_takeNumber {1}
private

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