On branch [`musicutils`](https://github.com/sugarlabs/musicblocks-v4-lib/tree/musicutils), TypeScript ported file [`keySignature.ts`](https://github.com/sugarlabs/musicblocks-v4-lib/blob/develop/src/musicUtils/keySignature.ts) has some of this methods including the `constructor` throw errors. Handle with `try catch` calls to all such instances in other files.