using audio to change background color, minim

edited March 2014 in How To...

Hi!

Im new to processing and im trying to understand how to use minim to have audio creating a changing linear color gradient.

I understand the first part, how to get the audio in ... its just the next part. Getting the audio to do colors instead of a for ex line that changes. Any tips or some idea on where to start would be super! Im kind of stuck after hours of googling and trying...

thanks!


import ddf.minim.*;

Minim minim;
AudioInput in;

void setup()
{
  size(200, 200, P3D);
  colorMode(HSB, 200);

  minim = new Minim(this);


  in = minim.getLineIn();
}

void draw()


  for(int i = 0; i < in.bufferSize() - 1; i++)
  {

Answers

Sign In or Register to comment.