A package with functionality for atonal music theory
Project description
pctheory
pctheory is a Python library for using atonal music theory. It is useful for both computer-assisted composition in Python and analysis. Some of the many useful features include:
- Set-classes
- Generate all abstract subsets of a set-class
- Get Forte and Carter names for a set-class
- Work with microtonal sets
- Generate set-class-complexes
- Rows
- Generate a twelve-tone matrix
- Generate a rotational array
- Generate an invariance matrix
- Load a random all-interval, all-trichord, ten-trichord, or Babbit ten-trichord row
pctheory is much more specialized than music21, and offers substantially more functionality in atonal theory. Additionally, it does not use music21 objects, so there is less computational overhead when using pctheory. It is not difficult to create music21 objects from pctheory objects, which allows pctheory to be used along with music21.
Installation
pctheory is a Python package and can be installed with the command pip install pctheory from the terminal on your computer (Command Prompt or PowerShell on Windows, Terminal on Linux or macOS). Note that you need Python 3.10 or newer.
Quick start
To create ordered or unordered collections (like pitch-class sets and twelve-tone rows), you use basic Python data structures like set and list. You can then add pctheory.pitch.PitchClass objects. To work with set-classes, you create a pctheory.pcset.SetClass object.
System Requirements
pctheory requires Python 3.10 or newer.
Documentation
Documentation can be found at https://fleximeter.github.io/pc-pctheory.html.
Copyright and license
pctheory is copyright © 2024 by Jeffrey Martin. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To view the GNU General Public License v.3.0, visit https://www.gnu.org/licenses/gpl-3.0.en.html.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pctheory-0.0.41.tar.gz.
File metadata
- Download URL: pctheory-0.0.41.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fedf015f385d49a640d7ede4b967e200ce6ddcade8d28d7038f7305f77634e25
|
|
| MD5 |
846021f87f292728da1b6030ef524d14
|
|
| BLAKE2b-256 |
6c7f44064b03389206aa470e3ad0d928c409fbf7fe7c99b1c9575bb81838e3d8
|
File details
Details for the file pctheory-0.0.41-py3-none-any.whl.
File metadata
- Download URL: pctheory-0.0.41-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
402c9efa7c2e2af5e571a28a554222b9a2f743b723fbddb5fdbd90cf2b7f5690
|
|
| MD5 |
a6431510d1fab8fbf6f701dfafa60d15
|
|
| BLAKE2b-256 |
7461891c6987093d0ccf564ae9be77dfa07fd7a6ad7a4364b847fa2cf7c72b38
|