A toolbox for analysing music collections: corpus fingerprints, similarity landscapes, and honest categorisation from folders of audio files
Project description
Musiscape
A toolbox for analysing music collections in the form of audio files in folders. The aim is to provide tools to visualise many tracks so you can compare them. It can help answer questions about how albums differ, which tracks resemble which, how internally consistent each album is, where the outliers live, and what categories the corpus falls into.
Musiscape is a sibling of ambiscape, which is focused on analysing soundscapes (including those with some music being played). The toolboxes share some analysis types, including circular statistics and Pierre Schaeffer-inspired typology machinery (ambiscape.music), tonal centres on the circle of fifths, and object-level TARSOM (Tableau rècapitulatif du solfège des objets musicaux) and TARTYP (Tableau rècapitulatif de la typologie).
See the documentation for guides and an illustrated gallery of the visualisation styles, and the wiki for methodology notes and a case study.
Install
pip install musiscape
Quickstart
A collection is simply a folder tree — each subfolder holding audio files (mp3/wav/flac/ogg/m4a) is an album:
musiscape probe ~/Music/my-collection # what's here?
musiscape report ~/Music/my-collection # everything → analysis/README.md
musiscape fingerprint ~/Music/my-collection # per-album profile bars
musiscape landscape ~/Music/my-collection # PCA similarity map + affinity
musiscape categorize ~/Music/my-collection # k-means with named signatures
musiscape thumbnails ~/Music/my-collection --style combo # per-track cards
musiscape poster ~/Music/my-collection # whole collection as one image
musiscape sonic ~/Music/my-collection # ~12 s audio summary per track
The seventeen thumbnail styles range from spectrograms and Freesound-style
coloured waveforms through tonality vinyl discs, keyscapes and repetition
arcs to Schaeffer-inspired TARTYP timelines, TARSOM roses and a
stereo-field view. Posters stack
every track as a harmony barcode, or lay the collection out as a grid of
tonality discs (--style vinyl).
report produces a per-collection README.md with an album table
(note density, brightness, dynamics, minor-key share, internal consistency,
key-space clustering R), overview figures, self-explaining categories
("sparse, dark, drone-like" — signed z-scores of the distinguishing
features, never just "cluster 3"), and the corpus extremes.
In Python
import musiscape
from musiscape import features, corpus, categorize
coll = musiscape.open_collection("~/Music/my-collection")
f = features.load_features(features.extract_collection(coll, "analysis"))
corpus.album_stats(f) # per-album fingerprints
corpus.similarity(f) # track matrix + album affinity/consistency
corpus.landscape(f) # PCA coords, variance, loadings
corpus.tonal_spread(f) # key-space clustering per album (circular)
categorize.cluster(f) # interpretable categories
Combine with listening
This toolbox is meant for quick visualisations and overviews. Combine it with listening!
License
MIT.
Project details
Release history Release notifications | RSS feed
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 musiscape-0.3.0.tar.gz.
File metadata
- Download URL: musiscape-0.3.0.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b67fcc72ca025e96985902ab3c735e728318fedaf7f890ce53668f75e184ca1
|
|
| MD5 |
9147c79bdf6152dfb38dbdf83aed9c51
|
|
| BLAKE2b-256 |
f59aaa9a9d89b0d862adedd09dbc67598d2ab2b3840c713340a85c258d5073a0
|
Provenance
The following attestation bundles were made for musiscape-0.3.0.tar.gz:
Publisher:
python-publish.yml on fourMs/musiscape
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
musiscape-0.3.0.tar.gz -
Subject digest:
8b67fcc72ca025e96985902ab3c735e728318fedaf7f890ce53668f75e184ca1 - Sigstore transparency entry: 2252531451
- Sigstore integration time:
-
Permalink:
fourMs/musiscape@cb6ee7ea3f17a2f33b4df33f11bd40ea09c2856b -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/fourMs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cb6ee7ea3f17a2f33b4df33f11bd40ea09c2856b -
Trigger Event:
release
-
Statement type:
File details
Details for the file musiscape-0.3.0-py3-none-any.whl.
File metadata
- Download URL: musiscape-0.3.0-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ff3d2e883dc4fe41e80152d99fa565a33e5b8ea850acf4759bfb2b2054e94f5
|
|
| MD5 |
a9622240d9b2004a1e24504b35397ef9
|
|
| BLAKE2b-256 |
42db2382ecc41eab9a41545ebdffccc87a87fd75ff1c4c696ca41b0dad38b7b4
|
Provenance
The following attestation bundles were made for musiscape-0.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on fourMs/musiscape
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
musiscape-0.3.0-py3-none-any.whl -
Subject digest:
6ff3d2e883dc4fe41e80152d99fa565a33e5b8ea850acf4759bfb2b2054e94f5 - Sigstore transparency entry: 2252531816
- Sigstore integration time:
-
Permalink:
fourMs/musiscape@cb6ee7ea3f17a2f33b4df33f11bd40ea09c2856b -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/fourMs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cb6ee7ea3f17a2f33b4df33f11bd40ea09c2856b -
Trigger Event:
release
-
Statement type: