add basic support for modular scale

fixes #13
Merge pull request #24 from mechanoid/modular_scale

add basic support for modular scale