Metadata-Version: 2.1
Name: chord-progressions
Version: 0.34.0
Summary: A Python package for extracting, analyzing, and generating chord progressions 
Author-email: p3zo <p3zo@users.noreply.github.com>
License: MIT License
        
        Copyright (c) 2024 Patricio Ovalle
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/p3zo/chord-progressions
Project-URL: Issues, https://github.com/p3zo/chord-progressions/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: matplotlib~=3.5.1
Requires-Dist: mido~=1.2.10
Requires-Dist: networkx~=2.8
Requires-Dist: numpy~=1.22.3
Requires-Dist: pandas~=1.4.2
Requires-Dist: pretty_midi~=0.2.10
Requires-Dist: scipy~=1.8.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: ipdb; extra == "dev"
Requires-Dist: ipython; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: bump-my-version; extra == "dev"
Requires-Dist: mkdocs-material; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"

# Chord progressions

## Usage

See the [Makefile](Makefile) for available actions.

## Docs

The documentation uses [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) to build a static site from
Markdown files. Use `mkdocs serve` to start a live preview server of the site that automatically rebuilds upon saving.
Use `mkdocs build` to build the site.

## TODO

Analysis

- [feature] get key for progression
- [feature] get functional names for chords given key
- [feature] extend interval class vectors to "polychord content" vectors

I/O

- [feature] add `from_audio` and `from_midi` constructors to Progression class
- [maintainability] use a singular method of counting in `extract_harman.py`
    - `get_segment_label` uses counter
    - `get_segment_pc_weights` uses defaultdict
    - `MinimalSegment.get_pitch_class_weights` uses list.count()
- [performance] `extract.midi_harman.segment_and_label()` gets really slow for many consecutive segments. test that a
  maximum of six segment evaluations occur per note

Generation

- [feature] VAE solver
- [feature] use variable chord durations
- [feature] consider lower and upper structures in select_voicing
- [feature] add the possibility of repeated notes in different octaves
- [feature] ability to constrain key

Misc

- [feature] Host docs site
- [feature] Generalize `noteNumberToFrequency` to use any periodic
  tuning (see https://github.com/soul-lang/SOUL/pull/26/files)
- [feature] implement `is_partial_circular_match`, `chord_contained_in_type`, and `get_possible_types_of_chord`
- [maintainability] mk `pitch_class` refer to "C" and call 0 `pitch_class_ix`
- [maintainability] pass midi note numbers everywhere as "notes" and include note names as "noteNames"
- [maintainability] test the merging of chord types
