-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: falkTX <[email protected]>
- Loading branch information
Showing
16 changed files
with
465 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/Makefile b/Makefile | ||
index 05988f0..d5273a4 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -57,7 +57,7 @@ install: build | ||
install -d $(DESTDIR)$(PREFIX)/lib/lv2/bolliedelay.lv2 | ||
install -d $(DESTDIR)$(PREFIX)/lib/lv2/bolliedelay.lv2/modgui | ||
|
||
- install -m 644 $(BUILDDIR)/*.so $(DESTDIR)$(PREFIX)/lib/lv2/bolliedelay.lv2/ | ||
+ install -m 644 $(BUILDDIR)/*$(LIB_EXT) $(DESTDIR)$(PREFIX)/lib/lv2/bolliedelay.lv2/ | ||
install -m 644 $(BUILDDIR)/*.ttl $(DESTDIR)$(PREFIX)/lib/lv2/bolliedelay.lv2/ | ||
cp -rv $(BUILDDIR)/modgui/* $(DESTDIR)$(PREFIX)/lib/lv2/bolliedelay.lv2/modgui/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
diff --git a/basics.h b/basics.h | ||
index 7b1d10d..e954952 100644 | ||
--- a/basics.h | ||
+++ b/basics.h | ||
@@ -38,6 +38,7 @@ | ||
#define _ISOC99_SOURCE 1 | ||
#define _ISOC9X_SOURCE 1 | ||
|
||
+#include <stdint.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
@@ -49,14 +50,14 @@ | ||
|
||
#include "ladspa.h" | ||
|
||
-typedef __int8_t int8; | ||
-typedef __uint8_t uint8; | ||
-typedef __int16_t int16; | ||
-typedef __uint16_t uint16; | ||
-typedef __int32_t int32; | ||
-typedef __uint32_t uint32; | ||
-typedef __int64_t int64; | ||
-typedef __uint64_t uint64; | ||
+typedef int8_t int8; | ||
+typedef uint8_t uint8; | ||
+typedef int16_t int16; | ||
+typedef uint16_t uint16; | ||
+typedef int32_t int32; | ||
+typedef uint32_t uint32; | ||
+typedef int64_t int64; | ||
+typedef uint64_t uint64; | ||
|
||
#define MIN_GAIN 1e-6 /* -120 dB */ | ||
/* smallest non-denormal 32 bit IEEE float is 1.18e-38 */ | ||
@@ -124,7 +125,11 @@ T clamp (T value, T lower, T upper) | ||
return value; | ||
} | ||
|
||
+#ifdef _WIN32 | ||
+static inline float frandom() { return (float) rand() / (float) RAND_MAX; } | ||
+#else | ||
static inline float frandom() { return (float) random() / (float) RAND_MAX; } | ||
+#endif | ||
|
||
/* NB: also true if 0 */ | ||
inline bool | ||
diff --git a/dsp/util.h b/dsp/util.h | ||
index 50c6cb6..73cf527 100644 | ||
--- a/dsp/util.h | ||
+++ b/dsp/util.h | ||
@@ -28,6 +28,8 @@ | ||
#ifndef DSP_UTIL_H | ||
#define DSP_UTIL_H | ||
|
||
+#include <stdint.h> | ||
+ | ||
namespace DSP { | ||
|
||
inline float pow2 (float x) { return x * x; } | ||
diff --git a/dsp/v4f_IIR2.h b/dsp/v4f_IIR2.h | ||
index ebd1234..fd7d96b 100644 | ||
--- a/dsp/v4f_IIR2.h | ||
+++ b/dsp/v4f_IIR2.h | ||
@@ -32,8 +32,10 @@ | ||
|
||
namespace DSP { | ||
|
||
-#ifdef __APPLE__ | ||
+#if defined(__APPLE__) | ||
inline float exp10f(float f) {return __exp10f(f);} | ||
+#elif defined(_WIN32) | ||
+inline float exp10f(float f) {return __builtin_exp10f(f);} | ||
#endif | ||
|
||
class RBJv4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/plugin/library/common.c b/plugin/library/common.c | ||
index ca00815..310ee9e 100644 | ||
--- a/plugin/library/common.c | ||
+++ b/plugin/library/common.c | ||
@@ -176,7 +176,11 @@ calculateSingleIReverbER(struct ERunit * er, float Width, float Length, float He | ||
ERRelGainR = (ERRelGain * (1 + (ERAngle/PI_ON_2)))/2; | ||
|
||
er->Active=1; | ||
+#ifdef _WIN32 | ||
+ er->rand=(double)rand()/RAND_MAX; | ||
+#else | ||
er->rand=drand48(); | ||
+#endif | ||
er->DelayActual=ERRelDelayActual; | ||
er->Reflections=Reflections; | ||
er->AbsGain=fabs(ERRelGain); | ||
@@ -227,7 +231,11 @@ calculateIReverbER(struct ERunit *erarray, int erMax, | ||
MaxGain=0.000000000001; /* this is used to scale up the reflections so that the loudest one has a gain of 1 (0db) */ | ||
|
||
/* seed the random sequence*/ | ||
+#ifdef _WIN32 | ||
+ srand(31415); | ||
+#else | ||
srand48(314159265); | ||
+#endif | ||
|
||
// reflections from the left wall | ||
// 0: S->Left->D |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff --git a/src/lfo2_freq.cpp b/src/lfo2_freq.cpp | ||
index 7111507..fb39bc9 100644 | ||
--- a/src/lfo2_freq.cpp | ||
+++ b/src/lfo2_freq.cpp | ||
@@ -1,5 +1,6 @@ | ||
#include <lvtk-1/lvtk/plugin.hpp> | ||
#include <iostream> | ||
+#include <ctime> | ||
|
||
#include "lfo2_freq.hpp" | ||
#include "lfo2_freq_ttl.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
plugins/package/mod-audio-mixers/01_fix-win-mac-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/Makefile b/Makefile | ||
index 715cc27..4afe655 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -28,7 +28,7 @@ plugins: | ||
$(MAKE) all -C plugins/$(MIXER_MONO) | ||
$(MAKE) all -C plugins/$(MIXER_STEREO) | ||
|
||
-ifneq ($(CROSS_COMPILING),true) | ||
+ifneq ($(CROSS_COMPILING_DONT_CARE),true) | ||
gen: plugins dpf/utils/lv2_ttl_generator | ||
#@$(CURDIR)/dpf/utils/generate-ttl.sh | ||
cp plugins/$(MIXER_MONO)/lv2-data/* bin/$(MIXER_MONO).lv2/ | ||
@@ -48,9 +48,9 @@ install: | ||
install -d $(DESTDIR)$(libdir)/lv2/$(MIXER_MONO).lv2 | ||
install -d $(DESTDIR)$(libdir)/lv2/$(MIXER_STEREO).lv2 | ||
|
||
- install -m 644 bin/$(MIXER_MONO).lv2/*.so $(DESTDIR)$(libdir)/lv2/$(MIXER_MONO).lv2/ | ||
+ install -m 644 bin/$(MIXER_MONO).lv2/*$(LIB_EXT) $(DESTDIR)$(libdir)/lv2/$(MIXER_MONO).lv2/ | ||
install -m 644 bin/$(MIXER_MONO).lv2/*.ttl $(DESTDIR)$(libdir)/lv2/$(MIXER_MONO).lv2/ | ||
- install -m 644 bin/$(MIXER_STEREO).lv2/*.so $(DESTDIR)$(libdir)/lv2/$(MIXER_STEREO).lv2/ | ||
+ install -m 644 bin/$(MIXER_STEREO).lv2/*$(LIB_EXT) $(DESTDIR)$(libdir)/lv2/$(MIXER_STEREO).lv2/ | ||
install -m 644 bin/$(MIXER_STEREO).lv2/*.ttl $(DESTDIR)$(libdir)/lv2/$(MIXER_STEREO).lv2/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 157 additions & 0 deletions
157
plugins/package/mod-pitchshifter/01_fix-win32-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
diff --git a/2Voices/src/2Voices.cpp b/2Voices/src/2Voices.cpp | ||
index e466cac..647e379 100644 | ||
--- a/2Voices/src/2Voices.cpp | ||
+++ b/2Voices/src/2Voices.cpp | ||
@@ -3,6 +3,8 @@ | ||
#include "PitchShifterClasses.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/2Voices" | ||
@@ -203,4 +205,4 @@ void TwoVoices::cleanup(LV2_Handle instance) | ||
const void* TwoVoices::extension_data(const char* uri) | ||
{ | ||
return NULL; | ||
-} | ||
\ No newline at end of file | ||
+} | ||
diff --git a/Capo/src/Capo.cpp b/Capo/src/Capo.cpp | ||
index 8116cc6..9cd8b2f 100644 | ||
--- a/Capo/src/Capo.cpp | ||
+++ b/Capo/src/Capo.cpp | ||
@@ -3,6 +3,9 @@ | ||
#include "PitchShifterClasses.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+#undef OUT | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/Capo" | ||
@@ -184,4 +187,4 @@ void Capo::cleanup(LV2_Handle instance) | ||
const void* Capo::extension_data(const char* uri) | ||
{ | ||
return NULL; | ||
-} | ||
\ No newline at end of file | ||
+} | ||
diff --git a/Drop/src/Drop.cpp b/Drop/src/Drop.cpp | ||
index a8dbb7c..352287a 100644 | ||
--- a/Drop/src/Drop.cpp | ||
+++ b/Drop/src/Drop.cpp | ||
@@ -3,6 +3,9 @@ | ||
#include "PitchShifterClasses.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+#undef OUT | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/Drop" | ||
@@ -185,4 +188,4 @@ void Drop::cleanup(LV2_Handle instance) | ||
const void* Drop::extension_data(const char* uri) | ||
{ | ||
return NULL; | ||
-} | ||
\ No newline at end of file | ||
+} | ||
diff --git a/Harmonizer/src/Harmonizer.cpp b/Harmonizer/src/Harmonizer.cpp | ||
index 8cbf270..f346ed6 100644 | ||
--- a/Harmonizer/src/Harmonizer.cpp | ||
+++ b/Harmonizer/src/Harmonizer.cpp | ||
@@ -5,6 +5,8 @@ | ||
#include "HarmonizerLib.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/Harmonizer" | ||
@@ -210,4 +212,4 @@ void Harmonizer::cleanup(LV2_Handle instance) | ||
const void* Harmonizer::extension_data(const char* uri) | ||
{ | ||
return NULL; | ||
-} | ||
\ No newline at end of file | ||
+} | ||
diff --git a/Harmonizer2/src/Harmonizer2.cpp b/Harmonizer2/src/Harmonizer2.cpp | ||
index 7ac19db..e990daf 100644 | ||
--- a/Harmonizer2/src/Harmonizer2.cpp | ||
+++ b/Harmonizer2/src/Harmonizer2.cpp | ||
@@ -5,6 +5,8 @@ | ||
#include "HarmonizerLib.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/Harmonizer2" | ||
@@ -227,4 +229,4 @@ void Harmonizer2::cleanup(LV2_Handle instance) | ||
const void* Harmonizer2::extension_data(const char* uri) | ||
{ | ||
return NULL; | ||
-} | ||
\ No newline at end of file | ||
+} | ||
diff --git a/HarmonizerCS/src/HarmonizerCS.cpp b/HarmonizerCS/src/HarmonizerCS.cpp | ||
index 4799142..a384c1a 100644 | ||
--- a/HarmonizerCS/src/HarmonizerCS.cpp | ||
+++ b/HarmonizerCS/src/HarmonizerCS.cpp | ||
@@ -5,6 +5,8 @@ | ||
#include "HarmonizerLib.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/HarmonizerCS" | ||
@@ -219,4 +221,4 @@ void HarmonizerCS::cleanup(LV2_Handle instance) | ||
const void* HarmonizerCS::extension_data(const char* uri) | ||
{ | ||
return NULL; | ||
-} | ||
\ No newline at end of file | ||
+} | ||
diff --git a/SuperCapo/src/SuperCapo.cpp b/SuperCapo/src/SuperCapo.cpp | ||
index 9482ab0..1f0f4d6 100644 | ||
--- a/SuperCapo/src/SuperCapo.cpp | ||
+++ b/SuperCapo/src/SuperCapo.cpp | ||
@@ -3,6 +3,9 @@ | ||
#include "PitchShifterClasses.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+#undef OUT | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/SuperCapo" | ||
diff --git a/SuperWhammy/src/SuperWhammy.cpp b/SuperWhammy/src/SuperWhammy.cpp | ||
index 6ad9cb4..021fcf3 100644 | ||
--- a/SuperWhammy/src/SuperWhammy.cpp | ||
+++ b/SuperWhammy/src/SuperWhammy.cpp | ||
@@ -3,6 +3,9 @@ | ||
#include "PitchShifterClasses.h" | ||
#include "GainClass.h" | ||
|
||
+#undef IN | ||
+#undef OUT | ||
+ | ||
/**********************************************************************************************************************************************************/ | ||
|
||
#define PLUGIN_URI "http://moddevices.com/plugins/mod-devel/SuperWhammy" | ||
@@ -201,4 +204,4 @@ void SuperWhammy::cleanup(LV2_Handle instance) | ||
const void* SuperWhammy::extension_data(const char* uri) | ||
{ | ||
return NULL; | ||
-} | ||
\ No newline at end of file | ||
+} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/screcord/Makefile b/screcord/Makefile | ||
index 959ccbf..d3b2f6d 100644 | ||
--- a/screcord/Makefile | ||
+++ b/screcord/Makefile | ||
@@ -63,7 +63,10 @@ | ||
# set compile flags | ||
CXXFLAGS += -I. -I./dsp -fPIC -DPIC -O2 -Wall -funroll-loops `pkg-config --cflags sndfile`\ | ||
-ffast-math -fomit-frame-pointer -fstrength-reduce -fdata-sections -Wl,--gc-sections $(SSE_CFLAGS) | ||
- LDFLAGS += -I. -lm -pthread -shared -Llibrary -lc -lm -lrt -fPIC -DPIC `pkg-config --libs sndfile` | ||
+ LDFLAGS += -I. -lm -pthread -shared -Llibrary -lm -fPIC -DPIC `pkg-config --libs sndfile` | ||
+ifneq ($(MACOS)$(WINDOWS),true) | ||
+ LDFLAGS += -lrt | ||
+endif | ||
GUI_LDFLAGS += -I. -I$(HEADER_DIR) \ | ||
-L. $(LIB_DIR)libxputty.a -shared `pkg-config --static --cflags --libs cairo x11` -lm | ||
# invoke build files | ||
diff --git a/screcord/screcord1.cc b/screcord/screcord1.cc | ||
index 19894da..2ac4a5c 100644 | ||
--- a/screcord/screcord1.cc | ||
+++ b/screcord/screcord1.cc | ||
@@ -146,7 +146,11 @@ inline std::string SCapture::get_ffilename() { | ||
#endif | ||
is_wav = int(*fformat) ? false : true; | ||
if (!(stat(pPath.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode))) { | ||
+#ifdef _WIN32 | ||
+ mkdir(pPath.c_str()); | ||
+#else | ||
mkdir(pPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); | ||
+#endif | ||
} | ||
|
||
#ifndef __MOD_DEVICES__ |
Oops, something went wrong.