Convert Samples to Time 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.

Author: kreivalabs
Audio engineering | sound & media design | creative coding