20#include "definitions_cxx.hpp"
21#include "util/d_string.h"
41 StemExportType currentStemExportType;
42 uint32_t timePlaybackStopped;
43 uint32_t timeThereWasLastSomeActivity;
46 bool allowNormalization;
65 int32_t loopLengthToStopStemExport;
66 int32_t loopEndPointInSamplesForAudioFile;
69 bool startCurrentStemExport(StemExportType stemExportType,
Output* output,
bool& muteState, int32_t fileNumber,
74 void finishStemExportProcess(StemExportType stemExportType, int32_t elementsProcessed);
79 void displayStemExportProgressOLED(StemExportType stemExportType);
80 void displayStemExportProgress7SEG();
81 int32_t numStemsExported;
82 int32_t totalNumStemsToExport;
85 Error getUnusedStemRecordingFilePath(
String* filePath, AudioRecordingFolder folder);
87 int32_t highestUsedStemFolderNumber;
88 String lastFolderNameForStemExport;
90 String wavFileNameForStemExport;
91 bool wavFileNameForStemExportSet;
Definition stem_export.h:27
int32_t exportClipStems(StemExportType stemExportType)
Definition stem_export.cpp:491
bool checkForLoopEnd()
Definition stem_export.cpp:202
void restoreAllInstrumentMutes(int32_t totalNumOutputs)
set instrument mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:307
void getLoopEndPointInSamplesForAudioFile(int32_t loopLength)
converts clip loop length into samples so that clip end position can be written to clip stem
Definition stem_export.cpp:475
Error getUnusedStemRecordingFolderPath(String *filePath, AudioRecordingFolder folder)
Definition stem_export.cpp:737
void stopPlayback()
simulate pressing play
Definition stem_export.cpp:176
int32_t exportMixdownStem(StemExportType stemExportType)
Definition stem_export.cpp:369
bool inContextMenu()
Definition stem_export.cpp:995
void finishCurrentStemExport(StemExportType stemExportType, bool &muteState)
Definition stem_export.cpp:576
void stopOutputRecording()
simulate pressing record
Definition stem_export.cpp:184
bool writeLoopEndPos()
Definition stem_export.cpp:481
int32_t exportInstrumentStems(StemExportType stemExportType)
Definition stem_export.cpp:322
void updateScrollPosition(StemExportType stemExportType, int32_t indexNumber)
Definition stem_export.cpp:624
void startStemExportProcess(StemExportType stemExportType)
Definition stem_export.cpp:81
void displayStemExportProgress(StemExportType stemExportType)
display how many stems we've exported so far
Definition stem_export.cpp:640
void stopStemExportProcess()
Stop stem export process.
Definition stem_export.cpp:142
int32_t disarmAllClipsForStemExport()
disarms and prepares all the clips so that they can be exported
Definition stem_export.cpp:402
void getLoopLengthOfLongestNotEmptyNoteRow(Clip *clip)
Definition stem_export.cpp:455
void setWavFileNameForStemExport(StemExportType type, Output *output, int32_t fileNumber)
Definition stem_export.cpp:907
void restoreAllClipMutes(int32_t totalNumClips)
set clip mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:441
bool checkForSilence()
Definition stem_export.cpp:229
void startOutputRecordingUntilLoopEndAndSilence()
Simulate pressing record and play in order to trigger resampling of out output that ends when loop en...
Definition stem_export.cpp:150
int32_t disarmAllInstrumentsForStemExport(StemExportType stemExportType)
disarms and prepares all the instruments so that they can be exported
Definition stem_export.cpp:259