summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inputprocessor.cc2
-rw-r--r--src/velocityfilter.cc4
-rw-r--r--src/velocityfilter.h3
3 files changed, 4 insertions, 5 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc
index 0439551..819a3c7 100644
--- a/src/inputprocessor.cc
+++ b/src/inputprocessor.cc
@@ -50,7 +50,7 @@ InputProcessor::InputProcessor(Settings& settings,
// Build filter list
filters.emplace_back(std::make_unique<StaminaFilter>(settings));
filters.emplace_back(std::make_unique<LatencyFilter>(settings, random));
- filters.emplace_back(std::make_unique<VelocityFilter>(settings, random, kit.instruments));
+ filters.emplace_back(std::make_unique<VelocityFilter>(settings, random));
}
bool InputProcessor::process(std::vector<event_t>& events,
diff --git a/src/velocityfilter.cc b/src/velocityfilter.cc
index 7b41045..a983692 100644
--- a/src/velocityfilter.cc
+++ b/src/velocityfilter.cc
@@ -29,8 +29,8 @@
#include "random.h"
#include "settings.h"
-VelocityFilter::VelocityFilter(Settings& settings, Random& random, Instruments const& instruments)
- : settings(settings), random(random), instruments(instruments)
+VelocityFilter::VelocityFilter(Settings& settings, Random& random)
+ : settings(settings), random(random)
{
}
diff --git a/src/velocityfilter.h b/src/velocityfilter.h
index 6b6d567..67271ce 100644
--- a/src/velocityfilter.h
+++ b/src/velocityfilter.h
@@ -40,7 +40,7 @@ class VelocityFilter
: public InputFilter
{
public:
- VelocityFilter(Settings& settings, Random& random, Instruments const& instruments);
+ VelocityFilter(Settings& settings, Random& random);
bool filter(event_t& event, std::size_t pos) override;
@@ -49,5 +49,4 @@ public:
private:
Settings& settings;
Random& random;
- Instruments const& instruments;
};