diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-24 20:44:33 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-24 20:44:33 +0200 |
commit | cb896a4fa1acd9167d3e7ee9f6336a63309eebde (patch) | |
tree | 650337e053b670ba1f67d8b2f6da03d43fb0cda0 /src/project.h | |
parent | 5f3f9fabf5ad2e1cda638612c3cf863045765a3b (diff) |
Add save/load of selections/regions in instruments.
Diffstat (limited to 'src/project.h')
-rw-r--r-- | src/project.h | 37 |
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; }; |