|
Krotos Modules 3
|
#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} |
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.
|
inline |
|
private |
|
private |
| 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
|
private |
| 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%"
| void krotos::RecorderDropName::setPresetName | ( | String | newPresetName | ) |
The preset name must be set in order to use the PRESETNAME% variable
| newPresetName | The name of the current preset |
|
private |
|
private |
|
private |