Skip to content

Instantly share code, notes, and snippets.

@sletz
sletz / gist:b4c56e41101d8f2c89b4e060addb593b
Created March 24, 2024 18:35
Lamb.dsp run with interp-tracer
interp-tracer -trace 4 lamb.dsp
Filename: lamb.dsp
Libfaust version : 2.72.11 (LLVM 17.0.6)
Compiled with additional options :
Using interpreter backend
getName lamb
------------------------
init 44100
------------------------
instanceInit 44100
@sletz
sletz / gist:dbafd738bdefbb7a5762d8f4227fe4f5
Created March 18, 2024 13:18
Faust organ voice in Cmajor
/* ------------------------------------------------------------
name: "organ"
Code generated with Faust 2.72.10 (https://faust.grame.fr)
Compilation options: -lang cmajor-poly -ec -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0
------------------------------------------------------------ */
namespace faust
{
processor mydsp
{
input event float32 event_freq [[ name: "freq", group: "/v:organ/freq", min: 2e+01f, max: 5e+03f, init: 4.4e+02f, step: 1.0f, meta_unit0: "Hz" ]];
Compiling nih_plug_egui v0.0.0 (https://github.com/robbert-vdh/nih-plug.git#e9dff5b0)
The following warnings were emitted during compilation:
warning: nih_faust_jit@0.1.0: objc[13379]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1fe307bc8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10e8442c8). One of the two will be used. Which one is undefined.
warning: nih_faust_jit@0.1.0: objc[13379]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1fe307c18) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10e844318). One of the two will be used. Which one is undefined.
warning: nih_faust_jit@0.1.0: In file included from src/wrapper.cpp:4:
warning: nih_faust_jit@0.1.0: /usr/local/include/faust/dsp/dsp.h:274:52: error: expected ';' at end of declaration list
warning: nih_faust_jit@0.1.0: void setFpStatusRegister(intptr_t fpsr_aux) noexcept
warning
Process: scsynth [93610]
Path: /Applications/SuperCollider/SuperCollider.app/Contents/Resources/../Resources/scsynth
Identifier: scsynth
Version: 0
Code Type: ARM-64 (Native)
Parent Process: sclang [93600]
Responsible: SuperCollider [93598]
User ID: 501
Date/Time: 2023-11-23 13:28:42.229 +0100
@sletz
sletz / gist:a7eeba9257bb222362d9ae88039a4c2a
Created August 11, 2023 06:37
Faust vumeter in C++ and codebox
Faust code: process = vbargraph("val", -1, 1);
get compiled to this C++:
class mydsp : public dsp {
private:
FAUSTFLOAT fVbargraph0;
int fSampleRate;
@sletz
sletz / gist:da3d3fd6e41346ebaa772f07c4d28a0d
Created August 9, 2023 14:39
Faust RNBO MIDI example
{
"patcher": {
"fileversion": 1,
"appversion": {
"major": 8,
"minor": 5,
"revision": 5,
"architecture": "x64",
"modernui": 1
},
{
"patcher": {
"fileversion": 1,
"appversion": {
"major": 8,
"minor": 5,
"revision": 5,
"architecture": "x64",
"modernui": 1
},
interp-tracer -trace 4 phaser90.dsp
Filename: phaser90.dsp
Libfaust version : 2.65.0 (LLVM 17.0.0git)
Compiled with additional options :
Using interpreter backend
getName phaser90
------------------------
init 44100
------------------------
instanceInit 44100
<pre><code>
----------begin_max5_patcher----------
3647.3oc6c01baaiD9y1+JvwYtYjRrbH3aRpNtSyklzy2boNNs2cevsiFHQH
a1ihjkjxwN4b9seKdgj.TTuXaYWGW9EaQr.KVrXwhGr.j3y6tiw33KoYFnuA
cJZmc97t6rCOIVB6HedGiYjKmDRx3YyXR7rYznbi8DzxoWlyS+sj4Y4nynQz
TRN0G8ge7ucLJgjO478PuNN4pzfyNOG0YRWjkokM5GRIynELIZ9rfnPZNuFv
UIFOOuHUSYpbNFDc1nT5jbgb6Ztu4d.WY+0FaU7.5WkEIvmKfwi+sdXCVRWu
6tr+r2F1hoexmL4KMJqV2NYEax+ma4eaRVstMxZD8iPYKj0KHoQL0LiRZz33
urPulVpaP2f05ZZdJsLKKkVlfI4WkPEY2HK3rHRnwdHivfLfGMnBrKjLlXdA
MMKHNhSDuOv5d9zK1uuogpHQSkJGo1YGioAgTkhJaV6XPRRTRdGkhvTo+VLm
<pre><code>
----------begin_max5_patcher----------
3214.3oc6bs0baiaE9Y6eEnblNiThkCAuq0w6zzsS15NMwwY6kGb1QCDIjM1
RQxkjxwNoN+16Affj.TTxxNJd2jpWrEwA3fC9NWvg.f3i6umwzzqoEFnuCcN
Zu89396smnHdA6IedOi4jqCiIEhpYDlNeNMoz3fJZkzqKEk+RxhhRzEzDZNo
jFgd6q+ymhxHkgWd.5GRytImcwkknAgCQVlV1neLmLmVyjjEyYIwzRQOfaKL
cQYcolxREbjkbwjbZXYkb6Zdn4A.W4+0FaU+.5mkMgEIDvzo+xHrAuna2ee9
eNXCGwzODQB+Tuxp0CSVwlh+41729jUqGhrlPeOz1ZY8JRdBGl4TxSll9okz
ZZktApAq6Zn4oLxrrTFYULo7lLZU0MJXWjPhMN.YDyJ.dzCDXWKYbw7JZdAK
MQPDeHv5QQzqNz2zPUjn4RvQhN6YLiESUZpbXsmAIKSo38TZBGR+kTAiBNno