spotify / basic-pitch-ts

A lightweight yet powerful audio-to-MIDI converter with pitch bend detection.
https://basicpitch.io
Apache License 2.0
232 stars 20 forks source link

More detailed usage example in README.md #16

Open felipetovarhenao opened 1 year ago

felipetovarhenao commented 1 year ago

The current code snippet in README.md is rather confusing and doesn't reflect relevant implementation details, such as how to instantiate the BasicPitch class, or clarifying that the AudioContext's sampling rate must be 22050. The provided example (which is admittedly lengthly) is copy-paste ready, and includes a docstring + explanatory comments.

paulrosen commented 10 months ago

This was really useful!

One more detail is that the file must be mono.