mirror of
https://codeberg.org/armin/justasample.git
synced 2026-09-01 04:10:48 +02:00
init
This commit is contained in:
commit
d21bc831e1
178 changed files with 24136 additions and 0 deletions
37
Patches/apply_patch_if_needed.cmake
Normal file
37
Patches/apply_patch_if_needed.cmake
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
if(NOT DEFINED REPO_DIR OR NOT DEFINED PATCH_FILE OR NOT DEFINED NAME)
|
||||
message(FATAL_ERROR "Missing variables: REPO_DIR PATCH_FILE NAME required")
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND git apply --reverse --check --ignore-whitespace -p0 "${PATCH_FILE}"
|
||||
WORKING_DIRECTORY "${REPO_DIR}"
|
||||
RESULT_VARIABLE reverse_result
|
||||
OUTPUT_QUIET ERROR_QUIET
|
||||
)
|
||||
|
||||
if(reverse_result EQUAL 0)
|
||||
message(STATUS "${NAME}: patch already applied")
|
||||
return()
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND git apply --check --ignore-whitespace -p0 "${PATCH_FILE}"
|
||||
WORKING_DIRECTORY "${REPO_DIR}"
|
||||
RESULT_VARIABLE forward_result
|
||||
OUTPUT_QUIET ERROR_QUIET
|
||||
)
|
||||
|
||||
if(forward_result EQUAL 0)
|
||||
message(STATUS "${NAME}: applying patch")
|
||||
execute_process(
|
||||
COMMAND git apply --ignore-whitespace -p0 "${PATCH_FILE}"
|
||||
WORKING_DIRECTORY "${REPO_DIR}"
|
||||
RESULT_VARIABLE apply_result
|
||||
)
|
||||
|
||||
if(NOT apply_result EQUAL 0)
|
||||
message(FATAL_ERROR "${NAME}: patch failed while applying")
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "${NAME}: patch cannot be applied (source differs)")
|
||||
endif()
|
||||
18
Patches/bungee_lower_cmake_and_set_num_octaves.patch
Normal file
18
Patches/bungee_lower_cmake_and_set_num_octaves.patch
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
--- CMakeLists.txt
|
||||
+++ CMakeLists.txt
|
||||
@@ -11,2 +11,2 @@
|
||||
-cmake_minimum_required(VERSION 3.30...3.31)
|
||||
+cmake_minimum_required(VERSION 3.22...3.31)
|
||||
include(CheckCXXCompilerFlag)
|
||||
|
||||
--- src/Timing.cpp
|
||||
+++ src/Timing.cpp
|
||||
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
namespace {
|
||||
-static constexpr auto maxPitchOctaves = 2;
|
||||
+static constexpr auto maxPitchOctaves = BUNGEE_MAX_OCTAVES;
|
||||
}
|
||||
|
||||
int Timing::maxInputFrameCount(bool mayDownsampleInput) const
|
||||
98
Patches/leaf_more_selective_imports.patch
Normal file
98
Patches/leaf_more_selective_imports.patch
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
--- leaf/leaf-config.h
|
||||
+++ leaf/leaf-config.h
|
||||
@@ -19,7 +19,7 @@
|
||||
//==============================================================================
|
||||
|
||||
//! Include FIR tables required to use tOversampler and tWaveTableS which uses tOversampler.
|
||||
-#define LEAF_INCLUDE_OVERSAMPLER_TABLES 1
|
||||
+#define LEAF_INCLUDE_OVERSAMPLER_TABLES 0
|
||||
|
||||
// Unused
|
||||
#define LEAF_INCLUDE_SHAPER_TABLE 0
|
||||
@@ -28,7 +28,7 @@
|
||||
#define LEAF_INCLUDE_MTOF_TABLE 0
|
||||
|
||||
//! Include table required to use tEfficientSVF.
|
||||
-#define LEAF_INCLUDE_FILTERTAN_TABLE 1
|
||||
+#define LEAF_INCLUDE_FILTERTAN_TABLE 0
|
||||
|
||||
// Unused
|
||||
#define LEAF_INCLUDE_TANH_TABLE 0
|
||||
@@ -37,22 +37,22 @@
|
||||
#define LEAF_INCLUDE_ADC_TABLE 0
|
||||
|
||||
//! Include tables required to use tEnvelope and tADSR (but not tADSRT and tADSRS).
|
||||
-#define LEAF_INCLUDE_ADSR_TABLES 1
|
||||
+#define LEAF_INCLUDE_ADSR_TABLES 0
|
||||
|
||||
//! Include wave table required to use tCycle.
|
||||
-#define LEAF_INCLUDE_SINE_TABLE 1
|
||||
+#define LEAF_INCLUDE_SINE_TABLE 0
|
||||
|
||||
//! Include wave table required to use tTriangle.
|
||||
-#define LEAF_INCLUDE_TRIANGLE_TABLE 1
|
||||
+#define LEAF_INCLUDE_TRIANGLE_TABLE 0
|
||||
|
||||
//! Include wave table required to use tSquare.
|
||||
-#define LEAF_INCLUDE_SQUARE_TABLE 1
|
||||
+#define LEAF_INCLUDE_SQUARE_TABLE 0
|
||||
|
||||
//! Include wave table required to use tSawtooth.
|
||||
-#define LEAF_INCLUDE_SAWTOOTH_TABLE 1
|
||||
+#define LEAF_INCLUDE_SAWTOOTH_TABLE 0
|
||||
|
||||
//! Include tables for minblep insertion, required for all tMB objects.
|
||||
-#define LEAF_INCLUDE_MINBLEP_TABLES 1
|
||||
+#define LEAF_INCLUDE_MINBLEP_TABLES 0
|
||||
|
||||
#define LEAF_NO_DENORMAL_CHECK 0
|
||||
|
||||
--- leaf/leaf.h
|
||||
+++ leaf/leaf.h
|
||||
@@ -34,46 +34,12 @@
|
||||
#if _WIN32 || _WIN64
|
||||
|
||||
#include ".\Inc\leaf-global.h"
|
||||
#include ".\Inc\leaf-math.h"
|
||||
-#include ".\Inc\leaf-mempool.h"
|
||||
-#include ".\Inc\leaf-tables.h"
|
||||
-#include ".\Inc\leaf-distortion.h"
|
||||
-#include ".\Inc\leaf-oscillators.h"
|
||||
-#include ".\Inc\leaf-filters.h"
|
||||
-#include ".\Inc\leaf-delay.h"
|
||||
-#include ".\Inc\leaf-reverb.h"
|
||||
-#include ".\Inc\leaf-effects.h"
|
||||
-#include ".\Inc\leaf-envelopes.h"
|
||||
-#include ".\Inc\leaf-dynamics.h"
|
||||
-#include ".\Inc\leaf-analysis.h"
|
||||
-#include ".\Inc\leaf-instruments.h"
|
||||
-#include ".\Inc\leaf-midi.h"
|
||||
-#include ".\Inc\leaf-sampling.h"
|
||||
-#include ".\Inc\leaf-physical.h"
|
||||
-#include ".\Inc\leaf-electrical.h"
|
||||
-#include ".\Inc\leaf-vocal.h"
|
||||
|
||||
#else
|
||||
|
||||
#include "./Inc/leaf-global.h"
|
||||
#include "./Inc/leaf-math.h"
|
||||
-#include "./Inc/leaf-mempool.h"
|
||||
-#include "./Inc/leaf-tables.h"
|
||||
-#include "./Inc/leaf-distortion.h"
|
||||
-#include "./Inc/leaf-dynamics.h"
|
||||
-#include "./Inc/leaf-oscillators.h"
|
||||
-#include "./Inc/leaf-filters.h"
|
||||
-#include "./Inc/leaf-delay.h"
|
||||
-#include "./Inc/leaf-reverb.h"
|
||||
-#include "./Inc/leaf-effects.h"
|
||||
-#include "./Inc/leaf-envelopes.h"
|
||||
-#include "./Inc/leaf-analysis.h"
|
||||
-#include "./Inc/leaf-instruments.h"
|
||||
-#include "./Inc/leaf-midi.h"
|
||||
-#include "./Inc/leaf-sampling.h"
|
||||
-#include "./Inc/leaf-physical.h"
|
||||
-#include "./Inc/leaf-electrical.h"
|
||||
-#include "./Inc/leaf-vocal.h"
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue