Faust Implementation - CCRMA - Stanford University
Có thể bạn quan tâm
Faust Implementation
In Faust, we can describe the cubic nonlinearity as follows (contained in effect.lib distributed with Faust): //--------------------- cubicnl(drive,offset) ----------------------- // Cubic nonlinearity distortion // USAGE: cubicnl(drive,offset), where // drive = distortion amount, between 0 and 1 // offset = constant added before nonlinearity to give even harmonics // Reference: // http://ccrma.stanford.edu/~jos/pasp/Nonlinear_Distortion.html#18254 // cubicnl(drive,offset) = +(offset) : *(pregain) : clip(-1,1) : cubic : dcblocker with { pregain = pow(10.0,2*drive); clip(lo,hi) = min(hi) : max(lo); cubic(x) = x - x*x*x/3; };
A simple test program is as follows: // tcubicnl.dsp import("effect.lib"); // GUI Controls: O = hslider("even_harmonics",0,0,0.5,0.01); D = hslider("distortion [midi: ctrl 0x70]",0.1,0.01,1,0.01); g = hslider("level [midi: ctrl 0x7]",0.1,0,1,0.01); process = ramp(0.01) : cubicnl with { integrator = + ~ _ ; ramp(slope) = slope : integrator - 2.0; }; distortion = cubicnl(O,D); // effect.lib process = ramp(0.01) : -(1.5) : distortion; To plot the output signal, say, in a shell, for example, faust2octave tcubicnl.dsp
Next | Prev | Up | Top | REALSIMPLE Top Download faust_strings.pdf
``Making Virtual Electric Guitars and Associated Effects Using Faust'', by Julius O. Smith III, REALSIMPLE Project — work supported in part by the Wallenberg Global Learning Network . Released 2013-08-22 under the Creative Commons License (Attribution 2.5), by Julius O. Smith III Center for Computer Research in Music and Acoustics (CCRMA), Stanford University
Từ khóa » Hslider Faust
-
Faust Syntax
-
Online Examples - Faust Programming Language - Grame
-
[PDF] A FAUST Tutorial - Archive Ouverte HAL
-
[PDF] Faust Quick Reference - Archive Ouverte HAL
-
Romain Michon - Faust Tutorials - CCRMA
-
Faust - JuliaHub
-
Getting Started With Faust For SuperCollider - Scsynth
-
Exponential And Logarithmic Slider Scales Not Working In Qt ... - GitHub
-
Faustdoc/ At Master - GitHub
-
Digital Filtering In Faust And PD
-
Using Faust For ER-301 DSP Development - O|D Discussion
-
[PDF] Interfacing Pure Data With Faust - CiteSeerX
-
I Need Help Getting Faust Code To Run On Teensy