Skip to main content

Library for producing audios from beats

Project description

Beats2Audio

beats2audio is an utility to create audio files with clicks at designated onset times as provided in a configuration file. Onset times are specified in a text file defining one location per line, in milliseconds. This utility was developed in the context of the publication "Simple and Cheap Setup for Measuring Timed Responses to Auditory Stimuli", Miguel. et al. (under review).

Installation

  • From pypi (requires pip >= 20.0.1):
    pip install m2-beats2audio
  • From sources:
    git clone https://github.com/m2march/beats2audio.git
    cd beats2audio
    python setup.py install

Usage

Given a input file as the following, specifying onsets at 500 ms intervals (see examples/iso_500.txt):

0
500
1000
1500
2000
2500

beats2audio takes as a positional parameter the onset times file and specifies an output file with the -o flag. I.e.:

`beats2audio -o 500.wav examples/iso_500.txt`

The utility can produce wav and mp3 files, according to the extension of the output file or via the -f flag. More options are explained in the help text -h.

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

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

Source Distribution

m2-beats2audio-0.9.tar.gz (48.6 kB view hashes)

Uploaded Source

Built Distribution

m2_beats2audio-0.9-py3-none-any.whl (48.0 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