mm2px namespace change in Rack v2

While migrating Stoev modules to v2, I’ve noticed that the namespace of the mm2px functions has been changed from rack::app::mm2px to rack::window::mmp2x.

Didn’t find this change mentioned anywhere, so I’m pointing it out here for anyone who might have encountered build errors related to it.


It’s in the API v2 docs: VCV Rack API: rack::window Namespace Reference but should be added here VCV Manual - Migrating v1 Plugins to v2 I’d say.

1 Like

The app and window namespace are both included in the rack:: namespace, so just use mm2px(), or rack::mm2px() if you don’t want to using namespace rack;.