Minim and jack
in
Core Library Questions
•
1 year ago
Hey,
I am using minim library in a project in eclipse(java), which is creating sounds. What i wanna do is send these sounds to max msp through 'jack'
http://jackaudio.org/ where i can process the sound/add effects to the sound through the max msp. Well the problem i am having is, i can't find the output sending line or whatever,in the minim library(inside my project), like where exactly am i suppose to change it's output? So that it can go to jack, and then to max msp...I did see the minim documentation(but that i can't relate :( .. I think it might be in the following , maybe, if not lemme know.., please help immediately....
import ddf.minim.Recordable;
import ddf.minim.spi.AudioOut;
import ddf.minim.spi.AudioRecording;
import ddf.minim.spi.AudioRecordingStream;
public class JSMinim implements MinimServiceProvider
{
private boolean debug;
private PApplet app;
private Mixer inputMixer;
private Mixer outputMixer;
public JSMinim(PApplet parent)
{
debug = false;
app = parent;
inputMixer = null;
outputMixer = null;
}
public void setInputMixer(Mixer mix)
{
inputMixer = mix;
}
public Mixer getInputMixer()
{
return inputMixer;
}
public void setOutputMixer(Mixer mix)
{
outputMixer = mix;
}
public Mixer getOutputMixer()
{
return outputMixer;
}
public void start()
{
}
public void stop()
{
}
public void debugOn()
{
debug = true;
}
{
samples = loadFloatAudio(ais, (int)ais.getFrameLength() * format.getFrameSize());
long length = AudioUtils.frames2Millis(samples.getSampleCount(), format);
meta = new BasicMetaData(filename, length);
}
AudioOut out = getAudioOutput(format.getChannels(),
bufferSize,
format.getSampleRate(),
format.getSampleSizeInBits());
if (out != null)
{
SampleSignal ssig = new SampleSignal(samples);
1