Skip to content

Instantly share code, notes, and snippets.

View jpcima's full-sized avatar

JP Cimalando jpcima

View GitHub Profile
@jpcima
jpcima / load-dssi.cc
Created June 24, 2019 13:44
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
*/
@jpcima
jpcima / quadrafuzz.dsp
Last active July 1, 2019 07:38
Quadrafuzz
// 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;
#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;
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.
// 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;
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).
diff --git a/src/chips/vgm_file_dumper.cpp b/src/chips/vgm_file_dumper.cpp
index 8f052b4..79587c6 100644
--- a/src/chips/vgm_file_dumper.cpp
+++ b/src/chips/vgm_file_dumper.cpp
@@ -52,7 +52,7 @@ VGMFileDumper::VGMFileDumper(OPNFamily f)
std::memset(&m_vgm_head, 0, sizeof(VgmHead));
std::memcpy(m_vgm_head.magic, "Vgm ", 4);
m_vgm_head.version = 0x00000150;
- std::fseek(m_output, 0x40, SEEK_SET);
+ std::fseek(m_output, 0x38, SEEK_SET);
diff --git a/vstgui/lib/platform/common/genericoptionmenu.cpp b/vstgui/lib/platform/common/genericoptionmenu.cpp
index 58fe6a89..d4408813 100644
--- a/vstgui/lib/platform/common/genericoptionmenu.cpp
+++ b/vstgui/lib/platform/common/genericoptionmenu.cpp
@@ -16,6 +16,15 @@
#include "../../controls/coptionmenu.h"
#include "../../controls/cscrollbar.h"
+/// Surge ///
+#ifndef VSTGUI_OPTION_MENU_NEVER_ANIMATE
diff --git a/src/lv2/SurgeLv2Export.cpp b/src/lv2/SurgeLv2Export.cpp
index c2b03b7..3f46a6b 100644
--- a/src/lv2/SurgeLv2Export.cpp
+++ b/src/lv2/SurgeLv2Export.cpp
@@ -99,7 +99,7 @@ void lv2_generate_ttl(const char* baseName)
" lv2:index " << portIndex << " ;\n"
" lv2:symbol \"" << pSymbol << "\" ;\n"
" lv2:name \"" << pName << "\" ;\n"
- " lv2:default " << pMeta.fdefault << " ;\n"
+ " lv2:default " << defaultSynth->getParameter01(index) << " ;\n"
# Maintainer: Milk (milk / milkii on Freenode)
# Maintainer: Jean Pierre Cimalando <[email protected]>
# Contributor: osch <[email protected]>
pkgname=surge-synthesizer-git
_pkgname=surge
pkgver=r986.ef46dd0
pkgrel=1
pkgdesc="Surge Synthesizer plugin (LV2/VST3, git head)"
arch=('x86_64')
url="https://surge-synthesizer.github.io"