/// <summary>Initialize the destination map with the average of the parameter values of all touched /// loopies (and the microphone if applicable); then have all touched loopies (and the microphone if /// applicable) share those newly initialized parameters.</summary> internal void UpdateParameterMapFromTouchedLoopieValues(ParameterMap dest) { // initialize the parameters from the average of the values in the loopies & mike int count = TouchedLoopies.Count + 1; IEnumerable<ParameterMap> touchedParameterMaps = TouchedLoopies.Select(loopie => loopie.Track.Parameters); /* MIKEFFECTS: if (MicrophoneSelected) { touchedParameterMaps = touchedParameterMaps.Concat(new ParameterMap[] { MicrophoneParameters }); } */ dest.SetFromAverage(HolofunkModel.Clock.Time(0), touchedParameterMaps); }