Hi I just picked up processing a week ago and have created a code for a project trying to simulate synesthesia (seeing sounds as color).
The general idea is there and working in Minim with a freq analyser and colorMode HSB, but the real-time playback is so fast and intense. I have looked into smooth(); and blend() but either have no effect, or won't run.
If anyone has any advice I'm sure this problem is wildely simple! Any input would be greatly appreciated.
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioInput in;
FFT fftLin;
FFT fftLog;
float height3;
float height23;
void setup()
{
frameRate(60);
size(600, 600, P3D);
height3 = height/3;
height23 = 2*height/3;
smooth();
minim = new Minim(this);
in = minim.getLineIn();
fftLin = new FFT(in.bufferSize(), in.sampleRate());
fftLin.linAverages(30);
rectMode(CORNERS);
}
void draw()
{
background(0);
// blend(i, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST); // HELP WITH BLEND OR FRAME BLEND
fftLin.forward(in.mix); // Important
stroke(255);
for(int i = 0; i < fftLin.specSize(); i++)
{
line(i, height3, i, height3 - fftLin.getBand(i)*2);