summaryrefslogtreecommitdiff
path: root/src/sample.h
diff options
context:
space:
mode:
authorSander Vocke <sandervocke@gmail.com>2024-07-28 09:24:01 +0200
committerSander Vocke <sandervocke@gmail.com>2024-07-28 09:24:01 +0200
commitfaaaf5d328429fd2c3f38131f7a874d056761f3f (patch)
treec49575d96ac820addefcf184ec7ad4f0151bc716 /src/sample.h
parentf6660bc51fe8c02ff7c3b6188e8437c67712bddf (diff)
Openness development
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sample.h b/src/sample.h
index 6c31b6b..31a3741 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -37,12 +37,14 @@ using AudioFiles = std::map<const InstrumentChannel*, AudioFile*>;
class Sample
{
public:
- Sample(const std::string& name, double power, bool normalized = false);
+ Sample(const std::string& name, double power,
+ double openness, bool normalized = false);
~Sample();
AudioFile* getAudioFile(const Channel& channel) const;
double getPower() const;
+ double getOpenness() const;
bool getNormalized() const;
private:
@@ -55,6 +57,7 @@ private:
std::string name;
double power;
+ double openness;
bool normalized;
AudioFiles audiofiles;
};