
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
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:
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
.
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.
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.
pctheory
requires Python 3.10 or newer.
Documentation can be found at https://fleximeter.github.io/pc-pctheory.html.
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.
FAQs
A package with functionality for atonal music theory
We found that pctheory demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.