-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlfoable.cpp
More file actions
29 lines (25 loc) · 750 Bytes
/
lfoable.cpp
File metadata and controls
29 lines (25 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "lfoable.h"
void Lfoable::addLfoConnection(LfoConnection *lfoConnection) {
lfoConnections.push_back(lfoConnection);
}
Lfoable::~Lfoable() {
std::vector<LfoConnection *>::iterator it;
for (it = lfoConnections.begin(); it != lfoConnections.end(); ++it) {
delete (*it);
}
}
double Lfoable::getLfoPosition() {
double lfoModifier;
lfoModifier = 0;
std::vector<LfoConnection *>::iterator it;
for (it = lfoConnections.begin(); it != lfoConnections.end(); ++it) {
lfoModifier += (*it)->getPos();
}
return lfoModifier;
}
void Lfoable::setLfoAmount(double amount) {
std::vector<LfoConnection *>::iterator it;
for (it = lfoConnections.begin(); it != lfoConnections.end(); ++it) {
(*it)->setAmount(amount);
}
}