Can note names be overridden?

Is it possible to write a plugin/script that can change note names from C-4/C#4/etc. to plain integers, including negative integers? When I write microtonal music, I like to think in terms of scale degrees away from the root note - e.g. a major triad would change from C-4/E-4/G-4 to 0/4/7.