20#include "definitions_cxx.hpp"
21#include "processing/sound/sound_drum.h"
22#include "util/d_string.h"
43 StemExportType currentStemExportType;
44 uint32_t timePlaybackStopped;
45 uint32_t timeThereWasLastSomeActivity;
48 bool allowNormalization;
49 bool allowNormalizationForDrums;
69 int32_t loopLengthToStopStemExport;
70 int32_t loopEndPointInSamplesForAudioFile;
78 bool startCurrentStemExport(StemExportType stemExportType,
Output* output,
bool& muteState, int32_t fileNumber,
79 bool exportStem,
SoundDrum* drum =
nullptr);
83 void finishStemExportProcess(StemExportType stemExportType, int32_t elementsProcessed);
88 void displayStemExportProgressOLED(StemExportType stemExportType);
89 void displayStemExportProgress7SEG();
90 int32_t numStemsExported;
91 int32_t totalNumStemsToExport;
94 Error getUnusedStemRecordingFilePath(
String* filePath, AudioRecordingFolder folder);
96 int32_t highestUsedStemFolderNumber;
97 String lastFolderNameForStemExport;
100 String wavFileNameForStemExport;
101 bool wavFileNameForStemExportSet;
Definition sound_drum.h:28
Definition stem_export.h:29
int32_t exportClipStems(StemExportType stemExportType)
Definition stem_export.cpp:506
bool checkForLoopEnd()
Definition stem_export.cpp:213
void restoreAllInstrumentMutes(int32_t totalNumOutputs)
set instrument mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:321
void getLoopEndPointInSamplesForAudioFile(int32_t loopLength)
converts clip / drum loop length into samples so that clip / drum end position can be written to clip...
Definition stem_export.cpp:489
Error getUnusedStemRecordingFolderPath(String *filePath, AudioRecordingFolder folder)
Definition stem_export.cpp:880
void stopPlayback()
simulate pressing play
Definition stem_export.cpp:188
int32_t exportMixdownStem(StemExportType stemExportType)
Definition stem_export.cpp:383
bool inContextMenu()
Definition stem_export.cpp:1152
void finishCurrentStemExport(StemExportType stemExportType, bool &muteState)
Definition stem_export.cpp:711
void stopOutputRecording()
simulate pressing record
Definition stem_export.cpp:195
bool writeLoopEndPos()
Definition stem_export.cpp:495
int32_t exportInstrumentStems(StemExportType stemExportType)
Definition stem_export.cpp:336
void updateScrollPosition(StemExportType stemExportType, int32_t indexNumber)
Definition stem_export.cpp:759
void startStemExportProcess(StemExportType stemExportType)
Definition stem_export.cpp:84
int32_t disarmAllDrumsForStemExport()
disarms and prepares all the drums so that they can be exported
Definition stem_export.cpp:555
void displayStemExportProgress(StemExportType stemExportType)
display how many stems we've exported so far
Definition stem_export.cpp:780
void stopStemExportProcess()
Stop stem export process.
Definition stem_export.cpp:151
int32_t disarmAllClipsForStemExport()
disarms and prepares all the clips so that they can be exported
Definition stem_export.cpp:416
void getLoopLengthOfLongestNotEmptyNoteRow(Clip *clip)
Definition stem_export.cpp:469
void restoreAllClipMutes(int32_t totalNumClips)
set clip mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:455
void restoreAllDrumMutes(int32_t totalNumNoteRows)
set drum mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:597
int32_t exportDrumStems(StemExportType stemExportType)
Definition stem_export.cpp:611
bool checkForSilence()
Definition stem_export.cpp:240
void setWavFileNameForStemExport(StemExportType type, Output *output, int32_t fileNumber, SoundDrum *drum=nullptr)
Definition stem_export.cpp:1063
void startOutputRecordingUntilLoopEndAndSilence()
Simulate pressing record and play in order to trigger resampling of out output that ends when loop en...
Definition stem_export.cpp:160
int32_t disarmAllInstrumentsForStemExport(StemExportType stemExportType)
disarms and prepares all the instruments so that they can be exported
Definition stem_export.cpp:270