Skip to content

Commit

Permalink
Removed real time hazard with std::list.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtytel committed Jun 4, 2017
1 parent 3f4e9f9 commit 2fd33ac
Show file tree
Hide file tree
Showing 4 changed files with 4,492 additions and 3,581 deletions.
2 changes: 1 addition & 1 deletion src/synthesis/helm_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ namespace mopo {
return mod_connections_.count(connection);
}

std::list<mopo_float> HelmEngine::getPressedNotes() {
CircularQueue<mopo_float> HelmEngine::getPressedNotes() {
if (arp_on_->value())
return arpeggiator_->getPressedNotes();
return voice_handler_->getPressedNotes();
Expand Down
2 changes: 1 addition & 1 deletion src/synthesis/helm_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace mopo {

std::set<ModulationConnection*> getModulationConnections() { return mod_connections_; }
bool isModulationActive(ModulationConnection* connection);
std::list<mopo::mopo_float> getPressedNotes();
CircularQueue<mopo::mopo_float> getPressedNotes();
void connectModulation(ModulationConnection* connection);
void disconnectModulation(ModulationConnection* connection);
int getNumActiveVoices();
Expand Down
1 change: 0 additions & 1 deletion src/synthesis/helm_voice_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define MAX_GAIN_DB 24.0

#define MAX_FEEDBACK_SAMPLES 8000
#define MAX_POLYPHONY 33

namespace mopo {

Expand Down
Loading

0 comments on commit 2fd33ac

Please sign in to comment.