mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 10:51:07 +01:00
added library folder + changed win build file for jnilib
This commit is contained in:
3
java/libraries/sound/src/cpp/.gitignore
vendored
Normal file
3
java/libraries/sound/src/cpp/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.DS_Store
|
||||
*.o
|
||||
*.jnilib
|
||||
@@ -1,11 +1,11 @@
|
||||
all:
|
||||
|
||||
g++ -Ic:/Java/jdk1.7.0_60/include -Ic:/Java/jdk1.7.0_60/include/win32 -I./include -std=c++11 -g -c processing_sound_MethClaInterface.cpp;
|
||||
g++ -dynamiclib -lmethcla -L../../library/macosx/ -o libMethClaInterface.jnilib *.o;
|
||||
g++ -Ic:/Java/jdk1.8.0_11/include -Ic:/Java/jdk1.8.0_11/include/win32 -I./include -std=c++11 -g -c processing_sound_MethClaInterface.cpp;
|
||||
g++ -dynamiclib -lmethcla -L../../library/windows32/ -o libMethClaInterface.dll *.o;
|
||||
|
||||
clean:
|
||||
rm *.o
|
||||
rm *.jnilib
|
||||
rm *.dll
|
||||
|
||||
install:
|
||||
cp libMethClaInterface.jnilib ../../lib/macosx
|
||||
cp libMethClaInterface.dll ../../lib/windows32
|
||||
|
||||
@@ -562,7 +562,7 @@ JNIEXPORT jintArray JNICALL Java_processing_sound_MethClaInterface_soundFilePlay
|
||||
{ amp, rate },
|
||||
{ Methcla::Value(str),
|
||||
Methcla::Value(loop),
|
||||
Methcla::Value(cue) }
|
||||
Methcla::Value(int(cue)) }
|
||||
);
|
||||
|
||||
auto pan = request.synth(
|
||||
@@ -627,7 +627,7 @@ JNIEXPORT jintArray JNICALL Java_processing_sound_MethClaInterface_soundFilePlay
|
||||
{ amp, rate },
|
||||
{ Methcla::Value(str),
|
||||
Methcla::Value(loop),
|
||||
Methcla::Value(cue) }
|
||||
Methcla::Value(int(cue)) }
|
||||
);
|
||||
|
||||
auto after = request.synth(
|
||||
@@ -1228,7 +1228,7 @@ JNIEXPORT jlong JNICALL Java_processing_sound_MethClaInterface_fft(JNIEnv *env,
|
||||
METHCLA_PLUGINS_FFT_URI,
|
||||
Methcla::NodePlacement::after(m_nodeId[0]),
|
||||
{},
|
||||
{Methcla::Value(fftSize)}
|
||||
{Methcla::Value(int(fftSize))}
|
||||
);
|
||||
|
||||
request.mapOutput(m_nodeId[0], 0, in_bus);
|
||||
|
||||
@@ -217,6 +217,12 @@ public class Engine {
|
||||
methCla.reverbSet(room, damp, wet, nodeId);
|
||||
};
|
||||
|
||||
// Mix
|
||||
|
||||
public static int[] mixPlay(int[] input, float[] amp){
|
||||
return methCla.mixPlay(input, amp);
|
||||
};
|
||||
|
||||
// Amplitude Follower
|
||||
|
||||
public static long amplitude(int[] nodeId){
|
||||
|
||||
Reference in New Issue
Block a user