You could already do something like that using the Dispatcher pipe and channel remap pipe, of course the maximum limit of steps would be 16.
Of course a specialized pipe would be more convenient. Should such pipe as you suggest ‘reset’ the counter once a new note number is received, or should it work just with a particular note number?