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, normal_t4)
boolean2 = is_inversionally_related(normal, normal_t4i)

members = get_set_class_members(normal)

forte_name = get_forte_name(pitches)

Tests

Tests can be run with pytest

$ py.test

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.1.tar.gz (7.0 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.1.tar.gz.

File metadata

  • Download URL: post-tonal-theory-helper-mbmasuda-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 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.1.tar.gz
Algorithm Hash digest
SHA256 34996b874f8f7f7292c445d32b4d64ad5651c59602614d4066da1894f975571e
MD5 0951dcc494d01903ce7a4d6dde5d3e99
BLAKE2b-256 9446be2106b6ebf93edad8c4c32d660f2dae2a9241113ac0811a19e76fce787c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: post_tonal_theory_helper_mbmasuda-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 127e6ed7d62fed78083cd05c647787ca7db88b4561b188d5484dcca2fb03a047
MD5 26c14a29489595e08794e2590a22b8a9
BLAKE2b-256 b062cba80bb634d50776e3cb802341d651f5fc60dc47bd1e280402087fb54a33

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