question about polyphonic channel replace

thank you, yes i know this combination. but this does not fit my needs: because: the position and amount of the channels for replace are variable. i asked this question under the following thread, but unfortunately the different results are not completely working for me.