20#include "definitions_cxx.hpp"
21#include "gui/l10n/strings.h"
22#include "processing/sound/sound_drum.h"
23#include "util/d_string.h"
45 StemExportType currentStemExportType;
46 uint32_t timePlaybackStopped;
47 uint32_t timeThereWasLastSomeActivity;
50 bool allowNormalization;
51 bool allowNormalizationForDrums;
71 int32_t loopLengthToStopStemExport;
72 int32_t loopEndPointInSamplesForAudioFile;
80 bool startCurrentStemExport(StemExportType stemExportType,
Output* output,
bool& muteState, int32_t fileNumber,
81 bool exportStem,
SoundDrum* drum =
nullptr);
85 void finishStemExportProcess(StemExportType stemExportType, int32_t elementsProcessed);
90 void displayStemExportProgressOLED(StemExportType stemExportType);
91 void displayStemExportProgress7SEG();
92 int32_t numStemsExported;
93 int32_t totalNumStemsToExport;
96 Error getUnusedStemRecordingFilePath(
String* filePath, AudioRecordingFolder folder);
98 int32_t highestUsedStemFolderNumber;
99 String lastFolderNameForStemExport;
104 String wavFileNameForStemExport;
105 bool wavFileNameForStemExportSet;
109 bool renderingOffline() {
return processStarted && renderOffline; }
Definition sound_drum.h:28
Definition stem_export.h:30
int32_t exportClipStems(StemExportType stemExportType)
Definition stem_export.cpp:519
bool checkForLoopEnd()
Definition stem_export.cpp:219
bool setWavFileNameForStemExport(StemExportType type, Output *output, int32_t fileNumber, SoundDrum *drum=nullptr)
Definition stem_export.cpp:1091
void restoreAllInstrumentMutes(int32_t totalNumOutputs)
set instrument mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:327
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:502
Error getUnusedStemRecordingFolderPath(String *filePath, AudioRecordingFolder folder)
Definition stem_export.cpp:904
void stopPlayback()
simulate pressing play
Definition stem_export.cpp:194
int32_t exportMixdownStem(StemExportType stemExportType)
Definition stem_export.cpp:393
bool inContextMenu()
Definition stem_export.cpp:1189
void finishCurrentStemExport(StemExportType stemExportType, bool &muteState)
Definition stem_export.cpp:735
void stopOutputRecording()
simulate pressing record
Definition stem_export.cpp:201
bool writeLoopEndPos()
Definition stem_export.cpp:508
int32_t exportInstrumentStems(StemExportType stemExportType)
Definition stem_export.cpp:342
void updateScrollPosition(StemExportType stemExportType, int32_t indexNumber)
Definition stem_export.cpp:783
void startStemExportProcess(StemExportType stemExportType)
Definition stem_export.cpp:85
int32_t disarmAllDrumsForStemExport()
disarms and prepares all the drums so that they can be exported
Definition stem_export.cpp:572
void displayStemExportProgress(StemExportType stemExportType)
display how many stems we've exported so far
Definition stem_export.cpp:804
void stopStemExportProcess()
Stop stem export process.
Definition stem_export.cpp:152
int32_t disarmAllClipsForStemExport()
disarms and prepares all the clips so that they can be exported
Definition stem_export.cpp:429
void abortStemExportProcess(deluge::l10n::String reason)
Stop stem export process, telling the user why it couldn't continue.
Definition stem_export.cpp:157
void getLoopLengthOfLongestNotEmptyNoteRow(Clip *clip)
Definition stem_export.cpp:482
void restoreAllClipMutes(int32_t totalNumClips)
set clip mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:468
void restoreAllDrumMutes(int32_t totalNumNoteRows)
set drum mutes back to their previous state (before exporting stems)
Definition stem_export.cpp:614
int32_t exportDrumStems(StemExportType stemExportType)
Definition stem_export.cpp:628
bool checkForSilence()
Definition stem_export.cpp:246
void startOutputRecordingUntilLoopEndAndSilence()
Simulate pressing record and play in order to trigger resampling of out output that ends when loop en...
Definition stem_export.cpp:166
int32_t disarmAllInstrumentsForStemExport(StemExportType stemExportType)
disarms and prepares all the instruments so that they can be exported
Definition stem_export.cpp:276