diff AgentList.cpp @ 23:633ec097fa56

Expose the processing parameters Simon suggests
author Chris Cannam
date Tue, 03 Sep 2013 17:32:09 +0100
parents 6afcb5edd7ab
children
line wrap: on
line diff
--- a/AgentList.cpp	Wed Aug 28 16:50:40 2013 +0100
+++ b/AgentList.cpp	Tue Sep 03 17:32:09 2013 +0100
@@ -75,7 +75,7 @@
 } // removeDuplicates()
 
 
-void AgentList::beatTrack(EventList el, double stop)
+void AgentList::beatTrack(EventList el, AgentParameters params, double stop)
 {
     EventList::iterator ei = el.begin();
     bool phaseGiven = !empty() && ((*begin())->beatTime >= 0); // if given for one, assume given for others
@@ -102,7 +102,7 @@
                     std::cerr << "Creating a new agent" << std::endl;
 #endif
                     // Create new agent with different phase
-                    Agent *newAgent = new Agent(prevBeatInterval);
+                    Agent *newAgent = new Agent(params, prevBeatInterval);
                     // This may add another agent to our list as well
                     newAgent->considerAsBeat(ev, *this);
                     add(newAgent);