Skip to content

Commit 8548934

Browse files
committed
Generative models are now supported
Former-commit-id: ea24aa1
1 parent 8a677e7 commit 8548934

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/GenerateAudioModel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ void GenerateAudioModel::WavFileModel(const std::filesystem::path &wav_path) {
6767
void GenerateAudioModel::GenerateModelFromFile() {
6868
// TODO: Add mutithread support
6969
for (const auto &file: wav_files) {
70+
YALL_INFO_ << "Modeling Audio File: " + file.string();
7071
WavFileModel(file);
7172
}
7273
}

src/lessampler.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
#include "Utils/LOG.h"
2020
#include "Dialogs/Dialogs.h"
21+
#include "GenerateAudioModel.h"
22+
2123
#include "lessconfig.h"
2224

2325
#include "lessampler.h"
@@ -40,7 +42,7 @@ void lessampler::show_logo() {
4042
" Version: "
4143
<< PROJECT_GIT_HASH
4244
<< " |_| "
43-
<< "\nCopyright (c) 2018 - 2022, YuzukiTsuru <[email protected]>"
45+
<< "\n\nCopyright (c) 2018 - 2022, YuzukiTsuru <[email protected]>\n"
4446
<< cc::reset
4547
<< std::endl;
4648
}
@@ -52,11 +54,10 @@ void lessampler::run() const {
5254
}
5355

5456
// model generation
55-
if (argc == 1) {
57+
if (argc == 2) {
5658
show_logo();
5759
YALL_INFO_ << "Start modeling against the audio files in the provided destination folder...";
58-
59-
60+
GenerateAudioModel genmodule(argv[1], configure);
6061
}
6162

6263
if (argc < 2) {

src/lessampler.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ class lessampler {
4343
private:
4444
void read_audio_file();
4545

46-
void GenerateAudioModelDictory();
47-
48-
void GenerateAudioModel();
4946
private:
5047
static void show_logo();
5148
};

0 commit comments

Comments
 (0)