Skip to main content

Introduction

This python module was born after a week of experiments with the pomegranate library, that offers a nice implementation of a Markov chains (https://github.com/jmschrei/pomegranate), and the Beatles chords library, that contains chord annotations of the discography of the band The Beatles (the original database can be found here: http://isophonics.net/content/reference-annotations-beatles). The result is an easy to install module, that can be reused by anyone that want to experiment with automatic music composition and chord generation.

Installation

The package can easily be installed using the pip package manager.

pip install beatles_chords_markov_chain

Notation

In order to represent a chord progression, without being constrained to a particular scale or mode, a symbolic approach using intervals is employed.

# the roman notation is used to represent the chords of a generic mode
chord_notation = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII']

Usage

The trained markov chain contained in the module, is able to generate sequences of variable lenghts. A generated sequence is a list of symbols that can be used to create interesting chord progressions based on the style of The Beatles.

from beatles_chords_markov_chain import chords_markov_chain
number_of_chords = 6
chords_for_your_next_song = chords_markov_chain.sample(number_of_chords)

Metadata

Release files for beatles-chords-markov-chain 0.0.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beatles-chords-markov-chain 0.0.23
File Size Uploaded Provenance Actions
beatles_chords_markov_chain-0.0.23.tar.gz 17.4 kB Without provenance Details for beatles_chords_markov_chain-0.0.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beatles-chords-markov-chain 0.0.23
File Interpreter ABI Platform Actions
beatles_chords_markov_chain-0.0.23-py3-none-any.whl Python 3 none any Details for beatles_chords_markov_chain-0.0.23-py3-none-any.whl

Total release size: 22.9 kB

Release files / beatles_chords_markov_chain-0.0.23.tar.gz

Download URL beatles_chords_markov_chain-0.0.23.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6d440600c0cc873c2714a0c7129ade3cc13dc929cf213ad3e832141cfda5abac
BLAKE2b-256 checksum
How to use checksums
da377a4f836a805e6fa7421352dbdec58c1f831603907b874904dfeccebfc5ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

Release files / beatles_chords_markov_chain-0.0.23-py3-none-any.whl

Download URL beatles_chords_markov_chain-0.0.23-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02fe8d90cfc55d4019a08bf97b623af88483dcddb473285d69f2bbac8adbba4f
BLAKE2b-256 checksum
How to use checksums
235ab509a7d86aefcabeb870dcec6333c3c81afbcdc5d9a612c8d689353ffa09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

Security for beatles-chords-markov-chain 0.0.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page