Skip to content

akoaysigod/TwelveTones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A python program to randomly generate music based on the Twelve-tone technique. This uses the Pyknon music library. Since it's small I added it here for convenience and in case I make any changes to it.

As of now it only generates ~4 measures of music for up to four instruments by randomy selecting four prime rows and slamming them together. Since atonal music sounds really random anyway I figured this would be a good exercise in trying to write a program that randomly composes music.

Depending on your MIDI synthesis capabilities this will likely sound bad to really bad.

TODO:
Add rests for rhythmic variations
Rewrite algorithm to keep a running total of measure length
Add logic to get the other 36 scales, retrograde, inverted, retrograde-inverted
Generate a fixed number of measures
Make it more sophisticated overall


Future/Maybe:
Allow control over scales to be used.
Add dynamic variations
Create example song, I plan on recreating the MIDI in a proper DAW so the above suggestion I might not ever implement
Write music library, someday...

About

Python + Pyknon to generate random atonal music

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages