We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Read sample array in minim
Page Index Toggle Pages: 1
Read sample array in minim? (Read 526 times)
Read sample array in minim?
Dec 19th, 2007, 3:52pm
 
hi.

is it possible to read all the samples of a loaded file
like it is in the krister ess libary?
and is it possible to change the array?

like this:

takt1.samples[beat*i + j] = bass.samples[j]+takt1.samples[beat*i + j];

i want to give the samples of an ess audiochannel to
empty minim channel.
is this possible?

hans.
Re: Read sample array in minim?
Reply #1 - Dec 22nd, 2007, 12:17am
 
I know (haven't done research)
you can play back edited samples

but to get the samples

attach a AudioListener, and implement the "sample" method. This will be called and you will end up getting the entire file. (g2g, sorry for the speedy post)
Page Index Toggle Pages: 1