neece, Great to hear you're using it. It could actually do with a refactor. The way that it currently generates tones is sort of ugly. Would be better to mke a pile of calbacks.
You could look at dichotomic search to build a tree rather than doing a simple lookup if you wanted to do something really clever with morse code!