Skip to content

Instantly share code, notes, and snippets.

import("stdfaust.lib");
//sound = soundfile("sound[url:{'levot.wav'}]",2);
//sound = soundfile("sound[url:{'violon.wav'}]",2);
sound = soundfile("sound[url:{'tango.wav'}]",2);
looper(sf) = (0, loop_index) : sf : !, !, attach(_,pos), si.bus(outputs(sf)-3)
with {
// User controls
./simple_duplex
DEBUG: WASAPI backend is disabled.
DEBUG: DirectSound backend is disabled.
DEBUG: WinMM backend is disabled.
DEBUG: Attempting to initialize Core Audio backend...
DEBUG: Loading library: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
DEBUG: Loading symbol: CFStringGetCString
DEBUG: Loading symbol: CFRelease
DEBUG: Loading library: /System/Library/Frameworks/CoreAudio.framework/CoreAudio
DEBUG: Loading symbol: AudioObjectGetPropertyData
./simple_duplex
DEBUG: WASAPI backend is disabled.
DEBUG: DirectSound backend is disabled.
DEBUG: WinMM backend is disabled.
DEBUG: Attempting to initialize Core Audio backend...
DEBUG: Loading library: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
DEBUG: Loading symbol: CFStringGetCString
DEBUG: Loading symbol: CFRelease
DEBUG: Loading library: /System/Library/Frameworks/CoreAudio.framework/CoreAudio
DEBUG: Loading symbol: AudioObjectGetPropertyData
./osc
DEBUG: WASAPI backend is disabled.
DEBUG: DirectSound backend is disabled.
DEBUG: WinMM backend is disabled.
DEBUG: Attempting to initialize Core Audio backend...
DEBUG: Loading library: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
DEBUG: Loading symbol: CFStringGetCString
DEBUG: Loading symbol: CFRelease
DEBUG: Loading library: /System/Library/Frameworks/CoreAudio.framework/CoreAudio
DEBUG: Loading symbol: AudioObjectGetPropertyData
@sletz
sletz / gist:e535b4cd1f06e2008dfc79b567fd5d38
Created December 6, 2024 14:18
multi_filter.dsp execution trace
interp-tracer -trace 4 -input multi_filter.dsp
Filename: multi_filter.dsp
Libfaust version : 2.76.0 (LLVM 19.1.5)
Compiled with additional options :
Using interpreter backend
getName multi_filter
------------------------
init 44100
------------------------
instanceInit 44100
@sletz
sletz / gist:1508ce727e4a6dbfa14039cd19ba6c27
Created October 7, 2024 21:33
faust -json freeverb.dsp
{
"name": "freeverb -- a Schroeder reverb",
"filename": "freeverb.dsp",
"version": "2.75.10",
"compile_options": "-lang cpp -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0",
"include_pathnames": ["/usr/local/share/faust","/usr/local/share/faust","/usr/share/faust",".","/Users/letz/Developpements/SoundStacks/cmajor-fork/examples/patches/FaustFM"],
"size": 149844,
"inputs": 2,
"outputs": 2,
"meta": [
{
"name": "voice",
"filename": "voice.dsp",
"version": "2.75.10",
"compile_options": "-lang cpp -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0",
"library_list": ["/usr/local/share/faust/stdfaust.lib","/usr/local/share/faust/oscillators.lib","/usr/local/share/faust/envelopes.lib","/usr/local/share/faust/maths.lib","/usr/local/share/faust/platform.lib","/usr/local/share/faust/basics.lib"],
"include_pathnames": ["/usr/local/share/faust","/usr/local/share/faust","/usr/share/faust",".","/Users/letz/Developpements/SoundStacks/cmajor-fork/examples/patches/FaustFM"],
"size": 80,
"inputs": 0,
"outputs": 2,
@sletz
sletz / gist:52a658344df142b5374246eec7cbbe79
Created July 19, 2024 20:51
Faust link step with llvm-17
Linking CXX executable /Users/letz/Developpements/faust/build/bin/faust
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/faust.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-overloaded-virtual -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=12.7 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/box_signal_api.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/boxcomplexity.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/boxes.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/boxtype.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/ppbox.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compi
Linking CXX executable /Users/letz/Developpements/faust/build/bin/faust
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/faust.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-overloaded-virtual -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=12.7 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/box_signal_api.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/boxcomplexity.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/boxes.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/boxtype.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compiler/boxes/ppbox.cpp.o CMakeFiles/faust.dir/Users/letz/Developpements/faust/compil
@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