Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

sound file: get frame at i

$
0
0

As far as I know, you cannot interact with an entire sound file at once. You have to rely on processing's streaming buffers for some strange reason.

You can get the number of samples in a .wav, but what do you have to do to get just one darn sample.

Example...

I should be able to call mySoundFile.getFrameAt(1294) Why can't I access the buffer with basic sound libraries? I don't think Processing's library (https://processing.org/reference/libraries/sound/SoundFile.html) supports this. Nor does Minim, afaik.

I just want to, for example, make a drawing, noLoop(), of an entire sound file. But as simple as this sounds, it doesn't seem like the solution is of equal simplicity.

Am I missing something?


Viewing all articles
Browse latest Browse all 2896

Trending Articles