Perform Neo-Riemann operations on musical chords
Project description
Music Tonnetz-Transform
Perform Neo-Riemann operations on musical chords
DESCRIPTION
This class generates transposed and Neo-Riemann chord progressions.
Calling the generate() and circular() methods returns three lists:
- The generated chord progression (in either the default midi-number or named "ISO" format)
- The transformations used in the generation
- The list of pitch names, comprising the chords that were generated
The generate() method generates a linear series of transformed chords.
The circular() method generates a circular series of transformed chords. This describes movement around a circular list ("necklace") of chord transformations. Starting at position zero, we move randomly, forward or backward along the necklace, transforming the current chord.
SYNOPSIS
from music_tonnetztransform import Transform
t = Transform( # defaults:
base_note='C',
base_octave=4,
chord_quality='', # '': major, 'm': minor, '7': 7th
format='midinum', # or ISO for names
semitones=7, # transposition semitones
max=4, # number of circular transformations
allowed=None, # [T], [N], [T,N], None
transforms=4, # either a list or a number of computed transformations
verbose=False,
)
generated, transforms, chords = t.generate()
# [[63, 67, 70], [70, 74, 77], [70, 75, 79], [70, 75, 79]],
# ['T3', 'T7', 'RL', 'I'],
# [['Eb', 'G', 'Bb'], ['Bb', 'D', 'F'], ['Bb', 'Eb', 'G'], ['Bb', 'Eb', 'G']])
t = Transform(format="ISO")
generated, transforms, chords = t.generate()
# [['G4', 'B4', 'D5'], ['D4', 'F#4', 'A4'], ['C#4', 'F4', 'G#4'], ['D4', 'F4', 'Bb4']],
# ... as above
t = Transform(format='ISO', transforms=['R','L','P'])
generated = t.generate()[0] # [['C4', 'E4', 'A4'], ['C4', 'F4', 'A4'], ['C4', 'F4', 'G#4']]
t = Transform(transforms=['R','L','P','T2'], max=6)
generated, transforms, chords = t.circular()
MUSICAL EXAMPLES
# TODO
SEE ALSO
https://metacpan.org/pod/Music::NeoRiemannianTonnetz
https://en.wikipedia.org/wiki/Neo-Riemannian_theory
https://viva.pressbooks.pub/openmusictheory/chapter/neo-riemannian-triadic-progressions/
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
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 music_tonnetztransform-0.1.0.tar.gz.
File metadata
- Download URL: music_tonnetztransform-0.1.0.tar.gz
- Upload date:
- Size: 43.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce4fcf67fab39aa405da15d885f2ab6fd954fecd9af515d475de99744d8bed89
|
|
| MD5 |
a252203e76ebfd98aa592e58032b33c3
|
|
| BLAKE2b-256 |
0b5ef27c2ae83af2018475b3d68b9d2d8d211c213179d4d6675d8c44adb23a4e
|
File details
Details for the file music_tonnetztransform-0.1.0-py3-none-any.whl.
File metadata
- Download URL: music_tonnetztransform-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5640ed051eecd1c644cb15450513afb306bbadfce7036a81bfdd56521f1dfdb3
|
|
| MD5 |
47a77d60ba62744bf011708fad8b528b
|
|
| BLAKE2b-256 |
07f84a16c944589d0f0863335e91d721dc9b47382fdc59ea9a8415ba8e31cbe9
|