github grame-cncm/faust 2.95.5
Faust version 2.95.5

57 minutes ago

Change log

WARNING: to get the source version

  • be sure to download the faust-2.95.5.tar.gz file to get a complete source folder (in particular, with all the libraries).
  • on macOS, the Faust and faustgen~ dmgs are signed with the GRAME Developer ID and notarized, so Gatekeeper opens them without the xattr workaround (faustgen~.mxo is stapled too, for an offline copy in the Max packages). MacOS Monterey is the minimal version.

New

Compiler

  • The compiler and libfaust say which commit they were built from (Source commit: line of faust --version).
  • Determinism of the emitted code: every tree is built in a fixed order, the code no longer depends on the C++ compiler's evaluation order of arguments (determinism gate).
  • tlib: one order only, the serial; the value hash and the -co option are gone.
  • -sst <n> / -ssi <expr> / -ssc <c> / -sso <s>: SVG diagrams stepped sample by sample in a web browser (test signal, control changes and sample offset), one file per folded box holding the values of each use.
  • FAUST_LLVM_RELOAD=1: reload the LLVM module from its bitcode before the JIT.
  • SignalRenderer: computes like the compiled code, memoized per sample, and computes the foreign functions of the C math library.
  • SignalChecker: warns about a [scale:...] that a slider cannot follow.
  • Search -A architecture directories before the standard ones.
  • Generate the soundfile channel wrap (chan % fChannels) in the compiled code; soundfile architectures no longer share channels up to MAX_CHAN.
  • -uim: FAUST_SOUNDFILES gives the number of soundfiles.
  • Hoist negated constant and control-rate expressions out of the sample loop.
  • Interval constant propagation in the FIR backends.
  • Intervals: the bounds of a float-carried value at the precision of the program, compensation of the libm, double precision by default.
  • pow: integer power with run-time exponent computed in double with rint.
  • -ftz 2: real values bitcast through helpers, so any expression compiles.
  • Compile with the default floating-point environment.
  • Document the -svg output directory in faust -h.

Backends

  • LLVM backend: FAUST_LLVM_RELOAD reloads the module before the JIT; LLVM no longer approximates library functions; every digit of the widgets' values is kept.
  • Interpreter: new interp-fpb FBC compiler (to FPB steps, beside LLVM and MIR) and interp-ydsp (YDSP's JIT for the FBC DSP block, MIR promotion of heap cells).
  • Interpreter: an error of the interpreted code no longer exits the host; a default soundfile is used when the UI does not set one.
  • libfaust: the wasm DSP factory API works without wasmtime.
  • Julia: vector backend enabled; soundfile primitive supported.
  • Rust: soundfile primitive supported.
  • C backend, -mem3: typed control and zone parameters, arithmetic helpers emitted.
  • wasm/wast: saturating float-to-int conversions, integer powers expanded into multiplications.
  • Non-finite constants printed with each language's own names (C++, ocpp, Rust, Java, C#, D, Julia, AssemblyScript).
  • jsfx: reals written with every significant digit.

Architectures and tools

  • RemoteUI: phones drive native Faust applications with faustwasm's remote control; several phones can share an application.
  • faustgen~ 1.88: report <ms> message and @report attribute, json message, wasm <folder> message; compiled code kept in a disk cache, not in the patch; compileoptions saved and restored.
  • Add the faustgen patch external compiler, and max2faustgen to replace faust2max6 externals by faustgen~ boxes.
  • faust2max6: keep the JSON description in the external's resources; option to omit bundled sources; signed .mxo.
  • faust2juce: presets exposed as host programs (-presets), CMake build for plugins, custom editor, tail length, Faust groups mapped to JUCE parameter groups, Faust step used for parameters, JUCE 9 compatibility.
  • faust2rnbo: -abstr (GUI-less abstraction) and -mc (MC audio inputs/outputs) options.
  • faust2clap and CLAP architecture build with MSVC and MinGW.
  • faust2w64max6, faust2w32max6 build on Windows with MinGW-w64.
  • faust2caqt: -arch auto|arm64|x86_64|universal.
  • faust2lv2: follows midi:start, midi:stop and midi:clock.
  • Plugin architectures report the declared latency to the host.
  • lv2ui, faustvst, QTUI: follow [scale:log] / [scale:exp], sliders and knobs follow their step.
  • poly-dsp: adjustable stop level, getNumActiveVoices(), voices matched on MIDI channel and pitch, received MIDI channel filter and --midi-channel option, allNotesOff.
  • midi.h: RPN and NRPN decoded per channel, nrpn().
  • Polyphonic effect adaptor generalized to any channel counts; global effect support in dynamic GTK tools.
  • Soundfile.h: createSoundfileFromParts.
  • Add faustprobe, the C++ port of the faust-rs offline probe, built and installed with the benchmark tools.
  • Benchmark tools report throughput in Mframes/sec.
  • faust2atomsnippets: reads every documented function, adds VS Code output.
  • CI: libfaust built with the LLVM of build-llvm.yml (release llvm-23.1.3-1) on every platform; check that libfaust gives a wasm module and its JSON.
  • Relicense GRAME C/C++ sources to the LGPL 2.1.

Tests and documentation

  • tests/TESTING.md and AGENTS.md: what has to be checked before a compiler change is trusted (impulse, library, determinism, memory safety and shared API gates).
  • Impulse tests: one target per leg, so that -k reaches every leg; float tolerances for the float/ftz2 legs; OpenMP and scheduler legs optional.
  • Shared libfaust C++ Signal/Box API export check (Gate 5).
  • Max toolchain, faustgen, Java, Julia, non-finite constants and soundfile regression tests.

Deprecated

  • tlib: the value hash and the -co option are removed.

Fixed bugs

Compiler

  • Constant propagation: a delay whose amount became constant is normalized again (#1424).
  • Evaluation: route() with a negative number of inputs or outputs is a regular error, not a crash.
  • Boxes: an empty letrec is its body (#416).
  • Signals: a label named after a math primitive is not its application (#323).
  • Parser: refuse strings containing a backslash or */.
  • Fix RoundPrim constant folding and the -exp10 optimization.
  • Table guards: an index fed by a float, or within a few ulps of a table edge, keeps its guard.
  • Intervals: an audio input is not bounded (sound files keep [-1, 1]); a bitcast is not bounded by the value of its float (-ftz 2, #1371).
  • Propagation: the memo lives as long as one compilation (#1345).
  • Open the generated code file in binary mode (#1420); no backslash in the compile_options metadata.
  • Name applications after their function arguments, not their closures.
  • -svg: always write the root diagram to process.svg, even with -pn; stem diagram for file names that do not start with a letter; memoized applyList and shared nodes folded (#1290).
  • exepath: resolve every level of symbolic links, search PATH in-process.
  • cpp: a container with destroy instructions declares only one destructor; avoid the unused sample_rate parameter in classInit (#475).
  • FIR backend: FIRInstVisitor::cleanup no longer deletes every Tree and Symbol.

Backends

  • ocpp: a bargraph's block-rate tail computes a shared node once (#1347); with the new si.smooth of the libraries, the tail grew exponentially and -lang ocpp exceeded its time limit on gateCompressor, spectralLevel, the filtering and phasing labs and virtualAnalogLab.
  • Interpreter optimizer: don't read past the end of a block; interp-mir: sign-extended memory indexes, 64-bit offsets.
  • LLVM backend: integer constants built with ConstantInt::getSigned; JIT optimization order and factory cache identity fixed.
  • wasm/wast: the loop index counts bytes only in the scalar loop (#1416); casts and native operations take the real type of their operands.
  • fastmath.cpp: exponentials saturated out of the float exponent range, log table indexed with 16 mantissa bits.
  • C backend: faustpower helpers get their own argument names; fixed-point table fill uses the table's element type (C and C++).
  • Rust: fmod lowered to % keeps the grouping of the call (#1412); double-precision integer powers preserved in Rust and Julia.
  • Julia: saturating float-to-int conversion, type parameter declared only when used, NaN out of domain, exp10f and cosh mappings.
  • Java: math semantics, numeric typing, table initialization, foreign math functions, remainder/rint mappings, Select2Inst condition.
  • AssemblyScript: isnan, isinf, copysign, remainder, non-finite constants, -ftz 2 bit reinterpretation.
  • JSFX: hyperbolic functions (#1169) and math helpers.
  • NNX, Linen, JAX: table initialization order, exp10 mappings, reversed SimpleForLoopInst, int32 overflow in integer powers.
  • Cmajor: slider step written only when compatible with the host's snapping; exp10f mapping; NaN/inf handling.
  • C#: isnan mapping. DLang: rint mapping.

Architectures and tools

  • faustvst, lv2: each MIDI event applied on its own frame; one retrigger input buffer per input.
  • Forward control() calls through DSP combiners (#1426).
  • Keep future timestamped controls queued in timed_dsp.
  • Windows: the static libfaust's API is not dllexported; libfaust.so keeps the symbols of its static archives local on ELF (#1410); shared libfaust C++ Signal API exports restored (#1343).
  • JUCE architectures: DSP adapters rebuilt when the host configuration changes (#1237), -jsynth, -soundfile with -double, -standalone -effect, effect static table initialization, outputs the DSP does not write cleared.
  • JuceGUI: readable texts, slider tracks, tab groups (#597), bargraphs for any range (#681), long radio buttons (#758).
  • QTUI: value display visible again with Qt 6.
  • Max: polyphony DSP reallocation, polyphonic bargraph values, OSCUI and multichannel adapter lifetime.
  • faust2sc: compilation paths with spaces, nested UI control arguments (#1329), -std=c++17, stop after C++ compiler failures.
  • supercollider.cpp: survive a failed RT allocation.
  • Csound 7 opcodes, sndfile/paqt soundfile support, sample-rate adapter state reset, McpUI JSON escaping.
  • UI.h, JSONUIDecoder.h, JSONUI.h, CGlue.h no longer depend on FAUSTFLOAT in code libfaust also defines (#788).
  • Inkscape 1.x export flags in faust2png, faust2eps, faust2mathdoc (#1423); ndk-build found in the versioned Android SDK layout (#1422).
  • httpdlib: LOADSCRIPTS paths point to the local SVG files (#171).
  • faust2daisy: unsupported MIDI metadata ignored; bela: Trill keyboard of polyphonic DSPs.
  • architecture/faust: bugs found by a full review of dsp/, gui/, audio/, midi/, au/, vst/.

Libraries

327 commits in faustlibraries since 2.88.0 (f1d729e8 → d02cd247), among them:

  • New models: ve.fulltoneOCD (wave digital model of the Fulltone OCD v2), ve.mxrPhase90, co.xfer_ott (multiband compressor), ef.xferDimensionExpander, re.valhallaSupermassive (six modes), sy.logicEFM1 (FM synthesizer), pinktrombone.lib and simplex noise.
  • New functions: fi.allpass1_noclip, fi.allpass2_noclip, si.cumsum, si.normalizeL1, si.normalizeL2, si.softmax, no.sample_pmf, no.markov_step, no.markov_chain, an.rtorv_chrono, an.rtocv_chrono, an.rfft_analyzer_c_chrono.
  • Fixes and improvements in filters, oscillators, vaeffects, physmodels (formant filters interpolate their voice type), reverbs, analyzers, compressors, phaflangers, aanl and fastmath.
  • Tooling: precision, CPU, usage, backends and sample-rate checks, test inventory (lib_tests.py).

Don't miss a new faust release

NewReleases is sending notifications on new releases.