Skip to main content

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.

Release files for m2-beats2audio 0.9

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

Source distribution (sdist)

Source distribution for m2-beats2audio 0.9
File Size Uploaded
m2-beats2audio-0.9.tar.gz 48.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for m2-beats2audio 0.9
File Interpreter ABI Platform
m2_beats2audio-0.9-py3-none-any.whl Python 3 none any Details

Total release size: 96.6 kB

Release files / m2-beats2audio-0.9.tar.gz

Download URL m2-beats2audio-0.9.tar.gz
Size 48.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c60e02e35429a3ba9c3dc544b44e99f131c1a759291c0930be339f391cd5d32f
BLAKE2b-256 checksum
How to use checksums
aef07986f9ba225e9be4020427e636b14ddef7298d805237529ecdeb0c19456a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / m2_beats2audio-0.9-py3-none-any.whl

Download URL m2_beats2audio-0.9-py3-none-any.whl
Size 48.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7829bcc45370536ddfc168ba6fa62fef1c4586674f7accdbad808b595658afb0
BLAKE2b-256 checksum
How to use checksums
0e1a92bdb6183499d62f60177af56b3f2b8cb9901a7c05de201efee6883290f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.9 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