Skip to content

Instantly share code, notes, and snippets.

# ref.: https://www.kvraudio.com/forum/viewtopic.php?t=388650&start=45
# original.: https://nbviewer.jupyter.org/gist/JTriggerFish/6226363
# added fast tanh of JUCE library
from numpy import *
import scipy as sp
from scipy import signal
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib
@beschulz
beschulz / gist:36cca0c38302bcd05618
Created February 17, 2015 15:27
juce_use_CGContextDrawXYZGradient_on_osx_10_5_plus.diff
diff --git a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h
index bf26ce8..41a8571 100644
--- a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h
+++ b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h
@@ -77,7 +77,9 @@ private:
const CGFloat flipHeight;
float targetScale;
CGColorSpaceRef rgbColourSpace, greyColourSpace;
+ #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
CGFunctionCallbacks gradientCallbacks;
@beschulz
beschulz / gist:02148007938d6e5d88ec
Last active August 29, 2015 14:11
Tremolo Effect with quarter note frequency to illustrate bug
/*
Reproduction:
- set bpm to 120
- set buffer size to 2048
- play long sustained audio
- put one instance of this plugin into track
- Audio has tremolo effect applied, eighth note on ... eighth note off ...
- copy plugin so that there are eight instances
- audio disapears
@beschulz
beschulz / build-thrift-for-ios.sh
Last active August 2, 2017 16:23
Notes on how to build thrift for iOS
# get and compile boost
git clone https://gist.github.com/7513324.git boost
cd boost
bash boost.sh
# get and build opensslbe
git@github.com:x2on/OpenSSL-for-iPhone.git
cd OpenSSL-for-iPhone
./build-libssl.sh