quabynahdavis/soundkit ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python package called SoundKit that helps with musical note and music theory stuff. I want to be able to import it as soundkit as sk and use simple helpers to convert note names like C4 and A4 into MIDI numbers and frequencies, and back again. It should also generate common chords, inversions, and scales, including things like major, minor, seventh chords, pentatonic scales, blues, and modes.

Please make it easy to use from the top level, but also keep the older module style working so existing code does not break. Add sensible validation and clear errors for bad note names or invalid octaves, plus a few convenience functions for batch converting lists of notes. If you can, include a couple of example scripts and basic tests so it feels like a real usable library. Look up current docs online if you need to, but keep the API simple and friendly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab