All Projects → accraze → python-twelve-tone

accraze / python-twelve-tone

Licence: BSD-2-Clause License
🎶 12-tone matrix to generate dodecaphonic melodies 🎶

Programming Languages

python
139335 projects - #7 most used programming language
Batchfile
5799 projects

Projects that are alternatives of or similar to python-twelve-tone

hum2song
Hum2Song: Multi-track Polyphonic Music Generation from Voice Melody Transcription with Neural Networks
Stars: ✭ 61 (-10.29%)
Mutual labels:  music-composition, music-generation
MidiTok
A convenient MIDI / symbolic music tokenizer for Deep Learning networks, with multiple strategies 🎶
Stars: ✭ 180 (+164.71%)
Mutual labels:  midi, music-generation
alda-clj
A Clojure library for live-coding music with Alda
Stars: ✭ 54 (-20.59%)
Mutual labels:  music-composition, music-generation
Helio Workstation
One music sequencer for all major platforms, desktop and mobile
Stars: ✭ 2,257 (+3219.12%)
Mutual labels:  midi, music-composition
midica
A Music programming language. Translates source code into MIDI. Includes a player. Supports MIDI-Karaoke. Includes a MIDI analyzer.
Stars: ✭ 57 (-16.18%)
Mutual labels:  midi, music-composition
Ensembles
A digital arranger workstation powered by FluidSynth
Stars: ✭ 312 (+358.82%)
Mutual labels:  midi, music-composition
Music-generation-cRNN-GAN
cRNN-GAN to generate music by training on instrumental music (midi)
Stars: ✭ 38 (-44.12%)
Mutual labels:  midi, music-generation
Webaudiofont
Use full GM set of musical instruments to play MIDI and single sounds or effects. Support for reverberation and equaliser. No plugins, no Flash. Pure HTML5 implementation compatible with desktop and mobile browser. See live examples.
Stars: ✭ 600 (+782.35%)
Mutual labels:  midi, music-composition
facet
Facet is a live coding system for algorithmic music
Stars: ✭ 72 (+5.88%)
Mutual labels:  midi, music-generation
melrose
interactive programming of melodies, producing MIDI
Stars: ✭ 130 (+91.18%)
Mutual labels:  midi, music-composition
Miti
miti is a musical instrument textual interface. Basically, its MIDI, but with human-readable text. 🎵
Stars: ✭ 103 (+51.47%)
Mutual labels:  midi, music-composition
generating-music
🎷 Artificial Composition of Multi-Instrumental Polyphonic Music
Stars: ✭ 28 (-58.82%)
Mutual labels:  midi, music-generation
Giada
Your Hardcore Loop Machine.
Stars: ✭ 903 (+1227.94%)
Mutual labels:  midi, music-composition
Dyci2Lib
"Dicy2 for Max" is a Max package implementing interactive agents using machine-learning to generate musical sequences that can be integrated into musical situations ranging from the production of structured material within a compositional process to the design of autonomous agents for improvised interaction. Check also our plugin for Ableton live !
Stars: ✭ 35 (-48.53%)
Mutual labels:  music-composition, music-generation
Zrythm
a highly automated and intuitive digital audio workstation - official mirror
Stars: ✭ 703 (+933.82%)
Mutual labels:  midi, music-composition
saddle
SADDLE: Scala Data Library
Stars: ✭ 23 (-66.18%)
Mutual labels:  numpy, matrix
Textbeat
🎹 plaintext music sequencer and midi shell, with vim playback 🥁
Stars: ✭ 274 (+302.94%)
Mutual labels:  midi, music-composition
Mezzo
A Haskell library for typesafe music composition
Stars: ✭ 327 (+380.88%)
Mutual labels:  midi, music-composition
NDScala
N-dimensional arrays in Scala 3. Think NumPy ndarray, but type-safe over shapes, array/axis labels & numeric data types
Stars: ✭ 37 (-45.59%)
Mutual labels:  numpy, matrix
NegativeHarmonizer
A python tool to invert the tonality (a.k.a negative harmony) of midi notation
Stars: ✭ 23 (-66.18%)
Mutual labels:  midi, music-composition

Overview

docs Documentation Status
tests Travis-CI Build Status Coverage Status
package PyPI Package latest release PyPI Wheel Supported versions

Twelve-tone matrix to generate dodecaphonic melodies.

https://upload.wikimedia.org/wikipedia/commons/thumb/7/77/Schoenberg_-_Piano_Piece_op.33a_tone_row.png/640px-Schoenberg_-_Piano_Piece_op.33a_tone_row.png

Following a process created by the composer Arnold Schoenberg, this library computes a matrix to create twelve-tone serialism melodies which compose each of the 12 semitones of the chromatic scale with equal importance.

  • Save your compositions to MIDI
  • Free software: BSD license

Installation

pip install twelve-tone

The GuixRUs channel also provides twelve-tone.

Quick Start

You can quickly generate a random twelve-tone melody with the CLI

$ twelve-tone
['C# / Db', 'A# / Bb', 'F', 'D', 'G# / Ab', 'D# / Eb', 'F# / Gb',
    'A', 'C', 'G', 'B', 'E']

Or you can use the following methods in a script:

>>> from twelve_tone.composer import Composer
>>> c = Composer()
>>> c.compose()
>>> c.get_melody()
['C# / Db', 'A# / Bb', 'F', 'D', 'G# / Ab', 'D# / Eb', 'F# / Gb',
    'A', 'C', 'G', 'B', 'E']

After you have composed a matrix of tone rows, you can save the composition to MIDI:

>>> c.compose()
>>> c.save_to_midi(filename='TWELVE_TONE.mid')

The new MIDI file will be created in your current working directory. If you do not specify a filename for your file, it will default to example.mid.

Documentation

https://python-twelve-tone.readthedocs.io/

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows
set PYTEST_ADDOPTS=--cov-append
tox
Other
PYTEST_ADDOPTS=--cov-append tox
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].