Skip to main content

A lightweight module for easy beatmapping, key detection, and smart-slicing

Project description

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.

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

wavescout-0.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

wavescout-0.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

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