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

Re : Minim .get() never gets two times the same result when you run again the analysis

$
0
0

so you just can average that.
I disagree

Did you try to put it all in an array or ArrayLIst and save that and analyze that?

I should always look the same. (not tested)

  1. void draw()
  2. {

  3. for(int i = 0; i < song.bufferSize() - 1; i++)
  4. {
  5. arrLeft [counter] = song.left.get(i)  ;
  6. arrRight [counter] = song.right.get(i)  ;
  7. counter  ++;
  8. }

  9. }
[Edited]
because then the buffer size is not important anymore, so (analysis) time is not in the equation.
Since we add up all buffer states in one array.






Viewing all articles
Browse latest Browse all 1768

Trending Articles