@Override
public void setSource(int connectionIndex, NamedSource source, int sourceIndex)
throws UnknownConnectionException, TypeMismatchException {
if(connectionIndex==StandardParameters.MAXDELAY.i){
// TODO check whether it's a constant?
maxDelay=new SourceStore(source, sourceIndex);
}else if(connectionIndex==StandardParameters.INTENSITY.i){
intensity=new SourceStore(source, sourceIndex);
}else if(connectionIndex==StandardParameters.FREQUENCY.i){
frequency=new SourceStore(source, sourceIndex);
}else if(connectionIndex==StandardParameters.DELAY.i){
delay=new SourceStore(source, sourceIndex);
}else if(connectionIndex==StandardParameters.DEPTH.i){
depth=new SourceStore(source, sourceIndex);
}else if(connectionIndex==StandardParameters.MODULATION.i){
modulation=new SourceStore(source, sourceIndex);
}else if(connectionIndex==StandardParameters.IN.i){
in=new SourceStore(source, sourceIndex);
}
}