Skip to content

Instantly share code, notes, and snippets.

JP Cimalando jpcima

Block or report user

Report or block jpcima

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SmallStone.dsp
declare name "StonePhaser";
declare author "JPC";
declare version "1.1";
declare license "CC0-1.0";
// Référence :
// Kiiski, R., Esqueda, F., & Välimäki, V. (2016).
// Time-variant gray-box modeling of a phaser pedal.
// In 19th International Conference on Digital Audio Effects (DAFx-16).
View chirp.dsp
// chirp synthesizer with all-pass filter chain
import("stdfaust.lib");
allpass1(f) = fi.iir((a,1.),(a)) with {
a = -1.+2.*ma.PI*f/ma.SR;
};
process = os.lf_imptrain(oscf) : seq(i,64,allpass1(apf)) with {
oscf = 1.0/30e-3;
View Phase100.dsp
declare name "Phase100";
declare author "JPC";
declare version "1.0";
declare license "CC0-1.0";
// Modélisation de la Fame Sweet TonePhaser PH-10 (un clone de la MXR Phase 100)
// Référence :
// Kiiski, R., Esqueda, F., & Välimäki, V. (2016).
// Time-variant gray-box modeling of a phaser pedal.
View transfer.cc
#include "bbd_filter.cc"
#include <cstdio>
int main()
{
double fmin = 0.0;
double fmax = 100000.0;
unsigned samples = 8192;
const BBD_Filter_Spec &spec = bbd_fin_j60;
View quadrafuzz.dsp
// A port of Quadrafuzz effect from Pizzicato
// https://alemangui.github.io/pizzicato/#quadrafuzz
import("stdfaust.lib");
msp = library("maxmsp.lib");
quadrafuzz(x) = dry_gain * x + low_band(x) + mid1_band(x) + mid2_band(x) + hi_band(x)
with {
dry_gain = hslider("[1]Dry gain", 0, 0, 1, 0.01) : si.smoo;
wet_gain = hslider("[2]Wet gain", 1, 0, 1, 0.01) : si.smoo;
View load-dssi.cc
/*
Usage: load-dssi /usr/lib/dssi/libzynaddsubfx_dssi.so
Build (without pthread):
g++ -O2 -g -o load-dssi load-dssi.cc -ldl
Build (with pthread):
g++ -O2 -g -o load-dssi load-dssi.cc -ldl -pthread
*/
View gist:96e1b2fed2fc420ce92ed9e46c395f0a
############
# freeadsp #
############
0.6.0
-----
Rewritten from scratch.
###########
# lv2proc #
View DF.diff
diff --git a/common/Spectrogram.cpp b/common/Spectrogram.cpp
index a4a663a..92ac259 100644
--- a/common/Spectrogram.cpp
+++ b/common/Spectrogram.cpp
@@ -172,7 +172,7 @@ void Spectrogram::onDisplay() {
fNanoText->fontSize ( 16 );
fNanoText->textAlign ( NanoVG::ALIGN_RIGHT | NanoVG::ALIGN_MIDDLE );
- for ( int i = 0 ; i < 6 ; i++ ) {
+ for ( int i = 0 ; i < 5 ; i++ ) {
View dssi-sample-rate.diff
diff -ru naspro-bridges-0.5.1.orig/dssi/plugin.c naspro-bridges-0.5.1/dssi/plugin.c
--- naspro-bridges-0.5.1.orig/dssi/plugin.c 2014-02-06 00:24:32.000000000 +0100
+++ naspro-bridges-0.5.1/dssi/plugin.c 2019-05-29 21:14:27.972507091 +0200
@@ -245,7 +245,7 @@
/* Let's try to steal MIDI programs as presets... */
instance = desc->LADSPA_Plugin->instantiate(desc->LADSPA_Plugin,
- 480000);
+ 48000);
if (instance == NULL)
View load-amsynth-dssi.cc
#include <dssi.h>
#include <dlfcn.h>
#include <stdio.h>
int main()
{
void *dlh = dlopen("/usr/lib/dssi/amsynth_dssi.so", RTLD_LAZY);
if (!dlh)
return 1;
You can’t perform that action at this time.