Skip to main content

Computational Music and Sound Archiving

Project description

comsar — Computational Music and Sound Archiving

comsar is a Python toolkit for content-based analysis of music and sound, with a focus on ethnomusicology (timbre, pitch/melody, tonal systems, rhythm and corpus visualisation with Self-Organizing Maps).

It is the top layer of a three-package stack maintained by Rolf Bader:

Package Role Repository
apollon Backbone: audio I/O, feature extraction, HMM, SOM (C-accelerated) codeberg.org/rbader/apollon
chainsaddiction Poisson Hidden-Markov-Models in C (used for rhythm / time-series) codeberg.org/rbader/chainsaddiction
comsar High-level music analysis (PitchTrack, TimbreTrack, tonal systems, SOM) codeberg.org/rbader/comsar

This fork combines the modern comsar code base with the pitch-tracking and tonal-system analysis (PitchTrack) merged back from the older comsar version.

Distribution names. The original PyPI names apollon, comsar and chainsaddiction belong to the upstream authors. This fork is published as bader-apollon, bader-comsar and bader-chainsaddiction. The import names are unchanged: you still write import comsar, import apollon, etc.

Installation (no compiler needed)

Pre-compiled wheels are provided for Windows, macOS and Linux (CPython 3.9–3.13). Installing comsar pulls apollon and chainsaddiction automatically:

pip install bader-comsar

To also run the example notebooks:

pip install bader-comsar jupyterlab

For source builds, step-by-step Windows/macOS/Linux instructions, and troubleshooting, see the full manual.

Quick start

from comsar import PitchTrack, TimbreTrack

# Pitch / melody / tonal-system analysis
pt = PitchTrack()
result = pt.extract("my_audio.wav")
print(result.features)          # pandas DataFrame

# Timbre feature track
tt = TimbreTrack()
timbre = tt.extract("my_audio.wav")

Runnable notebooks are in examples/.

Documentation

  • docs/MANUAL.md — full manual: architecture, installation, module reference, example walkthrough, troubleshooting, and how releases/wheels are built.
  • examples/ — Jupyter notebooks for the main workflows.

License

BSD-3-Clause. Original work © Michael Blaß; this fork maintained by Rolf Bader.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bader_comsar-0.0.6.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bader_comsar-0.0.6-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file bader_comsar-0.0.6.tar.gz.

File metadata

  • Download URL: bader_comsar-0.0.6.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bader_comsar-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b816100ea1b893b6ab2cbdff04d89e8957fffc22ace5504b6e35480ec2f80c2f
MD5 2d21d8b9cd6879d70c03f8563aaa3778
BLAKE2b-256 75ed95dfb5c0b36b299f054ce378bfad9bb5742f916a8ba2c2ce9ba7003c7413

See more details on using hashes here.

Provenance

The following attestation bundles were made for bader_comsar-0.0.6.tar.gz:

Publisher: wheels.yml on bader28/comsar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bader_comsar-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: bader_comsar-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bader_comsar-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d9a59e53c19b069eefb7147ee1919bc5cd8dc14af6d11d4aa9d88fed48713d1c
MD5 73b9a0961fe990a123424dd3e27bb8a6
BLAKE2b-256 2a1d4a4e03f65cafb3d795b7686e4fcd365f3646fefcb091f3453ae789816f4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for bader_comsar-0.0.6-py3-none-any.whl:

Publisher: wheels.yml on bader28/comsar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page