Audio Engineering Tools with Python

Thumbnail - Speaker Coverage

Acoustic Velocity and Loudspeaker Delay with Temperature and Python

NOTE: visit https://www.github.com/kreivalabs for the current code versions.

Use the following scripts to calculate acoustic velocity in air based on measured temperature in degrees Fahrenheit. You can also input a measured distance from one loudspeaker to another to calculate the approximate delay in milliseconds, based on the acoustic velocity calculation.

The third example script requires Future additions from http://www.python-future.org

Save the text below as a .py file to run in the Terminal of your choice

Python 2:

Python 3:

Python 3 with Future:


Samples and Time Converter with Python

NOTE: visit https://www.github.com/kreivalabs for up to date code versions.

The following will calculate elapsed time in milliseconds and seconds for a given sample rate and time (entered in seconds). It will also calculate the number of individual samples elapsed based on sample rate and time (seconds). This Python script utilizes the Future functions available for free at http://www.python-future.org.


Speaker Coverage Measurements with Python

NOTE: visit https://www.github.com/kreivalabs for up to date code versions.

Calculate the coverage pattern area of a point-source loudspeaker based on its dispersion angle and the measured distance from source to listener (or some other point).

This method uses Future functionality from http://www.python-future.org: