Revision 23:633ec097fa56 AgentList.cpp

View differences:

AgentList.cpp
75 75
} // removeDuplicates()
76 76

  
77 77

  
78
void AgentList::beatTrack(EventList el, double stop)
78
void AgentList::beatTrack(EventList el, AgentParameters params, double stop)
79 79
{
80 80
    EventList::iterator ei = el.begin();
81 81
    bool phaseGiven = !empty() && ((*begin())->beatTime >= 0); // if given for one, assume given for others
......
102 102
                    std::cerr << "Creating a new agent" << std::endl;
103 103
#endif
104 104
                    // Create new agent with different phase
105
                    Agent *newAgent = new Agent(prevBeatInterval);
105
                    Agent *newAgent = new Agent(params, prevBeatInterval);
106 106
                    // This may add another agent to our list as well
107 107
                    newAgent->considerAsBeat(ev, *this);
108 108
                    add(newAgent);

Also available in: Unified diff