It would be nice if we had an Iterator on AudioProcessorGraph::Connection
so that instead of
e.g.
for (int i = 0; i < graph.getNumConnections(); ++i)
{
graph.removeConnection (i);
}
we could do
for (auto & connection : graph.getConnections())
{
graph.removeConnection (connection);
}
I realise removeConnection(Connection)
does not exist, would also be a nice to have…