Comparative Bioacoustics Group, Max Planck Institute for Psycholinguistics, Wundtlaan 1, Nijmegen, The Netherlands.
Department of Human Neurosciences, Sapienza University of Rome, Piazzale Aldo Moro, 5, Rome, Italy.
Behav Res Methods. 2024 Apr;56(4):3725-3736. doi: 10.3758/s13428-023-02334-8. Epub 2024 Feb 2.
thebeat 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.
thebeat 是一个用于行为和认知科学以及生物声学中处理时间序列和节奏的 Python 包。它提供了用于创建实验刺激的功能,以及用于可视化和分析时间数据的功能。使用单行代码就可以生成序列、声音和实验试验。thebeat 包含用于计算常见节奏度量的函数,例如间隔比,以及用于生成图形的函数,例如圆形直方图。thebeat 在创建实验时为研究人员节省了时间,并为时间研究中使用的广泛接受的方法提供了初步步骤。thebeat 是一个开源的、持续的、协作的项目,可以扩展用于专门的子领域。thebeat 与现有的 Python 生态系统集成得很好,允许将我们经过测试的代码与定制脚本结合使用。该包是专门为熟练和新手程序员设计的,为使用时间序列提供了一个基础,可以在此基础上构建其他功能。这种特异性和可变性的结合应该有助于在多个研究背景和研究领域进行研究。