cljs compatible subset of Bartok (primitives only for now)