-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing SoundFile into amp.input() gives error #67
Comments
@aaruel |
I am experiencing the same error. I tried running the example code for sound visualization from the tutorials website. Running the Processing3 standalone app on OSX. |
same problem here...aiff files work but mp3 files don't work! did anyone solve the problem??? |
The same here, using the FFTSpectrum example sketch (Sound library) and any .mp3, .aiff and .wav file generated in my computer (from Adobe Audition or Ableton live). It works perfectly using the sample audio file beat.aiff, though. |
Each FFT object seems to be prepared to accept only a mono audio input stream. If you open the sample audio file To do a temporary work around until more stereo support is added, you can do: import processing.sound.*;
int bands = 512;
int numChannels = 2;
SoundFile sample;
FFT[] fft = new FFT[numChannels];
AudioIn [] channels = new AudioIn[numChannels];
void setup(){
for(int ch=0; ch<numChannels;ch++){
channels[ch] = new AudioIn(this, ch);
channels[ch].start();
fft[ch] = new FFT(this, bands);
fft[ch].input(channels[ch]);
}
sample.play();
} For this to work, you will have to:
|
Well, this answers a few questions... Too bad JACK doesn't work on El Capitan. Hope this gets fixed soon! |
@softpunch |
For example, given this code
the following error displays in the console
ERROR: /synth/map/input: Audio input index 0 out of range for synth 2
and the audio only plays through the right channel.
If I do it through AudioIn the output is fine, but this is giving me problems.
The text was updated successfully, but these errors were encountered: