Microtubule protofilament number is modulated in a stepwise fashion by the charge density of an enveloping layer.