Add sfxr-toolkit.js. The trick is to make this stuff feel right at a high level; this API isn't there but it is closer to what I want.