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 generictextedit.patch
diff --git a/vstgui/lib/platform/common/generictextedit.cpp b/vstgui/lib/platform/common/generictextedit.cpp
index 67ada025..9bfa19a7 100644
--- a/vstgui/lib/platform/common/generictextedit.cpp
+++ b/vstgui/lib/platform/common/generictextedit.cpp
@@ -353,9 +353,9 @@ CMouseEventResult STBTextEditView::onMouseDown (CFrame* frame,
const CButtonState& buttons)
{
auto where = _where;
- if (auto parent = getParentView ())
+ // if (auto parent = getParentView ())
View PKGBUILD
# Maintainer: Milk (milk / milkii on Freenode)
# Maintainer: Jean Pierre Cimalando <jp-dev@inbox.ru>
# Contributor: osch <oliver@luced.de>
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"
View surge-lv2-default.patch
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"
View no-menu-animation.diff
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
View vgm.diff
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);
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;
You can’t perform that action at this time.