https://github.com/dbraun/abletonparsing

Parse an Ableton ASD clip file (warp markers and more) in Python

https://github.com/dbraun/abletonparsing

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.4%) to scientific vocabulary

Keywords

ableton audio python rubberband time-stretching warp-markers

Keywords from Contributors

vst
Last synced: 5 months ago · JSON representation

Repository

Parse an Ableton ASD clip file (warp markers and more) in Python

Basic Info
  • Host: GitHub
  • Owner: DBraun
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 703 KB
Statistics
  • Stars: 69
  • Watchers: 4
  • Forks: 8
  • Open Issues: 3
  • Releases: 2
Topics
ableton audio python rubberband time-stretching warp-markers
Created almost 5 years ago · Last pushed 9 months ago
Metadata Files
Readme License

README.md

AbletonParsing

CI PyPI version

Parse an Ableton ASD clip file and its warp markers in Python. This module has been tested with .asd files saved with Ableton 9 and Ableton 10.

Note: Ableton Live 12 uses a different binary format that is not yet supported by this library.

Install

pip install abletonparsing

Development Dependencies

To run the tests, you'll need to install additional dependencies:

```bash

On macOS

brew install rubberband

On Ubuntu/Debian

sudo apt-get install -y rubberband-cli

Install Python test dependencies

pip install abletonparsing[test]

or

pip install -e ".[test]" # for development ```

API

Clip class: * .loopon - ( bool , READ/WRITE ) - Loop toggle is on * .startmarker - ( float , READ/WRITE ) - Start marker in beats relative to 1.1.1 * .endmarker - ( float , READ/WRITE ) - End marker in beats relative to 1.1.1 * .loopstart - ( float , READ/WRITE ) - Loop start in beats relative to 1.1.1 * .loopend - ( float , READ/WRITE ) - Loop end in beats relative to 1.1.1 * .hiddenloopstart - ( float , READ/WRITE ) - Hidden loop start in beats relative to 1.1.1 * .hiddenloopend - ( float , READ/WRITE ) - Hidden loop end in beats relative to 1.1.1 * .warpmarkers - ( list[WarpMarker] , READ/WRITE ) - List of warp markers * .warp_on - ( bool , READ/WRITE ) - Warping is on * .sr - ( float , READ/WRITE ) - Sample rate of audio data

WarpMarker class: * .seconds - ( float , READ/WRITE ) - Position in seconds in the audio data. * .beats - ( float , READ/WRITE ) - Position in "beats" (typically quarter note) relative to 1.1.1

If loop_on is false, then loop_start will equal the start_marker, and loop_end will equal the end_marker.

Example

```python import abletonparsing

import librosa import soundfile as sf import pyrubberband as pyrb

bpm = 130. audiopath = 'drums.wav' clippath = audio_path + '.asd'

audiodata, sr = librosa.load(audiopath, sr=None, mono=False) numsamples = audiodata.shape[1]

clip = abletonparsing.Clip(clippath, sr, numsamples)

timemap = clip.gettime_map(bpm)

Time-stretch the audio to the requested bpm.

outputaudio = pyrb.timemapstretch(audiodata.transpose(), sr, timemap)

with sf.SoundFile('output.wav', 'w', sr, 2, 'PCM24') as f: f.write(outputaudio) ```

Owner

  • Name: David Braun
  • Login: DBraun
  • Kind: user
  • Company: DIRT Design

Do It Real-Time | Audiovisual ML, Faust, TouchDesigner | alum @ccrma

GitHub Events

Total
  • Issues event: 2
  • Watch event: 8
  • Issue comment event: 5
  • Push event: 4
  • Pull request event: 3
  • Fork event: 1
  • Create event: 4
Last Year
  • Issues event: 2
  • Watch event: 8
  • Issue comment event: 5
  • Push event: 4
  • Pull request event: 3
  • Fork event: 1
  • Create event: 4

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 14
  • Total Committers: 2
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.429
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
David Braun e****l@e****m 8
David Braun 2****n 6

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 4
  • Total pull requests: 2
  • Average time to close issues: 12 months
  • Average time to close pull requests: 4 minutes
  • Total issue authors: 4
  • Total pull request authors: 1
  • Average comments per issue: 3.0
  • Average comments per pull request: 3.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 2
  • Average time to close issues: about 14 hours
  • Average time to close pull requests: 4 minutes
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 3.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • riban-bw (1)
  • Nickyg001 (1)
  • theaccessvirus (1)
  • wyhinton (1)
Pull Request Authors
  • DBraun (4)
Top Labels
Issue Labels
bug (1) help wanted (1) good first issue (1)
Pull Request Labels
codex (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 122 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 3
  • Total maintainers: 1
pypi.org: abletonparsing

Python module for parsing Ableton Live ASD clip files containing warp markers.

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 122 Last month
Rankings
Dependent packages count: 9.8%
Stargazers count: 10.3%
Average: 15.4%
Forks count: 15.4%
Downloads: 19.5%
Dependent repos count: 21.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/all.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/claude.yml actions
  • actions/checkout v4 composite
  • anthropics/claude-code-action beta composite
pyproject.toml pypi