-
Windows Use
GetDpiForMonitor
API withMDT_EFFECTIVE_DPI
as DPI type. Windows 8.1 and up; for compatibility, load the function dynamically withGetProcAddress
. If DPI >= 192, scale can be taken as 2.0, otherwise 1.0. https://docs.microsoft.com/en-us/windows/win32/api/shellscalingapi/nf-shellscalingapi-getdpiformonitor -
Linux: Check the Xft.dpi resource. If DPI >= 192, scale can be taken as 2.0, otherwise 1.0. glfw/glfw#1019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import("stdfaust.lib"); | |
sfzComb = comb : *(outputGain) with { | |
comb = fi.ff_comb(int(0.5+delayMax*ma.SR), delay*ma.SR, 1.0, resonance); | |
outputGain = ba.db2linear(-3.0)/sqrt(0.5*(1.0+resonance*resonance)); | |
lfoFreq = 1.0; | |
lfoSemi = os.lf_triangle(lfoFreq) : *(lfoKeyRange); | |
lfoRatio = lfoSemi : ba.semi2ratio; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
clang++ -O2 -g -Isrc/external -Iexternal/abseil-cpp -Isrc/sfizz -o FixPathCase \ | |
FixPathCase.cpp \ | |
external/abseil-cpp/absl/strings/ascii.cc \ | |
external/abseil-cpp/absl/strings/match.cc \ | |
external/abseil-cpp/absl/strings/internal/memutil.cc \ | |
external/abseil-cpp/absl/base/internal/throw_delegate.cc | |
*/ | |
#include <iostream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/lilv_internal.h b/src/lilv_internal.h | |
index 52e0870..eee03f0 100644 | |
--- a/src/lilv_internal.h | |
+++ b/src/lilv_internal.h | |
@@ -266,6 +266,9 @@ void lilv_plugin_free(LilvPlugin* plugin); | |
LilvNode* lilv_plugin_get_unique(const LilvPlugin* plugin, | |
const SordNode* subject, | |
const SordNode* predicate); | |
+LilvNode* lilv_plugin_get_unique_i18n(const LilvPlugin* plugin, | |
+ const SordNode* subject, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin | |
bin/encoderunitypackage | |
bin/faust | |
bin/faust2alqt | |
bin/faust2alsa | |
bin/faust2alsaconsole | |
bin/faust2android | |
bin/faust2androidunity | |
bin/faust2api | |
bin/faust2asmjs |