Rename channel name but keep parts of it

I’m sending midi notes out of touch to my synth, and I want to be able to keep the beginning of my channel name, but have a constant or lfo drive the second part of it.

The full name would be something like ch1n100
but i want to keep ‘ch1n’ and then use something else to drive the number after the ‘n’

I read the wiki page on the rename chop but I’m not sure if that will help with what I want to do.
Any help is greatly appreciated.

If this is to send to an outboard synth you will inevitably end up with a multitude of channels or risk having hung notes when the channel name changes before having sent a velocity value of 0.

To change the channel name dynamically you could use a rename CHOP with a CHOP exec DAT which updates the name. It’ll probably be something like:

on off to on:
note = ‘ch1n’ + str(int(val))
op(‘rename’).par.renameto = note

return

Something like that… the formatting won’t work if you copy-paste. I recommend adding this channel to a formatted CHOP and which contains all the midi notes from 0-127 and matching by channel name so as to avoid hung notes.

Here is an example of what I mean:
youtu.be/u5AOjkr_4IM?t=392