diff options
author | Sander Vocke <sandervocke@gmail.com> | 2024-07-23 12:22:30 +0200 |
---|---|---|
committer | Sander Vocke <sandervocke@gmail.com> | 2024-07-23 12:22:30 +0200 |
commit | 23f625be77c925569dfea8700103aff89d513b50 (patch) | |
tree | e9e794b31b3314bafc856c8da9c6eb0733e10eb7 /src/sample.cc | |
parent | ddd12cae8a21eba52a4d8fae9dced18878e0e055 (diff) |
Add openness CC control for hi-hats.distance_openness
Diffstat (limited to 'src/sample.cc')
-rw-r--r-- | src/sample.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sample.cc b/src/sample.cc index 2c59f5e..d40315d 100644 --- a/src/sample.cc +++ b/src/sample.cc @@ -29,10 +29,11 @@ #include <sndfile.h> Sample::Sample(const std::string& name, double power, double position, - bool normalized) + double openness, bool normalized) : name{name} , power{power} , position{position} + , openness{openness} , normalized(normalized) , audiofiles{} { @@ -76,6 +77,11 @@ double Sample::getPosition() const return position; } +double Sample::getOpenness() const +{ + return openness; +} + bool Sample::getNormalized() const { return normalized; |