Skip to main content

Post-tonal music theory analysis functions

Project description

post-tonal-theory-helper

by Mari Masuda mbmasuda.github@gmail.com

This package provides some basic post-tonal music theory analysis functions for Python 3.

Based on the text Introduction to Post-Tonal Theory by Joseph N. Straus (ISBN 0-13-686692-1)

Installation

$ pip install post-tonal-theory-helper-mbmasuda

Usage

from ptth.api import *

pitches = '0t38e'

normal = normal_form(pitches)
prime = prime_form(pitches)

normal_t4 = transpose(normal, 4)
normal_t4i = invert(normal, transpose=4)

boolean1 = is_transpositionally_related(normal, prime)
boolean2 = is_inversionally_related(normal, prime)

members = get_set_class_members(normal)

Tests

Tests can be run with pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

post-tonal-theory-helper-mbmasuda-0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file post-tonal-theory-helper-mbmasuda-0.1.tar.gz.

File metadata

  • Download URL: post-tonal-theory-helper-mbmasuda-0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for post-tonal-theory-helper-mbmasuda-0.1.tar.gz
Algorithm Hash digest
SHA256 2579e9d66ee172289faa23b07681e7fc0297dbab4535546e92362464a140ec85
MD5 d1af1d6781ed02bc1facbf86af046108
BLAKE2b-256 9b2128397c7286c920cdd72206160faf412dab54b449332229a15df68b24ad51

See more details on using hashes here.

File details

Details for the file post_tonal_theory_helper_mbmasuda-0.1-py3-none-any.whl.

File metadata

  • Download URL: post_tonal_theory_helper_mbmasuda-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for post_tonal_theory_helper_mbmasuda-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 996913c1f671dc3a9a3e5302fc5775813f4a7e5986fa5a963f8231999b12bd25
MD5 69337442b1e69ff46cfe5aa07035ac26
BLAKE2b-256 b8f634b8477863f966308522e8240a1071c288a1e4dd0fb7e3b85cda42401687

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page