Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

How to play a couple of milliseconds of an audio file?

$
0
0
Hi all,

I'm new to the minim library. I've been searching the web and this forum but I can't find an answer to my problem:
Say I have an mp3 file of a 3 minutes. I want to play random 10 milliseconds part of that file every second. How do I approach this problem? So far I've only found how to play an entire song from setup()
Do I use a buffer of is AudioSample the way to go? Eventually I want to use a lengthy track, up to 60 minutes to grab parts from and play them.

Any help would be greatly appreciated. TIA, danielle.

Viewing all articles
Browse latest Browse all 1768

Trending Articles