open access publication

Article, 2024

thebeat: A Python package for working with rhythms and other temporal sequences

Behavior Research Methods, ISSN 1554-3528, 1532-5970, 1554-351X, Volume 56, 4, Pages 3725-3736, 10.3758/s13428-023-02334-8

Contributors

Van Der Werff, J 0000-0003-3575-7989 (Corresponding author) [1] [2] Ravignani, Andrea [1] [2] [3] Jadoul, Yannick [1] [2]

Affiliations

  1. [1] Max Planck Institute for Psycholinguistics
  2. [NORA names: Netherlands; Europe, EU; OECD];
  3. [2] Sapienza University of Rome
  4. [NORA names: Italy; Europe, EU; OECD];
  5. [3] Aarhus University
  6. [NORA names: AU Aarhus University; University; Denmark; Europe, EU; Nordic; OECD]

Abstract

Abstractthebeat is a Python package for working with temporal sequences and rhythms in the behavioral and cognitive sciences, as well as in bioacoustics. It provides functionality for creating experimental stimuli, and for visualizing and analyzing temporal data. Sequences, sounds, and experimental trials can be generated using single lines of code. thebeat contains functions for calculating common rhythmic measures, such as interval ratios, and for producing plots, such as circular histograms. thebeat saves researchers time when creating experiments, and provides the first steps in collecting widely accepted methods for use in timing research. thebeat is an open-source, on-going, and collaborative project, and can be extended for use in specialized subfields. thebeat integrates easily with the existing Python ecosystem, allowing one to combine our tested code with custom-made scripts. The package was specifically designed to be useful for both skilled and novice programmers. thebeat provides a foundation for working with temporal sequences onto which additional functionality can be built. This combination of specificity and plasticity should facilitate research in multiple research contexts and fields of study.

Keywords

Python, Python ecosystem, Python package, bioacoustics, circular histogram, code, cognitive science, collaborative project, combination, combination of specificity, context, data, ecosystem, experimental stimuli, experimental trials, experiments, field, field of study, function, histogram, interval, interval ratio, measurements, method, novice, novice programmers, on-going, open-source, package, plasticity, plots, programme, project, ratio, research, research context, research time, rhythm, rhythmicity measure, saving researchers time, science, scripts, sequence, specialized subfields, specificity, stimuli, study, subfields, temporal data, temporal sequence, test code, time, time research, trials

Funders

  • European Research Council
  • Danish National Research Foundation
  • International Human Frontier Science Program Organization
  • European Union
  • European Commission

Data Provider: Digital Science