Skip to content

Instantly share code, notes, and snippets.

View jpcima's full-sized avatar

JP Cimalando jpcima

View GitHub Profile
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 ())
@jpcima
jpcima / chorus3.diff
Created October 12, 2019 13:31
Adjust the volume level
diff --git a/faust/chorus3.dsp b/faust/chorus3.dsp
index b48fa53..70ed07a 100644
--- a/faust/chorus3.dsp
+++ b/faust/chorus3.dsp
@@ -50,8 +50,8 @@ process = chorus with {
/**/
chorus(x) =
- ba.if(enabled, x + (x : line(lfo1)), x),
- ba.if(enabled, x + (x : line(lfo2)), x)
diff -ru mp3check-0.8.7.orig/Makefile mp3check-0.8.7/Makefile
--- mp3check-0.8.7.orig/Makefile 2012-06-05 00:33:07.000000000 +0200
+++ mp3check-0.8.7/Makefile 2019-10-21 22:10:22.062549973 +0200
@@ -3,8 +3,8 @@
# --- config ----------------------------------------------------------------
WARN = -Wall -W -g
-#OPT = -O2
-OPT =
+OPT = -O2 -fpermissive
declare name "Violin Physical Model";
declare author "Faust";
declare version "1.0";
declare license "CC0-1.0";
import("stdfaust.lib");
process = pm.violin_ui_MIDI;
@jpcima
jpcima / Faust 2.14.4.txt
Created November 30, 2019 06:15
Faust 2.14.4
bin
bin/encoderunitypackage
bin/faust
bin/faust2alqt
bin/faust2alsa
bin/faust2alsaconsole
bin/faust2android
bin/faust2androidunity
bin/faust2api
bin/faust2asmjs
install -d tmp
faust -i modules/screamer.dsp -a jack-gtk.cpp -o tmp/screamer_jack.cpp
$(CXX) $(CXXFLAGS) -fPIC -o screamer_jack tmp/screamer_jack.cpp `pkg-config jack gtk+-2.0 --cflags --libs` $(LDFLAGS)
faust -i modules/screamer.dsp -a ladspa.cpp -o tmp/screamer_ladspa.cpp
$(CXX) $(CXXFLAGS) -fPIC -shared -Dmydsp=screamer -o screamer.so tmp/screamer_ladspa.cpp $(LDFLAGS)
;;; sfz.mode --- Major mode for SFZ files
;; Copyright (C) 2019 Jean Pierre Cimalando
;; Version: 0.1
;; Keywords: languages
;;; Commentary:
;; This is a basic mode for edition of SFZ instruments.
;;; License:
import yaml
s = set()
def process_opc(obj):
s.add(obj['name'])
for a in obj.get('alias', []):
process_opc(a)
for m in obj.get('modulation', {}).get('midi_cc', []):
process_opc(m)
@jpcima
jpcima / softclip1.gp
Last active January 4, 2020 15:23
Asymmetric soft clipper with parameter
# license CC0-1.0 or MIT
cubic(x)=(x*x*x/3)
lm(k)=-sqrt(k*k*k)/(k*k*k) # the local minimum
kubic(k,x)=x-cubic(k*x)
max(a,b)=(a>b)?a:b
nl(k,x)=(x>0)?x:kubic(k,max(x,lm(k)))
set xrange [-1:+1]
@jpcima
jpcima / softclip2.gp
Created January 4, 2020 15:51
Asymmetric soft clipper with level parameter
# CC0-1.0 or MIT
# asymmetric soft clipping waveshaper
# k: the curve control parameter (0 excl. to 1)
cubic(x)=(x*x*x/3)
lm(k)=-sqrt(k*k*k)/(k*k*k) # the local minimum
kubic(k,x)=x-cubic(k*x)
max(a,b)=(a>b)?a:b