@taketori7616 wrote:
For example,
Load mp3 with ofSoundPlayer.
Rather than setting float * val = ofSoundGetSpectrum (512)
Is there a way to enter microphone input to ofSoundGetSpectrum?void update(){ ofSoundUpdate(); float * val = ofSoundGetSpectrum(512); soundTex[current].begin(); ofClear(0); updateShader.begin(); updateShader.setUniform1i("ffSize", fftSize); updateShader.setUniform1fv("rawFft", val, fftSize); soundTex[1-current].draw(0,0); updateShader.end(); soundTex[current].end(); current = 1 - current;
If you have update () like this, I'd like to put the value of fft from the microphone input for "val".
Posts: 1
Participants: 1