summaryrefslogtreecommitdiff
path: root/src/project.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/project.h')
-rw-r--r--src/project.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/project.h b/src/project.h
index 2b172ea..725e936 100644
--- a/src/project.h
+++ b/src/project.h
@@ -32,6 +32,7 @@
#include <QString>
#include "audioextractor.h"
+#include "selection.h"
class Project;
@@ -51,6 +52,27 @@ public:
AudioFileList getFileList() const;
void setFileList(const AudioFileList& file_list);
+ std::size_t getAttackLength() const;
+ void setAttackLength(std::size_t attack_length);
+
+ std::size_t getPowerSpread() const;
+ void setPowerSpread(std::size_t power_spread);
+
+ std::size_t getMinimumSize() const;
+ void setMinimumSize(std::size_t minimum_size);
+
+ std::size_t getFalloff() const;
+ void setFalloff(std::size_t falloff);
+
+ std::size_t getFadeLength() const;
+ void setFadeLength(std::size_t fade_length);
+
+ float getThreshold() const;
+ void setThreshold(float threshold);
+
+ Selections getSelections() const;
+ void setSelections(const Selections& selectios);
+
Project& getProject();
private:
@@ -58,9 +80,24 @@ private:
int id;
QString instrument_name;
+
+ // Files tab
QString master_file;
AudioFileList file_list;
+ // Generate tab
+ std::size_t attack_length{300};
+ std::size_t power_spread{1000};
+ std::size_t minimum_size{100};
+ std::size_t falloff{300};
+ std::size_t fade_length{666};
+
+ // Canvas
+ float threshold{0.5f};
+
+ // Edit tab
+ Selections selections;
+
Project& project;
};