advice sought re using buttons as incremental 'pots'

Hi forum members.

 

I am considering using switches in place of pots:

 

Instead of turning a pot to increase/decrease a CC value, use instead two switches: one switch increments the value from 0 to 127, the other switch to decrement the value.

 

A single press increments/decrements the value by one, and a longer press steps up or down until released.

 

I was hoping to use DOUTs as indicators of last button-pair changed.

 

Has anyone used this method with Midibox? Did they use Midibox 128 or what? Is it actually possible?

 

Looking forward to reading some ideas.

 

Regards