chemart / music-ac

View on GitHub

Algorithmic chemistry for music composition — Composition without a fitness function. A molecule is a stack of lines of musical elements with a displacement, so notes, chords and harmonic functions can sit in registered columns. Recombination rules join fragments th…

chemistry official · built in application fidelity: reconstructed constructive #banzhaf-yamamoto
files / README.md · 508 B · at e768d91654d7 Raw

Algorithmic chemistry for music composition

One of the artificial chemistries of Banzhaf & Yamamoto, Artificial Chemistries (MIT Press, 2015), §16.4; first proposed by Miura & Tominaga, 2006 (homophonic); Tominaga & Setomoto, 2008 (polyphonic).

Its generator ships with the chemart library, so loading it runs no code from the hub and needs no trust_remote_code.

import chemart

net = chemart.generate_network("chemart/music-ac", seed=0)   # same as "music-ac"
print(net.summary())