Skip to main content

WaveScout

WaveScout is a lightweight Python library for quickly analyzing the tempo and key of audio files and slicing them into smaller segments based on measures.

Features

  • Analyzes tempo (BPM) and key of audio files
  • Generates beat maps for audio files
  • Slices audio files into smaller segments based on measures
  • Exports plaintext beat map files and audio slices as a zip file
  • Supports processing multiple audio files in a directory

Installation

You can install WaveScout using pip:

pip install wavescout

Dependencies

  • numpy
  • aubio
  • pydub

Usage

Here's a simple example of using WaveScout:

from wavescout import WaveScout

# Analyze the audio file
scout = WaveScout("path/to/your/audio_file.mp3")

# Export the beat map to a plaintext file
scout.export("beat_map.txt")

# Export the audio slices to a zip file
scout.export("slices.zip", export_slices=True)

You can also use WaveScout to analyze and process multiple audio files in a directory:

from wavescout import WaveScoutFactory

factory = WaveScoutFactory("path/to/your/audio_files_directory")
maps = factory.create_maps()

for map in maps:
    map.export(f"{map.input_file_basename}_beat_map.txt")
    map.export(f"{map.input_file_basename}_slices.zip", export_slices=True)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for wavescout 0.1.0

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

Source distribution (sdist)

Source distribution for wavescout 0.1.0
File Size Uploaded
wavescout-0.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wavescout 0.1.0
File Interpreter ABI Platform
wavescout-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / wavescout-0.1.0.tar.gz

Download URL wavescout-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
75b0ccd4e04ee3b38081a2ecbff9b8d838b3f39c3cf0a8bf62ce9e511e79ec6e
BLAKE2b-256 checksum
How to use checksums
0d1dee9755657f735a09a2f5adfaa212b070c90a649eba27a42ca6fedb20ca49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / wavescout-0.1.0-py3-none-any.whl

Download URL wavescout-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d2379180f9bedd5913984e715358b46efd614b8e6d1c2ec859646ab652415b4
BLAKE2b-256 checksum
How to use checksums
23b445c682b3e41fa3170de876860ebb9f0e36103091570b93ce7c741431c511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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