Skip to content

Commit 9681d07

Browse files
committed
Added includes that could cause build breaks
The "memory" and "functional" headers were used (for std::shared_ptr and std::function respectively) but not included. This could break the build in some environments. It has been fixed.
1 parent 859f79c commit 9681d07

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/include/impl/ChordVelocityMapping.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef MFP_CHORDVELOCITYMAPPING_H
22
#define MFP_CHORDVELOCITYMAPPING_H
33

4+
#include <memory>
5+
46
#include "NoteAndCommandEvents.h"
57

68
namespace ChordVelocityMapping {

src/include/impl/SequencePerformer.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef MFP_SEQUENCEPERFORMER_H
22
#define MFP_SEQUENCEPERFORMER_H
33

4+
#include <functional>
5+
46
#include "NoteAndCommandEvents.h"
57
#include "AntiVoiceStealing.h"
68
#include "AbstractPerformer.h"
@@ -24,7 +26,7 @@
2426
class SequencePerformer : public AbstractPerformer {
2527
public:
2628
// Stopping state : when not looping and reaching the end we want to let the
27-
// last command ring, so we enter this state in which
29+
// last command ring, so we enter this state in which
2830
enum State {
2931
Armed,
3032
Playing,
@@ -78,7 +80,7 @@ class SequencePerformer : public AbstractPerformer {
7880
avsHistory = { emptyMap };
7981

8082
auto it = score.begin();
81-
83+
8284
while (it != score.end()) {
8385
avs.preventVoiceStealing(it->start.events);
8486
avs.preventVoiceStealing(it->end.events);
@@ -136,7 +138,7 @@ class SequencePerformer : public AbstractPerformer {
136138
virtual Events::SetPair<noteData> getNextSetPair() override { // <=> pull
137139
currentIndex = getNextIndex();
138140
auto res = getCurrentSetPair();
139-
141+
140142
// this will be executed as long as currentState != State::Stopped
141143
if (currentIndex == score.size()) {
142144
currentState = State::Stopping;

0 commit comments

Comments
 (0)