Skip to content

Commit

Permalink
Remove audio extraction from public api
Browse files Browse the repository at this point in the history
  • Loading branch information
p3zo committed Jun 19, 2024
1 parent 7176ade commit 929b28d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions chord_progressions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from chord_progressions.chord import Chord
from chord_progressions.extract import (
extract_progression_from_audio,
extract_progression_from_midi,
)
from chord_progressions.pitch import (
Expand All @@ -40,7 +39,6 @@
# Use __all__ to let type checkers know what is part of the public API
__all__ = [
Chord,
extract_progression_from_audio,
extract_progression_from_midi,
get_midi_num_from_note,
get_note_from_midi_num,
Expand Down
4 changes: 3 additions & 1 deletion docs/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ progression = extract_progression_from_midi('my_file.mid')

## Extract chords from an audio file

NOTE: this requires installing [Essentia](http://essentia.upf.edu/documentation/installing.html) with Python bindings which is not included in this library.

```python
from chord_progressions import extract_progression_from_audio
from chord_progressions.extract import extract_progression_from_audio

progression = extract_progression_from_audio('my_file.wav')
```

0 comments on commit 929b28d

Please sign in to comment.