In the last recipe, we used MC objects to target specific instances of an mc.reson~ filter. The mc.gen~ object also creates a gen~ instance for each channel, but two new Gen operators have been added that allow each instance to learn about its place in the MC environment. The Gen objects mc_channel and mc_channelcount allow for basic introspection - where a patch can interrogate itself.
We use these objects to create a variation on a patch that was seen in the Max 8 promotional video: one that creates unique tones and delays for each processing channel.
Change the number of channels in the mc.gen~ to see (and hear) the Gen patch adapt to its changed environment. Note, however, that when you change the number of channels, you may need to restart the DSP to implement the change.