Read more: Max/Msp patch - Loop automation
Here a free javascript function to convert audio samples lenght to time domain and viceversa. The code is inside, feel free to use it!
I have used this function in my core audio programming, and to do some tests I wrote a easy js function.
Read more: Code - JS: Samples to Time and viceversa
Read more: Installation arts - The sex machine