Skip to content

Instantly share code, notes, and snippets.

View jpcima's full-sized avatar

JP Cimalando jpcima

View GitHub Profile
diff --git a/Makefile.single b/Makefile.single
index 8cee805..4f95ae4 100644
--- a/Makefile.single
+++ b/Makefile.single
@@ -10,7 +10,7 @@ ifdef DEBUG
OPTS = -g -DDEBUG
else
# OPTS = -O2 -Wall -fPIC -DPIC
-OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC -fdata-sections -ffunction-sections
+OPTS = -O3 -funroll-loops -Wall -fPIC -DPIC -fdata-sections -ffunction-sections
--- gcc-4.9.4.orig/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc 2013-12-19 13:54:11.000000000 +0100
+++ gcc-4.9.4/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc 2018-09-16 15:23:46.141733145 +0200
@@ -81,7 +81,6 @@
#include <sys/statvfs.h>
#include <sys/timex.h>
#include <sys/user.h>
-#include <sys/ustat.h>
#include <linux/cyclades.h>
#include <linux/if_eql.h>
#include <linux/if_plip.h>
diff --git a/AudioFileSet.cpp b/AudioFileSet.cpp
index efa93c9..b08ca4e 100644
--- a/AudioFileSet.cpp
+++ b/AudioFileSet.cpp
@@ -29,6 +29,8 @@
#include "AudioFileSet.h"
+extern unsigned int samp_rate;
+
diff --git a/AudioFileSet.cpp b/AudioFileSet.cpp
index efa93c9..d18d748 100644
--- a/AudioFileSet.cpp
+++ b/AudioFileSet.cpp
@@ -28,6 +28,10 @@
//
#include "AudioFileSet.h"
+#include <soxr.h>
+#include <math.h>
-- The CXX compiler identification is GNU 7.3.0
-- The C compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /root/.nix-profile/bin/c++
-- Check for working CXX compiler: /root/.nix-profile/bin/c++ -- broken
CMake Error at /nix/store/8jvmf9idk3zhfr9amwif4ggr5nrwnykp-cmake-3.12.1/share/cmake-3.12/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"/root/.nix-profile/bin/c++"
is not able to compile a simple test program.
#N canvas 628 129 410 371 10;
#X declare -lib iemlib;
#N canvas 111 405 531 389 subpatch 0;
#X obj 16 261 bpd-lampe~;
#X obj 172 261 bpd-lampe~;
#X obj 17 134 *~;
#X obj 172 134 *~;
#X obj 16 357 outlet~;
#X obj 172 357 outlet~;
#X obj 32 92 inlet~;
@jpcima
jpcima / dksimulator_fir.diff
Created December 21, 2018 22:34
Correctif DK simulator de Guitarix : filtre FIR
diff --git a/trunk/tools/ampsim/DK/dk_templates.py b/trunk/tools/ampsim/DK/dk_templates.py
index 36f7e645..b721ec20 100644
--- a/trunk/tools/ampsim/DK/dk_templates.py
+++ b/trunk/tools/ampsim/DK/dk_templates.py
@@ -1076,7 +1076,7 @@ declare description "@plugindef.description";
import("stdfaust.lib");
-process = pre : fi.iir((@b_list),(@a_list)) with {
+process = pre : %if (@a_list) fi.iir((@b_list),(@a_list)) %else fi.fir((@b_list)) %end with {
@jpcima
jpcima / ADLplug.ttl
Created December 24, 2018 10:44
LV2 manifest with parameters
@prefix atom: <http://lv2plug.in/ns/ext/atom#> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .
@prefix patch: <http://lv2plug.in/ns/ext/patch#> .
@prefix propex: <https://github.com/jpcima/ADLplug#Control-> .
@prefix atom: <http://lv2plug.in/ns/ext/atom#> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .
<https://github.com/jpcima/ADLplug>
a lv2:InstrumentPlugin, lv2:Plugin ;
=================================================================
==20954==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60600033f318 at pc 0x562fdb0c5cfa bp 0x7ffcbaedf630 sp 0x7ffcbaedf620
READ of size 8 at 0x60600033f318 thread T0
entree grain::setpitch, pitch =0
entree grain::setpitch, queuedPitch =1
entree grain::setpitch, pitch =0
entree grain::setpitch, queuedPitch =1
entree grain::setpitch, pitch =0
entree grain::setpitch, queuedPitch =1
entree grain::setpitch, pitch =0