_id
stringlengths
64
64
repository
stringlengths
7
61
name
stringlengths
5
45
content
stringlengths
0
943k
download_url
stringlengths
94
213
language
stringclasses
1 value
comments
stringlengths
0
20.9k
code
stringlengths
0
943k
50fdf268d01c51cf4dd28e496aeb9f9c891c3563a93b751b26373dcecd93eab1
olegkapitonov/tubeAmp-Designer
kpp_tubeamp.dsp
/* * Copyright (C) 2019 Oleg Kapitonov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * -------------------------------------------------------------------------- */ /* * This plugin is the universal tube amplifier emulator * with tonestack, gain and volume(mastergain) knobs. * * Process chain: * * IN->preamp_convolver->*drive_knob->preamp->tonestack-> * <-----------------------------<----------------<--- * -->*volume_knob->power_amp->cabsym_convolver->OUT * * Distortion and tonestack parameters loaded * from *.tapf profile file. * Convolvers work outside this FAUST module. * Cabsym convolver may be bypassed. */ declare name "kpp_tubeamp"; declare author "Oleg Kapitonov"; declare license "GPLv3"; declare version "1.0"; import("stdfaust.lib"); process = preamp_amp with { // Link parameters from *.tapf profile file // and knob values with FAUST code. drive = fvariable(float DRIVE_CTRL, <math.h>); volume = fvariable(float VOLUME_CTRL, <math.h>); mastergain = fvariable(float MASTERGAIN_CTRL, <math.h>); // Bias signal before distortion amp_bias = fvariable(float AMP_BIAS_CTRL, <math.h>); // Threshold of distortion amp_Upor = fvariable(float AMP_UPOR_CTRL, <math.h>); // Severity/softness of distortion amp_Kreg = fvariable(float AMP_KREG_CTRL, <math.h>); // The same parameters for preamp preamp_bias = fvariable(float PREAMP_BIAS_CTRL, <math.h>); preamp_Upor = fvariable(float PREAMP_UPOR_CTRL, <math.h>); preamp_Kreg = fvariable(float PREAMP_KREG_CTRL, <math.h>); tonestack_low = fvariable(float LOW_CTRL, <math.h>); tonestack_middle = fvariable(float MIDDLE_CTRL, <math.h>); tonestack_high = fvariable(float HIGH_CTRL, <math.h>); tonestack_low_freq = fvariable(float LOW_FREQ_CTRL, <math.h>); tonestack_middle_freq = fvariable(float MIDDLE_FREQ_CTRL, <math.h>); tonestack_high_freq = fvariable(float HIGH_FREQ_CTRL, <math.h>); tonestack_low_band = fvariable(float LOW_BAND_CTRL, <math.h>); tonestack_middle_band = fvariable(float MIDDLE_BAND_CTRL, <math.h>); tonestack_high_band = fvariable(float HIGH_BAND_CTRL, <math.h>); // Gain before preamp preamp_level = fvariable(float PREAMP_LEVEL, <math.h>); // Gain before amp amp_level = fvariable(float AMP_LEVEL, <math.h>); // Voltage Sag parameters sag_time = fvariable(float SAG_TIME, <math.h>); sag_coeff = fvariable(float SAG_COEFF, <math.h>); // Output gain output_level = fvariable(float OUTPUT_LEVEL, <math.h>); // Model of tube nonlinear distortion tube(Kreg,Upor,bias,cut) = main : +(bias) : max(cut) with { Ks(x) = 1/(max((x-Upor)*(Kreg),0)+1); Ksplus(x) = Upor - x*Upor; main(Uin) = (Uin * Ks(Uin) + Ksplus(Ks(Uin))); }; // Preamp - has 1 class A tube distortion (non symmetric) stage_preamp = fi.lowpass(1,11000) : tube(preamp_Kreg,preamp_Upor,preamp_bias,-preamp_Upor); stage_tonestack = fi.peak_eq(tonestack_low,tonestack_low_freq,tonestack_low_band) : fi.peak_eq(tonestack_middle,tonestack_middle_freq,tonestack_middle_band) : fi.peak_eq(tonestack_high,tonestack_high_freq,tonestack_high_band): fi.lowpass(1,11000); // Power Amp - has 1 class B tube distortion (symmetric) stage_amp = _<: _,*(-1.0) : tube(amp_Kreg,amp_Upor,amp_bias,0), tube(amp_Kreg,amp_Upor,amp_bias,0) : - : fi.lowpass(1, 11000); // Part of the chain before Voltage Sag in power amp pre_sag = _ : fi.dcblocker : *(ba.db2linear(drive * 0.4) - 1) : *(preamp_level) : stage_preamp : fi.dcblocker :*(amp_level) : *(ba.db2linear(mastergain * 0.4) - 1) : stage_tonestack; // All chain, pre-sag + power amp with Voltage Sag preamp_amp = pre_sag : (_,_ : (_<: (1.0/_),_),_ : _,* : _,stage_amp : *) ~ (_ <: _,_: * : fi.lowpass(1,sag_time) : *(sag_coeff) : max(1.0) : min(2.5)) : *(volume) : *(output_level) : fi.dcblocker : _; };
https://raw.githubusercontent.com/olegkapitonov/tubeAmp-Designer/adefa848111538e264f1433a5de1eba73d0845f7/FAUST/kpp_tubeamp.dsp
faust
* Copyright (C) 2019 Oleg Kapitonov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * -------------------------------------------------------------------------- * This plugin is the universal tube amplifier emulator * with tonestack, gain and volume(mastergain) knobs. * * Process chain: * * IN->preamp_convolver->*drive_knob->preamp->tonestack-> * <-----------------------------<----------------<--- * -->*volume_knob->power_amp->cabsym_convolver->OUT * * Distortion and tonestack parameters loaded * from *.tapf profile file. * Convolvers work outside this FAUST module. * Cabsym convolver may be bypassed. Link parameters from *.tapf profile file and knob values with FAUST code. Bias signal before distortion Threshold of distortion Severity/softness of distortion The same parameters for preamp Gain before preamp Gain before amp Voltage Sag parameters Output gain Model of tube nonlinear distortion Preamp - has 1 class A tube distortion (non symmetric) Power Amp - has 1 class B tube distortion (symmetric) Part of the chain before Voltage Sag in power amp All chain, pre-sag + power amp with Voltage Sag
declare name "kpp_tubeamp"; declare author "Oleg Kapitonov"; declare license "GPLv3"; declare version "1.0"; import("stdfaust.lib"); process = preamp_amp with { drive = fvariable(float DRIVE_CTRL, <math.h>); volume = fvariable(float VOLUME_CTRL, <math.h>); mastergain = fvariable(float MASTERGAIN_CTRL, <math.h>); amp_bias = fvariable(float AMP_BIAS_CTRL, <math.h>); amp_Upor = fvariable(float AMP_UPOR_CTRL, <math.h>); amp_Kreg = fvariable(float AMP_KREG_CTRL, <math.h>); preamp_bias = fvariable(float PREAMP_BIAS_CTRL, <math.h>); preamp_Upor = fvariable(float PREAMP_UPOR_CTRL, <math.h>); preamp_Kreg = fvariable(float PREAMP_KREG_CTRL, <math.h>); tonestack_low = fvariable(float LOW_CTRL, <math.h>); tonestack_middle = fvariable(float MIDDLE_CTRL, <math.h>); tonestack_high = fvariable(float HIGH_CTRL, <math.h>); tonestack_low_freq = fvariable(float LOW_FREQ_CTRL, <math.h>); tonestack_middle_freq = fvariable(float MIDDLE_FREQ_CTRL, <math.h>); tonestack_high_freq = fvariable(float HIGH_FREQ_CTRL, <math.h>); tonestack_low_band = fvariable(float LOW_BAND_CTRL, <math.h>); tonestack_middle_band = fvariable(float MIDDLE_BAND_CTRL, <math.h>); tonestack_high_band = fvariable(float HIGH_BAND_CTRL, <math.h>); preamp_level = fvariable(float PREAMP_LEVEL, <math.h>); amp_level = fvariable(float AMP_LEVEL, <math.h>); sag_time = fvariable(float SAG_TIME, <math.h>); sag_coeff = fvariable(float SAG_COEFF, <math.h>); output_level = fvariable(float OUTPUT_LEVEL, <math.h>); tube(Kreg,Upor,bias,cut) = main : +(bias) : max(cut) with { Ks(x) = 1/(max((x-Upor)*(Kreg),0)+1); Ksplus(x) = Upor - x*Upor; main(Uin) = (Uin * Ks(Uin) + Ksplus(Ks(Uin))); }; stage_preamp = fi.lowpass(1,11000) : tube(preamp_Kreg,preamp_Upor,preamp_bias,-preamp_Upor); stage_tonestack = fi.peak_eq(tonestack_low,tonestack_low_freq,tonestack_low_band) : fi.peak_eq(tonestack_middle,tonestack_middle_freq,tonestack_middle_band) : fi.peak_eq(tonestack_high,tonestack_high_freq,tonestack_high_band): fi.lowpass(1,11000); stage_amp = _<: _,*(-1.0) : tube(amp_Kreg,amp_Upor,amp_bias,0), tube(amp_Kreg,amp_Upor,amp_bias,0) : - : fi.lowpass(1, 11000); pre_sag = _ : fi.dcblocker : *(ba.db2linear(drive * 0.4) - 1) : *(preamp_level) : stage_preamp : fi.dcblocker :*(amp_level) : *(ba.db2linear(mastergain * 0.4) - 1) : stage_tonestack; preamp_amp = pre_sag : (_,_ : (_<: (1.0/_),_),_ : _,* : _,stage_amp : *) ~ (_ <: _,_: * : fi.lowpass(1,sag_time) : *(sag_coeff) : max(1.0) : min(2.5)) : *(volume) : *(output_level) : fi.dcblocker : _; };
03e08c1b968771f955d49937a571829f61b3c26468ebe78b669459c2b26dae67
friskgit/snares
o_dispersed_snare.dsp
q// -*- compile-command: "cd .. && make jack src=o_dispersed_snare.dsp && cd -"; -*-&& cd -"; -*- declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); import("math.lib") ; // for PI definition import("music.lib") ; // for osci definition //---------------`Snare drum dispersing over X channels` -------------------------- // // Generating an impulse and feeding it to a generic_snarefs and on to a disperser. // disperse.dsp does not pass on the impules as generic_snarefs does. // // 18 Juli 2019 Henrik Frisk [email protected] //--------------------------------------------------- process = component("generic_snarefs.dsp") : component("disperse.dsp")[channels = 29;] ;
https://raw.githubusercontent.com/friskgit/snares/bb43ea5e706a0ead6d65dd176a5c492b2f5d8f74/faust/snare/src/o_dispersed_snare.dsp
faust
-*- compile-command: "cd .. && make jack src=o_dispersed_snare.dsp && cd -"; -*-&& cd -"; -*- for PI definition for osci definition ---------------`Snare drum dispersing over X channels` -------------------------- Generating an impulse and feeding it to a generic_snarefs and on to a disperser. disperse.dsp does not pass on the impules as generic_snarefs does. 18 Juli 2019 Henrik Frisk [email protected] ---------------------------------------------------
declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); process = component("generic_snarefs.dsp") : component("disperse.dsp")[channels = 29;] ;
dd2a816f5f5fdf08219075506e969042b8284f71af9af6b59679779bb8a67829
friskgit/snares
o_bass_snare.dsp
// -*- compile-command: "cd .. && make jack src=o_bass_snare.dsp && cd -"; -*-&& cd -"; -*- declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); import("math.lib") ; // for PI definition import("music.lib") ; // for osci definition //---------------`Bass snare drum` -------------------------- // // Generating an impulse and feeding it to a bass_drum synth. // o_bass_snare.dsp does not pass on the impules as generic_snarefs does. // // 03 Maj 2020 Henrik Frisk [email protected] //--------------------------------------------------- impgrp(x) = vgroup("impulse", x); imp = ba.pulse(impgrp(hslider("tempo", 5000, 500, 10000, 1))); process = component("bass_snare.dsp");
https://raw.githubusercontent.com/friskgit/snares/bb43ea5e706a0ead6d65dd176a5c492b2f5d8f74/faust/snare/src/o_bass_snare.dsp
faust
-*- compile-command: "cd .. && make jack src=o_bass_snare.dsp && cd -"; -*-&& cd -"; -*- for PI definition for osci definition ---------------`Bass snare drum` -------------------------- Generating an impulse and feeding it to a bass_drum synth. o_bass_snare.dsp does not pass on the impules as generic_snarefs does. 03 Maj 2020 Henrik Frisk [email protected] ---------------------------------------------------
declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); impgrp(x) = vgroup("impulse", x); imp = ba.pulse(impgrp(hslider("tempo", 5000, 500, 10000, 1))); process = component("bass_snare.dsp");
e4b5853c42246a1c261dce9a18f6489c2e3507e33abb59b2a2cb9d678f3d5121
brummer10/ModularAmpToolKit.lv2
orangedarkterror.dsp
// generated automatically // DO NOT MODIFY! declare id "orangedarkterror"; declare name "Push Pull EL84"; declare shortname "OrangeDarkTerror"; declare description "Push Pull EL84"; declare samplerate "96000"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : orangedarkterrorp3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(-6.57377333665727e-19*fs - 4.01607201070155e-17) - 4.37865590304316e-21) + 1.22291757237028e-24); b1 = fs*(pow(fs,2)*(2.62950933466291e-18*fs + 8.03214402140309e-17) + 2.44583514474056e-24); b2 = pow(fs,2)*(-3.94426400199436e-18*pow(fs,2) + 8.75731180608631e-21); b3 = fs*(pow(fs,2)*(2.62950933466291e-18*fs - 8.03214402140309e-17) - 2.44583514474056e-24); b4 = fs*(fs*(fs*(-6.57377333665727e-19*fs + 4.01607201070155e-17) - 4.37865590304316e-21) - 1.22291757237028e-24); a0 = fs*(fs*(fs*(1.86957288162412e-19*fs + 6.82010407286301e-17) + 4.53454013961264e-15) + 6.51104139918237e-14) + 4.73642640396319e-17; a1 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs - 1.3640208145726e-16) + 1.30220827983647e-13) + 1.89457056158527e-16; a2 = pow(fs,2)*(1.12174372897447e-18*pow(fs,2) - 9.06908027922528e-15) + 2.84185584237791e-16; a3 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs + 1.3640208145726e-16) - 1.30220827983647e-13) + 1.89457056158527e-16; a4 = fs*(fs*(fs*(1.86957288162412e-19*fs - 6.82010407286301e-17) + 4.53454013961264e-15) - 6.51104139918237e-14) + 4.73642640396319e-17; }; orangedarkterrorp3clip = _<: ba.if(signbit(_), orangedarkterrorp3_neg_clip, orangedarkterrorp3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); orangedarkterrorp3_clip = ffunction(float orangedarkterrorp3clip(float), "orangedarkterrorp3_table.h", ""); orangedarkterrorp3_neg_clip = ffunction(float orangedarkterrorp3_negclip(float), "orangedarkterrorp3_neg_table.h", ""); }; ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999); outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999); process = *(ingain) : p1 : *(0.6) : *(outgain);
https://raw.githubusercontent.com/brummer10/ModularAmpToolKit.lv2/6a27486df4392b32cdf2efb59fe9049f57c399f6/PowerAmps/dsp/orangedarkterror.dsp
faust
generated automatically DO NOT MODIFY!
declare id "orangedarkterror"; declare name "Push Pull EL84"; declare shortname "OrangeDarkTerror"; declare description "Push Pull EL84"; declare samplerate "96000"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : orangedarkterrorp3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(-6.57377333665727e-19*fs - 4.01607201070155e-17) - 4.37865590304316e-21) + 1.22291757237028e-24); b1 = fs*(pow(fs,2)*(2.62950933466291e-18*fs + 8.03214402140309e-17) + 2.44583514474056e-24); b2 = pow(fs,2)*(-3.94426400199436e-18*pow(fs,2) + 8.75731180608631e-21); b3 = fs*(pow(fs,2)*(2.62950933466291e-18*fs - 8.03214402140309e-17) - 2.44583514474056e-24); b4 = fs*(fs*(fs*(-6.57377333665727e-19*fs + 4.01607201070155e-17) - 4.37865590304316e-21) - 1.22291757237028e-24); a0 = fs*(fs*(fs*(1.86957288162412e-19*fs + 6.82010407286301e-17) + 4.53454013961264e-15) + 6.51104139918237e-14) + 4.73642640396319e-17; a1 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs - 1.3640208145726e-16) + 1.30220827983647e-13) + 1.89457056158527e-16; a2 = pow(fs,2)*(1.12174372897447e-18*pow(fs,2) - 9.06908027922528e-15) + 2.84185584237791e-16; a3 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs + 1.3640208145726e-16) - 1.30220827983647e-13) + 1.89457056158527e-16; a4 = fs*(fs*(fs*(1.86957288162412e-19*fs - 6.82010407286301e-17) + 4.53454013961264e-15) - 6.51104139918237e-14) + 4.73642640396319e-17; }; orangedarkterrorp3clip = _<: ba.if(signbit(_), orangedarkterrorp3_neg_clip, orangedarkterrorp3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); orangedarkterrorp3_clip = ffunction(float orangedarkterrorp3clip(float), "orangedarkterrorp3_table.h", ""); orangedarkterrorp3_neg_clip = ffunction(float orangedarkterrorp3_negclip(float), "orangedarkterrorp3_neg_table.h", ""); }; ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999); outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999); process = *(ingain) : p1 : *(0.6) : *(outgain);
8265997425202fa6e7441bd1cfbacc561cbaea61e98991cb51167e3c830a7fc6
brummer10/ModularAmpToolKit.lv2
plexiel34.dsp
// generated automatically // DO NOT MODIFY! declare id "plexiel34"; declare name "Push Pull EL34"; declare shortname "PlexiEL34"; declare description "PlexiEL34"; declare samplerate "96000"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : plexipowerampel34clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(3.87560926163844e-19*fs + 4.30800903120125e-16) + 3.17509705609174e-17) + 5.3495467261267e-19); b1 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs - 8.61601806240251e-16) + 1.06990934522534e-18); b2 = pow(fs,2)*(2.32536555698307e-18*pow(fs,2) - 6.35019411218347e-17); b3 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs + 8.61601806240251e-16) - 1.06990934522534e-18); b4 = fs*(fs*(fs*(3.87560926163844e-19*fs - 4.30800903120125e-16) + 3.17509705609174e-17) - 5.3495467261267e-19); a0 = fs*(fs*(fs*(1.82693733893894e-19*fs + 2.71243523616587e-16) + 8.16290535602033e-14) + 4.64147298174261e-12) + 4.00158102875003e-12; a1 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs - 5.42487047233173e-16) + 9.28294596348523e-12) + 1.60063241150001e-11; a2 = pow(fs,2)*(1.09616240336336e-18*pow(fs,2) - 1.63258107120407e-13) + 2.40094861725002e-11; a3 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs + 5.42487047233173e-16) - 9.28294596348523e-12) + 1.60063241150001e-11; a4 = fs*(fs*(fs*(1.82693733893894e-19*fs - 2.71243523616587e-16) + 8.16290535602033e-14) - 4.64147298174261e-12) + 4.00158102875003e-12; }; plexipowerampel34clip = _<: ba.if(signbit(_), plexipowerampel34_neg_clip, plexipowerampel34_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); plexipowerampel34_clip = ffunction(float plexipowerampel34clip(float), "plexipowerampel34_table.h", ""); plexipowerampel34_neg_clip = ffunction(float plexipowerampel34_negclip(float), "plexipowerampel34_neg_table.h", ""); }; ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999); outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999); process = *(ingain) : p1 : *(outgain) ;
https://raw.githubusercontent.com/brummer10/ModularAmpToolKit.lv2/6a27486df4392b32cdf2efb59fe9049f57c399f6/PowerAmps/dsp/plexiel34.dsp
faust
generated automatically DO NOT MODIFY!
declare id "plexiel34"; declare name "Push Pull EL34"; declare shortname "PlexiEL34"; declare description "PlexiEL34"; declare samplerate "96000"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : plexipowerampel34clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(3.87560926163844e-19*fs + 4.30800903120125e-16) + 3.17509705609174e-17) + 5.3495467261267e-19); b1 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs - 8.61601806240251e-16) + 1.06990934522534e-18); b2 = pow(fs,2)*(2.32536555698307e-18*pow(fs,2) - 6.35019411218347e-17); b3 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs + 8.61601806240251e-16) - 1.06990934522534e-18); b4 = fs*(fs*(fs*(3.87560926163844e-19*fs - 4.30800903120125e-16) + 3.17509705609174e-17) - 5.3495467261267e-19); a0 = fs*(fs*(fs*(1.82693733893894e-19*fs + 2.71243523616587e-16) + 8.16290535602033e-14) + 4.64147298174261e-12) + 4.00158102875003e-12; a1 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs - 5.42487047233173e-16) + 9.28294596348523e-12) + 1.60063241150001e-11; a2 = pow(fs,2)*(1.09616240336336e-18*pow(fs,2) - 1.63258107120407e-13) + 2.40094861725002e-11; a3 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs + 5.42487047233173e-16) - 9.28294596348523e-12) + 1.60063241150001e-11; a4 = fs*(fs*(fs*(1.82693733893894e-19*fs - 2.71243523616587e-16) + 8.16290535602033e-14) - 4.64147298174261e-12) + 4.00158102875003e-12; }; plexipowerampel34clip = _<: ba.if(signbit(_), plexipowerampel34_neg_clip, plexipowerampel34_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); plexipowerampel34_clip = ffunction(float plexipowerampel34clip(float), "plexipowerampel34_table.h", ""); plexipowerampel34_neg_clip = ffunction(float plexipowerampel34_negclip(float), "plexipowerampel34_neg_table.h", ""); }; ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999); outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999); process = *(ingain) : p1 : *(outgain) ;
b5305d31d36e6fef6c7fed138e30a9d24d3eaaae18359b82376956f525e9dca1
olegkapitonov/KPP-VST3
kpp_tubeamp.dsp
/* * Copyright (C) 2018-2020 Oleg Kapitonov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * -------------------------------------------------------------------------- */ /* * This plugin is the universal tube amplifier emulator * with tonestack, gain and volume(mastergain) knobs. * * Process chain: * * IN->preamp_convolver->*drive_knob->preamp->tonestack-> * <-----------------------------<----------------<--- * -->*volume_knob->power_amp->cabsym_convolver->OUT * * Distortion and tonestack parameters loaded * from *.tapf profile file. * Convolvers work outside this FAUST module. * Cabsym convolver may be bypassed. */ declare name "kpp_tubeamp"; declare author "Oleg Kapitonov"; declare license "GPLv3"; declare version "1.2"; import("stdfaust.lib"); process = preamp_amp with { // Link parameters from *.tapf profile file // and knob values with FAUST code. drive = fvariable(float DRIVE_CTRL, <math.h>); volume = fvariable(float VOLUME_CTRL, <math.h>); mastergain = fvariable(float MASTERGAIN_CTRL, <math.h>); // Bias signal before distortion amp_bias = fvariable(float AMP_BIAS_CTRL, <math.h>); // Threshold of distortion amp_Upor = fvariable(float AMP_UPOR_CTRL, <math.h>); // Severity/softness of distortion amp_Kreg = fvariable(float AMP_KREG_CTRL, <math.h>); // The same parameters for preamp preamp_bias = fvariable(float PREAMP_BIAS_CTRL, <math.h>); preamp_Upor = fvariable(float PREAMP_UPOR_CTRL, <math.h>); preamp_Kreg = fvariable(float PREAMP_KREG_CTRL, <math.h>); tonestack_low = fvariable(float LOW_CTRL, <math.h>); tonestack_middle = fvariable(float MIDDLE_CTRL, <math.h>); tonestack_high = fvariable(float HIGH_CTRL, <math.h>); tonestack_low_freq = fvariable(float LOW_FREQ_CTRL, <math.h>); tonestack_middle_freq = fvariable(float MIDDLE_FREQ_CTRL, <math.h>); tonestack_high_freq = fvariable(float HIGH_FREQ_CTRL, <math.h>); tonestack_low_band = fvariable(float LOW_BAND_CTRL, <math.h>); tonestack_middle_band = fvariable(float MIDDLE_BAND_CTRL, <math.h>); tonestack_high_band = fvariable(float HIGH_BAND_CTRL, <math.h>); // Gain before preamp preamp_level = fvariable(float PREAMP_LEVEL, <math.h>); // Gain before amp amp_level = fvariable(float AMP_LEVEL, <math.h>); // Voltage Sag parameters sag_time = fvariable(float SAG_TIME, <math.h>); sag_coeff = fvariable(float SAG_COEFF, <math.h>); // Output gain output_level = fvariable(float OUTPUT_LEVEL, <math.h>); // Model of tube nonlinear distortion tube(Kreg,Upor,bias,cut) = main : +(bias) : max(cut) with { Ks(x) = 1/(max((x-Upor)*(Kreg),0)+1); Ksplus(x) = Upor - x*Upor; main(Uin) = (Uin * Ks(Uin) + Ksplus(Ks(Uin))); }; // Preamp - has 1 class A tube distortion (non symmetric) stage_preamp = fi.lowpass(1,11000) : tube(preamp_Kreg,preamp_Upor,preamp_bias,-preamp_Upor); stage_tonestack = fi.peak_eq(tonestack_low,tonestack_low_freq,tonestack_low_band) : fi.peak_eq(tonestack_middle,tonestack_middle_freq,tonestack_middle_band) : fi.peak_eq(tonestack_high,tonestack_high_freq,tonestack_high_band): fi.lowpass(1,11000); // Power Amp - has 1 class B tube distortion (symmetric) stage_amp = _<: _,*(-1.0) : tube(amp_Kreg,amp_Upor,amp_bias,0), tube(amp_Kreg,amp_Upor,amp_bias,0) : - : fi.lowpass(1, 11000); // Part of the chain before Voltage Sag in power amp pre_sag = _,_ : + : fi.dcblocker : *(ba.db2linear(drive * 0.4) - 1) : *(preamp_level) : stage_preamp : fi.dcblocker :*(amp_level) : *(ba.db2linear(mastergain * 0.4) - 1) : stage_tonestack; // All chain, pre-sag + power amp with Voltage Sag preamp_amp = pre_sag : (_,_ : (_<: (1.0/_),_),_ : _,* : _,stage_amp : *) ~ (_ <: _,_: * : fi.lowpass(1,sag_time) : *(sag_coeff) : max(1.0) : min(2.5)) : *(volume) : *(output_level) : fi.dcblocker <: _,_; };
https://raw.githubusercontent.com/olegkapitonov/KPP-VST3/91af48938c94d5a72009e01ef139bc3de8cf8dcd/kpp_tubeamp/include/kpp_tubeamp.dsp
faust
* Copyright (C) 2018-2020 Oleg Kapitonov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * -------------------------------------------------------------------------- * This plugin is the universal tube amplifier emulator * with tonestack, gain and volume(mastergain) knobs. * * Process chain: * * IN->preamp_convolver->*drive_knob->preamp->tonestack-> * <-----------------------------<----------------<--- * -->*volume_knob->power_amp->cabsym_convolver->OUT * * Distortion and tonestack parameters loaded * from *.tapf profile file. * Convolvers work outside this FAUST module. * Cabsym convolver may be bypassed. Link parameters from *.tapf profile file and knob values with FAUST code. Bias signal before distortion Threshold of distortion Severity/softness of distortion The same parameters for preamp Gain before preamp Gain before amp Voltage Sag parameters Output gain Model of tube nonlinear distortion Preamp - has 1 class A tube distortion (non symmetric) Power Amp - has 1 class B tube distortion (symmetric) Part of the chain before Voltage Sag in power amp All chain, pre-sag + power amp with Voltage Sag
declare name "kpp_tubeamp"; declare author "Oleg Kapitonov"; declare license "GPLv3"; declare version "1.2"; import("stdfaust.lib"); process = preamp_amp with { drive = fvariable(float DRIVE_CTRL, <math.h>); volume = fvariable(float VOLUME_CTRL, <math.h>); mastergain = fvariable(float MASTERGAIN_CTRL, <math.h>); amp_bias = fvariable(float AMP_BIAS_CTRL, <math.h>); amp_Upor = fvariable(float AMP_UPOR_CTRL, <math.h>); amp_Kreg = fvariable(float AMP_KREG_CTRL, <math.h>); preamp_bias = fvariable(float PREAMP_BIAS_CTRL, <math.h>); preamp_Upor = fvariable(float PREAMP_UPOR_CTRL, <math.h>); preamp_Kreg = fvariable(float PREAMP_KREG_CTRL, <math.h>); tonestack_low = fvariable(float LOW_CTRL, <math.h>); tonestack_middle = fvariable(float MIDDLE_CTRL, <math.h>); tonestack_high = fvariable(float HIGH_CTRL, <math.h>); tonestack_low_freq = fvariable(float LOW_FREQ_CTRL, <math.h>); tonestack_middle_freq = fvariable(float MIDDLE_FREQ_CTRL, <math.h>); tonestack_high_freq = fvariable(float HIGH_FREQ_CTRL, <math.h>); tonestack_low_band = fvariable(float LOW_BAND_CTRL, <math.h>); tonestack_middle_band = fvariable(float MIDDLE_BAND_CTRL, <math.h>); tonestack_high_band = fvariable(float HIGH_BAND_CTRL, <math.h>); preamp_level = fvariable(float PREAMP_LEVEL, <math.h>); amp_level = fvariable(float AMP_LEVEL, <math.h>); sag_time = fvariable(float SAG_TIME, <math.h>); sag_coeff = fvariable(float SAG_COEFF, <math.h>); output_level = fvariable(float OUTPUT_LEVEL, <math.h>); tube(Kreg,Upor,bias,cut) = main : +(bias) : max(cut) with { Ks(x) = 1/(max((x-Upor)*(Kreg),0)+1); Ksplus(x) = Upor - x*Upor; main(Uin) = (Uin * Ks(Uin) + Ksplus(Ks(Uin))); }; stage_preamp = fi.lowpass(1,11000) : tube(preamp_Kreg,preamp_Upor,preamp_bias,-preamp_Upor); stage_tonestack = fi.peak_eq(tonestack_low,tonestack_low_freq,tonestack_low_band) : fi.peak_eq(tonestack_middle,tonestack_middle_freq,tonestack_middle_band) : fi.peak_eq(tonestack_high,tonestack_high_freq,tonestack_high_band): fi.lowpass(1,11000); stage_amp = _<: _,*(-1.0) : tube(amp_Kreg,amp_Upor,amp_bias,0), tube(amp_Kreg,amp_Upor,amp_bias,0) : - : fi.lowpass(1, 11000); pre_sag = _,_ : + : fi.dcblocker : *(ba.db2linear(drive * 0.4) - 1) : *(preamp_level) : stage_preamp : fi.dcblocker :*(amp_level) : *(ba.db2linear(mastergain * 0.4) - 1) : stage_tonestack; preamp_amp = pre_sag : (_,_ : (_<: (1.0/_),_),_ : _,* : _,stage_amp : *) ~ (_ <: _,_: * : fi.lowpass(1,sag_time) : *(sag_coeff) : max(1.0) : min(2.5)) : *(volume) : *(output_level) : fi.dcblocker <: _,_; };
fe1908379374393b2f790b3a5d9c1df3186c2102559de564b7bc1094e96d0198
brummer10/ModularAmpToolKit.lv2
supersonic.dsp
// generated automatically // DO NOT MODIFY! declare id "supersonic"; declare name "Push Pull 6L6"; declare shortname "SuperSonic"; declare description "Push Pull 6L6"; declare samplerate "96000"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : supersonicclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(fs*(2.20682184684432e-26*fs + 8.17344554235261e-19) + 1.15906710571025e-16) + 4.2235930719266e-15) + 7.76975700660911e-14) + 1.26979539981828e-12; b1 = fs*(fs*(fs*(fs*(-1.10341092342216e-25*fs - 2.45203366270578e-18) - 1.15906710571025e-16) + 4.2235930719266e-15) + 2.33092710198273e-13) + 6.34897699909141e-12; b2 = fs*(fs*(fs*(fs*(2.20682184684432e-25*fs + 1.63468910847052e-18) - 2.31813421142051e-16) - 8.44718614385319e-15) + 1.55395140132182e-13) + 1.26979539981828e-11; b3 = fs*(fs*(fs*(fs*(-2.20682184684432e-25*fs + 1.63468910847052e-18) + 2.31813421142051e-16) - 8.44718614385319e-15) - 1.55395140132182e-13) + 1.26979539981828e-11; b4 = fs*(fs*(fs*(fs*(1.10341092342216e-25*fs - 2.45203366270578e-18) + 1.15906710571025e-16) + 4.2235930719266e-15) - 2.33092710198273e-13) + 6.34897699909141e-12; b5 = fs*(fs*(fs*(fs*(-2.20682184684432e-26*fs + 8.17344554235261e-19) - 1.15906710571025e-16) + 4.2235930719266e-15) - 7.76975700660911e-14) + 1.26979539981828e-12; a0 = fs*(fs*(fs*(fs*(5.00590822563103e-27*fs + 1.85439561729349e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) + 9.77706930886932e-13) + 1.59787065310447e-11; a1 = fs*(fs*(fs*(fs*(-2.50295411281552e-26*fs - 5.56318685188047e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) + 2.9331207926608e-12) + 7.98935326552235e-11; a2 = fs*(fs*(fs*(fs*(5.00590822563103e-26*fs + 3.70879123458698e-19) - 2.58426091728115e-16) - 3.83351471280476e-14) + 1.95541386177386e-12) + 1.59787065310447e-10; a3 = fs*(fs*(fs*(fs*(-5.00590822563103e-26*fs + 3.70879123458698e-19) + 2.58426091728115e-16) - 3.83351471280476e-14) - 1.95541386177386e-12) + 1.59787065310447e-10; a4 = fs*(fs*(fs*(fs*(2.50295411281552e-26*fs - 5.56318685188047e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) - 2.9331207926608e-12) + 7.98935326552235e-11; a5 = fs*(fs*(fs*(fs*(-5.00590822563103e-27*fs + 1.85439561729349e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) - 9.77706930886932e-13) + 1.59787065310447e-11; }; supersonicclip = _<: ba.if(signbit(_), supersonic_neg_clip, supersonic_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); supersonic_clip = ffunction(float supersonicclip(float), "supersonic_table.h", ""); supersonic_neg_clip = ffunction(float supersonic_negclip(float), "supersonic_neg_table.h", ""); }; ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999); outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999); process = *(ingain) : p1 : *(0.8) : *(outgain);
https://raw.githubusercontent.com/brummer10/ModularAmpToolKit.lv2/6a27486df4392b32cdf2efb59fe9049f57c399f6/PowerAmps/dsp/supersonic.dsp
faust
generated automatically DO NOT MODIFY!
declare id "supersonic"; declare name "Push Pull 6L6"; declare shortname "SuperSonic"; declare description "Push Pull 6L6"; declare samplerate "96000"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : supersonicclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(fs*(2.20682184684432e-26*fs + 8.17344554235261e-19) + 1.15906710571025e-16) + 4.2235930719266e-15) + 7.76975700660911e-14) + 1.26979539981828e-12; b1 = fs*(fs*(fs*(fs*(-1.10341092342216e-25*fs - 2.45203366270578e-18) - 1.15906710571025e-16) + 4.2235930719266e-15) + 2.33092710198273e-13) + 6.34897699909141e-12; b2 = fs*(fs*(fs*(fs*(2.20682184684432e-25*fs + 1.63468910847052e-18) - 2.31813421142051e-16) - 8.44718614385319e-15) + 1.55395140132182e-13) + 1.26979539981828e-11; b3 = fs*(fs*(fs*(fs*(-2.20682184684432e-25*fs + 1.63468910847052e-18) + 2.31813421142051e-16) - 8.44718614385319e-15) - 1.55395140132182e-13) + 1.26979539981828e-11; b4 = fs*(fs*(fs*(fs*(1.10341092342216e-25*fs - 2.45203366270578e-18) + 1.15906710571025e-16) + 4.2235930719266e-15) - 2.33092710198273e-13) + 6.34897699909141e-12; b5 = fs*(fs*(fs*(fs*(-2.20682184684432e-26*fs + 8.17344554235261e-19) - 1.15906710571025e-16) + 4.2235930719266e-15) - 7.76975700660911e-14) + 1.26979539981828e-12; a0 = fs*(fs*(fs*(fs*(5.00590822563103e-27*fs + 1.85439561729349e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) + 9.77706930886932e-13) + 1.59787065310447e-11; a1 = fs*(fs*(fs*(fs*(-2.50295411281552e-26*fs - 5.56318685188047e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) + 2.9331207926608e-12) + 7.98935326552235e-11; a2 = fs*(fs*(fs*(fs*(5.00590822563103e-26*fs + 3.70879123458698e-19) - 2.58426091728115e-16) - 3.83351471280476e-14) + 1.95541386177386e-12) + 1.59787065310447e-10; a3 = fs*(fs*(fs*(fs*(-5.00590822563103e-26*fs + 3.70879123458698e-19) + 2.58426091728115e-16) - 3.83351471280476e-14) - 1.95541386177386e-12) + 1.59787065310447e-10; a4 = fs*(fs*(fs*(fs*(2.50295411281552e-26*fs - 5.56318685188047e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) - 2.9331207926608e-12) + 7.98935326552235e-11; a5 = fs*(fs*(fs*(fs*(-5.00590822563103e-27*fs + 1.85439561729349e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) - 9.77706930886932e-13) + 1.59787065310447e-11; }; supersonicclip = _<: ba.if(signbit(_), supersonic_neg_clip, supersonic_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); supersonic_clip = ffunction(float supersonicclip(float), "supersonic_table.h", ""); supersonic_neg_clip = ffunction(float supersonic_negclip(float), "supersonic_neg_table.h", ""); }; ingain = vslider("Gain",0,-30,30,0.1) : ba.db2linear : si.smooth(0.999); outgain = vslider("Volume", 0, -30.0, 30.0, 0.1) : ba.db2linear : si.smooth(0.999); process = *(ingain) : p1 : *(0.8) : *(outgain);
dcca42a941fcd9de585f489821b59d2f2f4d3f1616cdea44b35d7fc244fb8f11
brummer10/HarmonicExciter
harmonic_exciter.dsp
/******************************************************************************* **************************** File generated by ********************************* ******************************************************************************** ./build-plug.py -i Harmonic_exiter.sch -b *******************************************************************************/ // generated automatically // DO NOT MODIFY! declare id "harmonic_exciter"; declare name "harmonic_exciter"; declare category "Extern"; declare shortname "harmonic_exciter"; declare description "harmonic_exciter"; import("stdfaust.lib"); /******************************************************************************* * harmonic_exciter_p1 generated by dkbuiler from Harmonic_exiter_p1.sch *******************************************************************************/ p1 = pre : fi.tf1(b0/a0,b1/a0,a1/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Amp = vslider("Amp[name:Amp][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -0.000442226399954678*Amp*fs - 2.07846407978698e-5*fs; b1 = 0.000442226399954678*Amp*fs + 2.07846407978698e-5*fs; a0 = Amp*(4.42226399954678e-9*fs + 3.36313388885063e-23) + 2.07850564906858e-5*fs + 0.00221115411109339; a1 = Amp*(-4.42226399954678e-9*fs + 3.36313388885063e-23) - 2.07850564906858e-5*fs + 0.00221115411109339; }; /******************************************************************************* * harmonic_exciter generated by dkbuiler from Harmonic_exiter.sch *******************************************************************************/ p2 = pre : fi.tf21(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; BPF = vslider("BPF[name:BPF][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s); b0 = BPF*(-5.63050629674648e-10*BPF*pow(fs,2) + fs*(1.29501644825169e-9*fs + 1.28092737323609e-12)) + fs*(-7.44634457744722e-10*fs - 1.47306647922151e-12) - 2.9082612026393e-18; b1 = BPF*(1.1261012593493e-9*BPF*pow(fs,2) - 2.59003289650338e-9*pow(fs,2)) + 1.48926891548944e-9*pow(fs,2) - 5.81652240527859e-18; b2 = BPF*(-5.63050629674648e-10*BPF*pow(fs,2) + fs*(1.29501644825169e-9*fs - 1.28092737323609e-12)) + fs*(-7.44634457744722e-10*fs + 1.47306647922151e-12) - 2.9082612026393e-18; a0 = BPF*(1.01351703374333e-9*BPF*pow(fs,2) + fs*(-2.33108917760966e-9*fs - 4.29548920615801e-7)) + fs*(1.34037627712556e-9*fs + 4.93981258708171e-7) + 5.23496778852866e-8; a1 = BPF*(-2.02703406748666e-9*BPF*pow(fs,2) + 4.66217835521933e-9*pow(fs,2)) - 2.68075255425111e-9*pow(fs,2) + 1.04699355770573e-7; a2 = BPF*(1.01351703374333e-9*BPF*pow(fs,2) + fs*(-2.33108917760966e-9*fs + 4.29548920615801e-7)) + fs*(1.34037627712556e-9*fs - 4.93981258708171e-7) + 5.23496778852866e-8; }; /******************************************************************************* * harmonic_exciter_p2 generated by dkbuiler from Harmonic_exiter_p2.sch *******************************************************************************/ p3 = pre : fi.tf1(b0/a0,b1/a0,a1/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Mix = vslider("Harmonics[name:Harmonics][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -9.6513901108519e-5*Mix*fs; b1 = 9.6513901108519e-5*Mix*fs; a0 = 2.07413945278023e-5*fs + 0.00441306266548985; a1 = -2.07413945278023e-5*fs + 0.00441306266548985; }; harmonic_exciter_clip = _<: ba.if(signbit(_), harmonic_exciterclip, _) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); harmonic_exciterclip = ffunction(float harmonic_exciterclip(float), "harmonic_exciter_table.h", ""); }; /******************************************************************************* * harmonic_exciter_mixer generated by dkbuiler from Harmonic_exiter_mixer.sch *******************************************************************************/ p4 = pre : fi.tf1(b0/a0,b1/a0,a1/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = -2.08326996677116e-5*fs; b1 = 2.08326996677116e-5*fs; a0 = 2.0833116321705e-5*fs + 1.04165581608525e-5; a1 = -2.0833116321705e-5*fs + 1.04165581608525e-5; }; wet = vslider("Direct[name:Direct]", 0.5, 0, 1, 0.01) : si.smooth(0.993); process = p1 <:*(wet), (p2 : harmonic_exciter_clip(p3)):> p4 : fi.dcblockerat(1.0);
https://raw.githubusercontent.com/brummer10/HarmonicExciter/497c9c99e701cf019a17535c568dd6d39c4c9638/Harmonic_Exciter/harmonic_exciter.dsp
faust
****************************************************************************** **************************** File generated by ********************************* ******************************************************************************** ./build-plug.py -i Harmonic_exiter.sch -b ****************************************************************************** generated automatically DO NOT MODIFY! ****************************************************************************** * harmonic_exciter_p1 generated by dkbuiler from Harmonic_exiter_p1.sch ****************************************************************************** ****************************************************************************** * harmonic_exciter generated by dkbuiler from Harmonic_exiter.sch ****************************************************************************** ****************************************************************************** * harmonic_exciter_p2 generated by dkbuiler from Harmonic_exiter_p2.sch ****************************************************************************** ****************************************************************************** * harmonic_exciter_mixer generated by dkbuiler from Harmonic_exiter_mixer.sch ******************************************************************************
declare id "harmonic_exciter"; declare name "harmonic_exciter"; declare category "Extern"; declare shortname "harmonic_exciter"; declare description "harmonic_exciter"; import("stdfaust.lib"); p1 = pre : fi.tf1(b0/a0,b1/a0,a1/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Amp = vslider("Amp[name:Amp][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -0.000442226399954678*Amp*fs - 2.07846407978698e-5*fs; b1 = 0.000442226399954678*Amp*fs + 2.07846407978698e-5*fs; a0 = Amp*(4.42226399954678e-9*fs + 3.36313388885063e-23) + 2.07850564906858e-5*fs + 0.00221115411109339; a1 = Amp*(-4.42226399954678e-9*fs + 3.36313388885063e-23) - 2.07850564906858e-5*fs + 0.00221115411109339; }; p2 = pre : fi.tf21(b0/a0,b1/a0,b2/a0,a1/a0,a2/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; BPF = vslider("BPF[name:BPF][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s); b0 = BPF*(-5.63050629674648e-10*BPF*pow(fs,2) + fs*(1.29501644825169e-9*fs + 1.28092737323609e-12)) + fs*(-7.44634457744722e-10*fs - 1.47306647922151e-12) - 2.9082612026393e-18; b1 = BPF*(1.1261012593493e-9*BPF*pow(fs,2) - 2.59003289650338e-9*pow(fs,2)) + 1.48926891548944e-9*pow(fs,2) - 5.81652240527859e-18; b2 = BPF*(-5.63050629674648e-10*BPF*pow(fs,2) + fs*(1.29501644825169e-9*fs - 1.28092737323609e-12)) + fs*(-7.44634457744722e-10*fs + 1.47306647922151e-12) - 2.9082612026393e-18; a0 = BPF*(1.01351703374333e-9*BPF*pow(fs,2) + fs*(-2.33108917760966e-9*fs - 4.29548920615801e-7)) + fs*(1.34037627712556e-9*fs + 4.93981258708171e-7) + 5.23496778852866e-8; a1 = BPF*(-2.02703406748666e-9*BPF*pow(fs,2) + 4.66217835521933e-9*pow(fs,2)) - 2.68075255425111e-9*pow(fs,2) + 1.04699355770573e-7; a2 = BPF*(1.01351703374333e-9*BPF*pow(fs,2) + fs*(-2.33108917760966e-9*fs + 4.29548920615801e-7)) + fs*(1.34037627712556e-9*fs - 4.93981258708171e-7) + 5.23496778852866e-8; }; p3 = pre : fi.tf1(b0/a0,b1/a0,a1/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Mix = vslider("Harmonics[name:Harmonics][style:knob]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -9.6513901108519e-5*Mix*fs; b1 = 9.6513901108519e-5*Mix*fs; a0 = 2.07413945278023e-5*fs + 0.00441306266548985; a1 = -2.07413945278023e-5*fs + 0.00441306266548985; }; harmonic_exciter_clip = _<: ba.if(signbit(_), harmonic_exciterclip, _) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); harmonic_exciterclip = ffunction(float harmonic_exciterclip(float), "harmonic_exciter_table.h", ""); }; p4 = pre : fi.tf1(b0/a0,b1/a0,a1/a0) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = -2.08326996677116e-5*fs; b1 = 2.08326996677116e-5*fs; a0 = 2.0833116321705e-5*fs + 1.04165581608525e-5; a1 = -2.0833116321705e-5*fs + 1.04165581608525e-5; }; wet = vslider("Direct[name:Direct]", 0.5, 0, 1, 0.01) : si.smooth(0.993); process = p1 <:*(wet), (p2 : harmonic_exciter_clip(p3)):> p4 : fi.dcblockerat(1.0);
cf66a077db0d38157bd742a4a1e9789fa3115f841a7ef5b3aefdaad92dd68a69
friskgit/snares
generic_snarefs.dsp
// -*- compile-command: "cd .. && make sc src=src/generic_snarefs.dsp && cd -"; -*-&& cd -"; -*- declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); import("math.lib") ; // for PI definition import("music.lib") ; // for osci definition //---------------`Snare drum synth` -------------------------- // A snare drum synth based on a frequency shifted osc. // // It takes a single input as the impulse for the synthesis and // outputs a pair of signals where the first is the trigger and // the second is the signal. // // Paramters: // - osc1f: oscilator 1 frequency // - osc2f: oscilator 2 frequency // - tri1: tringle osc frequency // - attack: envelope attack time // - rel: envelope release time // - noise attack: noise envelope attack time // - noise rel: noise envelope release time // - noise lvl: noise level // // 30 Juni 2018 Henrik Frisk [email protected] //--------------------------------------------------- synthgrp(x) = vgroup("snare", x); accent = 1; amp = synthgrp(hslider("amp", 0.5, 0, 2, 0.001)); osc1f = synthgrp(hslider("osc 1 freq", 330, 50, 2000, 0.1)); osc2f = synthgrp(hslider("osc 2 freq", 180, 50, 2000, 0.1)); tri1f = synthgrp(hslider("triangle freq", 111, 50, 2000, 0.1)); fltsw = synthgrp(hslider("filter sweep", 1, 0, 2, 0.001)); osc1 = os.osc(osc1f) *(0.1); osc2 = os.osc(osc2f) *(0.1); tri1 = os.triangle(tri1f) *(0.1); env(x) = en.ar(attack, rel, x) with { attack = synthgrp(hslider("attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = synthgrp(hslider("rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); }; noiseenv(x) = en.ar(attack, rel, x) with { attack = synthgrp(hslider("noise attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = synthgrp(hslider("noise rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); }; // Noise noiselv = synthgrp(hslider("noise lvl", 0.1, 0, 1.5, 0.0001)); n(x) = no.multinoise(8) : par(i, 8, _ * env(x) * noiselv); // Reduce to stereo nse(x) = n(x) :> _ * noiseenv(x) : *(amp); // filt = fi.resonbp(frq, q, gain) // with { // frq = hslider("frq", 200, 50, 5000, 0.1); // q = hslider("q", 1, 0.01, 10, 0.01); // gain = hslider("gn", 0, 0, 2, 0.00001); // }; // Frequence shift mSR = fconstant(int fSamplingFreq , <math.h>); f2smp(freq) = (mSR, freq : / ) ; phasor(smp) = fltsw : +~_ : _,smp : fmod : _,smp : / ; unit(v1) = (_ <: *(v1) , _'' : - ) : + ~ (_', v1 : *); filters = _ <: _,_' :( unit(0.161758): unit(.733029) : unit (.94535) : unit(.990598) ), (unit(.479401) : unit(.876218) : unit (.976599) : unit(.9975) ) ; cmpl_osc(freq) = f2smp(freq) : phasor : _, 6.2831853 : *<: sin,cos; cmpl_mul(in1,in2,in3,in4) = in1*(in3), in2*(in4) ; volume(s) = s : *(amp) : *(accent); trimod = tri1, tri1 : (filters, cmpl_osc) : cmpl_mul <: +,- ; oscs(x) = osc1, osc2 : par(i, 2, _* env(x)); process(x) = trimod : par(i, 2, _ * env(x)), oscs(x) :> _+nse(x) ,_+nse(x) :> _ ; //x,volume(_) ;
https://raw.githubusercontent.com/friskgit/snares/bb43ea5e706a0ead6d65dd176a5c492b2f5d8f74/faust/snare/src/generic_snarefs.dsp
faust
-*- compile-command: "cd .. && make sc src=src/generic_snarefs.dsp && cd -"; -*-&& cd -"; -*- for PI definition for osci definition ---------------`Snare drum synth` -------------------------- A snare drum synth based on a frequency shifted osc. It takes a single input as the impulse for the synthesis and outputs a pair of signals where the first is the trigger and the second is the signal. Paramters: - osc1f: oscilator 1 frequency - osc2f: oscilator 2 frequency - tri1: tringle osc frequency - attack: envelope attack time - rel: envelope release time - noise attack: noise envelope attack time - noise rel: noise envelope release time - noise lvl: noise level 30 Juni 2018 Henrik Frisk [email protected] --------------------------------------------------- Noise Reduce to stereo filt = fi.resonbp(frq, q, gain) with { frq = hslider("frq", 200, 50, 5000, 0.1); q = hslider("q", 1, 0.01, 10, 0.01); gain = hslider("gn", 0, 0, 2, 0.00001); }; Frequence shift x,volume(_) ;
declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); synthgrp(x) = vgroup("snare", x); accent = 1; amp = synthgrp(hslider("amp", 0.5, 0, 2, 0.001)); osc1f = synthgrp(hslider("osc 1 freq", 330, 50, 2000, 0.1)); osc2f = synthgrp(hslider("osc 2 freq", 180, 50, 2000, 0.1)); tri1f = synthgrp(hslider("triangle freq", 111, 50, 2000, 0.1)); fltsw = synthgrp(hslider("filter sweep", 1, 0, 2, 0.001)); osc1 = os.osc(osc1f) *(0.1); osc2 = os.osc(osc2f) *(0.1); tri1 = os.triangle(tri1f) *(0.1); env(x) = en.ar(attack, rel, x) with { attack = synthgrp(hslider("attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = synthgrp(hslider("rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); }; noiseenv(x) = en.ar(attack, rel, x) with { attack = synthgrp(hslider("noise attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = synthgrp(hslider("noise rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); }; noiselv = synthgrp(hslider("noise lvl", 0.1, 0, 1.5, 0.0001)); n(x) = no.multinoise(8) : par(i, 8, _ * env(x) * noiselv); nse(x) = n(x) :> _ * noiseenv(x) : *(amp); mSR = fconstant(int fSamplingFreq , <math.h>); f2smp(freq) = (mSR, freq : / ) ; phasor(smp) = fltsw : +~_ : _,smp : fmod : _,smp : / ; unit(v1) = (_ <: *(v1) , _'' : - ) : + ~ (_', v1 : *); filters = _ <: _,_' :( unit(0.161758): unit(.733029) : unit (.94535) : unit(.990598) ), (unit(.479401) : unit(.876218) : unit (.976599) : unit(.9975) ) ; cmpl_osc(freq) = f2smp(freq) : phasor : _, 6.2831853 : *<: sin,cos; cmpl_mul(in1,in2,in3,in4) = in1*(in3), in2*(in4) ; volume(s) = s : *(amp) : *(accent); trimod = tri1, tri1 : (filters, cmpl_osc) : cmpl_mul <: +,- ; oscs(x) = osc1, osc2 : par(i, 2, _* env(x));
f6193f60a4193e443ea2df751b7f5955cb10994771c3de27c9078d64695ffd5c
friskgit/snares
nosnare.dsp
// -*- compile-command: "cd .. && make jack src=src/nosnare.dsp && cd -"; -*- declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); import("math.lib") ; // for PI definition //---------------`Snare drum synth` -------------------------- // A take at a snare drum synth // // Where: // * midi note 67-89 // * stiffness 0-0.55 (mapped to note as in note 67 -> 0) // * midi velocity 75-127 // * midi velocity is mapped to pressure // A useful parameter setting is: // // // 30 Juni 2018 Henrik Frisk [email protected] //--------------------------------------------------- channels = 14; focus = hslider("focus", 1, 0, 1, 0.0001); position = hslider("position", 1, 0, channels, 1); rate = ma.SR/1000.0; rndctrl = (no.lfnoise(rate) * (channels + 1)) * focus : ma.fabs + position : int ; outputctrl = rndctrl : ba.sAndH(imp); ch_wrapped = ma.modulo(outputctrl, channels); imp = ba.pulse(hslider("tempo", 5000, 500, 10000, 1)); trif = hslider("triangle freq", 111, 10, 5000, 0.1); osc1f = hslider("osc 1 freq", 360, 10, 5000, 0.1); osc2f = hslider("osc 2 freq", 180, 10, 5000, 0.1); osc1 = os.osc(osc1f) *(0.1); osc2 = os.osc(osc2f) *(0.1); tri1 = os.triangle(trif) *(0.1); env = en.ar(attack, rel, imp) with { attack = hslider("attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1); rel = hslider("rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2); }; // Noise envelope n_env = en.asr(attack, sustain, rel, imp) with { attack = hslider("noise attack", 0.00000001, 0, 0.1, 0.0001) : si.smooth(0.1); sustain = hslider("noise sustain", 0.5, 0, 1, 0.0001) : si.smooth(0.1); rel = hslider("noise rel", 0.1, 0.0000001, 0.5, 0.0001) : si.smooth(0.2); }; // Noise nse_vol = hslider("noise vol", 0.1, 0, 1.0, 0.0000001) : si.smooth(0.1); n = no.multinoise(8) : par(i, 8, _ * n_env * nse_vol); filt = fi.resonbp(frq, q, gain) with { frq = hslider("frq", 200, 50, 5000, 0.1); q = hslider("q", 1, 0.01, 10, 0.01); gain = hslider("gn", 0, 0, 2, 0.00001); }; nse = n :> _,_; // Frequence shift mSR = fconstant(int fSamplingFreq , <math.h>); f2smp(freq) = (mSR, freq:/) ; phasor(smp) = 1 : +~_ : _,smp : fmod : _,smp : / ; unit(v1) = (_ <: *(v1) , _'' : - ) : + ~ (_', v1 : *); filters = _ <: _,_' :( unit(0.161758): unit(.733029) : unit (.94535) : unit(.990598) ), (unit(.479401) : unit(.876218) : unit (.976599) : unit(.9975) ) ; cmpl_osc(freq) = f2smp(freq) : phasor : _, 6.2831853 : *<: sin,cos; cmpl_mul(in1,in2,in3,in4) = in1*(in3), in2*(in4) ; // random amp samp = no.lfnoise(100) : ma.fabs; trimod = tri1, tri1 : (filters, cmpl_osc) : cmpl_mul <: +,- ; oscs = osc1, osc2 : par(i, 2, _* env); process = trimod : par(i, 2, _ * env), oscs :> _,_ , nse :> ba.selectoutn(channels, ch_wrapped);
https://raw.githubusercontent.com/friskgit/snares/bb43ea5e706a0ead6d65dd176a5c492b2f5d8f74/faust/snare/src/extras/nosnare.dsp
faust
-*- compile-command: "cd .. && make jack src=src/nosnare.dsp && cd -"; -*- for PI definition ---------------`Snare drum synth` -------------------------- A take at a snare drum synth Where: * midi note 67-89 * stiffness 0-0.55 (mapped to note as in note 67 -> 0) * midi velocity 75-127 * midi velocity is mapped to pressure A useful parameter setting is: 30 Juni 2018 Henrik Frisk [email protected] --------------------------------------------------- Noise envelope Noise Frequence shift random amp
declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); channels = 14; focus = hslider("focus", 1, 0, 1, 0.0001); position = hslider("position", 1, 0, channels, 1); rate = ma.SR/1000.0; rndctrl = (no.lfnoise(rate) * (channels + 1)) * focus : ma.fabs + position : int ; outputctrl = rndctrl : ba.sAndH(imp); ch_wrapped = ma.modulo(outputctrl, channels); imp = ba.pulse(hslider("tempo", 5000, 500, 10000, 1)); trif = hslider("triangle freq", 111, 10, 5000, 0.1); osc1f = hslider("osc 1 freq", 360, 10, 5000, 0.1); osc2f = hslider("osc 2 freq", 180, 10, 5000, 0.1); osc1 = os.osc(osc1f) *(0.1); osc2 = os.osc(osc2f) *(0.1); tri1 = os.triangle(trif) *(0.1); env = en.ar(attack, rel, imp) with { attack = hslider("attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1); rel = hslider("rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2); }; n_env = en.asr(attack, sustain, rel, imp) with { attack = hslider("noise attack", 0.00000001, 0, 0.1, 0.0001) : si.smooth(0.1); sustain = hslider("noise sustain", 0.5, 0, 1, 0.0001) : si.smooth(0.1); rel = hslider("noise rel", 0.1, 0.0000001, 0.5, 0.0001) : si.smooth(0.2); }; nse_vol = hslider("noise vol", 0.1, 0, 1.0, 0.0000001) : si.smooth(0.1); n = no.multinoise(8) : par(i, 8, _ * n_env * nse_vol); filt = fi.resonbp(frq, q, gain) with { frq = hslider("frq", 200, 50, 5000, 0.1); q = hslider("q", 1, 0.01, 10, 0.01); gain = hslider("gn", 0, 0, 2, 0.00001); }; nse = n :> _,_; mSR = fconstant(int fSamplingFreq , <math.h>); f2smp(freq) = (mSR, freq:/) ; phasor(smp) = 1 : +~_ : _,smp : fmod : _,smp : / ; unit(v1) = (_ <: *(v1) , _'' : - ) : + ~ (_', v1 : *); filters = _ <: _,_' :( unit(0.161758): unit(.733029) : unit (.94535) : unit(.990598) ), (unit(.479401) : unit(.876218) : unit (.976599) : unit(.9975) ) ; cmpl_osc(freq) = f2smp(freq) : phasor : _, 6.2831853 : *<: sin,cos; cmpl_mul(in1,in2,in3,in4) = in1*(in3), in2*(in4) ; samp = no.lfnoise(100) : ma.fabs; trimod = tri1, tri1 : (filters, cmpl_osc) : cmpl_mul <: +,- ; oscs = osc1, osc2 : par(i, 2, _* env); process = trimod : par(i, 2, _ * env), oscs :> _,_ , nse :> ba.selectoutn(channels, ch_wrapped);
ee48b18a66d708dd2bee5c2a26a221b731fae8c5a94781ac37ec940e30d2c9d9
friskgit/snares
bass_snare.dsp
// -*- compile-command: "cd .. && make jack src=src/bass_snare.dsp && cd -"; -*- declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); import("math.lib") ; // for PI definition //---------------`Snare drum synth` -------------------------- // A bassy snare drum with controllable noise level and // independent envelope. It takes the impulse as input. // // // 04 Augusti 2019 Henrik Frisk [email protected] //--------------------------------------------------- // GUI syngroup(x) = vgroup("[0]synthesis", x); envgroup(x) = vgroup("[1]envelopes", x); nsegroup(x) = vgroup("[2]noise", x); trif = syngroup(hslider("[2]triangle freq", 10, 10, 5000, 0.1)); osc1f = syngroup(hslider("[0]osc 1 freq", 50, 10, 5000, 0.1)); osc2f = syngroup(hslider("[1]osc 2 freq", 130, 10, 5000, 0.1)); osc1 = os.osc(osc1f) *(0.1); osc2 = os.osc(osc2f) *(0.1); tri1 = os.triangle(trif) *(0.1); env(imp) = en.ar(attack, rel, imp) with { attack = envgroup(hslider("[0]attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = envgroup(hslider("[1]rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); }; // Noise envelope n_env(imp) = en.asr(attack, sustain, rel, imp) with { attack = envgroup(hslider("[2]noise attack", 0.00000001, 0, 0.1, 0.0001) : si.smooth(0.1)); sustain = envgroup(hslider("[3]noise sustain", 0.016, 0, 1, 0.0001) : si.smooth(0.1)); rel = envgroup(hslider("[4] noise rel", 0.1, 0.049, 0.5, 0.0001) : si.smooth(0.2)); }; // Noise nse_vol = nsegroup(hslider("noise vol", 0.073, 0, 1.0, 0.0000001) : si.smooth(0.1)); n(imp) = no.multinoise(8) : par(i, 8, _ * n_env(imp) * nse_vol); filt = fi.resonbp(frq, q, gain) with { frq = nsegroup(hslider("frq", 200, 50, 5000, 0.1)); q = nsegroup(hslider("q", 1, 0.01, 10, 0.01)); gain = nsegroup(hslider("gn", 0, 0, 2, 0.00001)); }; nse(imp) = n(imp) :> _,_; // Frequence shift mSR = fconstant(int fSamplingFreq , <math.h>); f2smp(freq) = (mSR, freq:/) ; phasor(smp) = syngroup(hslider("modulation freq", 0, 0, 10, 0.0001)) : +~_ : _,smp : fmod : _,smp : / ; unit(v1) = (_ <: *(v1) , _'' : - ) : + ~ (_', v1 : *); filters = _ <: _,_' :( unit(0.161758): unit(.733029) : unit (.94535) : unit(.990598) ), (unit(.479401) : unit(.876218) : unit (.976599) : unit(.9975) ) ; cmpl_osc(freq) = f2smp(freq) : phasor : _, 6.2831853 : *<: sin,cos; cmpl_mul(in1,in2,in3,in4) = in1*(in3), in2*(in4) ; // Bandbass to give punch to the sound bpass(x) = x : fi.resonlp(fc, q, gain) with { fc = syngroup(hslider("flt frq", 100, 10, 10000, 0.1)); q = syngroup(hslider("flt Q", 0.1, 0.00001, 20, 0.01)); gain = syngroup(hslider("flt gain", 1, 0.0001, 2, 0.001)); }; // random amp // samp = no.lfnoise(100) : ma.fabs; trimod = tri1, tri1 : (filters, cmpl_osc) : cmpl_mul <: +,- ; oscs(imp) = osc1, osc2 : par(i, 2, _* env(imp)); // take the impulse as input process(x) = trimod : par(i, 2, _ * env(x)), oscs(x) :> _,_ , nse(x) :> bpass(_) ;
https://raw.githubusercontent.com/friskgit/snares/bb43ea5e706a0ead6d65dd176a5c492b2f5d8f74/faust/snare/src/bass_snare.dsp
faust
-*- compile-command: "cd .. && make jack src=src/bass_snare.dsp && cd -"; -*- for PI definition ---------------`Snare drum synth` -------------------------- A bassy snare drum with controllable noise level and independent envelope. It takes the impulse as input. 04 Augusti 2019 Henrik Frisk [email protected] --------------------------------------------------- GUI Noise envelope Noise Frequence shift Bandbass to give punch to the sound random amp samp = no.lfnoise(100) : ma.fabs; take the impulse as input
declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); syngroup(x) = vgroup("[0]synthesis", x); envgroup(x) = vgroup("[1]envelopes", x); nsegroup(x) = vgroup("[2]noise", x); trif = syngroup(hslider("[2]triangle freq", 10, 10, 5000, 0.1)); osc1f = syngroup(hslider("[0]osc 1 freq", 50, 10, 5000, 0.1)); osc2f = syngroup(hslider("[1]osc 2 freq", 130, 10, 5000, 0.1)); osc1 = os.osc(osc1f) *(0.1); osc2 = os.osc(osc2f) *(0.1); tri1 = os.triangle(trif) *(0.1); env(imp) = en.ar(attack, rel, imp) with { attack = envgroup(hslider("[0]attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = envgroup(hslider("[1]rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); }; n_env(imp) = en.asr(attack, sustain, rel, imp) with { attack = envgroup(hslider("[2]noise attack", 0.00000001, 0, 0.1, 0.0001) : si.smooth(0.1)); sustain = envgroup(hslider("[3]noise sustain", 0.016, 0, 1, 0.0001) : si.smooth(0.1)); rel = envgroup(hslider("[4] noise rel", 0.1, 0.049, 0.5, 0.0001) : si.smooth(0.2)); }; nse_vol = nsegroup(hslider("noise vol", 0.073, 0, 1.0, 0.0000001) : si.smooth(0.1)); n(imp) = no.multinoise(8) : par(i, 8, _ * n_env(imp) * nse_vol); filt = fi.resonbp(frq, q, gain) with { frq = nsegroup(hslider("frq", 200, 50, 5000, 0.1)); q = nsegroup(hslider("q", 1, 0.01, 10, 0.01)); gain = nsegroup(hslider("gn", 0, 0, 2, 0.00001)); }; nse(imp) = n(imp) :> _,_; mSR = fconstant(int fSamplingFreq , <math.h>); f2smp(freq) = (mSR, freq:/) ; phasor(smp) = syngroup(hslider("modulation freq", 0, 0, 10, 0.0001)) : +~_ : _,smp : fmod : _,smp : / ; unit(v1) = (_ <: *(v1) , _'' : - ) : + ~ (_', v1 : *); filters = _ <: _,_' :( unit(0.161758): unit(.733029) : unit (.94535) : unit(.990598) ), (unit(.479401) : unit(.876218) : unit (.976599) : unit(.9975) ) ; cmpl_osc(freq) = f2smp(freq) : phasor : _, 6.2831853 : *<: sin,cos; cmpl_mul(in1,in2,in3,in4) = in1*(in3), in2*(in4) ; bpass(x) = x : fi.resonlp(fc, q, gain) with { fc = syngroup(hslider("flt frq", 100, 10, 10000, 0.1)); q = syngroup(hslider("flt Q", 0.1, 0.00001, 20, 0.01)); gain = syngroup(hslider("flt gain", 1, 0.0001, 2, 0.001)); }; trimod = tri1, tri1 : (filters, cmpl_osc) : cmpl_mul <: +,- ; oscs(imp) = osc1, osc2 : par(i, 2, _* env(imp)); process(x) = trimod : par(i, 2, _ * env(x)), oscs(x) :> _,_ , nse(x) :> bpass(_) ;
1b27c568600bc20625f4db5d780830688888ae862b55a764f96945d8d56175f3
maximalexanian/guitarix-vst
gxpreamp.dsp
declare name "PreAmp"; import("stdfaust.lib"); import("../../src/faust/guitarix.lib"); Xprocess = PreAmp with { PreAmp = ffunction(float PreAmp1(float), <math.h>, ""); }; process = *(gain1) : PreAmp1 : fi.highpass(1,31.0) : *(2/92) : *(gain2) : PreAmp2 : fi.highpass(1,31.0) : *(2/92) : *(gain3) : PreAmp3 : fi.highpass(1,31.0) : *(2/92) with { PreAmp1 = ffunction(float PreAmp1(float), <math.h>, ""); PreAmp2 = ffunction(float PreAmp2(float), <math.h>, ""); PreAmp3 = ffunction(float PreAmp3(float), <math.h>, ""); gain1 = vslider("gain1",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); gain2 = vslider("gain2",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); gain3 = vslider("gain3",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); }; /* process = *(gain3) : PreAmp3 : fi.highpass(1,31.0) : *(2/92) : *(gain1) : mix(gain2, PreAmp1 : fi.highpass(1,31.0), PreAmp2 : fi.highpass(1,31.0)) : *(2/92) with { mix(w, Fx1, Fx2) = _ <: Fx1, Fx2 : balance(w) : +; PreAmp1 = ffunction(float PreAmp1(float), <math.h>, ""); PreAmp2 = ffunction(float PreAmp2(float), <math.h>, ""); PreAmp3 = ffunction(float PreAmp3(float), <math.h>, ""); PreAmp4 = ffunction(float PreAmp4(float), <math.h>, ""); PreAmp5 = ffunction(float PreAmp5(float), <math.h>, ""); PreAmp6 = ffunction(float PreAmp6(float), <math.h>, ""); gain1 = vslider("gain1",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); gain2 = vslider("gain2",0,-1,1,0.1); gain3 = vslider("gain3",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); }; */
https://raw.githubusercontent.com/maximalexanian/guitarix-vst/83fd0cbec9588fb2ef47d80f7c6cb0775bfb9f89/guitarix/tools/ampsim/gxpreamp.dsp
faust
process = *(gain3) : PreAmp3 : fi.highpass(1,31.0) : *(2/92) : *(gain1) : mix(gain2, PreAmp1 : fi.highpass(1,31.0), PreAmp2 : fi.highpass(1,31.0)) : *(2/92) with { mix(w, Fx1, Fx2) = _ <: Fx1, Fx2 : balance(w) : +; PreAmp1 = ffunction(float PreAmp1(float), <math.h>, ""); PreAmp2 = ffunction(float PreAmp2(float), <math.h>, ""); PreAmp3 = ffunction(float PreAmp3(float), <math.h>, ""); PreAmp4 = ffunction(float PreAmp4(float), <math.h>, ""); PreAmp5 = ffunction(float PreAmp5(float), <math.h>, ""); PreAmp6 = ffunction(float PreAmp6(float), <math.h>, ""); gain1 = vslider("gain1",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); gain2 = vslider("gain2",0,-1,1,0.1); gain3 = vslider("gain3",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); };
declare name "PreAmp"; import("stdfaust.lib"); import("../../src/faust/guitarix.lib"); Xprocess = PreAmp with { PreAmp = ffunction(float PreAmp1(float), <math.h>, ""); }; process = *(gain1) : PreAmp1 : fi.highpass(1,31.0) : *(2/92) : *(gain2) : PreAmp2 : fi.highpass(1,31.0) : *(2/92) : *(gain3) : PreAmp3 : fi.highpass(1,31.0) : *(2/92) with { PreAmp1 = ffunction(float PreAmp1(float), <math.h>, ""); PreAmp2 = ffunction(float PreAmp2(float), <math.h>, ""); PreAmp3 = ffunction(float PreAmp3(float), <math.h>, ""); gain1 = vslider("gain1",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); gain2 = vslider("gain2",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); gain3 = vslider("gain3",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); };
e23eba68087fb22aaed8cd6257f282adc9c1f6b1ffb5df8ab99c2df2b7e79268
brummer10/guitarix
epiphone.dsp
// generated automatically // DO NOT MODIFY! declare id "epiphone"; declare name "Single ended EL84"; declare shortname "Epiphone"; declare description "Single ended EL84"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : epiphone_jr_outclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(5.16589926047446e-10*fs + 5.33527722168907e-8); b1 = -1.03317985209489e-9*pow(fs,2); b2 = fs*(5.16589926047446e-10*fs - 5.33527722168907e-8); a0 = fs*(4.33069857761234e-10*fs + 4.59724862995143e-8) + 3.68375740341601e-7; a1 = -8.66139715522468e-10*pow(fs,2) + 7.36751480683202e-7; a2 = fs*(4.33069857761234e-10*fs - 4.59724862995143e-8) + 3.68375740341601e-7; }; epiphone_jr_outclip = _<: ba.if(signbit(_), epiphone_jr_out_neg_clip, epiphone_jr_out_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); epiphone_jr_out_clip = ffunction(float epiphone_jr_outclip(float), "epiphone_jr_out_table.h", ""); epiphone_jr_out_neg_clip = ffunction(float epiphone_jr_out_negclip(float), "epiphone_jr_out_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(2.0) : *(poweramp_ctrl.outgain);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/epiphone.dsp
faust
generated automatically DO NOT MODIFY!
declare id "epiphone"; declare name "Single ended EL84"; declare shortname "Epiphone"; declare description "Single ended EL84"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : epiphone_jr_outclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(5.16589926047446e-10*fs + 5.33527722168907e-8); b1 = -1.03317985209489e-9*pow(fs,2); b2 = fs*(5.16589926047446e-10*fs - 5.33527722168907e-8); a0 = fs*(4.33069857761234e-10*fs + 4.59724862995143e-8) + 3.68375740341601e-7; a1 = -8.66139715522468e-10*pow(fs,2) + 7.36751480683202e-7; a2 = fs*(4.33069857761234e-10*fs - 4.59724862995143e-8) + 3.68375740341601e-7; }; epiphone_jr_outclip = _<: ba.if(signbit(_), epiphone_jr_out_neg_clip, epiphone_jr_out_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); epiphone_jr_out_clip = ffunction(float epiphone_jr_outclip(float), "epiphone_jr_out_table.h", ""); epiphone_jr_out_neg_clip = ffunction(float epiphone_jr_out_negclip(float), "epiphone_jr_out_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(2.0) : *(poweramp_ctrl.outgain);
f8c9eca996f3ccd7c05dda93f7e90a9f4c91c90a1d1a970b5625bcce674c0208
maximalexanian/guitarix-vst
flanger_gx.dsp
declare id "flanger_mono_gx"; declare name "Flanger GX"; declare category "Modulation"; import("stdfaust.lib"); h_flanger(dmax, curdel, fb, wet) = _ <: _, (dly : (+:dly)~*(fb)) : mix with { dly = de.fdelay(dmax/2, curdel/2); mix = *(2-wet), _*(wet) : +; }; flanger(dmax, curdel, fb, wet) = _ <: _, (+:dly)~*(fb) : mix with { dly = de.fdelay(dmax, curdel); mix = *(2-wet), _*(wet) : +; }; process = h_flanger(dmax, curdel, fb, wet1) : flanger( dmax, curdel, -fb, wet2) : *(0.25) with { // ma.SR = component("math.lib").ma.SR; dflange = 0.001 * ma.SR * hslider("width[name:Width]", 5.0, 0, 10, 0.01); odflange = 0.001 * ma.SR * hslider("depth[name:Depth]", 0.5, 0, 5, 0.01); dmax = 2048; // > max(dflange+odflange) at rate 96000 freq = hslider("freq[log][name:Speed][unit:Hz]", 0.2, 0.05, 10, 1.06); fb = hslider("feedback[name:Feedback]", -0.707, -0.99, 0.99, 0.01) * (2+abs(mix))/3; lfo = os.oscrs; curdel = odflange+dflange*(1+lfo(freq))/2; //curdel = hslider("de.delay", 20, 0, 400, 0.1); wet = hslider("wet[name:Wet]", 100, 0, 100, 1)/100; mix = hslider("mix[name:Mix]", 0, -1, 1, 0.1); wet1 = wet*min(1,1+mix); wet2 = wet*min(1,1-mix); };
https://raw.githubusercontent.com/maximalexanian/guitarix-vst/83fd0cbec9588fb2ef47d80f7c6cb0775bfb9f89/guitarix/src/plugins/flanger_gx.dsp
faust
ma.SR = component("math.lib").ma.SR; > max(dflange+odflange) at rate 96000 curdel = hslider("de.delay", 20, 0, 400, 0.1);
declare id "flanger_mono_gx"; declare name "Flanger GX"; declare category "Modulation"; import("stdfaust.lib"); h_flanger(dmax, curdel, fb, wet) = _ <: _, (dly : (+:dly)~*(fb)) : mix with { dly = de.fdelay(dmax/2, curdel/2); mix = *(2-wet), _*(wet) : +; }; flanger(dmax, curdel, fb, wet) = _ <: _, (+:dly)~*(fb) : mix with { dly = de.fdelay(dmax, curdel); mix = *(2-wet), _*(wet) : +; }; process = h_flanger(dmax, curdel, fb, wet1) : flanger( dmax, curdel, -fb, wet2) : *(0.25) with { dflange = 0.001 * ma.SR * hslider("width[name:Width]", 5.0, 0, 10, 0.01); odflange = 0.001 * ma.SR * hslider("depth[name:Depth]", 0.5, 0, 5, 0.01); freq = hslider("freq[log][name:Speed][unit:Hz]", 0.2, 0.05, 10, 1.06); fb = hslider("feedback[name:Feedback]", -0.707, -0.99, 0.99, 0.01) * (2+abs(mix))/3; lfo = os.oscrs; curdel = odflange+dflange*(1+lfo(freq))/2; wet = hslider("wet[name:Wet]", 100, 0, 100, 1)/100; mix = hslider("mix[name:Mix]", 0, -1, 1, 0.1); wet1 = wet*min(1,1+mix); wet2 = wet*min(1,1-mix); };
2bc348e4574b6e58ef4690e2fe61be3872b178f522a26fb0d96533925774bc4e
maximalexanian/guitarix-vst
gxpoweramp.dsp
declare name "PowerAmp"; import("stdfaust.lib"); import("../../src/faust/guitarix.lib"); feedbackfilter = (_ <: *(b0), (mem : *(b1)) :> + ~ *(a1)) with { k = *(1e3); M = *(1e6); nF = *(1e-9); pF = *(1e-12); R3 = 100:k; R4m = 22:k; R4 = vslider("R4", R4m, 0, R4m, 100); R5 = 4.7:k; C3 = 100:nF; B0 = R5; B1 = R4*R5*C3; A0 = R3 + R5; A1 = C3*R4*R5 + C3*R3*R5 + C3*R3*R4; a = A0 + 2*A1*ma.SR; a1 = -1 * (A0 - 2*A1*ma.SR) / a; b0 = (B0 + 2*B1*ma.SR) / a; b1 = (B0 - 2*B1*ma.SR) / a; }; Xprocess = PowAmp with { PowAmp = ffunction(float PowAmp(float), <math.h>, ""); }; process = *(pregain) : (+ : PowAmp) ~ (feedbackfilter : *(-fbgain)) : *(postgain) with { PowAmp = ffunction(float PowAmp(float), <math.h>, ""); pregain = vslider("Pregain",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); postgain = vslider("postgain", 0, -20.0, 20.0, 0.1) : ba.db2linear : /(450): smoothi(0.999); fbgain = vslider("fbgain", -1, -40.0, 20.0, 0.1) : ba.db2linear : /(15): smoothi(0.999); };
https://raw.githubusercontent.com/maximalexanian/guitarix-vst/83fd0cbec9588fb2ef47d80f7c6cb0775bfb9f89/guitarix/tools/ampsim/gxpoweramp.dsp
faust
declare name "PowerAmp"; import("stdfaust.lib"); import("../../src/faust/guitarix.lib"); feedbackfilter = (_ <: *(b0), (mem : *(b1)) :> + ~ *(a1)) with { k = *(1e3); M = *(1e6); nF = *(1e-9); pF = *(1e-12); R3 = 100:k; R4m = 22:k; R4 = vslider("R4", R4m, 0, R4m, 100); R5 = 4.7:k; C3 = 100:nF; B0 = R5; B1 = R4*R5*C3; A0 = R3 + R5; A1 = C3*R4*R5 + C3*R3*R5 + C3*R3*R4; a = A0 + 2*A1*ma.SR; a1 = -1 * (A0 - 2*A1*ma.SR) / a; b0 = (B0 + 2*B1*ma.SR) / a; b1 = (B0 - 2*B1*ma.SR) / a; }; Xprocess = PowAmp with { PowAmp = ffunction(float PowAmp(float), <math.h>, ""); }; process = *(pregain) : (+ : PowAmp) ~ (feedbackfilter : *(-fbgain)) : *(postgain) with { PowAmp = ffunction(float PowAmp(float), <math.h>, ""); pregain = vslider("Pregain",0,-20,40,0.1) : ba.db2linear : smoothi(0.999); postgain = vslider("postgain", 0, -20.0, 20.0, 0.1) : ba.db2linear : /(450): smoothi(0.999); fbgain = vslider("fbgain", -1, -40.0, 20.0, 0.1) : ba.db2linear : /(15): smoothi(0.999); };
7aa9d50b96b25f752ee6b0e9b25a172451329fe2f5b509b87ca7c8c80d153474
brummer10/guitarix
champ.dsp
// generated automatically // DO NOT MODIFY! declare id "camp"; declare name "Single ended 6V6GT"; declare shortname "Champ"; declare description "Single ended 6V6GT"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : tweedchampclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(1.34550628657417e-13*fs + 6.51622383244889e-12) + 2.15398655450798e-14); b1 = fs*(fs*(-4.0365188597225e-13*fs - 6.51622383244889e-12) + 2.15398655450798e-14); b2 = fs*(fs*(4.0365188597225e-13*fs - 6.51622383244889e-12) - 2.15398655450798e-14); b3 = fs*(fs*(-1.34550628657417e-13*fs + 6.51622383244889e-12) - 2.15398655450798e-14); a0 = fs*(fs*(9.02998098452965e-15*fs + 5.88367790860307e-13) + 1.54838623349919e-11) + 3.43362590256886e-10; a1 = fs*(fs*(-2.7089942953589e-14*fs - 5.88367790860307e-13) + 1.54838623349919e-11) + 1.03008777077066e-9; a2 = fs*(fs*(2.7089942953589e-14*fs - 5.88367790860307e-13) - 1.54838623349919e-11) + 1.03008777077066e-9; a3 = fs*(fs*(-9.02998098452965e-15*fs + 5.88367790860307e-13) - 1.54838623349919e-11) + 3.43362590256886e-10; }; tweedchampclip = _<: ba.if(signbit(_), tweedchamp_neg_clip, tweedchamp_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); tweedchamp_clip = ffunction(float tweedchampclip(float), "tweedchamp_table.h", ""); tweedchamp_neg_clip = ffunction(float tweedchamp_negclip(float), "tweedchamp_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(0.2) : *(poweramp_ctrl.outgain) ;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/champ.dsp
faust
generated automatically DO NOT MODIFY!
declare id "camp"; declare name "Single ended 6V6GT"; declare shortname "Champ"; declare description "Single ended 6V6GT"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : tweedchampclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(1.34550628657417e-13*fs + 6.51622383244889e-12) + 2.15398655450798e-14); b1 = fs*(fs*(-4.0365188597225e-13*fs - 6.51622383244889e-12) + 2.15398655450798e-14); b2 = fs*(fs*(4.0365188597225e-13*fs - 6.51622383244889e-12) - 2.15398655450798e-14); b3 = fs*(fs*(-1.34550628657417e-13*fs + 6.51622383244889e-12) - 2.15398655450798e-14); a0 = fs*(fs*(9.02998098452965e-15*fs + 5.88367790860307e-13) + 1.54838623349919e-11) + 3.43362590256886e-10; a1 = fs*(fs*(-2.7089942953589e-14*fs - 5.88367790860307e-13) + 1.54838623349919e-11) + 1.03008777077066e-9; a2 = fs*(fs*(2.7089942953589e-14*fs - 5.88367790860307e-13) - 1.54838623349919e-11) + 1.03008777077066e-9; a3 = fs*(fs*(-9.02998098452965e-15*fs + 5.88367790860307e-13) - 1.54838623349919e-11) + 3.43362590256886e-10; }; tweedchampclip = _<: ba.if(signbit(_), tweedchamp_neg_clip, tweedchamp_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); tweedchamp_clip = ffunction(float tweedchampclip(float), "tweedchamp_table.h", ""); tweedchamp_neg_clip = ffunction(float tweedchamp_negclip(float), "tweedchamp_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(0.2) : *(poweramp_ctrl.outgain) ;
c26a0b444fd954ea3886f7a77d47952c46ad736b22c5a34ddba17d9b561daefe
sadko4u/tamgamp.lv2
vox_ac30_normal.dsp
/* * Simulation of VOX AC-30 normal channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "vox_ac30_normal"; declare name "vox_ac30_normal"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = fs*gain*(-2.95426319132753e-8*fs - 3.93901758843667e-7); b1 = 5.90852638265507e-8*pow(fs,2)*gain; b2 = fs*gain*(-2.95426319132753e-8*fs + 3.93901758843667e-7); a0 = fs*(4.33649382290441e-10*fs + 1.81594277789899e-8) + 1.7066943322007e-7; a1 = -8.67298764580881e-10*pow(fs,2) + 3.4133886644014e-7; a2 = fs*(4.33649382290441e-10*fs - 1.81594277789899e-8) + 1.7066943322007e-7; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/vox_ac30_normal/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/vox_ac30_normal/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s02_stage2clip with { fs = float(ma.SR); b0 = pow(fs,2)*(1.66051214997777e-13*fs + 6.26909307070816e-14); b1 = pow(fs,2)*(-4.9815364499333e-13*fs - 6.26909307070816e-14); b2 = pow(fs,2)*(4.9815364499333e-13*fs - 6.26909307070816e-14); b3 = pow(fs,2)*(-1.66051214997777e-13*fs + 6.26909307070816e-14); a0 = fs*(fs*(9.03712610288755e-15*fs + 2.45691087748693e-13) + 1.6200511205926e-12) + 8.32789355310672e-13; a1 = fs*(fs*(-2.71113783086627e-14*fs - 2.45691087748693e-13) + 1.6200511205926e-12) + 2.49836806593202e-12; a2 = fs*(fs*(2.71113783086627e-14*fs - 2.45691087748693e-13) - 1.6200511205926e-12) + 2.49836806593202e-12; a3 = fs*(fs*(-9.03712610288755e-15*fs + 2.45691087748693e-13) - 1.6200511205926e-12) + 8.32789355310672e-13; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/vox_ac30_normal/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/vox_ac30_normal/s02_stage2_neg_table.h", ""); }; process = *(pregain) : *(0.12) : p1 : *(0.89) : p2 : *(1.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/vox_ac30_normal.dsp
faust
* Simulation of VOX AC-30 normal channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "vox_ac30_normal"; declare name "vox_ac30_normal"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = fs*gain*(-2.95426319132753e-8*fs - 3.93901758843667e-7); b1 = 5.90852638265507e-8*pow(fs,2)*gain; b2 = fs*gain*(-2.95426319132753e-8*fs + 3.93901758843667e-7); a0 = fs*(4.33649382290441e-10*fs + 1.81594277789899e-8) + 1.7066943322007e-7; a1 = -8.67298764580881e-10*pow(fs,2) + 3.4133886644014e-7; a2 = fs*(4.33649382290441e-10*fs - 1.81594277789899e-8) + 1.7066943322007e-7; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/vox_ac30_normal/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/vox_ac30_normal/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s02_stage2clip with { fs = float(ma.SR); b0 = pow(fs,2)*(1.66051214997777e-13*fs + 6.26909307070816e-14); b1 = pow(fs,2)*(-4.9815364499333e-13*fs - 6.26909307070816e-14); b2 = pow(fs,2)*(4.9815364499333e-13*fs - 6.26909307070816e-14); b3 = pow(fs,2)*(-1.66051214997777e-13*fs + 6.26909307070816e-14); a0 = fs*(fs*(9.03712610288755e-15*fs + 2.45691087748693e-13) + 1.6200511205926e-12) + 8.32789355310672e-13; a1 = fs*(fs*(-2.71113783086627e-14*fs - 2.45691087748693e-13) + 1.6200511205926e-12) + 2.49836806593202e-12; a2 = fs*(fs*(2.71113783086627e-14*fs - 2.45691087748693e-13) - 1.6200511205926e-12) + 2.49836806593202e-12; a3 = fs*(fs*(-9.03712610288755e-15*fs + 2.45691087748693e-13) - 1.6200511205926e-12) + 8.32789355310672e-13; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/vox_ac30_normal/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/vox_ac30_normal/s02_stage2_neg_table.h", ""); }; process = *(pregain) : *(0.12) : p1 : *(0.89) : p2 : *(1.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
58e42e7814a9e0cf1142fa7f074ec9ac91c34ff82fae6c96b408c3df61f07447
brummer10/guitarix
orangedarkterror.dsp
// generated automatically // DO NOT MODIFY! declare id "orangedarkterror"; declare name "Push Pull EL84"; declare shortname "OrangeDarkTerror"; declare description "Push Pull EL84"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : orangedarkterrorp3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(-6.57377333665727e-19*fs - 4.01607201070155e-17) - 4.37865590304316e-21) + 1.22291757237028e-24); b1 = fs*(pow(fs,2)*(2.62950933466291e-18*fs + 8.03214402140309e-17) + 2.44583514474056e-24); b2 = pow(fs,2)*(-3.94426400199436e-18*pow(fs,2) + 8.75731180608631e-21); b3 = fs*(pow(fs,2)*(2.62950933466291e-18*fs - 8.03214402140309e-17) - 2.44583514474056e-24); b4 = fs*(fs*(fs*(-6.57377333665727e-19*fs + 4.01607201070155e-17) - 4.37865590304316e-21) - 1.22291757237028e-24); a0 = fs*(fs*(fs*(1.86957288162412e-19*fs + 6.82010407286301e-17) + 4.53454013961264e-15) + 6.51104139918237e-14) + 4.73642640396319e-17; a1 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs - 1.3640208145726e-16) + 1.30220827983647e-13) + 1.89457056158527e-16; a2 = pow(fs,2)*(1.12174372897447e-18*pow(fs,2) - 9.06908027922528e-15) + 2.84185584237791e-16; a3 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs + 1.3640208145726e-16) - 1.30220827983647e-13) + 1.89457056158527e-16; a4 = fs*(fs*(fs*(1.86957288162412e-19*fs - 6.82010407286301e-17) + 4.53454013961264e-15) - 6.51104139918237e-14) + 4.73642640396319e-17; }; orangedarkterrorp3clip = _<: ba.if(signbit(_), orangedarkterrorp3_neg_clip, orangedarkterrorp3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); orangedarkterrorp3_clip = ffunction(float orangedarkterrorp3clip(float), "orangedarkterrorp3_table.h", ""); orangedarkterrorp3_neg_clip = ffunction(float orangedarkterrorp3_negclip(float), "orangedarkterrorp3_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(0.6) : *(poweramp_ctrl.outgain);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/orangedarkterror.dsp
faust
generated automatically DO NOT MODIFY!
declare id "orangedarkterror"; declare name "Push Pull EL84"; declare shortname "OrangeDarkTerror"; declare description "Push Pull EL84"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : orangedarkterrorp3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(-6.57377333665727e-19*fs - 4.01607201070155e-17) - 4.37865590304316e-21) + 1.22291757237028e-24); b1 = fs*(pow(fs,2)*(2.62950933466291e-18*fs + 8.03214402140309e-17) + 2.44583514474056e-24); b2 = pow(fs,2)*(-3.94426400199436e-18*pow(fs,2) + 8.75731180608631e-21); b3 = fs*(pow(fs,2)*(2.62950933466291e-18*fs - 8.03214402140309e-17) - 2.44583514474056e-24); b4 = fs*(fs*(fs*(-6.57377333665727e-19*fs + 4.01607201070155e-17) - 4.37865590304316e-21) - 1.22291757237028e-24); a0 = fs*(fs*(fs*(1.86957288162412e-19*fs + 6.82010407286301e-17) + 4.53454013961264e-15) + 6.51104139918237e-14) + 4.73642640396319e-17; a1 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs - 1.3640208145726e-16) + 1.30220827983647e-13) + 1.89457056158527e-16; a2 = pow(fs,2)*(1.12174372897447e-18*pow(fs,2) - 9.06908027922528e-15) + 2.84185584237791e-16; a3 = fs*(pow(fs,2)*(-7.47829152649647e-19*fs + 1.3640208145726e-16) - 1.30220827983647e-13) + 1.89457056158527e-16; a4 = fs*(fs*(fs*(1.86957288162412e-19*fs - 6.82010407286301e-17) + 4.53454013961264e-15) - 6.51104139918237e-14) + 4.73642640396319e-17; }; orangedarkterrorp3clip = _<: ba.if(signbit(_), orangedarkterrorp3_neg_clip, orangedarkterrorp3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); orangedarkterrorp3_clip = ffunction(float orangedarkterrorp3clip(float), "orangedarkterrorp3_table.h", ""); orangedarkterrorp3_neg_clip = ffunction(float orangedarkterrorp3_negclip(float), "orangedarkterrorp3_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(0.6) : *(poweramp_ctrl.outgain);
df7c423bc04e53120d499925b7979780ebf4e4a4b817f366a94bc718a45d80ff
brummer10/guitarix
plexiel34.dsp
// generated automatically // DO NOT MODIFY! declare id "plexiel34"; declare name "Push Pull EL34"; declare shortname "PlexiEL34"; declare description "PlexiEL34"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : plexipowerampel34clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(3.87560926163844e-19*fs + 4.30800903120125e-16) + 3.17509705609174e-17) + 5.3495467261267e-19); b1 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs - 8.61601806240251e-16) + 1.06990934522534e-18); b2 = pow(fs,2)*(2.32536555698307e-18*pow(fs,2) - 6.35019411218347e-17); b3 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs + 8.61601806240251e-16) - 1.06990934522534e-18); b4 = fs*(fs*(fs*(3.87560926163844e-19*fs - 4.30800903120125e-16) + 3.17509705609174e-17) - 5.3495467261267e-19); a0 = fs*(fs*(fs*(1.82693733893894e-19*fs + 2.71243523616587e-16) + 8.16290535602033e-14) + 4.64147298174261e-12) + 4.00158102875003e-12; a1 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs - 5.42487047233173e-16) + 9.28294596348523e-12) + 1.60063241150001e-11; a2 = pow(fs,2)*(1.09616240336336e-18*pow(fs,2) - 1.63258107120407e-13) + 2.40094861725002e-11; a3 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs + 5.42487047233173e-16) - 9.28294596348523e-12) + 1.60063241150001e-11; a4 = fs*(fs*(fs*(1.82693733893894e-19*fs - 2.71243523616587e-16) + 8.16290535602033e-14) - 4.64147298174261e-12) + 4.00158102875003e-12; }; plexipowerampel34clip = _<: ba.if(signbit(_), plexipowerampel34_neg_clip, plexipowerampel34_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); plexipowerampel34_clip = ffunction(float plexipowerampel34clip(float), "plexipowerampel34_table.h", ""); plexipowerampel34_neg_clip = ffunction(float plexipowerampel34_negclip(float), "plexipowerampel34_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(poweramp_ctrl.outgain) ;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/plexiel34.dsp
faust
generated automatically DO NOT MODIFY!
declare id "plexiel34"; declare name "Push Pull EL34"; declare shortname "PlexiEL34"; declare description "PlexiEL34"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : plexipowerampel34clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(3.87560926163844e-19*fs + 4.30800903120125e-16) + 3.17509705609174e-17) + 5.3495467261267e-19); b1 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs - 8.61601806240251e-16) + 1.06990934522534e-18); b2 = pow(fs,2)*(2.32536555698307e-18*pow(fs,2) - 6.35019411218347e-17); b3 = fs*(pow(fs,2)*(-1.55024370465538e-18*fs + 8.61601806240251e-16) - 1.06990934522534e-18); b4 = fs*(fs*(fs*(3.87560926163844e-19*fs - 4.30800903120125e-16) + 3.17509705609174e-17) - 5.3495467261267e-19); a0 = fs*(fs*(fs*(1.82693733893894e-19*fs + 2.71243523616587e-16) + 8.16290535602033e-14) + 4.64147298174261e-12) + 4.00158102875003e-12; a1 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs - 5.42487047233173e-16) + 9.28294596348523e-12) + 1.60063241150001e-11; a2 = pow(fs,2)*(1.09616240336336e-18*pow(fs,2) - 1.63258107120407e-13) + 2.40094861725002e-11; a3 = fs*(pow(fs,2)*(-7.30774935575574e-19*fs + 5.42487047233173e-16) - 9.28294596348523e-12) + 1.60063241150001e-11; a4 = fs*(fs*(fs*(1.82693733893894e-19*fs - 2.71243523616587e-16) + 8.16290535602033e-14) - 4.64147298174261e-12) + 4.00158102875003e-12; }; plexipowerampel34clip = _<: ba.if(signbit(_), plexipowerampel34_neg_clip, plexipowerampel34_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); plexipowerampel34_clip = ffunction(float plexipowerampel34clip(float), "plexipowerampel34_table.h", ""); plexipowerampel34_neg_clip = ffunction(float plexipowerampel34_negclip(float), "plexipowerampel34_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(poweramp_ctrl.outgain) ;
c354317deb3a5f3d1eb851be7deefd9c583beae232085ac1e7fde0a795cd4568
magnetophon/shapeLimiter
shapeLimiter.dsp
declare author "Bart Brouns"; declare license "GPLv3"; declare name "shaperLimiter"; import("stdfaust.lib"); // power = 5; power = 11; // power = 13; // power = 16; process = limTest; testRouting = ( ro.interleave(power,2) : par(i, power, (FB~(_,!):(!,_))) :minOfN(power) ) ~(_<:si.bus(power)) ; FB(prev,prev2,x) = prev+1,prev+x; // TODO: sprecial state for going up and attacking at the same time: shorter keepDirection // make speed dependant on distance to target trough min(0) or max(0) // // crossfade from old-dir to newval: faster if speed-difference is small limTest = testSignal*checkbox("signal") : ParalelOpsOfPow2(min,power) : ((_<:(si.bus(power+2))),si.bus(power-1),(_<:(si.bus(power+2)))) : ( // si.bus(power+1) // par(i, power+1, _@restDelay(power,hslider("delay", 0, 0, power, 1):pow2) ) // restDelay is 0 in this case, but I might want to change that par(i, power+1, _@restDelay(power,i) ) , par(i, power+1, _@restDelay(power,i) ) , par(i, power+1, _@restDelay(power,power) ) // restDelay is 0 in this case, but I might want to change that // , par(i, power+1, _@restDelay(power,hslider("delay", 0, 0, power, 1):pow2) ) // restDelay is 0 in this case, but I might want to change that ) : ( ro.interleave(power+1,5) : par(i, power+1, (rampFromTo(i)~_):(!,_,_)) : ro.interleave(2,power+1) // :(minOfN(power+1),minOfN(power+1)) :(ba.selectn(power+1,sel),minOfN(power+1)) ) ~((_<:si.bus((power+1))),(_<:si.bus((power+1)))) // : ParalelOpsOfPow2(min,power) : (par(i, power, !),_) // : ((rampFromTo(power)~(_,_)):(!,_)) // : ((rampFromTo(power)~(_,_,_)):(_,_,_)) ,testSignal@(pow2(power)-1) with { sel = hslider("sel", 0, 0, power+1, 1); // ramp 0 = 1 // ramp 1 = 1/2 // ramp 2 = 1/4 // ramp 3 = 1/8 // ramp 4 = 1/16 // ramp 5 = 1/32 rampFromTo(i,prevRamp,prevVal,prevLin,momentaryTarget,target,lowestTarget) = ramp(pow2(i),trig) // , (it.interpolate_linear( // ramp(pow2(i),trig):shaper // ,keepDirection,to) // : slowDownNearTarget // <: (_,overShootShaper) // ) // , trig , ramp(pow2(i),trig) // , target , linCur // ,attacking // , 1 // , linCur // ,to // ,currentDirection // , slowDownAmount // ,proposedDirection // , state // , (ramp(pow2(i),trig):shaper) with { // ramp(n,reset) = ((select2(reset*((_==1)|(_==0)),_+(1/n):min(1),1/n))+(n<1):min(1))~(_<:(_,_,_)); ramp(n,reset) = ((select2(reset,_+(1/n):min(1),1/n))+(n<1):min(1))~_; keepDirection = ((_+oldDirection)~(_*(1-trig)))+from; oldDirection = ((prevVal-prevVal'):ba.sAndH(trig)); // currentDirection = (to-from); currentDirection = (prevLin - prevLin')*pow2(i); // / pow2(i); // proposedDirection = (linCur - linCur')*pow2(i); proposedDirection = (lowestTarget - prevLin ); // / pow2(i); from = prevVal:ba.sAndH(trig); linFrom = prevLin:ba.sAndH(trig); to = target:ba.sAndH(trig); momentaryTo = momentaryTarget:ba.sAndH(trig); // trig = (target!=target'); trig = loop~_ with { loop(FB) = // proposedDirection < currentDirection // | (currentDirection == 0) select2(attacking , ( // target<(target:ba.sAndH(FB)) // target<(target') // (proposedDirection < (currentDirection*((pow2(i)+offset)/pow2(i) ))) // ((proposedDirection * (1-(offset*prevRamp))) < currentDirection) ( momentaryTarget<(momentaryTarget:ba.sAndH(FB)) ) // ( lowestTarget<(lowestTarget:ba.sAndH(FB)) ) // | lowestTarget < target // | (lowestTarget > prevLin : ba.impulsify) // | (lowestTarget > target ) // ((proposedDirection*(1+(prevRamp*pow2(i)))) < currentDirection) | (currentDirection == 0) ) , proposedDirection < currentDirection ) // | impulse // TODO: replace with os.impulse: | button("reset") // | ((prevVal == prevVal'):ba.impulsify) ; }; offset = hslider("offset", 0, -pow2(power), pow2(power), 1); // attacking = lowestTarget < prevLin; attacking = momentaryTarget < prevLin; impulse = 1-1'; // trig = (target<target') | ((prevRamp == 1) & (target>target')) ; // trig = (target<target') | ((prevRamp == 1) & (min(target,target@pow2(i))>target')) ; // trig = (target<target') | ((prevRamp == 1) & (target>min(target',prevVal))) ; state = prevVal>to; linCur = it.interpolate_linear( ramp(pow2(i),trig) ,linFrom,select2(attacking,momentaryTo,to)); slowDownNearTarget(x) = select2(checkbox("slowdown enable") , x , (x-prevVal) *(slowDownAmount) + prevVal); // slowDownNearTarget(x) = (x-x') * slowDownAmount + x'; slowDownAmount = // 1 (1-(1-normalisedDelta :pow(hslider("slowDown", 0.5, 0.00001, 30, 0.001)))) *const:min(1):max(0) // :hbargraph("slow", 0, 1) ; const = hslider("const", 1, 0, 10, 0.001); // delta = (prevVal-(testSignal@pow2(i))); delta = (prevVal-target); deltaTrig = abs(delta)>abs(delta'); normalisedDelta = delta:abs ; // / (delta:ba.sAndH(trig)); // normalisedDelta = delta / (delta:ba.sAndH(deltaTrig)); overShootShaper(x) = select2(checkbox("overs"),x, select2(to == 0, max(x/to,sin(ma.PI*(x/to-0.5)))*to, x) ); }; // minOfN(0) = !; // minOfN(1) = _; // minOfN(N) = seq(i, N-1, min,myBus(N-i-2)); // delays(N) = (par(i, N-1, (_@restDelay(N,i))),_); // restDelay(N,i) = pow2(N)-pow2(i); }; minOfN(0) = !; minOfN(1) = _; minOfN(N) = seq(i, N-1, min,myBus(N-i-2)); maxOfN(0) = !; maxOfN(1) = _; maxOfN(N) = seq(i, N-1, max,myBus(N-i-2)); delays(N) = (par(i, N-1, (_@restDelay(N,i))),_); restDelay(N,i) = pow2(N)-pow2(i); SOFTenvelope = it.interpolate_linear(theRamp,keepDirection,to(state)); xParalelOpsOfPow2(op,power) = _<:(si.bus(power+1)); ParalelOpsOfPow2(op,power) = seq(i, power, myBus(i) , ( _<: ( _ , ((_,_@pow2(i)):op) ) ) ); pow2(i) = 1<<i; myBus(0) = 0:!; myBus(i) = si.bus(i); // https://www.desmos.com/calculator/oufrdvzdcv // based on: // Adjustable Sigmoid Curve (S-Curve) // https://math.stackexchange.com/questions/459872/adjustable-sigmoid-curve-s-curve-from-0-0-to-1-1 // https://www.desmos.com/calculator/tswgrnoosy shaper(x) = nts3(sin(ma.PI*(x-0.5)),k1,k2,k3)*0.5+0.5; // shaper(x,k1,k2,k3) = nts3(sin(ma.PI*(x-0.5)),k1,k2,k3); nts3(x,k1,k2,k3) = fd(nts(fc(nts(fd(nts(fc(x),k1)),k2)),k3)) with { nts(x,k) = (x-x*k)/(k-abs(x)*2*k+1); fc(x) = x*0.5 + 0.5; fd(x) = 2*x-1; }; // ntsSin(x,k1,k2,k3) = // .99 = .956 // limiter shaper: // https://www.desmos.com/calculator/hkqvmomfzp k1 = hslider("k1", 0, -1, 1, 0.001):si.smoo; k2 = hslider("k2", 0, -1, 1, 0.001):si.smoo; k3 = hslider("k3", 0, -1, 1, 0.001):si.smoo; blockRate = hslider("[0]block rate", 0.001, 0, 10, 0.001)*100000; noiseLevel = hslider("[1]noise level", 0, 0, 1, 0.01); noiseRate = hslider("[2]noise rate", 20, 10, 20000, 10); totalLatency = pow2(power); testSignal = vgroup("testSignal", no.lfnoise0(blockRate / totalLatency * (1+((no.lfnoise(blockRate/totalLatency):pow(8):abs)*totalLatency*hslider("blockVar", 0, 0, 1, 0.001)) )) :pow(3)*(1-noiseLevel) +(no.lfnoise(noiseRate):pow(3) *noiseLevel):min(0)) ;
https://raw.githubusercontent.com/magnetophon/shapeLimiter/eeb9bda3eb07b53dada515ccc2452ac47d14cc07/shapeLimiter.dsp
faust
power = 5; power = 13; power = 16; TODO: sprecial state for going up and attacking at the same time: shorter keepDirection make speed dependant on distance to target trough min(0) or max(0) crossfade from old-dir to newval: faster if speed-difference is small si.bus(power+1) par(i, power+1, _@restDelay(power,hslider("delay", 0, 0, power, 1):pow2) ) // restDelay is 0 in this case, but I might want to change that restDelay is 0 in this case, but I might want to change that , par(i, power+1, _@restDelay(power,hslider("delay", 0, 0, power, 1):pow2) ) // restDelay is 0 in this case, but I might want to change that :(minOfN(power+1),minOfN(power+1)) : ParalelOpsOfPow2(min,power) : (par(i, power, !),_) : ((rampFromTo(power)~(_,_)):(!,_)) : ((rampFromTo(power)~(_,_,_)):(_,_,_)) ramp 0 = 1 ramp 1 = 1/2 ramp 2 = 1/4 ramp 3 = 1/8 ramp 4 = 1/16 ramp 5 = 1/32 , (it.interpolate_linear( ramp(pow2(i),trig):shaper ,keepDirection,to) : slowDownNearTarget <: (_,overShootShaper) ) , trig , target ,attacking , 1 , linCur ,to ,currentDirection , slowDownAmount ,proposedDirection , state , (ramp(pow2(i),trig):shaper) ramp(n,reset) = ((select2(reset*((_==1)|(_==0)),_+(1/n):min(1),1/n))+(n<1):min(1))~(_<:(_,_,_)); currentDirection = (to-from); / pow2(i); proposedDirection = (linCur - linCur')*pow2(i); / pow2(i); trig = (target!=target'); proposedDirection < currentDirection | (currentDirection == 0) target<(target:ba.sAndH(FB)) target<(target') (proposedDirection < (currentDirection*((pow2(i)+offset)/pow2(i) ))) ((proposedDirection * (1-(offset*prevRamp))) < currentDirection) ( lowestTarget<(lowestTarget:ba.sAndH(FB)) ) | lowestTarget < target | (lowestTarget > prevLin : ba.impulsify) | (lowestTarget > target ) ((proposedDirection*(1+(prevRamp*pow2(i)))) < currentDirection) | impulse // TODO: replace with os.impulse: | ((prevVal == prevVal'):ba.impulsify) attacking = lowestTarget < prevLin; trig = (target<target') | ((prevRamp == 1) & (target>target')) ; trig = (target<target') | ((prevRamp == 1) & (min(target,target@pow2(i))>target')) ; trig = (target<target') | ((prevRamp == 1) & (target>min(target',prevVal))) ; slowDownNearTarget(x) = (x-x') * slowDownAmount + x'; 1 :hbargraph("slow", 0, 1) delta = (prevVal-(testSignal@pow2(i))); / (delta:ba.sAndH(trig)); normalisedDelta = delta / (delta:ba.sAndH(deltaTrig)); minOfN(0) = !; minOfN(1) = _; minOfN(N) = seq(i, N-1, min,myBus(N-i-2)); delays(N) = (par(i, N-1, (_@restDelay(N,i))),_); restDelay(N,i) = pow2(N)-pow2(i); https://www.desmos.com/calculator/oufrdvzdcv based on: Adjustable Sigmoid Curve (S-Curve) https://math.stackexchange.com/questions/459872/adjustable-sigmoid-curve-s-curve-from-0-0-to-1-1 https://www.desmos.com/calculator/tswgrnoosy shaper(x,k1,k2,k3) = nts3(sin(ma.PI*(x-0.5)),k1,k2,k3); ntsSin(x,k1,k2,k3) = .99 = .956 limiter shaper: https://www.desmos.com/calculator/hkqvmomfzp
declare author "Bart Brouns"; declare license "GPLv3"; declare name "shaperLimiter"; import("stdfaust.lib"); power = 11; process = limTest; testRouting = ( ro.interleave(power,2) : par(i, power, (FB~(_,!):(!,_))) :minOfN(power) ) ~(_<:si.bus(power)) ; FB(prev,prev2,x) = prev+1,prev+x; limTest = testSignal*checkbox("signal") : ParalelOpsOfPow2(min,power) : ((_<:(si.bus(power+2))),si.bus(power-1),(_<:(si.bus(power+2)))) : ( par(i, power+1, _@restDelay(power,i) ) , par(i, power+1, _@restDelay(power,i) ) ) : ( ro.interleave(power+1,5) : par(i, power+1, (rampFromTo(i)~_):(!,_,_)) : ro.interleave(2,power+1) :(ba.selectn(power+1,sel),minOfN(power+1)) ) ~((_<:si.bus((power+1))),(_<:si.bus((power+1)))) ,testSignal@(pow2(power)-1) with { sel = hslider("sel", 0, 0, power+1, 1); rampFromTo(i,prevRamp,prevVal,prevLin,momentaryTarget,target,lowestTarget) = ramp(pow2(i),trig) , ramp(pow2(i),trig) , linCur with { ramp(n,reset) = ((select2(reset,_+(1/n):min(1),1/n))+(n<1):min(1))~_; keepDirection = ((_+oldDirection)~(_*(1-trig)))+from; oldDirection = ((prevVal-prevVal'):ba.sAndH(trig)); currentDirection = (prevLin - prevLin')*pow2(i); proposedDirection = (lowestTarget - prevLin ); from = prevVal:ba.sAndH(trig); linFrom = prevLin:ba.sAndH(trig); to = target:ba.sAndH(trig); momentaryTo = momentaryTarget:ba.sAndH(trig); trig = loop~_ with { loop(FB) = select2(attacking , ( ( momentaryTarget<(momentaryTarget:ba.sAndH(FB)) ) | (currentDirection == 0) ) , proposedDirection < currentDirection ) | button("reset") ; }; offset = hslider("offset", 0, -pow2(power), pow2(power), 1); attacking = momentaryTarget < prevLin; impulse = 1-1'; state = prevVal>to; linCur = it.interpolate_linear( ramp(pow2(i),trig) ,linFrom,select2(attacking,momentaryTo,to)); slowDownNearTarget(x) = select2(checkbox("slowdown enable") , x , (x-prevVal) *(slowDownAmount) + prevVal); slowDownAmount = (1-(1-normalisedDelta :pow(hslider("slowDown", 0.5, 0.00001, 30, 0.001)))) *const:min(1):max(0) ; const = hslider("const", 1, 0, 10, 0.001); delta = (prevVal-target); deltaTrig = abs(delta)>abs(delta'); normalisedDelta = delta:abs ; overShootShaper(x) = select2(checkbox("overs"),x, select2(to == 0, max(x/to,sin(ma.PI*(x/to-0.5)))*to, x) ); }; }; minOfN(0) = !; minOfN(1) = _; minOfN(N) = seq(i, N-1, min,myBus(N-i-2)); maxOfN(0) = !; maxOfN(1) = _; maxOfN(N) = seq(i, N-1, max,myBus(N-i-2)); delays(N) = (par(i, N-1, (_@restDelay(N,i))),_); restDelay(N,i) = pow2(N)-pow2(i); SOFTenvelope = it.interpolate_linear(theRamp,keepDirection,to(state)); xParalelOpsOfPow2(op,power) = _<:(si.bus(power+1)); ParalelOpsOfPow2(op,power) = seq(i, power, myBus(i) , ( _<: ( _ , ((_,_@pow2(i)):op) ) ) ); pow2(i) = 1<<i; myBus(0) = 0:!; myBus(i) = si.bus(i); shaper(x) = nts3(sin(ma.PI*(x-0.5)),k1,k2,k3)*0.5+0.5; nts3(x,k1,k2,k3) = fd(nts(fc(nts(fd(nts(fc(x),k1)),k2)),k3)) with { nts(x,k) = (x-x*k)/(k-abs(x)*2*k+1); fc(x) = x*0.5 + 0.5; fd(x) = 2*x-1; }; k1 = hslider("k1", 0, -1, 1, 0.001):si.smoo; k2 = hslider("k2", 0, -1, 1, 0.001):si.smoo; k3 = hslider("k3", 0, -1, 1, 0.001):si.smoo; blockRate = hslider("[0]block rate", 0.001, 0, 10, 0.001)*100000; noiseLevel = hslider("[1]noise level", 0, 0, 1, 0.01); noiseRate = hslider("[2]noise rate", 20, 10, 20000, 10); totalLatency = pow2(power); testSignal = vgroup("testSignal", no.lfnoise0(blockRate / totalLatency * (1+((no.lfnoise(blockRate/totalLatency):pow(8):abs)*totalLatency*hslider("blockVar", 0, 0, 1, 0.001)) )) :pow(3)*(1-noiseLevel) +(no.lfnoise(noiseRate):pow(3) *noiseLevel):min(0)) ;
2e04cfe829b4759ee830e4267ad78ccfdc70b9caa3e44b68741b4dc94caa620c
RuolunWeng/ruolunweng.github.io
ZitaReverb.dsp
declare name "EK_Verb2"; declare version "0.1"; declare author "CL GRAME"; declare license "BSD"; declare copyright "(c)GRAME 2013"; import("stdfaust.lib"); /* ============= DESCRIPTION ============ - Reverberation - Head = ON - Bottom = OFF */ process =_<:zita_rev3:>_; zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq with { //Reverb parameters: t60dc = hslider("[2] Low Frequencies Decay Time[acc:1 1 -10 0 10][unit:s][style:knob][tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band]", 1.5, 0.5, 6, 0.01):si.smooth(0.999):min(6):max(0.5); t60m = hslider("[3] Mid Frequencies Decay Time[acc:1 1 -10 0 10][unit:s][style:knob][tooltip: T60 = time (in seconds) to decay 60dB in middle band]", 1.5, 0.5, 6, 0.01):si.smooth(0.999):min(6):max(0.5); fsmax = 48000.0; // highest sampling rate that will be used rdel =50; f1 =500; f2 = 8000; out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q) with { pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; eq1f =315; eq1l =0; eq1q =3; eq2f =3000; eq2l =0; eq2q =3; }; }; //---------------------------------------- Zita_Rev1_Stereo4 ------------------------------------- // from effect.lib but with only N=4 for mobilephone application zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = ((si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; // Delay-line lengths in seconds: apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, 0.029291, 0.013458, 0.019123); // feedforward delays in seconds tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, 0.192303, 0.125000, 0.219991); // total delays in seconds tdelay(i) = floor(0.5 + ma.SR*ba.take(i+1,tdelays)); // samples apdelay(i) = floor(0.5 + ma.SR*ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); // NOTE: Since ma.SR is not bounded at compile time, we can't use it to // allocate de.delay lines; hence, the fsmax parameter: tdelaymaxfs(i) = floor(0.5 + fsmax*ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax*ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); apcoeff(i) = select2(i&1,0.6,-0.6); // allpass comb-filter coefficient allpass_combs(N) = par(i,N,(fi.allpass_comb(maxapdelay(i),apdelay(i),apcoeff(i)))); // filter.lib fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); feedbackmatrix(N) = ro.hadamard(N); // math.lib staynormal = 10.0^(-20); // let signals decay well below LSB, but not to zero special_lowpass(g,f) = si.smooth(p) with { // unity-dc-gain fi.lowpass needs gain g at frequency f => quadratic formula: p = mbo2 - sqrt(max(0,mbo2*mbo2 - 1.0)); // other solution is unstable mbo2 = (1.0 - gs*c)/(1.0 - gs); // NOTE: must ensure |g|<1 (t60m finite) gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); low_shelf1_l(G0,fx,x) = x + (G0-1)*fi.lowpass(1,fx,x); // filter.lib g0 = g(0,i); gM = g(1,i); f(k) = ba.take(k,freqs); dur(j) = ba.take(j+1,durs); n60(j) = dur(j)*ma.SR; // decay time in samples g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); t1 = 0.37; // zita-rev1 linearly ramps from 0 to t1 over one buffer outmix(4) = !,ro.butterfly(2),!; // probably the result of some experimenting! outmix(N) = outmix(N/2),par(i,N/2,!); };
https://raw.githubusercontent.com/RuolunWeng/ruolunweng.github.io/035564bb7e36eb4e810ca80077ffa8a9d3e5130b/faustplayground/faust-modules/effects/ZitaReverb.dsp
faust
============= DESCRIPTION ============ - Reverberation - Head = ON - Bottom = OFF Reverb parameters: highest sampling rate that will be used ---------------------------------------- Zita_Rev1_Stereo4 ------------------------------------- from effect.lib but with only N=4 for mobilephone application Delay-line lengths in seconds: feedforward delays in seconds total delays in seconds samples NOTE: Since ma.SR is not bounded at compile time, we can't use it to allocate de.delay lines; hence, the fsmax parameter: allpass comb-filter coefficient filter.lib math.lib let signals decay well below LSB, but not to zero unity-dc-gain fi.lowpass needs gain g at frequency f => quadratic formula: other solution is unstable NOTE: must ensure |g|<1 (t60m finite) filter.lib decay time in samples zita-rev1 linearly ramps from 0 to t1 over one buffer probably the result of some experimenting!
declare name "EK_Verb2"; declare version "0.1"; declare author "CL GRAME"; declare license "BSD"; declare copyright "(c)GRAME 2013"; import("stdfaust.lib"); process =_<:zita_rev3:>_; zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq with { t60dc = hslider("[2] Low Frequencies Decay Time[acc:1 1 -10 0 10][unit:s][style:knob][tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band]", 1.5, 0.5, 6, 0.01):si.smooth(0.999):min(6):max(0.5); t60m = hslider("[3] Mid Frequencies Decay Time[acc:1 1 -10 0 10][unit:s][style:knob][tooltip: T60 = time (in seconds) to decay 60dB in middle band]", 1.5, 0.5, 6, 0.01):si.smooth(0.999):min(6):max(0.5); rdel =50; f1 =500; f2 = 8000; out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q) with { pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; eq1f =315; eq1l =0; eq1q =3; eq2f =3000; eq2l =0; eq2q =3; }; }; zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = ((si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; apdelay(i) = floor(0.5 + ma.SR*ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); tdelaymaxfs(i) = floor(0.5 + fsmax*ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax*ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); allpass_combs(N) = fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); special_lowpass(g,f) = si.smooth(p) with { gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); g0 = g(0,i); gM = g(1,i); f(k) = ba.take(k,freqs); dur(j) = ba.take(j+1,durs); g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); outmix(N) = outmix(N/2),par(i,N/2,!); };
abe43f475b155bb2292c37cd0573ea1aaaaa621b4fb8a4228556f421fba1e90c
brummer10/guitarix
supersonic.dsp
// generated automatically // DO NOT MODIFY! declare id "supersonic"; declare name "Push Pull 6L6"; declare shortname "SuperSonic"; declare description "Push Pull 6L6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : supersonicclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(fs*(2.20682184684432e-26*fs + 8.17344554235261e-19) + 1.15906710571025e-16) + 4.2235930719266e-15) + 7.76975700660911e-14) + 1.26979539981828e-12; b1 = fs*(fs*(fs*(fs*(-1.10341092342216e-25*fs - 2.45203366270578e-18) - 1.15906710571025e-16) + 4.2235930719266e-15) + 2.33092710198273e-13) + 6.34897699909141e-12; b2 = fs*(fs*(fs*(fs*(2.20682184684432e-25*fs + 1.63468910847052e-18) - 2.31813421142051e-16) - 8.44718614385319e-15) + 1.55395140132182e-13) + 1.26979539981828e-11; b3 = fs*(fs*(fs*(fs*(-2.20682184684432e-25*fs + 1.63468910847052e-18) + 2.31813421142051e-16) - 8.44718614385319e-15) - 1.55395140132182e-13) + 1.26979539981828e-11; b4 = fs*(fs*(fs*(fs*(1.10341092342216e-25*fs - 2.45203366270578e-18) + 1.15906710571025e-16) + 4.2235930719266e-15) - 2.33092710198273e-13) + 6.34897699909141e-12; b5 = fs*(fs*(fs*(fs*(-2.20682184684432e-26*fs + 8.17344554235261e-19) - 1.15906710571025e-16) + 4.2235930719266e-15) - 7.76975700660911e-14) + 1.26979539981828e-12; a0 = fs*(fs*(fs*(fs*(5.00590822563103e-27*fs + 1.85439561729349e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) + 9.77706930886932e-13) + 1.59787065310447e-11; a1 = fs*(fs*(fs*(fs*(-2.50295411281552e-26*fs - 5.56318685188047e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) + 2.9331207926608e-12) + 7.98935326552235e-11; a2 = fs*(fs*(fs*(fs*(5.00590822563103e-26*fs + 3.70879123458698e-19) - 2.58426091728115e-16) - 3.83351471280476e-14) + 1.95541386177386e-12) + 1.59787065310447e-10; a3 = fs*(fs*(fs*(fs*(-5.00590822563103e-26*fs + 3.70879123458698e-19) + 2.58426091728115e-16) - 3.83351471280476e-14) - 1.95541386177386e-12) + 1.59787065310447e-10; a4 = fs*(fs*(fs*(fs*(2.50295411281552e-26*fs - 5.56318685188047e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) - 2.9331207926608e-12) + 7.98935326552235e-11; a5 = fs*(fs*(fs*(fs*(-5.00590822563103e-27*fs + 1.85439561729349e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) - 9.77706930886932e-13) + 1.59787065310447e-11; }; supersonicclip = _<: ba.if(signbit(_), supersonic_neg_clip, supersonic_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); supersonic_clip = ffunction(float supersonicclip(float), "supersonic_table.h", ""); supersonic_neg_clip = ffunction(float supersonic_negclip(float), "supersonic_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(0.8) : *(poweramp_ctrl.outgain);
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/faust/supersonic.dsp
faust
generated automatically DO NOT MODIFY!
declare id "supersonic"; declare name "Push Pull 6L6"; declare shortname "SuperSonic"; declare description "Push Pull 6L6"; declare samplerate "96000"; import("stdfaust.lib"); import("guitarix.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : supersonicclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(fs*(fs*(2.20682184684432e-26*fs + 8.17344554235261e-19) + 1.15906710571025e-16) + 4.2235930719266e-15) + 7.76975700660911e-14) + 1.26979539981828e-12; b1 = fs*(fs*(fs*(fs*(-1.10341092342216e-25*fs - 2.45203366270578e-18) - 1.15906710571025e-16) + 4.2235930719266e-15) + 2.33092710198273e-13) + 6.34897699909141e-12; b2 = fs*(fs*(fs*(fs*(2.20682184684432e-25*fs + 1.63468910847052e-18) - 2.31813421142051e-16) - 8.44718614385319e-15) + 1.55395140132182e-13) + 1.26979539981828e-11; b3 = fs*(fs*(fs*(fs*(-2.20682184684432e-25*fs + 1.63468910847052e-18) + 2.31813421142051e-16) - 8.44718614385319e-15) - 1.55395140132182e-13) + 1.26979539981828e-11; b4 = fs*(fs*(fs*(fs*(1.10341092342216e-25*fs - 2.45203366270578e-18) + 1.15906710571025e-16) + 4.2235930719266e-15) - 2.33092710198273e-13) + 6.34897699909141e-12; b5 = fs*(fs*(fs*(fs*(-2.20682184684432e-26*fs + 8.17344554235261e-19) - 1.15906710571025e-16) + 4.2235930719266e-15) - 7.76975700660911e-14) + 1.26979539981828e-12; a0 = fs*(fs*(fs*(fs*(5.00590822563103e-27*fs + 1.85439561729349e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) + 9.77706930886932e-13) + 1.59787065310447e-11; a1 = fs*(fs*(fs*(fs*(-2.50295411281552e-26*fs - 5.56318685188047e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) + 2.9331207926608e-12) + 7.98935326552235e-11; a2 = fs*(fs*(fs*(fs*(5.00590822563103e-26*fs + 3.70879123458698e-19) - 2.58426091728115e-16) - 3.83351471280476e-14) + 1.95541386177386e-12) + 1.59787065310447e-10; a3 = fs*(fs*(fs*(fs*(-5.00590822563103e-26*fs + 3.70879123458698e-19) + 2.58426091728115e-16) - 3.83351471280476e-14) - 1.95541386177386e-12) + 1.59787065310447e-10; a4 = fs*(fs*(fs*(fs*(2.50295411281552e-26*fs - 5.56318685188047e-19) + 1.29213045864058e-16) + 1.91675735640238e-14) - 2.9331207926608e-12) + 7.98935326552235e-11; a5 = fs*(fs*(fs*(fs*(-5.00590822563103e-27*fs + 1.85439561729349e-19) - 1.29213045864058e-16) + 1.91675735640238e-14) - 9.77706930886932e-13) + 1.59787065310447e-11; }; supersonicclip = _<: ba.if(signbit(_), supersonic_neg_clip, supersonic_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); supersonic_clip = ffunction(float supersonicclip(float), "supersonic_table.h", ""); supersonic_neg_clip = ffunction(float supersonic_negclip(float), "supersonic_neg_table.h", ""); }; process = *(poweramp_ctrl.ingain) : p1 : *(0.8) : *(poweramp_ctrl.outgain);
c070c99bd5befc3d10d079080d7459761b1ae7f63aa04c48d06298d669038bdb
Blumealc/43PR3
spanner10.dsp
declare filename "spanner10.dsp"; declare name "spanner10"; declare compilation_options "-single -scal -I libraries/ -I project/ -lang wasm"; declare library_path0 "/libraries/stdfaust.lib"; declare library_path1 "/libraries/maths.lib"; declare library_path2 "/libraries/signals.lib"; declare library_path3 "/libraries/basics.lib"; declare library_path4 "/libraries/platform.lib"; declare author "THC-SCALAS"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.6"; declare copyright "Cecilia-labs"; declare filename "FaustDSP"; declare license "BSD"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.5"; declare name "spanner_1x8"; declare platform_lib_name "Generic Platform Library"; declare platform_lib_version "0.2"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.1"; declare version "1.0"; process = \(x1).((x1,(10,((((0.5f,(0.0f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(0.62831853071795862f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(1.2566370614359172f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(1.8849555921538759f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(2.5132741228718345f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(3.1415926535897931f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(3.7699111843077517f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(4.3982297150257104f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(5.026548245743669f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(5.6548667764616276f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *));
https://raw.githubusercontent.com/Blumealc/43PR3/0bd1e28c690d43d2905a0a06e69a60e55b0b6116/spanner10%7E.mxo/spanner10.dsp
faust
declare filename "spanner10.dsp"; declare name "spanner10"; declare compilation_options "-single -scal -I libraries/ -I project/ -lang wasm"; declare library_path0 "/libraries/stdfaust.lib"; declare library_path1 "/libraries/maths.lib"; declare library_path2 "/libraries/signals.lib"; declare library_path3 "/libraries/basics.lib"; declare library_path4 "/libraries/platform.lib"; declare author "THC-SCALAS"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.6"; declare copyright "Cecilia-labs"; declare filename "FaustDSP"; declare license "BSD"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.5"; declare name "spanner_1x8"; declare platform_lib_name "Generic Platform Library"; declare platform_lib_version "0.2"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.1"; declare version "1.0"; process = \(x1).((x1,(10,((((0.5f,(0.0f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(0.62831853071795862f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(1.2566370614359172f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(1.8849555921538759f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(2.5132741228718345f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(3.1415926535897931f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(3.7699111843077517f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(4.3982297150257104f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(5.026548245743669f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *),(x1,(10,((((0.5f,(5.6548667764616276f,(((nentry("Angle[style:knob]", 0.0f, -36000000.0f, 36000000.0f, 0.10000000000000001f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)),3.1415926535897931f : *),180 : /) : - : cos) : *),0.5f : -),(hslider("Separation", 12.0f, 0.0f, 100.0f, 0.01f) : \(x2).(\(x3).(((1.0f,(0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x2 : *),((0,(-1.0f,((0,0.02f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x3 : *) : +)~_)) : *),0.20000000000000001f : *) : pow) : *));
621e429e5a8741976ead8ae82cc0baf63d4b2d966af6b01b423aa32444f00ccc
brummer10/guitarix
gx_chump.dsp
declare id "Redeye Chump"; declare name "Redeye Chump"; declare category "Amplifier"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); // Power Amp With Feedback powerfb = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : redeyechumppowfclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(5.2572119847844e-14*fs + 2.22632342602781e-12) + 5.41994006909799e-15); b1 = fs*(fs*(-1.57716359543532e-13*fs - 2.22632342602781e-12) + 5.41994006909799e-15); b2 = fs*(fs*(1.57716359543532e-13*fs - 2.22632342602781e-12) - 5.41994006909799e-15); b3 = fs*(fs*(-5.2572119847844e-14*fs + 2.22632342602781e-12) - 5.41994006909799e-15); a0 = fs*(fs*(9.01314076551628e-15*fs + 1.3955910672935e-12) + 6.86346038146649e-11) + 1.79996158094636e-10; a1 = fs*(fs*(-2.70394222965488e-14*fs - 1.3955910672935e-12) + 6.86346038146649e-11) + 5.39988474283909e-10; a2 = fs*(fs*(2.70394222965488e-14*fs - 1.3955910672935e-12) - 6.86346038146649e-11) + 5.39988474283909e-10; a3 = fs*(fs*(-9.01314076551628e-15*fs + 1.3955910672935e-12) - 6.86346038146649e-11) + 1.79996158094636e-10; }; redeyechumppowfclip = _<: ba.if(signbit(_), redeyechumppowf_neg_clip, redeyechumppowf_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); redeyechumppowf_clip = ffunction(float redeyechumppowfclip(float), "redeyechumppowf_table.h", ""); redeyechumppowf_neg_clip = ffunction(float redeyechumppowf_negclip(float), "redeyechumppowf_neg_table.h", ""); }; // Power Amp No feedback powernfb = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : redeyechumppowclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = pow(fs,2)*(8.08665507806617e-14*fs + 3.42440032262935e-12); b1 = pow(fs,2)*(-2.42599652341985e-13*fs - 3.42440032262935e-12); b2 = pow(fs,2)*(2.42599652341985e-13*fs - 3.42440032262935e-12); b3 = pow(fs,2)*(-8.08665507806617e-14*fs + 3.42440032262935e-12); a0 = fs*(fs*(9.00050108040552e-15*fs + 2.00144504609273e-12) + 1.09475884941298e-10) + 2.87117546539927e-10; a1 = fs*(fs*(-2.70015032412166e-14*fs - 2.00144504609273e-12) + 1.09475884941298e-10) + 8.6135263961978e-10; a2 = fs*(fs*(2.70015032412166e-14*fs - 2.00144504609273e-12) - 1.09475884941298e-10) + 8.6135263961978e-10; a3 = fs*(fs*(-9.00050108040552e-15*fs + 2.00144504609273e-12) - 1.09475884941298e-10) + 2.87117546539927e-10; }; redeyechumppowclip = _<: ba.if(signbit(_), redeyechumppow_neg_clip, redeyechumppow_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); redeyechumppow_clip = ffunction(float redeyechumppowclip(float), "redeyechumppow_table.h", ""); redeyechumppow_neg_clip = ffunction(float redeyechumppow_negclip(float), "redeyechumppow_neg_table.h", ""); }; //volume = vslider("Volume[alias][style:knob]",3.0,0.0,12.0,0.01):ba.db2linear:smoothi(0.999); volume = vslider("Volume[alias][style:knob]",2.0,0.0,4.0,0.01):smoothi(0.999); amp = chumpPreamp:poweramp:*(volume) ; poweramp = _<:powerfb,powernfb:select2( checkbox("feedback") ) ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_chump.dsp
faust
Power Amp With Feedback Power Amp No feedback volume = vslider("Volume[alias][style:knob]",3.0,0.0,12.0,0.01):ba.db2linear:smoothi(0.999);
declare id "Redeye Chump"; declare name "Redeye Chump"; declare category "Amplifier"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); powerfb = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : redeyechumppowfclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(fs*(5.2572119847844e-14*fs + 2.22632342602781e-12) + 5.41994006909799e-15); b1 = fs*(fs*(-1.57716359543532e-13*fs - 2.22632342602781e-12) + 5.41994006909799e-15); b2 = fs*(fs*(1.57716359543532e-13*fs - 2.22632342602781e-12) - 5.41994006909799e-15); b3 = fs*(fs*(-5.2572119847844e-14*fs + 2.22632342602781e-12) - 5.41994006909799e-15); a0 = fs*(fs*(9.01314076551628e-15*fs + 1.3955910672935e-12) + 6.86346038146649e-11) + 1.79996158094636e-10; a1 = fs*(fs*(-2.70394222965488e-14*fs - 1.3955910672935e-12) + 6.86346038146649e-11) + 5.39988474283909e-10; a2 = fs*(fs*(2.70394222965488e-14*fs - 1.3955910672935e-12) - 6.86346038146649e-11) + 5.39988474283909e-10; a3 = fs*(fs*(-9.01314076551628e-15*fs + 1.3955910672935e-12) - 6.86346038146649e-11) + 1.79996158094636e-10; }; redeyechumppowfclip = _<: ba.if(signbit(_), redeyechumppowf_neg_clip, redeyechumppowf_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); redeyechumppowf_clip = ffunction(float redeyechumppowfclip(float), "redeyechumppowf_table.h", ""); redeyechumppowf_neg_clip = ffunction(float redeyechumppowf_negclip(float), "redeyechumppowf_neg_table.h", ""); }; powernfb = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : redeyechumppowclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = pow(fs,2)*(8.08665507806617e-14*fs + 3.42440032262935e-12); b1 = pow(fs,2)*(-2.42599652341985e-13*fs - 3.42440032262935e-12); b2 = pow(fs,2)*(2.42599652341985e-13*fs - 3.42440032262935e-12); b3 = pow(fs,2)*(-8.08665507806617e-14*fs + 3.42440032262935e-12); a0 = fs*(fs*(9.00050108040552e-15*fs + 2.00144504609273e-12) + 1.09475884941298e-10) + 2.87117546539927e-10; a1 = fs*(fs*(-2.70015032412166e-14*fs - 2.00144504609273e-12) + 1.09475884941298e-10) + 8.6135263961978e-10; a2 = fs*(fs*(2.70015032412166e-14*fs - 2.00144504609273e-12) - 1.09475884941298e-10) + 8.6135263961978e-10; a3 = fs*(fs*(-9.00050108040552e-15*fs + 2.00144504609273e-12) - 1.09475884941298e-10) + 2.87117546539927e-10; }; redeyechumppowclip = _<: ba.if(signbit(_), redeyechumppow_neg_clip, redeyechumppow_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); redeyechumppow_clip = ffunction(float redeyechumppowclip(float), "redeyechumppow_table.h", ""); redeyechumppow_neg_clip = ffunction(float redeyechumppow_negclip(float), "redeyechumppow_neg_table.h", ""); }; volume = vslider("Volume[alias][style:knob]",2.0,0.0,4.0,0.01):smoothi(0.999); amp = chumpPreamp:poweramp:*(volume) ; poweramp = _<:powerfb,powernfb:select2( checkbox("feedback") ) ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
7b6e534c3b7766c316e76d5f8d941dc40c4b637da9668a2d9b524a22e70b84e7
brummer10/guitarix
gx_w20.dsp
// generated automatically // DO NOT MODIFY! declare id "w20"; declare name "Westbury W-20"; declare category "External"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : w20_1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Gain = vslider("Gain[name:Gain]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = Gain*(Gain*pow(fs,2)*(1.44375296887024e-12*fs + 2.1875044982882e-11) + fs*(fs*(-1.44375296887024e-12*fs - 7.24063988933406e-9) - 1.0937522491441e-7)); b1 = Gain*(Gain*pow(fs,2)*(-4.33125890661071e-12*fs - 2.1875044982882e-11) + fs*(fs*(4.33125890661071e-12*fs + 7.24063988933406e-9) - 1.0937522491441e-7)); b2 = Gain*(Gain*pow(fs,2)*(4.33125890661071e-12*fs - 2.1875044982882e-11) + fs*(fs*(-4.33125890661071e-12*fs + 7.24063988933406e-9) + 1.0937522491441e-7)); b3 = Gain*(Gain*pow(fs,2)*(-1.44375296887024e-12*fs + 2.1875044982882e-11) + fs*(fs*(1.44375296887024e-12*fs - 7.24063988933406e-9) + 1.0937522491441e-7)); a0 = Gain*(Gain*pow(fs,2)*(-2.37114810573187e-14*fs - 6.90938348698522e-13) + fs*(fs*(2.29013691097909e-14*fs - 1.12102439518276e-11) - 3.45469174349261e-10)) + fs*(fs*(8.10111947527771e-16*fs + 1.34509147324758e-10) + 6.33060724204724e-8) + 1.72734587174631e-6; a1 = Gain*(Gain*pow(fs,2)*(7.1134443171956e-14*fs + 6.90938348698522e-13) + fs*(fs*(-6.87041073293727e-14*fs + 1.12102439518276e-11) - 3.45469174349261e-10)) + fs*(fs*(-2.43033584258331e-15*fs - 1.34509147324758e-10) + 6.33060724204724e-8) + 5.18203761523892e-6; a2 = Gain*(Gain*pow(fs,2)*(-7.1134443171956e-14*fs + 6.90938348698522e-13) + fs*(fs*(6.87041073293727e-14*fs + 1.12102439518276e-11) + 3.45469174349261e-10)) + fs*(fs*(2.43033584258331e-15*fs - 1.34509147324758e-10) - 6.33060724204724e-8) + 5.18203761523892e-6; a3 = Gain*(Gain*pow(fs,2)*(2.37114810573187e-14*fs - 6.90938348698522e-13) + fs*(fs*(-2.29013691097909e-14*fs - 1.12102439518276e-11) + 3.45469174349261e-10)) + fs*(fs*(-8.10111947527771e-16*fs + 1.34509147324758e-10) - 6.33060724204724e-8) + 1.72734587174631e-6; }; w20_1clip = _<: ba.if(signbit(_), w20_1_neg_clip, w20_1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); w20_1_clip = ffunction(float w20_1clip(float), "w20_1_table.h", ""); w20_1_neg_clip = ffunction(float w20_1_negclip(float), "w20_1_neg_table.h", ""); }; p2 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) : w20_2aclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -0.000616100994039436*Level*fs; b1 = 0.000616100994039436*Level*fs; a0 = 2.07411011655813e-5*fs + 0.00442714405209691; a1 = -2.07411011655813e-5*fs + 0.00442714405209691; }; w20_2aclip = _<: ba.if(signbit(_), w20_2a_neg_clip, w20_2a_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); w20_2a_clip = ffunction(float w20_2aclip(float), "w20_2a_table.h", ""); w20_2a_neg_clip = ffunction(float w20_2a_negclip(float), "w20_2a_neg_table.h", ""); }; amp = p1:p2 ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gx_w20.dsp
faust
generated automatically DO NOT MODIFY!
declare id "w20"; declare name "Westbury W-20"; declare category "External"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : w20_1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Gain = vslider("Gain[name:Gain]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = Gain*(Gain*pow(fs,2)*(1.44375296887024e-12*fs + 2.1875044982882e-11) + fs*(fs*(-1.44375296887024e-12*fs - 7.24063988933406e-9) - 1.0937522491441e-7)); b1 = Gain*(Gain*pow(fs,2)*(-4.33125890661071e-12*fs - 2.1875044982882e-11) + fs*(fs*(4.33125890661071e-12*fs + 7.24063988933406e-9) - 1.0937522491441e-7)); b2 = Gain*(Gain*pow(fs,2)*(4.33125890661071e-12*fs - 2.1875044982882e-11) + fs*(fs*(-4.33125890661071e-12*fs + 7.24063988933406e-9) + 1.0937522491441e-7)); b3 = Gain*(Gain*pow(fs,2)*(-1.44375296887024e-12*fs + 2.1875044982882e-11) + fs*(fs*(1.44375296887024e-12*fs - 7.24063988933406e-9) + 1.0937522491441e-7)); a0 = Gain*(Gain*pow(fs,2)*(-2.37114810573187e-14*fs - 6.90938348698522e-13) + fs*(fs*(2.29013691097909e-14*fs - 1.12102439518276e-11) - 3.45469174349261e-10)) + fs*(fs*(8.10111947527771e-16*fs + 1.34509147324758e-10) + 6.33060724204724e-8) + 1.72734587174631e-6; a1 = Gain*(Gain*pow(fs,2)*(7.1134443171956e-14*fs + 6.90938348698522e-13) + fs*(fs*(-6.87041073293727e-14*fs + 1.12102439518276e-11) - 3.45469174349261e-10)) + fs*(fs*(-2.43033584258331e-15*fs - 1.34509147324758e-10) + 6.33060724204724e-8) + 5.18203761523892e-6; a2 = Gain*(Gain*pow(fs,2)*(-7.1134443171956e-14*fs + 6.90938348698522e-13) + fs*(fs*(6.87041073293727e-14*fs + 1.12102439518276e-11) + 3.45469174349261e-10)) + fs*(fs*(2.43033584258331e-15*fs - 1.34509147324758e-10) - 6.33060724204724e-8) + 5.18203761523892e-6; a3 = Gain*(Gain*pow(fs,2)*(2.37114810573187e-14*fs - 6.90938348698522e-13) + fs*(fs*(-2.29013691097909e-14*fs - 1.12102439518276e-11) + 3.45469174349261e-10)) + fs*(fs*(-8.10111947527771e-16*fs + 1.34509147324758e-10) - 6.33060724204724e-8) + 1.72734587174631e-6; }; w20_1clip = _<: ba.if(signbit(_), w20_1_neg_clip, w20_1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); w20_1_clip = ffunction(float w20_1clip(float), "w20_1_table.h", ""); w20_1_neg_clip = ffunction(float w20_1_negclip(float), "w20_1_neg_table.h", ""); }; p2 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) : w20_2aclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -0.000616100994039436*Level*fs; b1 = 0.000616100994039436*Level*fs; a0 = 2.07411011655813e-5*fs + 0.00442714405209691; a1 = -2.07411011655813e-5*fs + 0.00442714405209691; }; w20_2aclip = _<: ba.if(signbit(_), w20_2a_neg_clip, w20_2a_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); w20_2a_clip = ffunction(float w20_2aclip(float), "w20_2a_table.h", ""); w20_2a_neg_clip = ffunction(float w20_2a_negclip(float), "w20_2a_neg_table.h", ""); }; amp = p1:p2 ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
0422f8f66146aeba6a973d7d3eaea1a852cd6b4e54838adc5f99a7a645033e6c
nyanpasu64-backup/snes-echo
snes-echo.dsp
declare name "snes-echo"; declare version "0."; declare author "nyanpasu64"; declare license "BSD"; declare copyright "nyanpasu64"; // import("math.lib"); import("stdfaust.lib"); import("delays.lib"); SR = ma.SR; // **** UTILITY FUNCTIONS **** /// kilo K = 1024; // do not use pow2up/down, (passing in SR?) causes infinite runtime in FAUST compiler. // Zero-indexing. at(list, idx) = ba.subseq(list, idx, 1); yes (bool) = bool; not (bool) = 1-bool; if(cond, yes, no) = select2(cond, no, yes); signed (bool) = if(bool, 1, -1); nsign (bool) = if(bool, -1, 1); clamp(x, low, high) = min(max(x, low), high); // **** BEGIN PROGRAM FIR_TAP_COUNT = 8; bypass = checkbox("h:/v:[1]/[1]Bypass Echo"); normalized = checkbox("h:/v:[1]/[2]Normalize Volumes"); output_vol = 1; // vslider("h:/v:[1]/[3]Output Volume", 2, 1, 2, 0.1); // EDL register MAX_BLOCKS = 15; // * 16ms/blk = 1024ms nblocks = vslider("h:/v:[1]/[0]Echo blocks (16ms)", 5, 0, MAX_BLOCKS, 1):rint; mvolSign = checkbox("h:/v:[2]Dry Volume/[2]Negative"):nsign; mvolR = vslider("h:/v:[2]Dry Volume/[1]Dry Volume", 63, 0, 127, 1) * mvolSign:rint; mvolL = checkbox("h:/v:[2]Dry Volume/[3]Surround") : nsign(_)*mvolR; evolSign = checkbox("h:/v:[3]Wet Volume/[2]Negative"):nsign; evolR = vslider("h:/v:[3]Wet Volume/[1]Wet Volume", 25, 0, 127, 1) * evolSign:rint; evolL = checkbox("h:/v:[3]Wet Volume/[3]Surround") : nsign(_)*evolR; efbSign = checkbox("h:/v:[4]Echo Feedback/[2]Negative"):nsign; efbR = vslider("h:/v:[4]Echo Feedback/[1]Echo Feedback", 70, 0, 127, 1) * efbSign:rint; efbL = checkbox("h:/v:[4]Echo Feedback/[3]Surround (not on SNES)") : nsign(_)*efbR; DEFAULT_FIR = 127,0,0,0,0,0,0,0; firs = par(i, FIR_TAP_COUNT, vslider("h:/h:[5]FIR Filter/%i", at(DEFAULT_FIR, i), -128, 127, 1):rint ); // **** CALCULATIONS /// Convert [-128..127] volume to [-1, 1) float. volf = _ / 128.0; /// The PC sampling rate should not exceed MAX_SAMPLING_RATIO * 32000 Hz. /// Otherwise undefined behavior or incorrect results may occur. MAX_SAMPLING_RATIO = 8; /// The ratio of (PC sampling rate) / (SNES sampling rate = 32000 Hz). /// Converts SNES sample count to PC samples. SAMPLING_RATIO_F = min(MAX_SAMPLING_RATIO, SR / 32000.0); /// Only used with EDL=0 (single-sample echo buffer) /// where the echo buffer is too short for high-quality fractional delays. SAMPLING_RATIO_I = max(int(SAMPLING_RATIO_F), 1); // Samples per block? // 16 ms/block * sec/1000ms * SR smp/sec * blocks /// Echo duration in SNES samples. echo_len_snes = 512*nblocks; /// Echo duration in PC samples. echo_len = rint(SAMPLING_RATIO_F * echo_len_snes); // # SNES echo buffer // https://github.com/grame-cncm/faustlibraries/blob/master/delays.lib // FDELAY = fdelay; ORDER = 8; /// How many samples to allow for each FIR filter tap's acausal fractional delay. FIR_LOOKAHEAD = 32; // NOTE: The requested delay should not be less than `(order-1)/2`. FDELAY(nsmp, signal) = fdelaylti( ORDER, // order FIR_LOOKAHEAD + MAX_SAMPLING_RATIO * FIR_TAP_COUNT, // maxdelay nsmp, // delay signal); // inputsignal DELAY_TAP(nsmp, signal) = delay( MAX_SAMPLING_RATIO * (FIR_TAP_COUNT - 1), // maxdelay nsmp, // delay signal); // signal /// Maximum volume level before sound is hard-clipped. CLIP_LEVEL = 1; /// This replicates the SNES echo buffer. /// - Data gets fed into the echo buffer at full volume /// - Echo buffer sent through the FIR filter, and { /// - multiplied by feedback (and added to input) and /// - multiplied by evol (and sent to output) /// } snes_feedback_nonzero(x, feedback) = ( // Add master and feedback. clamp(x + _, -CLIP_LEVEL, CLIP_LEVEL) // Store in echo buffer. // The maximum possible delay is capped at 128K samples, // which *may* be necessary for compilation. // Subtract 1 from the echo length, because the ~ operator has 1 sample of delay. // Subtract FIR_LOOKAHEAD from the echo buffer and add it to the per-tap delay, // because per-tap fractional delays (required to emulate 32000Hz integer delays // on PC sampling rates) are acausal. : delay(128*K, echo_len - 1 - FIR_LOOKAHEAD, _) // 8 FIR taps numbered i=0..7. <: volf(sum(i, FIR_TAP_COUNT, // coeff i is multiplied with delay 7-i. at(firs, i) * FDELAY(FIR_LOOKAHEAD + SAMPLING_RATIO_F * (FIR_TAP_COUNT - 1 - i), _) // : attach(_, hbargraph("FIR delay %i", 0, FIR_TAP_COUNT)(i)) )) ) ~ ( // Feed output into input, delayed by 1 sample. volf(feedback*_) ) : ( // Output audio, delayed by 1 sample. _' ); /// Emulates the SNES echo buffer, when set to 0 blocks long (1-sample delay). /// /// The SNES FIR filter comes after the echo buffer. /// It has 8 taps, each of which delays the signal by an integer number of SNES samples. /// /// When EDL is zero, the echo buffer is effectively one SNES sample long. /// /// If the PC sampling rate is not a multiple of 32000, /// emulating the FIR filter delays accurately requires fractional delays. /// And high-quality fractional delays (with a flat frequency response and linear phase response) /// are acausal and have a minimum delay value higher than the total delay /// of the echo buffer plus FIR filter. /// /// To cope with this, use integer delays. /// This will cause the FIR filter to be stretched in the frequency domain /// proportionally to (PC sampling rate) / (multiple of 32000 Hz). /// However the shape will be correct. snes_feedback_zero(x, feedback) = ( // SNES feedback is immediate, but both input and feedback are delayed by 1 SNES sample. // But Faust's feedback operator imposes a 1-PC-sample delay, // so delay the input by 1 PC sample. clamp(x' + _, -CLIP_LEVEL, CLIP_LEVEL) // And delay the result by (1 SNES sample) - (1 PC sample). : delay(MAX_SAMPLING_RATIO - 1, SAMPLING_RATIO_I - 1, _) // 8 FIR taps numbered i=0..7. <: volf(sum(i, FIR_TAP_COUNT, // coeff i is multiplied with delay 7-i. at(firs, i) * DELAY_TAP(SAMPLING_RATIO_I * (FIR_TAP_COUNT - 1 - i), _) )) ) ~ ( // Feed output into input, delayed by 1 sample. volf(feedback*_) ) : ( // Output audio, delayed by 1 sample. _' ); snes_feedback(x, feedback) = if(nblocks == 0, snes_feedback_zero(x, feedback), snes_feedback_nonzero(x, feedback)); // **** AUDIO MIXER snes_echo(signal, mvol, evol, feedback, max_vol) = ( if(bypass == 0, output * if(normalized, 1/max_vol, output_vol), signal ) ) with { output = volf( mvol*signal + evol*snes_feedback(signal, feedback) ); }; nbgraph = vbargraph("h:/[6]Echo blocks", 0, MAX_BLOCKS); srgraph = vbargraph("h:/[6]Sample Rate", 32000, 48000); esnesgraph = vbargraph("h:/[7]SNES samples", 0, 32000); elengraph = vbargraph("h:/[8]PC samples", 0, 32000); process(l,r) = (snes_echo(l, mvolL, evolL, efbL, max_vol)), (snes_echo(r, mvolR, evolR, efbR, max_vol)) // : attach(_, nbgraph(nblocks)) // : attach(_, srgraph(SR)) // : attach(_, esnesgraph(echo_len_snes)) // : attach(_, elengraph(echo_len)) with { mabs(x, y) = max(abs(x), abs(y)); max_mvol = mabs(mvolL, mvolR); max_evol = mabs(evolL, evolR); max_vol = max(max(max_mvol, max_evol), 1) : volf; };
https://raw.githubusercontent.com/nyanpasu64-backup/snes-echo/8378166012807e96eca69cb2bc3ee9cf5537a69f/snes-echo/snes-echo.dsp
faust
import("math.lib"); **** UTILITY FUNCTIONS **** / kilo do not use pow2up/down, (passing in SR?) causes infinite runtime in FAUST compiler. Zero-indexing. **** BEGIN PROGRAM vslider("h:/v:[1]/[3]Output Volume", 2, 1, 2, 0.1); EDL register * 16ms/blk = 1024ms **** CALCULATIONS / Convert [-128..127] volume to [-1, 1) float. / The PC sampling rate should not exceed MAX_SAMPLING_RATIO * 32000 Hz. / Otherwise undefined behavior or incorrect results may occur. / The ratio of (PC sampling rate) / (SNES sampling rate = 32000 Hz). / Converts SNES sample count to PC samples. / Only used with EDL=0 (single-sample echo buffer) / where the echo buffer is too short for high-quality fractional delays. Samples per block? 16 ms/block * sec/1000ms * SR smp/sec * blocks / Echo duration in SNES samples. / Echo duration in PC samples. # SNES echo buffer https://github.com/grame-cncm/faustlibraries/blob/master/delays.lib FDELAY = fdelay; / How many samples to allow for each FIR filter tap's acausal fractional delay. NOTE: The requested delay should not be less than `(order-1)/2`. order maxdelay delay inputsignal maxdelay delay signal / Maximum volume level before sound is hard-clipped. / This replicates the SNES echo buffer. / - Data gets fed into the echo buffer at full volume / - Echo buffer sent through the FIR filter, and { / - multiplied by feedback (and added to input) and / - multiplied by evol (and sent to output) / } Add master and feedback. Store in echo buffer. The maximum possible delay is capped at 128K samples, which *may* be necessary for compilation. Subtract 1 from the echo length, because the ~ operator has 1 sample of delay. Subtract FIR_LOOKAHEAD from the echo buffer and add it to the per-tap delay, because per-tap fractional delays (required to emulate 32000Hz integer delays on PC sampling rates) are acausal. 8 FIR taps numbered i=0..7. coeff i is multiplied with delay 7-i. : attach(_, hbargraph("FIR delay %i", 0, FIR_TAP_COUNT)(i)) Feed output into input, delayed by 1 sample. Output audio, delayed by 1 sample. / Emulates the SNES echo buffer, when set to 0 blocks long (1-sample delay). / / The SNES FIR filter comes after the echo buffer. / It has 8 taps, each of which delays the signal by an integer number of SNES samples. / / When EDL is zero, the echo buffer is effectively one SNES sample long. / / If the PC sampling rate is not a multiple of 32000, / emulating the FIR filter delays accurately requires fractional delays. / And high-quality fractional delays (with a flat frequency response and linear phase response) / are acausal and have a minimum delay value higher than the total delay / of the echo buffer plus FIR filter. / / To cope with this, use integer delays. / This will cause the FIR filter to be stretched in the frequency domain / proportionally to (PC sampling rate) / (multiple of 32000 Hz). / However the shape will be correct. SNES feedback is immediate, but both input and feedback are delayed by 1 SNES sample. But Faust's feedback operator imposes a 1-PC-sample delay, so delay the input by 1 PC sample. And delay the result by (1 SNES sample) - (1 PC sample). 8 FIR taps numbered i=0..7. coeff i is multiplied with delay 7-i. Feed output into input, delayed by 1 sample. Output audio, delayed by 1 sample. **** AUDIO MIXER : attach(_, nbgraph(nblocks)) : attach(_, srgraph(SR)) : attach(_, esnesgraph(echo_len_snes)) : attach(_, elengraph(echo_len))
declare name "snes-echo"; declare version "0."; declare author "nyanpasu64"; declare license "BSD"; declare copyright "nyanpasu64"; import("stdfaust.lib"); import("delays.lib"); SR = ma.SR; K = 1024; at(list, idx) = ba.subseq(list, idx, 1); yes (bool) = bool; not (bool) = 1-bool; if(cond, yes, no) = select2(cond, no, yes); signed (bool) = if(bool, 1, -1); nsign (bool) = if(bool, -1, 1); clamp(x, low, high) = min(max(x, low), high); FIR_TAP_COUNT = 8; bypass = checkbox("h:/v:[1]/[1]Bypass Echo"); normalized = checkbox("h:/v:[1]/[2]Normalize Volumes"); nblocks = vslider("h:/v:[1]/[0]Echo blocks (16ms)", 5, 0, MAX_BLOCKS, 1):rint; mvolSign = checkbox("h:/v:[2]Dry Volume/[2]Negative"):nsign; mvolR = vslider("h:/v:[2]Dry Volume/[1]Dry Volume", 63, 0, 127, 1) * mvolSign:rint; mvolL = checkbox("h:/v:[2]Dry Volume/[3]Surround") : nsign(_)*mvolR; evolSign = checkbox("h:/v:[3]Wet Volume/[2]Negative"):nsign; evolR = vslider("h:/v:[3]Wet Volume/[1]Wet Volume", 25, 0, 127, 1) * evolSign:rint; evolL = checkbox("h:/v:[3]Wet Volume/[3]Surround") : nsign(_)*evolR; efbSign = checkbox("h:/v:[4]Echo Feedback/[2]Negative"):nsign; efbR = vslider("h:/v:[4]Echo Feedback/[1]Echo Feedback", 70, 0, 127, 1) * efbSign:rint; efbL = checkbox("h:/v:[4]Echo Feedback/[3]Surround (not on SNES)") : nsign(_)*efbR; DEFAULT_FIR = 127,0,0,0,0,0,0,0; firs = par(i, FIR_TAP_COUNT, vslider("h:/h:[5]FIR Filter/%i", at(DEFAULT_FIR, i), -128, 127, 1):rint ); volf = _ / 128.0; MAX_SAMPLING_RATIO = 8; SAMPLING_RATIO_F = min(MAX_SAMPLING_RATIO, SR / 32000.0); SAMPLING_RATIO_I = max(int(SAMPLING_RATIO_F), 1); echo_len_snes = 512*nblocks; echo_len = rint(SAMPLING_RATIO_F * echo_len_snes); ORDER = 8; FIR_LOOKAHEAD = 32; FDELAY(nsmp, signal) = fdelaylti( DELAY_TAP(nsmp, signal) = delay( CLIP_LEVEL = 1; snes_feedback_nonzero(x, feedback) = ( clamp(x + _, -CLIP_LEVEL, CLIP_LEVEL) : delay(128*K, echo_len - 1 - FIR_LOOKAHEAD, _) <: volf(sum(i, FIR_TAP_COUNT, at(firs, i) * FDELAY(FIR_LOOKAHEAD + SAMPLING_RATIO_F * (FIR_TAP_COUNT - 1 - i), _) )) ) ~ ( volf(feedback*_) ) : ( _' ); snes_feedback_zero(x, feedback) = ( clamp(x' + _, -CLIP_LEVEL, CLIP_LEVEL) : delay(MAX_SAMPLING_RATIO - 1, SAMPLING_RATIO_I - 1, _) <: volf(sum(i, FIR_TAP_COUNT, at(firs, i) * DELAY_TAP(SAMPLING_RATIO_I * (FIR_TAP_COUNT - 1 - i), _) )) ) ~ ( volf(feedback*_) ) : ( _' ); snes_feedback(x, feedback) = if(nblocks == 0, snes_feedback_zero(x, feedback), snes_feedback_nonzero(x, feedback)); snes_echo(signal, mvol, evol, feedback, max_vol) = ( if(bypass == 0, output * if(normalized, 1/max_vol, output_vol), signal ) ) with { output = volf( mvol*signal + evol*snes_feedback(signal, feedback) ); }; nbgraph = vbargraph("h:/[6]Echo blocks", 0, MAX_BLOCKS); srgraph = vbargraph("h:/[6]Sample Rate", 32000, 48000); esnesgraph = vbargraph("h:/[7]SNES samples", 0, 32000); elengraph = vbargraph("h:/[8]PC samples", 0, 32000); process(l,r) = (snes_echo(l, mvolL, evolL, efbL, max_vol)), (snes_echo(r, mvolR, evolR, efbR, max_vol)) with { mabs(x, y) = max(abs(x), abs(y)); max_mvol = mabs(mvolL, mvolR); max_evol = mabs(evolL, evolR); max_vol = max(max(max_mvol, max_evol), 1) : volf; };
7225696a2c2ed5bf8413d7085055db46fd5ac778a7b3370ffc8b49224b9f4dbb
sadko4u/tamgamp.lv2
fender_princeton.dsp
/* * Simulation of Fender Princeton Reverb-amp AA1164 (without reverb module) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "fender_princeton"; declare name "fender_princeton"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00121958463123679*fs - 0.0162611284164904; b1 = 0.00121958463123679*fs - 0.0162611284164904; a0 = 2.08224169602437e-5*fs + 0.000523985908304094; a1 = -2.08224169602437e-5*fs + 0.000523985908304094; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/fender_princeton/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/fender_princeton/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*fs*(fs*(1.34457306503762e-15*fs + 1.00884809971388e-11) + 1.20501921839819e-8) + fs*(8.41073364087361e-14*fs + 4.81430720551463e-10) + treble*(1.41236666495548e-14*bass*pow(fs,3) + fs*(8.83480424461513e-13*fs + 3.00503545735209e-11)); b1 = bass*fs*(fs*(-4.03371919511285e-15*fs - 1.00884809971388e-11) + 1.20501921839819e-8) + fs*(-8.41073364087361e-14*fs + 4.81430720551463e-10) + treble*(-4.23709999486644e-14*bass*pow(fs,3) + fs*(-8.83480424461513e-13*fs + 3.00503545735209e-11)); b2 = bass*fs*(fs*(4.03371919511285e-15*fs - 1.00884809971388e-11) - 1.20501921839819e-8) + fs*(-8.41073364087361e-14*fs - 4.81430720551463e-10) + treble*(4.23709999486644e-14*bass*pow(fs,3) + fs*(-8.83480424461513e-13*fs - 3.00503545735209e-11)); b3 = bass*fs*(fs*(-1.34457306503762e-15*fs + 1.00884809971388e-11) - 1.20501921839819e-8) + fs*(8.41073364087361e-14*fs - 4.81430720551463e-10) + treble*(-1.41236666495548e-14*bass*pow(fs,3) + fs*(8.83480424461513e-13*fs - 3.00503545735209e-11)); a0 = bass*fs*(fs*(1.54682397145924e-14*fs + 1.23077814193577e-10) + 1.20501921839819e-8) + fs*(9.67587760870249e-13*fs + 7.57932447081709e-9) + 2.40402836588167e-7; a1 = bass*fs*(fs*(-4.64047191437773e-14*fs - 1.23077814193577e-10) + 1.20501921839819e-8) + fs*(-9.67587760870249e-13*fs + 7.57932447081709e-9) + 7.21208509764501e-7; a2 = bass*fs*(fs*(4.64047191437773e-14*fs - 1.23077814193577e-10) - 1.20501921839819e-8) + fs*(-9.67587760870249e-13*fs - 7.57932447081709e-9) + 7.21208509764501e-7; a3 = bass*fs*(fs*(-1.54682397145924e-14*fs + 1.23077814193577e-10) - 1.20501921839819e-8) + fs*(9.67587760870249e-13*fs - 7.57932447081709e-9) + 2.40402836588167e-7; }; p3 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s03_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*(-2.39054193785811e-8*fs - 2.42241583036289e-5) - 0.000318738925047744); b1 = gain*(4.78108387571622e-8*pow(fs,2) - 0.000637477850095488); b2 = gain*(fs*(-2.39054193785811e-8*fs + 2.42241583036289e-5) - 0.000318738925047744); a0 = fs*(4.25078851900361e-10*fs + 4.29329117862591e-7) + 1.05275641642752e-5; a1 = -8.50157703800721e-10*pow(fs,2) + 2.10551283285504e-5; a2 = fs*(4.25078851900361e-10*fs - 4.29329117862591e-7) + 1.05275641642752e-5; }; s03_stage2clip = _<: ba.if(signbit(_), s03_stage2_neg_clip, s03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage2_clip = ffunction(float s03_stage2clip(float), "generated/stage/fender_princeton/s03_stage2_table.h", ""); s03_stage2_neg_clip = ffunction(float s03_stage2_negclip(float), "generated/stage/fender_princeton/s03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s04_stage3clip with { fs = float(ma.SR); b0 = fs*(-7.18566052160675e-9*fs - 0.000108969453073724) - 0.00145164859022357; b1 = 1.43713210432135e-8*pow(fs,2) - 0.00290329718044715; b2 = fs*(-7.18566052160675e-9*fs + 0.000108969453073724) - 0.00145164859022357; a0 = fs*(1.228211327564e-10*fs + 1.49300944816928e-5) + 0.000375575007998186; a1 = -2.456422655128e-10*pow(fs,2) + 0.000751150015996373; a2 = fs*(1.228211327564e-10*fs - 1.49300944816928e-5) + 0.000375575007998186; }; s04_stage3clip = _<: ba.if(signbit(_), s04_stage3_neg_clip, s04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage3_clip = ffunction(float s04_stage3clip(float), "generated/stage/fender_princeton/s04_stage3_table.h", ""); s04_stage3_neg_clip = ffunction(float s04_stage3_negclip(float), "generated/stage/fender_princeton/s04_stage3_neg_table.h", ""); }; p5 = s05_stage4clip; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/fender_princeton/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/fender_princeton/s05_stage4_neg_table.h", ""); }; process = *(pregain) : *(0.06) : p1 : p2 : *(0.35) : p3 : *(0.65) : p4 : *(32.0) : p5 *(12.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/fender_princeton.dsp
faust
* Simulation of Fender Princeton Reverb-amp AA1164 (without reverb module) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "fender_princeton"; declare name "fender_princeton"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00121958463123679*fs - 0.0162611284164904; b1 = 0.00121958463123679*fs - 0.0162611284164904; a0 = 2.08224169602437e-5*fs + 0.000523985908304094; a1 = -2.08224169602437e-5*fs + 0.000523985908304094; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/fender_princeton/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/fender_princeton/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*fs*(fs*(1.34457306503762e-15*fs + 1.00884809971388e-11) + 1.20501921839819e-8) + fs*(8.41073364087361e-14*fs + 4.81430720551463e-10) + treble*(1.41236666495548e-14*bass*pow(fs,3) + fs*(8.83480424461513e-13*fs + 3.00503545735209e-11)); b1 = bass*fs*(fs*(-4.03371919511285e-15*fs - 1.00884809971388e-11) + 1.20501921839819e-8) + fs*(-8.41073364087361e-14*fs + 4.81430720551463e-10) + treble*(-4.23709999486644e-14*bass*pow(fs,3) + fs*(-8.83480424461513e-13*fs + 3.00503545735209e-11)); b2 = bass*fs*(fs*(4.03371919511285e-15*fs - 1.00884809971388e-11) - 1.20501921839819e-8) + fs*(-8.41073364087361e-14*fs - 4.81430720551463e-10) + treble*(4.23709999486644e-14*bass*pow(fs,3) + fs*(-8.83480424461513e-13*fs - 3.00503545735209e-11)); b3 = bass*fs*(fs*(-1.34457306503762e-15*fs + 1.00884809971388e-11) - 1.20501921839819e-8) + fs*(8.41073364087361e-14*fs - 4.81430720551463e-10) + treble*(-1.41236666495548e-14*bass*pow(fs,3) + fs*(8.83480424461513e-13*fs - 3.00503545735209e-11)); a0 = bass*fs*(fs*(1.54682397145924e-14*fs + 1.23077814193577e-10) + 1.20501921839819e-8) + fs*(9.67587760870249e-13*fs + 7.57932447081709e-9) + 2.40402836588167e-7; a1 = bass*fs*(fs*(-4.64047191437773e-14*fs - 1.23077814193577e-10) + 1.20501921839819e-8) + fs*(-9.67587760870249e-13*fs + 7.57932447081709e-9) + 7.21208509764501e-7; a2 = bass*fs*(fs*(4.64047191437773e-14*fs - 1.23077814193577e-10) - 1.20501921839819e-8) + fs*(-9.67587760870249e-13*fs - 7.57932447081709e-9) + 7.21208509764501e-7; a3 = bass*fs*(fs*(-1.54682397145924e-14*fs + 1.23077814193577e-10) - 1.20501921839819e-8) + fs*(9.67587760870249e-13*fs - 7.57932447081709e-9) + 2.40402836588167e-7; }; p3 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s03_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*(-2.39054193785811e-8*fs - 2.42241583036289e-5) - 0.000318738925047744); b1 = gain*(4.78108387571622e-8*pow(fs,2) - 0.000637477850095488); b2 = gain*(fs*(-2.39054193785811e-8*fs + 2.42241583036289e-5) - 0.000318738925047744); a0 = fs*(4.25078851900361e-10*fs + 4.29329117862591e-7) + 1.05275641642752e-5; a1 = -8.50157703800721e-10*pow(fs,2) + 2.10551283285504e-5; a2 = fs*(4.25078851900361e-10*fs - 4.29329117862591e-7) + 1.05275641642752e-5; }; s03_stage2clip = _<: ba.if(signbit(_), s03_stage2_neg_clip, s03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage2_clip = ffunction(float s03_stage2clip(float), "generated/stage/fender_princeton/s03_stage2_table.h", ""); s03_stage2_neg_clip = ffunction(float s03_stage2_negclip(float), "generated/stage/fender_princeton/s03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s04_stage3clip with { fs = float(ma.SR); b0 = fs*(-7.18566052160675e-9*fs - 0.000108969453073724) - 0.00145164859022357; b1 = 1.43713210432135e-8*pow(fs,2) - 0.00290329718044715; b2 = fs*(-7.18566052160675e-9*fs + 0.000108969453073724) - 0.00145164859022357; a0 = fs*(1.228211327564e-10*fs + 1.49300944816928e-5) + 0.000375575007998186; a1 = -2.456422655128e-10*pow(fs,2) + 0.000751150015996373; a2 = fs*(1.228211327564e-10*fs - 1.49300944816928e-5) + 0.000375575007998186; }; s04_stage3clip = _<: ba.if(signbit(_), s04_stage3_neg_clip, s04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage3_clip = ffunction(float s04_stage3clip(float), "generated/stage/fender_princeton/s04_stage3_table.h", ""); s04_stage3_neg_clip = ffunction(float s04_stage3_negclip(float), "generated/stage/fender_princeton/s04_stage3_neg_table.h", ""); }; p5 = s05_stage4clip; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/fender_princeton/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/fender_princeton/s05_stage4_neg_table.h", ""); }; process = *(pregain) : *(0.06) : p1 : p2 : *(0.35) : p3 : *(0.65) : p4 : *(32.0) : p5 *(12.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
a5e1b4fb5fe461abec1abaa0083618328ed0aa9381771cd7a72a3593e30d7661
webaudiomodules/wam-examples
BigMuff.dsp
import("stdfaust.lib"); import("filter.lib"); import("effect.lib"); /* -*- faust -*- */ /**************************************************************** ** helper definitions */ bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); //add_dc = +(anti_denormal); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; /**************************************************************** ** nonlinear functions */ // from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) valve = environment { ex(x) = (1 - exp(-x)); nlim = 50; // exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 /* 2 exp() */ tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); /* 4 exp() because contains 2 valve.tr */ vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : neg : vt(dist, q) : neg; vtu_(dist, q, g) = vt_scaled(dist, q) :neg : *(g) : vt_scaled(dist, q) : /(g) : neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); // simple triode circuit emulation Ftube = ffunction(float Ftube(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); tubestageF(tb,vplus,divider,fck,Rk,Vk0) = tube : hpf with { lpfk = lowpass(1,fck); Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tube = (+ : -(Vk0) : Ftube(tb) : +(VkC-vplus)) ~ (*(Rk/Rp) : lpfk) : /(divider); hpf = highpass(1,31.0); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); /**************************************************************** ** filter */ //---------------------second order Parametric Equalizer--------- // filter(Q,F,G) // Q : quality factor [1..100] // F : frequency (Hz) // G : gain [0..1] //--------------------------------------------------------------- // from "bandfilter.dsp" in the faust2pd distribution // which was released under the BSD license. eqfilter(Q,F,G) = TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(PI*F/SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); /**************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated */ //----- Flanging effect renamed in faust-0.9.27 from //----- flangermono -> flanger_mono //----- flangerstereo -> flanger_stereo flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); //----- Moog "Voltage Controlled Filter" (VCF) //----- filter renamed in faust-0.9.27 from //----- moogvcf -> moog_vcf import("filter.lib"); moogvcfN(Q,fr) = (+ : pole(p) : pole(p) : pole(p) : pole(p) : *(scale(p))) ~ *(mk) with { p = 1.0 - fr * 2.0 * PI / SR; // approx for fr << SR scale(p) = pow(1-p,4); mk = 0-Q; }; /**************************************************************** ** building blocks */ fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); /**************************************************************** ** parameter definitions for use in alternative module */ ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:St.df][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; declare id "bmpf"; declare name "BigMuffFuzzPedal"; declare shortname "FuzzPedal"; declare category "Distortion"; declare description "BigMuffFuzzPedal"; bigmuff = _<: filter1,filter2:>_ with { tone = vslider("Tone[style:knob][OWL:PARAMETER_C]",0.5,0,1,0.01); filter1 = highpass( 1, 1856):*(tone); filter2 = lowpass( 1, 408 ) :*(1-tone); }; bigmuff2 = _<:*(dry),(*(wet):*(gain):bigmuff:fuzz:fuzzy:fiz):>downfilter with { //fuzz(x) = x-0.15*x^2-0.15*x^3; //fuzz(x) = 1.5*x-0.5*x^3; fuzz(x) = (1+drive/101)*x/(1+drive/101*abs(x)); drive = vslider("Drive[style:knob][OWL:PARAMETER_B]", 1, -3, 100, 1); fuzzy = fuzzy_tube(2,1,0.5,drive); fiz(x) = x+(x^7); downfilter = lowpass(1,5631): highpass(1,80); gain = vslider("Input[style:knob][OWL:PARAMETER_A]",0,-24,12,0.1) : db2linear : smoothi(0.999); wet = vslider("Output[style:knob][OWL:PARAMETER_D]", 100, 50, 100, 1) : /(100); dry = 1 - wet; }; process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), bigmuff2);
https://raw.githubusercontent.com/webaudiomodules/wam-examples/ebf5ed23d7543411901b24f12c48164fac9e78bf/packages/BigMuff/BigMuff.dsp
faust
-*- faust -*- *************************************************************** ** helper definitions add_dc = +(anti_denormal); *************************************************************** ** nonlinear functions from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 2 exp() 4 exp() because contains 2 valve.tr simple triode circuit emulation *************************************************************** ** filter ---------------------second order Parametric Equalizer--------- filter(Q,F,G) Q : quality factor [1..100] F : frequency (Hz) G : gain [0..1] --------------------------------------------------------------- from "bandfilter.dsp" in the faust2pd distribution which was released under the BSD license. *************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated ----- Flanging effect renamed in faust-0.9.27 from ----- flangermono -> flanger_mono ----- flangerstereo -> flanger_stereo ----- Moog "Voltage Controlled Filter" (VCF) ----- filter renamed in faust-0.9.27 from ----- moogvcf -> moog_vcf approx for fr << SR *************************************************************** ** building blocks *************************************************************** ** parameter definitions for use in alternative module fuzz(x) = x-0.15*x^2-0.15*x^3; fuzz(x) = 1.5*x-0.5*x^3;
import("stdfaust.lib"); import("filter.lib"); import("effect.lib"); bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; valve = environment { ex(x) = (1 - exp(-x)); tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : neg : vt(dist, q) : neg; vtu_(dist, q, g) = vt_scaled(dist, q) :neg : *(g) : vt_scaled(dist, q) : /(g) : neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); Ftube = ffunction(float Ftube(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); tubestageF(tb,vplus,divider,fck,Rk,Vk0) = tube : hpf with { lpfk = lowpass(1,fck); Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tube = (+ : -(Vk0) : Ftube(tb) : +(VkC-vplus)) ~ (*(Rk/Rp) : lpfk) : /(divider); hpf = highpass(1,31.0); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); eqfilter(Q,F,G) = TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(PI*F/SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); import("filter.lib"); moogvcfN(Q,fr) = (+ : pole(p) : pole(p) : pole(p) : pole(p) : *(scale(p))) ~ *(mk) with { scale(p) = pow(1-p,4); mk = 0-Q; }; fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:St.df][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; declare id "bmpf"; declare name "BigMuffFuzzPedal"; declare shortname "FuzzPedal"; declare category "Distortion"; declare description "BigMuffFuzzPedal"; bigmuff = _<: filter1,filter2:>_ with { tone = vslider("Tone[style:knob][OWL:PARAMETER_C]",0.5,0,1,0.01); filter1 = highpass( 1, 1856):*(tone); filter2 = lowpass( 1, 408 ) :*(1-tone); }; bigmuff2 = _<:*(dry),(*(wet):*(gain):bigmuff:fuzz:fuzzy:fiz):>downfilter with { fuzz(x) = (1+drive/101)*x/(1+drive/101*abs(x)); drive = vslider("Drive[style:knob][OWL:PARAMETER_B]", 1, -3, 100, 1); fuzzy = fuzzy_tube(2,1,0.5,drive); fiz(x) = x+(x^7); downfilter = lowpass(1,5631): highpass(1,80); gain = vslider("Input[style:knob][OWL:PARAMETER_A]",0,-24,12,0.1) : db2linear : smoothi(0.999); wet = vslider("Output[style:knob][OWL:PARAMETER_D]", 100, 50, 100, 1) : /(100); dry = 1 - wet; }; process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), bigmuff2);
ff600e589e8ebd7182e06a172c1f74dc392be746d371df202f4c2b472ad6ffbe
grame-cncm/smartfaust
sampler_Zverb4_2_v0.2.dsp
declare name "sfZverb"; declare version "1.4"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); //-------------------- MAIN ------------------------------- process = _<:zita_rev3:>_; //-------------------- PARAMETERS ------------------------------- lowpassmotion = fi.lowpass(N,fc) with { //fc= hslider("h:motion filter/high_cut [hidden:1]",10,0.01,10,0.01); fc=10; N= 1; // order of filter }; // from effect.lib but with only N=4 for mobilephone application zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; // Delay-line lengths in seconds: apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, 0.029291, 0.013458, 0.019123); // feedforward delays in seconds tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, 0.192303, 0.125000, 0.219991); // total delays in seconds tdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,tdelays)); // samples apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); // NOTE: Since SR is not bounded at compile time, we can't use it to // allocate delay lines; hence, the fsmax parameter: tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); apcoeff(i) = select2(i&1,0.6,-0.6); // allpass comb-filter coefficient allpass_combs(N) = par(i,N,(fi.allpass_comb(maxapdelay(i),apdelay(i),apcoeff(i)))); // filter.lib fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); feedbackmatrix(N) = ro.hadamard(N); // math.lib staynormal = 10.0^(-20); // let signals decay well below LSB, but not to zero special_lowpass(g,f) = si.smooth(p) with { // unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: p = mbo2 - sqrt(max(0,mbo2*mbo2 - 1.0)); // other solution is unstable mbo2 = (1.0 - gs*c)/(1.0 - gs); // NOTE: must ensure |g|<1 (t60m finite) gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); low_shelf1_l(G0,fx,x) = x + (G0-1)* fi.lowpass(1,fx,x); // filter.lib g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); n60(j) = dur(j)* ma.SR; // decay time in samples g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); t1 = 0.37; // zita-rev1 linearly ramps from 0 to t1 over one buffer outmix(4) = !,ro.butterfly(2),!; // probably the result of some experimenting! outmix(N) = outmix(N/2),par(i,N/2,!); }; // from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders //---------------------------------- zita_rev1 ------------------------------ // Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). // // Only the dry/wet and output level parameters are "dezippered" here. If // parameters are to be varied in real time, use "smooth(0.999)" or the like // in the same way. // // REFERENCE: // http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html // // DEPENDENCIES: // filter.lib (peak_eq_rm) zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { fsmax = 48000.0; // highest sampling rate that will be used // rdel = vslider("[1] Pre_Delay [hidden:1]", 50,1,100,1); rdel=50; // f1 = vslider("[1] LF X [hidden:1]", 500, 50, 1000, 1); f1=500; t60dc = hslider("v:sfPlayer parameter(s)/[2] Low RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 5, 1, 7, 0.1); //[accy:-1 0 5 0] t60m = hslider("v:sfPlayer parameter(s)/[3] Mid RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 5, 1, 7, 0.1); // f2 = vslider("[4] HF Damping [hidden:1]", 13340, 1500, 0.49*fsmax, 1); f2=13340; out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);// Zolzer style peaking eq (not used in zita-rev1) (filter.lib): // pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); // Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): //pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) // with { // tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) // wcT = 2*PI*eqf/SR; // peak frequency in rad/sample //g = db2linear(eql); // peak gain // }; // pareq use directly peak_eq_cp from filter.lib pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; // eq1f = vslider("[1] F1[hidden:1] [unit:Hz] [style:knob] [tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]", 315, 40, 10000, 1); eq1f=315; // eq1l = vslider("[2] L1 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]", 0, -15, 15, 0.1); eq1l=0; // eq1q = vslider("[3] Q1[hidden:1] [style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]", 3, 0.1, 10, 0.1); eq1q=3; // eq2f = vslider("[1] F2[hidden:1] [unit:Hz] [style:knob][tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]", 3000, 40, 10000, 1); eq2f=3000; // eq2l = vslider("[2] L2 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]", 0, -15, 15, 0.1); eq2l=0; // eq2q = vslider("[3] Q2 [hidden:1][style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]", 3, 0.1, 10, 0.1); eq2q=3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; drywet =(hslider("v:sfPlayer parameter(s)/[1] Dry/Wet Mix [tooltip: -1 = dry, 1 = wet] [acc:1 1 -10 5 10][color:255 255 0][hidden:1]", 5, 0, 17, 0.1)*0.02)-1:fi.lowpass(1,1):max(-1):min(1); // out_level = *(gain),*(gain); // gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear; };
https://raw.githubusercontent.com/grame-cncm/smartfaust/0a9c93ea7eda9899e1401402901848f221366c99/src/sfPlayer/sampler_Zverb4_2_v0.2.dsp
faust
-------------------- MAIN ------------------------------- -------------------- PARAMETERS ------------------------------- fc= hslider("h:motion filter/high_cut [hidden:1]",10,0.01,10,0.01); order of filter from effect.lib but with only N=4 for mobilephone application Delay-line lengths in seconds: feedforward delays in seconds total delays in seconds samples NOTE: Since SR is not bounded at compile time, we can't use it to allocate delay lines; hence, the fsmax parameter: allpass comb-filter coefficient filter.lib math.lib let signals decay well below LSB, but not to zero unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: other solution is unstable NOTE: must ensure |g|<1 (t60m finite) filter.lib decay time in samples zita-rev1 linearly ramps from 0 to t1 over one buffer probably the result of some experimenting! from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders ---------------------------------- zita_rev1 ------------------------------ Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). Only the dry/wet and output level parameters are "dezippered" here. If parameters are to be varied in real time, use "smooth(0.999)" or the like in the same way. REFERENCE: http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html DEPENDENCIES: filter.lib (peak_eq_rm) highest sampling rate that will be used rdel = vslider("[1] Pre_Delay [hidden:1]", 50,1,100,1); f1 = vslider("[1] LF X [hidden:1]", 500, 50, 1000, 1); [accy:-1 0 5 0] f2 = vslider("[4] HF Damping [hidden:1]", 13340, 1500, 0.49*fsmax, 1); Zolzer style peaking eq (not used in zita-rev1) (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) with { tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) wcT = 2*PI*eqf/SR; // peak frequency in rad/sample g = db2linear(eql); // peak gain }; pareq use directly peak_eq_cp from filter.lib eq1f = vslider("[1] F1[hidden:1] [unit:Hz] [style:knob] [tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]", 315, 40, 10000, 1); eq1l = vslider("[2] L1 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]", 0, -15, 15, 0.1); eq1q = vslider("[3] Q1[hidden:1] [style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]", 3, 0.1, 10, 0.1); eq2f = vslider("[1] F2[hidden:1] [unit:Hz] [style:knob][tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]", 3000, 40, 10000, 1); eq2l = vslider("[2] L2 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]", 0, -15, 15, 0.1); eq2q = vslider("[3] Q2 [hidden:1][style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]", 3, 0.1, 10, 0.1); out_level = *(gain),*(gain); gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear;
declare name "sfZverb"; declare version "1.4"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); process = _<:zita_rev3:>_; lowpassmotion = fi.lowpass(N,fc) with { fc=10; }; zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); special_lowpass(g,f) = si.smooth(p) with { gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); outmix(N) = outmix(N/2),par(i,N/2,!); }; zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { rdel=50; f1=500; t60dc = hslider("v:sfPlayer parameter(s)/[2] Low RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 5, 1, 7, 0.1); t60m = hslider("v:sfPlayer parameter(s)/[3] Mid RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 5, 1, 7, 0.1); f2=13340; pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; eq1f=315; eq1l=0; eq1q=3; eq2f=3000; eq2l=0; eq2q=3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; drywet =(hslider("v:sfPlayer parameter(s)/[1] Dry/Wet Mix [tooltip: -1 = dry, 1 = wet] [acc:1 1 -10 5 10][color:255 255 0][hidden:1]", 5, 0, 17, 0.1)*0.02)-1:fi.lowpass(1,1):max(-1):min(1); };
64a223efeee3aed8bfcf14c05133ac108bc6b6cb6b5e3f8ca9444a4674bb3102
sadko4u/tamgamp.lv2
fender_twin_reverb_normal.dsp
/* * Simulation of Fender Twin Reverb-Amp AA769 (Normal channel, bright off) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "fender_twin_reverb_normal"; declare name "fender_twin_reverb_normal"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00129014420144197*fs - 0.017201922685893; b1 = 0.00129014420144197*fs - 0.017201922685893; a0 = 2.08221197518557e-5*fs + 0.000538251910926107; a1 = -2.08221197518557e-5*fs + 0.000538251910926107; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/fender_twin_reverb_normal/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/fender_twin_reverb_normal/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*fs*(2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs + 3.07290665441977e-11)); b1 = bass*fs*(-2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(-4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs + 3.07290665441977e-11)); b2 = bass*fs*(-2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs - 3.07290665441977e-11)); b3 = bass*fs*(2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(-1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs - 3.07290665441977e-11)); a0 = bass*fs*(fs*(1.44426612757729e-14*fs + 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + 2.45832532353582e-7; a1 = bass*fs*(fs*(-4.33279838273188e-14*fs - 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + 7.37497597060746e-7; a2 = bass*fs*(fs*(4.33279838273188e-14*fs - 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + 7.37497597060746e-7; a3 = bass*fs*(fs*(-1.44426612757729e-14*fs + 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + 2.45832532353582e-7; }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(-0.00135874808711943*fs - 0.0331401972468152); b1 = gain*(0.00135874808711943*fs - 0.0331401972468152); a0 = 2.0817038124151e-5*fs + 0.000782170040754152; a1 = -2.0817038124151e-5*fs + 0.000782170040754152; }; s03_stage2clip = _<: ba.if(signbit(_), s03_stage2_neg_clip, s03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage2_clip = ffunction(float s03_stage2clip(float), "generated/stage/fender_twin_reverb_normal/s03_stage2_table.h", ""); s03_stage2_neg_clip = ffunction(float s03_stage2_negclip(float), "generated/stage/fender_twin_reverb_normal/s03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s04_stage3clip with { fs = float(ma.SR); b0 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs - 5.17684011327779e-17) - 3.4215978904891e-17); b1 = pow(fs,3)*(1.49698844666277e-17*fs + 1.03536802265556e-16); b2 = pow(fs,2)*(-2.24548266999415e-17*pow(fs,2) + 6.8431957809782e-17); b3 = pow(fs,3)*(1.49698844666277e-17*fs - 1.03536802265556e-16); b4 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs + 5.17684011327779e-17) - 3.4215978904891e-17); a0 = fs*(fs*(fs*(1.87256459364461e-19*fs + 5.38993753233175e-17) + 1.72508035993432e-15) + 1.46964199243802e-14) + 1.08177249568012e-14; a1 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs - 1.07798750646635e-16) + 2.93928398487605e-14) + 4.32708998272046e-14; a2 = pow(fs,2)*(1.12353875618677e-18*pow(fs,2) - 3.45016071986864e-15) + 6.4906349740807e-14; a3 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs + 1.07798750646635e-16) - 2.93928398487605e-14) + 4.32708998272046e-14; a4 = fs*(fs*(fs*(1.87256459364461e-19*fs - 5.38993753233175e-17) + 1.72508035993432e-15) - 1.46964199243802e-14) + 1.08177249568012e-14; }; s04_stage3clip = _<: ba.if(signbit(_), s04_stage3_neg_clip, s04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage3_clip = ffunction(float s04_stage3clip(float), "generated/stage/fender_twin_reverb_normal/s04_stage3_table.h", ""); s04_stage3_neg_clip = ffunction(float s04_stage3_negclip(float), "generated/stage/fender_twin_reverb_normal/s04_stage3_neg_table.h", ""); }; process = *(pregain) : *(0.06) : p1 : p2 : *(0.12) : p3 : *(0.02) : p4 : *(1.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/fender_twin_reverb_normal.dsp
faust
* Simulation of Fender Twin Reverb-Amp AA769 (Normal channel, bright off) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "fender_twin_reverb_normal"; declare name "fender_twin_reverb_normal"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00129014420144197*fs - 0.017201922685893; b1 = 0.00129014420144197*fs - 0.017201922685893; a0 = 2.08221197518557e-5*fs + 0.000538251910926107; a1 = -2.08221197518557e-5*fs + 0.000538251910926107; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/fender_twin_reverb_normal/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/fender_twin_reverb_normal/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*fs*(2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs + 3.07290665441977e-11)); b1 = bass*fs*(-2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(-4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs + 3.07290665441977e-11)); b2 = bass*fs*(-2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs - 3.07290665441977e-11)); b3 = bass*fs*(2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(-1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs - 3.07290665441977e-11)); a0 = bass*fs*(fs*(1.44426612757729e-14*fs + 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + 2.45832532353582e-7; a1 = bass*fs*(fs*(-4.33279838273188e-14*fs - 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + 7.37497597060746e-7; a2 = bass*fs*(fs*(4.33279838273188e-14*fs - 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + 7.37497597060746e-7; a3 = bass*fs*(fs*(-1.44426612757729e-14*fs + 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + 2.45832532353582e-7; }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(-0.00135874808711943*fs - 0.0331401972468152); b1 = gain*(0.00135874808711943*fs - 0.0331401972468152); a0 = 2.0817038124151e-5*fs + 0.000782170040754152; a1 = -2.0817038124151e-5*fs + 0.000782170040754152; }; s03_stage2clip = _<: ba.if(signbit(_), s03_stage2_neg_clip, s03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage2_clip = ffunction(float s03_stage2clip(float), "generated/stage/fender_twin_reverb_normal/s03_stage2_table.h", ""); s03_stage2_neg_clip = ffunction(float s03_stage2_negclip(float), "generated/stage/fender_twin_reverb_normal/s03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s04_stage3clip with { fs = float(ma.SR); b0 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs - 5.17684011327779e-17) - 3.4215978904891e-17); b1 = pow(fs,3)*(1.49698844666277e-17*fs + 1.03536802265556e-16); b2 = pow(fs,2)*(-2.24548266999415e-17*pow(fs,2) + 6.8431957809782e-17); b3 = pow(fs,3)*(1.49698844666277e-17*fs - 1.03536802265556e-16); b4 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs + 5.17684011327779e-17) - 3.4215978904891e-17); a0 = fs*(fs*(fs*(1.87256459364461e-19*fs + 5.38993753233175e-17) + 1.72508035993432e-15) + 1.46964199243802e-14) + 1.08177249568012e-14; a1 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs - 1.07798750646635e-16) + 2.93928398487605e-14) + 4.32708998272046e-14; a2 = pow(fs,2)*(1.12353875618677e-18*pow(fs,2) - 3.45016071986864e-15) + 6.4906349740807e-14; a3 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs + 1.07798750646635e-16) - 2.93928398487605e-14) + 4.32708998272046e-14; a4 = fs*(fs*(fs*(1.87256459364461e-19*fs - 5.38993753233175e-17) + 1.72508035993432e-15) - 1.46964199243802e-14) + 1.08177249568012e-14; }; s04_stage3clip = _<: ba.if(signbit(_), s04_stage3_neg_clip, s04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage3_clip = ffunction(float s04_stage3clip(float), "generated/stage/fender_twin_reverb_normal/s04_stage3_table.h", ""); s04_stage3_neg_clip = ffunction(float s04_stage3_negclip(float), "generated/stage/fender_twin_reverb_normal/s04_stage3_neg_table.h", ""); }; process = *(pregain) : *(0.06) : p1 : p2 : *(0.12) : p3 : *(0.02) : p4 : *(1.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
70ac2c7ba241c8cb4a82434896818433823f5640bcfc465a694e854f4801396f
Sylcantor/wam-web-components
OscTube.dsp
declare id "tube2"; import("music.lib"); import("effect.lib"); //guitarxlib /* -*- faust -*- */ /**************************************************************** ** helper definitions */ bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); //add_dc = +(anti_denormal); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; /**************************************************************** ** nonlinear functions */ // from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) valve = environment { ex(x) = (1 - exp(-x)); nlim = 50; // exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 /* 2 exp() */ tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); /* 4 exp() because contains 2 valve.tr */ vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : ma.neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : ma.neg : vt(dist, q) : ma.neg; vtu_(dist, q, g) = vt_scaled(dist, q) :ma.neg : *(g) : vt_scaled(dist, q) : /(g) : ma.neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); // simple triode circuit emulation Ftube = ffunction(float Ftube(int,float), "valve.h", ""); Ranode = ffunction(float Ranode(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); //fix me dcblock tubestageF(tb,vplus,divider,fck,Rk,Vk0) = anti_aliase : tube : hpf with { lpfk = fi.lowpass(1,fck); anti_aliase = fi.lowpass(3,ma.SR/2.1); Rp = 100.0e3; //VkC = Vk0 * (Rp + Ranode(tb)) / Rk; //Vp = -(Vk0) : Ftube(tb); //tubeVp = Vp <: +(VkC - vplus); VkC = Vk0 * (Rp/Rk); tubeVp = -(Vk0) : Ftube(tb) : +(VkC-vplus); tube(x) = x : (+ : (tubeVp)) ~ (x*Rk/(Rp + Ranode(tb)) : lpfk) : /(divider); switch1 = checkbox(".amp.highgain[tooltip:Allow frequencies below 31Hz][alias]"); hpf = _<: select2(switch1, fi.highpass(1,31.0), fi.dcblockerat(1.0)); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); /**************************************************************** ** filter */ //---------------------second order Parametric Equalizer--------- // filter(Q,F,G) // Q : quality factor [1..100] // F : frequency (Hz) // G : gain [0..1] //--------------------------------------------------------------- // from "bandfilter.dsp" in the faust2pd distribution // which was released under the BSD license. eqfilter(Q,F,G) = fi.TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(ma.PI*F/ma.SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); /**************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated */ //----- Flanging effect renamed in faust-0.9.27 from //----- flangermono -> pf.flanger_mono //----- flangerstereo -> pf.flanger_stereo flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); //----- Moog "Voltage Controlled Filter" (VCF) //----- filter renamed in faust-0.9.27 from //----- moogvcf -> ve.moog_vcf import("stdfaust.lib"); moogvcfN(Q,fr) = (+ : fi.pole(p) : fi.pole(p) : fi.pole(p) : fi.pole(p) : *(scale(p))) ~ *(mk) with { p = 1.0 - fr * 2.0 * ma.PI / ma.SR; // approx for fr << ma.SR scale(p) = pow(1-p,4); mk = 0-Q; }; /**************************************************************** ** building blocks */ fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); /**************************************************************** ** parameter definitions for use in alternative module */ ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01) : smoothi(0.999); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : ba.db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; wah_ctrl = environment { mode = vslider(".wah.mode[enum:manual|auto|alien][alias]", 0, 0, 2, 1); wah = vslider(".wah.Wah[alias]", 0, 0, 1, 0.01); freq = vslider(".wah.freq[name:Alien Freq][tooltip:LFO in Beats per Minute][alias]",24,24,360,1)/60; wet_dry = vslider(".wah.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:Phase][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * ma.PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; poweramp_ctrl = environment { ingain = vslider(".poweramp.Pregain[alias]",0,-30,30,0.1) : ba.db2linear : smoothi(0.999); outgain = vslider(".poweramp.Gain[alias]", 0, -30.0, 30.0, 0.1) : ba.db2linear : smoothi(0.999); }; /**************************************************************** ** reverb building blocks */ opf(a) = (_+_*(1-a)~@(1)*a); // BEWARE: This is not allpass filter. allpass(dt,fb) = (_,_ <: (*(fb),_:+:@(dt)), -) ~ _ : (!,_); // This is true allpass below. allpass_filter(dt,fb) = (+ <:(@(dt):_),*(fb)) ~ *(-fb) : mem,_ : + ; allpass_with_fdelay(dt1,coef,dt2,dt2pos) = (_,_ <: (*(coef),_:+:@(dt1):de.fdelay(dt2,dt2pos)), -) ~ _ : (!,_); comb(dt, fb, damp) = (+:@(dt)) ~ (*(1-damp) : (+ ~ *(damp)) : *(fb)); //end guitarxlib resonator = (+ <: (delay(4096, d-1) + delay(4096, d))/2.0)~*(1.0-a) with { d = 1 - vslider("Vibrato[style:knob][OWL:PARAMETER_C]", 1, 0, 1, 0.01); a = 0.9 - vslider("Resonance[style:knob][OWL:PARAMETER_B]", 0.5, 0, 0.9, 0.01); }; fuzzy = vslider("Fuzz[name:tube][style:knob][OWL:PARAMETER_A]", 1, -3, 10, 1); declare id "HighShelf"; import("maxmsp.lib"); hs(x) = highShelf(x,F,G,Q) with { G = -20.; F = SR/2 -100.; Q = 100.; }; tube1 = hs : nonlin1 : resonator : +(anti_denormal_ac) : speakerbp(130,5000) * fuzzy * 0.5; processOsc(x) = x + tube1(x) : sym_clip(0.7); process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), processOsc);
https://raw.githubusercontent.com/Sylcantor/wam-web-components/c54352dae5b80bcf6d8d4c306ea22e2c91a12b08/plugins/OscTube/OscTube.dsp
faust
guitarxlib -*- faust -*- *************************************************************** ** helper definitions add_dc = +(anti_denormal); *************************************************************** ** nonlinear functions from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 2 exp() 4 exp() because contains 2 valve.tr simple triode circuit emulation fix me dcblock VkC = Vk0 * (Rp + Ranode(tb)) / Rk; Vp = -(Vk0) : Ftube(tb); tubeVp = Vp <: +(VkC - vplus); *************************************************************** ** filter ---------------------second order Parametric Equalizer--------- filter(Q,F,G) Q : quality factor [1..100] F : frequency (Hz) G : gain [0..1] --------------------------------------------------------------- from "bandfilter.dsp" in the faust2pd distribution which was released under the BSD license. *************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated ----- Flanging effect renamed in faust-0.9.27 from ----- flangermono -> pf.flanger_mono ----- flangerstereo -> pf.flanger_stereo ----- Moog "Voltage Controlled Filter" (VCF) ----- filter renamed in faust-0.9.27 from ----- moogvcf -> ve.moog_vcf approx for fr << ma.SR *************************************************************** ** building blocks *************************************************************** ** parameter definitions for use in alternative module *************************************************************** ** reverb building blocks BEWARE: This is not allpass filter. This is true allpass below. end guitarxlib
declare id "tube2"; import("music.lib"); import("effect.lib"); bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; valve = environment { ex(x) = (1 - exp(-x)); tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : ma.neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : ma.neg : vt(dist, q) : ma.neg; vtu_(dist, q, g) = vt_scaled(dist, q) :ma.neg : *(g) : vt_scaled(dist, q) : /(g) : ma.neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); Ftube = ffunction(float Ftube(int,float), "valve.h", ""); Ranode = ffunction(float Ranode(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); tubestageF(tb,vplus,divider,fck,Rk,Vk0) = anti_aliase : tube : hpf with { lpfk = fi.lowpass(1,fck); anti_aliase = fi.lowpass(3,ma.SR/2.1); Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tubeVp = -(Vk0) : Ftube(tb) : +(VkC-vplus); tube(x) = x : (+ : (tubeVp)) ~ (x*Rk/(Rp + Ranode(tb)) : lpfk) : /(divider); switch1 = checkbox(".amp.highgain[tooltip:Allow frequencies below 31Hz][alias]"); hpf = _<: select2(switch1, fi.highpass(1,31.0), fi.dcblockerat(1.0)); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); eqfilter(Q,F,G) = fi.TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(ma.PI*F/ma.SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); import("stdfaust.lib"); moogvcfN(Q,fr) = (+ : fi.pole(p) : fi.pole(p) : fi.pole(p) : fi.pole(p) : *(scale(p))) ~ *(mk) with { scale(p) = pow(1-p,4); mk = 0-Q; }; fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01) : smoothi(0.999); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : ba.db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; wah_ctrl = environment { mode = vslider(".wah.mode[enum:manual|auto|alien][alias]", 0, 0, 2, 1); wah = vslider(".wah.Wah[alias]", 0, 0, 1, 0.01); freq = vslider(".wah.freq[name:Alien Freq][tooltip:LFO in Beats per Minute][alias]",24,24,360,1)/60; wet_dry = vslider(".wah.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:Phase][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * ma.PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; poweramp_ctrl = environment { ingain = vslider(".poweramp.Pregain[alias]",0,-30,30,0.1) : ba.db2linear : smoothi(0.999); outgain = vslider(".poweramp.Gain[alias]", 0, -30.0, 30.0, 0.1) : ba.db2linear : smoothi(0.999); }; opf(a) = (_+_*(1-a)~@(1)*a); allpass(dt,fb) = (_,_ <: (*(fb),_:+:@(dt)), -) ~ _ : (!,_); allpass_filter(dt,fb) = (+ <:(@(dt):_),*(fb)) ~ *(-fb) : mem,_ : + ; allpass_with_fdelay(dt1,coef,dt2,dt2pos) = (_,_ <: (*(coef),_:+:@(dt1):de.fdelay(dt2,dt2pos)), -) ~ _ : (!,_); comb(dt, fb, damp) = (+:@(dt)) ~ (*(1-damp) : (+ ~ *(damp)) : *(fb)); resonator = (+ <: (delay(4096, d-1) + delay(4096, d))/2.0)~*(1.0-a) with { d = 1 - vslider("Vibrato[style:knob][OWL:PARAMETER_C]", 1, 0, 1, 0.01); a = 0.9 - vslider("Resonance[style:knob][OWL:PARAMETER_B]", 0.5, 0, 0.9, 0.01); }; fuzzy = vslider("Fuzz[name:tube][style:knob][OWL:PARAMETER_A]", 1, -3, 10, 1); declare id "HighShelf"; import("maxmsp.lib"); hs(x) = highShelf(x,F,G,Q) with { G = -20.; F = SR/2 -100.; Q = 100.; }; tube1 = hs : nonlin1 : resonator : +(anti_denormal_ac) : speakerbp(130,5000) * fuzzy * 0.5; processOsc(x) = x + tube1(x) : sym_clip(0.7); process = ba.bypass_fade(ma.SR/10, checkbox("bypass"), processOsc);
87806598702f5020d648b83b55a27d6d49af0a83a84cb162a42449717393abe1
sadko4u/tamgamp.lv2
fender_twin_reverb_vibrato.dsp
/* * Simulation of Fender Twin Reverb-Amp AA769 (Vibrato channel, bright on) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "fender_twin_reverb_vibrato"; declare name "fender_twin_reverb_vibrato"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00129014420144197*fs - 0.017201922685893; b1 = 0.00129014420144197*fs - 0.017201922685893; a0 = 2.08221197518557e-5*fs + 0.000538251910926107; a1 = -2.08221197518557e-5*fs + 0.000538251910926107; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/fender_twin_reverb_vibrato/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*fs*(2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs + 3.07290665441977e-11)); b1 = bass*fs*(-2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(-4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs + 3.07290665441977e-11)); b2 = bass*fs*(-2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs - 3.07290665441977e-11)); b3 = bass*fs*(2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(-1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs - 3.07290665441977e-11)); a0 = bass*fs*(fs*(1.44426612757729e-14*fs + 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + 2.45832532353582e-7; a1 = bass*fs*(fs*(-4.33279838273188e-14*fs - 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + 7.37497597060746e-7; a2 = bass*fs*(fs*(4.33279838273188e-14*fs - 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + 7.37497597060746e-7; a3 = bass*fs*(fs*(-1.44426612757729e-14*fs + 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + 2.45832532353582e-7; }; p3 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s03_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(8.40462734303842e-8*fs + 2.04990910805815e-6) + fs*(-8.40462734303842e-8*fs - 0.000352242715067992) - 0.00854128795024229); b1 = gain*(-1.68092546860768e-7*pow(fs,2)*gain + 1.68092546860768e-7*pow(fs,2) - 0.0170825759004846); b2 = gain*(fs*gain*(8.40462734303842e-8*fs - 2.04990910805815e-6) + fs*(-8.40462734303842e-8*fs + 0.000352242715067992) - 0.00854128795024229); a0 = 5.36521601137911e-6*fs + gain*(fs*gain*(-1.28765184273099e-9*fs - 4.83816520054756e-8) + fs*(1.28765184273099e-9*fs + 4.83816520054756e-8)) + 0.000201590216689482; a1 = gain*(2.57530368546197e-9*pow(fs,2)*gain - 2.57530368546197e-9*pow(fs,2)) + 0.000403180433378964; a2 = -5.36521601137911e-6*fs + gain*(fs*gain*(-1.28765184273099e-9*fs + 4.83816520054756e-8) + fs*(1.28765184273099e-9*fs - 4.83816520054756e-8)) + 0.000201590216689482; }; s03_stage2clip = _<: ba.if(signbit(_), s03_stage2_neg_clip, s03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage2_clip = ffunction(float s03_stage2clip(float), "generated/stage/fender_twin_reverb_vibrato/s03_stage2_table.h", ""); s03_stage2_neg_clip = ffunction(float s03_stage2_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s04_stage3clip with { fs = float(ma.SR); b0 = fs*(-4.67849403955662e-9*fs - 7.10003829373363e-5) - 0.00172893349577111; b1 = 9.35698807911324e-9*pow(fs,2) - 0.00345786699154223; b2 = fs*(-4.67849403955662e-9*fs + 7.10003829373363e-5) - 0.00172893349577111; a0 = fs*(7.16780319383327e-11*fs + 1.73791857892897e-5) + 0.000652896528176287; a1 = -1.43356063876665e-10*pow(fs,2) + 0.00130579305635257; a2 = fs*(7.16780319383327e-11*fs - 1.73791857892897e-5) + 0.000652896528176287; }; s04_stage3clip = _<: ba.if(signbit(_), s04_stage3_neg_clip, s04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage3_clip = ffunction(float s04_stage3clip(float), "generated/stage/fender_twin_reverb_vibrato/s04_stage3_table.h", ""); s04_stage3_neg_clip = ffunction(float s04_stage3_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s04_stage3_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s05_stage4clip with { fs = float(ma.SR); b0 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs - 5.17684011327779e-17) - 3.4215978904891e-17); b1 = pow(fs,3)*(1.49698844666277e-17*fs + 1.03536802265556e-16); b2 = pow(fs,2)*(-2.24548266999415e-17*pow(fs,2) + 6.8431957809782e-17); b3 = pow(fs,3)*(1.49698844666277e-17*fs - 1.03536802265556e-16); b4 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs + 5.17684011327779e-17) - 3.4215978904891e-17); a0 = fs*(fs*(fs*(1.87256459364461e-19*fs + 5.38993753233175e-17) + 1.72508035993432e-15) + 1.46964199243802e-14) + 1.08177249568012e-14; a1 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs - 1.07798750646635e-16) + 2.93928398487605e-14) + 4.32708998272046e-14; a2 = pow(fs,2)*(1.12353875618677e-18*pow(fs,2) - 3.45016071986864e-15) + 6.4906349740807e-14; a3 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs + 1.07798750646635e-16) - 2.93928398487605e-14) + 4.32708998272046e-14; a4 = fs*(fs*(fs*(1.87256459364461e-19*fs - 5.38993753233175e-17) + 1.72508035993432e-15) - 1.46964199243802e-14) + 1.08177249568012e-14; }; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/fender_twin_reverb_vibrato/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s05_stage4_neg_table.h", ""); }; process = *(pregain) : *(0.044) : p1 : p2 : *(0.019) : p3 : *(0.05) : p4 : *(0.15) : p5 : *(70.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/fender_twin_reverb_vibrato.dsp
faust
* Simulation of Fender Twin Reverb-Amp AA769 (Vibrato channel, bright on) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "fender_twin_reverb_vibrato"; declare name "fender_twin_reverb_vibrato"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00129014420144197*fs - 0.017201922685893; b1 = 0.00129014420144197*fs - 0.017201922685893; a0 = 2.08221197518557e-5*fs + 0.000538251910926107; a1 = -2.08221197518557e-5*fs + 0.000538251910926107; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/fender_twin_reverb_vibrato/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*fs*(2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs + 3.07290665441977e-11)); b1 = bass*fs*(-2.4398878836093e-12*fs + 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + treble*(-4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs + 3.07290665441977e-11)); b2 = bass*fs*(-2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(4.33279838273188e-14*bass*pow(fs,3) + fs*(-9.03434556399414e-13*fs - 3.07290665441977e-11)); b3 = bass*fs*(2.4398878836093e-12*fs - 1.23223556842233e-8) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + treble*(-1.44426612757729e-14*bass*pow(fs,3) + fs*(9.03434556399414e-13*fs - 3.07290665441977e-11)); a0 = bass*fs*(fs*(1.44426612757729e-14*fs + 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs + 7.23976807781299e-10)) + 2.45832532353582e-7; a1 = bass*fs*(fs*(-4.33279838273188e-14*fs - 1.17981178089793e-10) + 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs + 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs + 7.23976807781299e-10)) + 7.37497597060746e-7; a2 = bass*fs*(fs*(4.33279838273188e-14*fs - 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(-9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(6.06591773582464e-15*fs - 1.15830143431699e-11) + fs*(-1.26480837895918e-13*fs - 7.23976807781299e-10)) + 7.37497597060746e-7; a3 = bass*fs*(fs*(-1.44426612757729e-14*fs + 1.17981178089793e-10) - 1.23223556842233e-8) + fs*(9.03434556399414e-13*fs - 7.25820551773951e-9) + middle*(bass*pow(fs,2)*(-2.02197257860821e-15*fs + 1.15830143431699e-11) + fs*(1.26480837895918e-13*fs - 7.23976807781299e-10)) + 2.45832532353582e-7; }; p3 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s03_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(8.40462734303842e-8*fs + 2.04990910805815e-6) + fs*(-8.40462734303842e-8*fs - 0.000352242715067992) - 0.00854128795024229); b1 = gain*(-1.68092546860768e-7*pow(fs,2)*gain + 1.68092546860768e-7*pow(fs,2) - 0.0170825759004846); b2 = gain*(fs*gain*(8.40462734303842e-8*fs - 2.04990910805815e-6) + fs*(-8.40462734303842e-8*fs + 0.000352242715067992) - 0.00854128795024229); a0 = 5.36521601137911e-6*fs + gain*(fs*gain*(-1.28765184273099e-9*fs - 4.83816520054756e-8) + fs*(1.28765184273099e-9*fs + 4.83816520054756e-8)) + 0.000201590216689482; a1 = gain*(2.57530368546197e-9*pow(fs,2)*gain - 2.57530368546197e-9*pow(fs,2)) + 0.000403180433378964; a2 = -5.36521601137911e-6*fs + gain*(fs*gain*(-1.28765184273099e-9*fs + 4.83816520054756e-8) + fs*(1.28765184273099e-9*fs - 4.83816520054756e-8)) + 0.000201590216689482; }; s03_stage2clip = _<: ba.if(signbit(_), s03_stage2_neg_clip, s03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage2_clip = ffunction(float s03_stage2clip(float), "generated/stage/fender_twin_reverb_vibrato/s03_stage2_table.h", ""); s03_stage2_neg_clip = ffunction(float s03_stage2_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s04_stage3clip with { fs = float(ma.SR); b0 = fs*(-4.67849403955662e-9*fs - 7.10003829373363e-5) - 0.00172893349577111; b1 = 9.35698807911324e-9*pow(fs,2) - 0.00345786699154223; b2 = fs*(-4.67849403955662e-9*fs + 7.10003829373363e-5) - 0.00172893349577111; a0 = fs*(7.16780319383327e-11*fs + 1.73791857892897e-5) + 0.000652896528176287; a1 = -1.43356063876665e-10*pow(fs,2) + 0.00130579305635257; a2 = fs*(7.16780319383327e-11*fs - 1.73791857892897e-5) + 0.000652896528176287; }; s04_stage3clip = _<: ba.if(signbit(_), s04_stage3_neg_clip, s04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage3_clip = ffunction(float s04_stage3clip(float), "generated/stage/fender_twin_reverb_vibrato/s04_stage3_table.h", ""); s04_stage3_neg_clip = ffunction(float s04_stage3_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s04_stage3_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s05_stage4clip with { fs = float(ma.SR); b0 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs - 5.17684011327779e-17) - 3.4215978904891e-17); b1 = pow(fs,3)*(1.49698844666277e-17*fs + 1.03536802265556e-16); b2 = pow(fs,2)*(-2.24548266999415e-17*pow(fs,2) + 6.8431957809782e-17); b3 = pow(fs,3)*(1.49698844666277e-17*fs - 1.03536802265556e-16); b4 = pow(fs,2)*(fs*(-3.74247111665692e-18*fs + 5.17684011327779e-17) - 3.4215978904891e-17); a0 = fs*(fs*(fs*(1.87256459364461e-19*fs + 5.38993753233175e-17) + 1.72508035993432e-15) + 1.46964199243802e-14) + 1.08177249568012e-14; a1 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs - 1.07798750646635e-16) + 2.93928398487605e-14) + 4.32708998272046e-14; a2 = pow(fs,2)*(1.12353875618677e-18*pow(fs,2) - 3.45016071986864e-15) + 6.4906349740807e-14; a3 = fs*(pow(fs,2)*(-7.49025837457845e-19*fs + 1.07798750646635e-16) - 2.93928398487605e-14) + 4.32708998272046e-14; a4 = fs*(fs*(fs*(1.87256459364461e-19*fs - 5.38993753233175e-17) + 1.72508035993432e-15) - 1.46964199243802e-14) + 1.08177249568012e-14; }; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/fender_twin_reverb_vibrato/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/fender_twin_reverb_vibrato/s05_stage4_neg_table.h", ""); }; process = *(pregain) : *(0.044) : p1 : p2 : *(0.019) : p3 : *(0.05) : p4 : *(0.15) : p5 : *(70.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
2d339e43104814082a65de2433d3d05e45c9b56a5dc6b800063b425c0ed5e7ba
sadko4u/tamgamp.lv2
mesa_dc3_rhythm.dsp
/* * This is simulation of Mesa/Boogie DC3 preamplifier (rhythm channel) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "mesa_dc3_rhythm"; declare name "mesa_dc3_rhythm"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c01_stage1clip with { fs = float(ma.SR); b0 = fs*(-6.65791056489004e-9*fs - 1.30019802277314e-5) - 0.00124540040495512; b1 = 1.33158211297801e-8*pow(fs,2) - 0.00249080080991024; b2 = fs*(-6.65791056489004e-9*fs + 1.30019802277314e-5) - 0.00124540040495512; a0 = fs*(4.21532937697353e-10*fs + 5.9768182392539e-7) + 9.93839968788513e-5; a1 = -8.43065875394707e-10*pow(fs,2) + 0.000198767993757703; a2 = fs*(4.21532937697353e-10*fs - 5.9768182392539e-7) + 9.93839968788513e-5; }; c01_stage1clip = _<: ba.if(signbit(_), c01_stage1_neg_clip, c01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c01_stage1_clip = ffunction(float c01_stage1clip(float), "generated/stage/mesa_dc3_rhythm/c01_stage1_table.h", ""); c01_stage1_neg_clip = ffunction(float c01_stage1_negclip(float), "generated/stage/mesa_dc3_rhythm/c01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); b0 = bass*(1.36964577800476e-14*pow(fs,3)*treble + fs*(1.82813713064181e-12*fs + 7.79046747489232e-9)) + fs*treble*(8.56757146241275e-13*fs + 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs + 1.14428562162383e-9)); b1 = bass*(-4.10893733401428e-14*pow(fs,3)*treble + fs*(-1.82813713064181e-12*fs + 7.79046747489232e-9)) + fs*treble*(-8.56757146241275e-13*fs + 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(-1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs + 1.14428562162383e-9)); b2 = bass*(4.10893733401428e-14*pow(fs,3)*treble + fs*(-1.82813713064181e-12*fs - 7.79046747489232e-9)) + fs*treble*(-8.56757146241275e-13*fs - 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs - 1.14428562162383e-9)); b3 = bass*(-1.36964577800476e-14*pow(fs,3)*treble + fs*(1.82813713064181e-12*fs - 7.79046747489232e-9)) + fs*treble*(8.56757146241275e-13*fs - 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(-3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs - 1.14428562162383e-9)); a0 = bass*fs*(fs*(1.36964577800476e-14*fs + 1.11399799371023e-10) + 7.79046747489232e-9) + fs*(8.56757146241275e-13*fs + 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs + 1.14428562162383e-9)) + 1.55420797504086e-7; a1 = bass*fs*(fs*(-4.10893733401428e-14*fs - 1.11399799371023e-10) + 7.79046747489232e-9) + fs*(-8.56757146241275e-13*fs + 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(-1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs + 1.14428562162383e-9)) + 4.66262392512259e-7; a2 = bass*fs*(fs*(4.10893733401428e-14*fs - 1.11399799371023e-10) - 7.79046747489232e-9) + fs*(-8.56757146241275e-13*fs - 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs - 1.14428562162383e-9)) + 4.66262392512259e-7; a3 = bass*fs*(fs*(-1.36964577800476e-14*fs + 1.11399799371023e-10) - 7.79046747489232e-9) + fs*(8.56757146241275e-13*fs - 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(-3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs - 1.14428562162383e-9)) + 1.55420797504086e-7; }; p3 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : c03_stage2clip with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(gain*fs*(fs*(5.65465860286515e-13*fs + 5.72373344015806e-10) + 1.21527156734691e-7) + fs*(fs*(-5.65465860286515e-13*fs - 2.92848109520962e-9) - 2.50641609013388e-6) - 0.000506363153061214); b1 = gain*(gain*fs*(fs*(-1.69639758085955e-12*fs - 5.72373344015806e-10) + 1.21527156734691e-7) + fs*(fs*(1.69639758085955e-12*fs + 2.92848109520962e-9) - 2.50641609013388e-6) - 0.00151908945918364); b2 = gain*(gain*fs*(fs*(1.69639758085955e-12*fs - 5.72373344015806e-10) - 1.21527156734691e-7) + fs*(fs*(-1.69639758085955e-12*fs + 2.92848109520962e-9) + 2.50641609013388e-6) - 0.00151908945918364); b3 = gain*(gain*fs*(fs*(-5.65465860286515e-13*fs + 5.72373344015806e-10) - 1.21527156734691e-7) + fs*(fs*(5.65465860286515e-13*fs - 2.92848109520962e-9) + 2.50641609013388e-6) - 0.000506363153061214); a0 = gain*(gain*fs*(fs*(-2.92202561207851e-14*fs - 1.68076623635913e-10) - 9.76391727987263e-8) + fs*(fs*(2.92202561207851e-14*fs + 1.68076623635913e-10) + 9.76391727987263e-8)) + fs*(3.94868325956556e-11*fs + 6.54318313030122e-8) + 1.61632817279244e-5; a1 = gain*(gain*fs*(fs*(8.76607683623553e-14*fs + 1.68076623635913e-10) - 9.76391727987263e-8) + fs*(fs*(-8.76607683623553e-14*fs - 1.68076623635913e-10) + 9.76391727987263e-8)) + fs*(-3.94868325956556e-11*fs + 6.54318313030122e-8) + 4.84898451837732e-5; a2 = gain*(gain*fs*(fs*(-8.76607683623553e-14*fs + 1.68076623635913e-10) + 9.76391727987263e-8) + fs*(fs*(8.76607683623553e-14*fs - 1.68076623635913e-10) - 9.76391727987263e-8)) + fs*(-3.94868325956556e-11*fs - 6.54318313030122e-8) + 4.84898451837732e-5; a3 = gain*(gain*fs*(fs*(2.92202561207851e-14*fs - 1.68076623635913e-10) + 9.76391727987263e-8) + fs*(fs*(-2.92202561207851e-14*fs + 1.68076623635913e-10) - 9.76391727987263e-8)) + fs*(3.94868325956556e-11*fs - 6.54318313030122e-8) + 1.61632817279244e-5; }; c03_stage2clip = _<: ba.if(signbit(_), c03_stage2_neg_clip, c03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c03_stage2_clip = ffunction(float c03_stage2clip(float), "generated/stage/mesa_dc3_rhythm/c03_stage2_table.h", ""); c03_stage2_neg_clip = ffunction(float c03_stage2_negclip(float), "generated/stage/mesa_dc3_rhythm/c03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : c04_stage3clip with { fs = float(ma.SR); master = ampctrl.master : si.smooth(0.999); b0 = fs*master*(-2.85655611199869e-10*fs - 6.34790247110823e-9); b1 = fs*master*(2.85655611199869e-10*fs - 6.34790247110823e-9); b2 = fs*master*(2.85655611199869e-10*fs + 6.34790247110823e-9); b3 = fs*master*(-2.85655611199869e-10*fs + 6.34790247110823e-9); a0 = fs*(fs*(3.64313785972838e-15*fs + 2.5884168432943e-10) + 1.51395602310821e-8) + 1.58230819183179e-7; a1 = fs*(fs*(-1.09294135791852e-14*fs - 2.5884168432943e-10) + 1.51395602310821e-8) + 4.74692457549537e-7; a2 = fs*(fs*(1.09294135791852e-14*fs - 2.5884168432943e-10) - 1.51395602310821e-8) + 4.74692457549537e-7; a3 = fs*(fs*(-3.64313785972838e-15*fs + 2.5884168432943e-10) - 1.51395602310821e-8) + 1.58230819183179e-7; }; c04_stage3clip = _<: ba.if(signbit(_), c04_stage3_neg_clip, c04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c04_stage3_clip = ffunction(float c04_stage3clip(float), "generated/stage/mesa_dc3_rhythm/c04_stage3_table.h", ""); c04_stage3_neg_clip = ffunction(float c04_stage3_negclip(float), "generated/stage/mesa_dc3_rhythm/c04_stage3_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c05_stage4clip with { fs = float(ma.SR); b0 = (fs*(4.43030830836957e-10*fs + 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs - 4.72566219559423e-7)); b1 = (-8.86061661673914e-10*pow(fs,2) + 2.83539731735652e-9*pow(fs,2)); b2 = (fs*(4.43030830836957e-10*fs - 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs + 4.72566219559423e-7)); a0 = fs*(4.60626343739698e-10*fs + 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs - 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs - 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; a1 = -9.21252687479396e-10*pow(fs,2) + (6.38538513058588e-11*pow(fs,2) + (1.32763030240861e-10*pow(fs,2) + 3.27403958923153e-20) - 7.08953770134946e-6) + 2.26865206443179e-5; a2 = fs*(4.60626343739698e-10*fs - 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs + 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs + 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; }; c05_stage4clip = _<: ba.if(signbit(_), c05_stage4_neg_clip, c05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c05_stage4_clip = ffunction(float c05_stage4clip(float), "generated/stage/mesa_dc3_rhythm/c05_stage4_table.h", ""); c05_stage4_neg_clip = ffunction(float c05_stage4_negclip(float), "generated/stage/mesa_dc3_rhythm/c05_stage4_neg_table.h", ""); }; process = *(pregain) : // *(0.05) : *(0.05) : p1 : p2 : // *(7.5) : *(7.65) : p3 : // *(8.4) : *(8.1) : p4 : // *(8.4) : *(5.27) : p5 : // *(0.5) : *(1.86) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/mesa_dc3_rhythm.dsp
faust
* This is simulation of Mesa/Boogie DC3 preamplifier (rhythm channel) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *(0.05) : *(7.5) : *(8.4) : *(8.4) : *(0.5) :
declare id "mesa_dc3_rhythm"; declare name "mesa_dc3_rhythm"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c01_stage1clip with { fs = float(ma.SR); b0 = fs*(-6.65791056489004e-9*fs - 1.30019802277314e-5) - 0.00124540040495512; b1 = 1.33158211297801e-8*pow(fs,2) - 0.00249080080991024; b2 = fs*(-6.65791056489004e-9*fs + 1.30019802277314e-5) - 0.00124540040495512; a0 = fs*(4.21532937697353e-10*fs + 5.9768182392539e-7) + 9.93839968788513e-5; a1 = -8.43065875394707e-10*pow(fs,2) + 0.000198767993757703; a2 = fs*(4.21532937697353e-10*fs - 5.9768182392539e-7) + 9.93839968788513e-5; }; c01_stage1clip = _<: ba.if(signbit(_), c01_stage1_neg_clip, c01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c01_stage1_clip = ffunction(float c01_stage1clip(float), "generated/stage/mesa_dc3_rhythm/c01_stage1_table.h", ""); c01_stage1_neg_clip = ffunction(float c01_stage1_negclip(float), "generated/stage/mesa_dc3_rhythm/c01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); b0 = bass*(1.36964577800476e-14*pow(fs,3)*treble + fs*(1.82813713064181e-12*fs + 7.79046747489232e-9)) + fs*treble*(8.56757146241275e-13*fs + 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs + 1.14428562162383e-9)); b1 = bass*(-4.10893733401428e-14*pow(fs,3)*treble + fs*(-1.82813713064181e-12*fs + 7.79046747489232e-9)) + fs*treble*(-8.56757146241275e-13*fs + 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(-1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs + 1.14428562162383e-9)); b2 = bass*(4.10893733401428e-14*pow(fs,3)*treble + fs*(-1.82813713064181e-12*fs - 7.79046747489232e-9)) + fs*treble*(-8.56757146241275e-13*fs - 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs - 1.14428562162383e-9)); b3 = bass*(-1.36964577800476e-14*pow(fs,3)*treble + fs*(1.82813713064181e-12*fs - 7.79046747489232e-9)) + fs*treble*(8.56757146241275e-13*fs - 1.94275996880108e-11) + middle*(bass*pow(fs,2)*(-3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs - 1.14428562162383e-9)); a0 = bass*fs*(fs*(1.36964577800476e-14*fs + 1.11399799371023e-10) + 7.79046747489232e-9) + fs*(8.56757146241275e-13*fs + 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs + 1.14428562162383e-9)) + 1.55420797504086e-7; a1 = bass*fs*(fs*(-4.10893733401428e-14*fs - 1.11399799371023e-10) + 7.79046747489232e-9) + fs*(-8.56757146241275e-13*fs + 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(-1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs + 1.14428562162383e-9)) + 4.66262392512259e-7; a2 = bass*fs*(fs*(4.10893733401428e-14*fs - 1.11399799371023e-10) - 7.79046747489232e-9) + fs*(-8.56757146241275e-13*fs - 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(1.09571662240381e-14*fs - 1.8307598565997e-11) + fs*(-2.28468572331007e-13*fs - 1.14428562162383e-9)) + 4.66262392512259e-7; a3 = bass*fs*(fs*(-1.36964577800476e-14*fs + 1.11399799371023e-10) - 7.79046747489232e-9) + fs*(8.56757146241275e-13*fs - 6.87348476961821e-9) + middle*(bass*pow(fs,2)*(-3.65238874134603e-15*fs + 1.8307598565997e-11) + fs*(2.28468572331007e-13*fs - 1.14428562162383e-9)) + 1.55420797504086e-7; }; p3 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : c03_stage2clip with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(gain*fs*(fs*(5.65465860286515e-13*fs + 5.72373344015806e-10) + 1.21527156734691e-7) + fs*(fs*(-5.65465860286515e-13*fs - 2.92848109520962e-9) - 2.50641609013388e-6) - 0.000506363153061214); b1 = gain*(gain*fs*(fs*(-1.69639758085955e-12*fs - 5.72373344015806e-10) + 1.21527156734691e-7) + fs*(fs*(1.69639758085955e-12*fs + 2.92848109520962e-9) - 2.50641609013388e-6) - 0.00151908945918364); b2 = gain*(gain*fs*(fs*(1.69639758085955e-12*fs - 5.72373344015806e-10) - 1.21527156734691e-7) + fs*(fs*(-1.69639758085955e-12*fs + 2.92848109520962e-9) + 2.50641609013388e-6) - 0.00151908945918364); b3 = gain*(gain*fs*(fs*(-5.65465860286515e-13*fs + 5.72373344015806e-10) - 1.21527156734691e-7) + fs*(fs*(5.65465860286515e-13*fs - 2.92848109520962e-9) + 2.50641609013388e-6) - 0.000506363153061214); a0 = gain*(gain*fs*(fs*(-2.92202561207851e-14*fs - 1.68076623635913e-10) - 9.76391727987263e-8) + fs*(fs*(2.92202561207851e-14*fs + 1.68076623635913e-10) + 9.76391727987263e-8)) + fs*(3.94868325956556e-11*fs + 6.54318313030122e-8) + 1.61632817279244e-5; a1 = gain*(gain*fs*(fs*(8.76607683623553e-14*fs + 1.68076623635913e-10) - 9.76391727987263e-8) + fs*(fs*(-8.76607683623553e-14*fs - 1.68076623635913e-10) + 9.76391727987263e-8)) + fs*(-3.94868325956556e-11*fs + 6.54318313030122e-8) + 4.84898451837732e-5; a2 = gain*(gain*fs*(fs*(-8.76607683623553e-14*fs + 1.68076623635913e-10) + 9.76391727987263e-8) + fs*(fs*(8.76607683623553e-14*fs - 1.68076623635913e-10) - 9.76391727987263e-8)) + fs*(-3.94868325956556e-11*fs - 6.54318313030122e-8) + 4.84898451837732e-5; a3 = gain*(gain*fs*(fs*(2.92202561207851e-14*fs - 1.68076623635913e-10) + 9.76391727987263e-8) + fs*(fs*(-2.92202561207851e-14*fs + 1.68076623635913e-10) - 9.76391727987263e-8)) + fs*(3.94868325956556e-11*fs - 6.54318313030122e-8) + 1.61632817279244e-5; }; c03_stage2clip = _<: ba.if(signbit(_), c03_stage2_neg_clip, c03_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c03_stage2_clip = ffunction(float c03_stage2clip(float), "generated/stage/mesa_dc3_rhythm/c03_stage2_table.h", ""); c03_stage2_neg_clip = ffunction(float c03_stage2_negclip(float), "generated/stage/mesa_dc3_rhythm/c03_stage2_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : c04_stage3clip with { fs = float(ma.SR); master = ampctrl.master : si.smooth(0.999); b0 = fs*master*(-2.85655611199869e-10*fs - 6.34790247110823e-9); b1 = fs*master*(2.85655611199869e-10*fs - 6.34790247110823e-9); b2 = fs*master*(2.85655611199869e-10*fs + 6.34790247110823e-9); b3 = fs*master*(-2.85655611199869e-10*fs + 6.34790247110823e-9); a0 = fs*(fs*(3.64313785972838e-15*fs + 2.5884168432943e-10) + 1.51395602310821e-8) + 1.58230819183179e-7; a1 = fs*(fs*(-1.09294135791852e-14*fs - 2.5884168432943e-10) + 1.51395602310821e-8) + 4.74692457549537e-7; a2 = fs*(fs*(1.09294135791852e-14*fs - 2.5884168432943e-10) - 1.51395602310821e-8) + 4.74692457549537e-7; a3 = fs*(fs*(-3.64313785972838e-15*fs + 2.5884168432943e-10) - 1.51395602310821e-8) + 1.58230819183179e-7; }; c04_stage3clip = _<: ba.if(signbit(_), c04_stage3_neg_clip, c04_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c04_stage3_clip = ffunction(float c04_stage3clip(float), "generated/stage/mesa_dc3_rhythm/c04_stage3_table.h", ""); c04_stage3_neg_clip = ffunction(float c04_stage3_negclip(float), "generated/stage/mesa_dc3_rhythm/c04_stage3_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c05_stage4clip with { fs = float(ma.SR); b0 = (fs*(4.43030830836957e-10*fs + 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs - 4.72566219559423e-7)); b1 = (-8.86061661673914e-10*pow(fs,2) + 2.83539731735652e-9*pow(fs,2)); b2 = (fs*(4.43030830836957e-10*fs - 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs + 4.72566219559423e-7)); a0 = fs*(4.60626343739698e-10*fs + 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs - 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs - 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; a1 = -9.21252687479396e-10*pow(fs,2) + (6.38538513058588e-11*pow(fs,2) + (1.32763030240861e-10*pow(fs,2) + 3.27403958923153e-20) - 7.08953770134946e-6) + 2.26865206443179e-5; a2 = fs*(4.60626343739698e-10*fs - 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs + 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs + 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; }; c05_stage4clip = _<: ba.if(signbit(_), c05_stage4_neg_clip, c05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c05_stage4_clip = ffunction(float c05_stage4clip(float), "generated/stage/mesa_dc3_rhythm/c05_stage4_table.h", ""); c05_stage4_neg_clip = ffunction(float c05_stage4_negclip(float), "generated/stage/mesa_dc3_rhythm/c05_stage4_neg_table.h", ""); }; process = *(pregain) : *(0.05) : p1 : p2 : *(7.65) : p3 : *(8.1) : p4 : *(5.27) : p5 : *(1.86) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
47683596a977376e509323a27f0ad99f1fb63a506a985cb47b008c1be4437f13
Sylcantor/wam-web-components
OverdriveRix.dsp
declare name "Overdrive"; declare category "Distortion"; import("music.lib"); /* -*- faust -*- */ /**************************************************************** ** helper definitions */ bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); //add_dc = +(anti_denormal); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; /**************************************************************** ** nonlinear functions */ // from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) valve = environment { ex(x) = (1 - exp(-x)); nlim = 50; // exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 /* 2 exp() */ tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); /* 4 exp() because contains 2 valve.tr */ vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : ma.neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : ma.neg : vt(dist, q) : ma.neg; vtu_(dist, q, g) = vt_scaled(dist, q) :ma.neg : *(g) : vt_scaled(dist, q) : /(g) : ma.neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); // simple triode circuit emulation Ftube = ffunction(float Ftube(int,float), "valve.h", ""); Ranode = ffunction(float Ranode(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); //fix me dcblock tubestageF(tb,vplus,divider,fck,Rk,Vk0) = anti_aliase : tube : hpf with { lpfk = fi.lowpass(1,fck); anti_aliase = fi.lowpass(3,ma.SR/2.1); Rp = 100.0e3; //VkC = Vk0 * (Rp + Ranode(tb)) / Rk; //Vp = -(Vk0) : Ftube(tb); //tubeVp = Vp <: +(VkC - vplus); VkC = Vk0 * (Rp/Rk); tubeVp = -(Vk0) : Ftube(tb) : +(VkC-vplus); tube(x) = x : (+ : (tubeVp)) ~ (x*Rk/(Rp + Ranode(tb)) : lpfk) : /(divider); switch1 = checkbox(".amp.highgain[tooltip:Allow frequencies below 31Hz][alias]"); hpf = _<: select2(switch1, fi.highpass(1,31.0), fi.dcblockerat(1.0)); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); /**************************************************************** ** filter */ //---------------------second order Parametric Equalizer--------- // filter(Q,F,G) // Q : quality factor [1..100] // F : frequency (Hz) // G : gain [0..1] //--------------------------------------------------------------- // from "bandfilter.dsp" in the faust2pd distribution // which was released under the BSD license. eqfilter(Q,F,G) = fi.TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(ma.PI*F/ma.SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); /**************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated */ //----- Flanging effect renamed in faust-0.9.27 from //----- flangermono -> pf.flanger_mono //----- flangerstereo -> pf.flanger_stereo flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); //----- Moog "Voltage Controlled Filter" (VCF) //----- filter renamed in faust-0.9.27 from //----- moogvcf -> ve.moog_vcf import("stdfaust.lib"); moogvcfN(Q,fr) = (+ : fi.pole(p) : fi.pole(p) : fi.pole(p) : fi.pole(p) : *(scale(p))) ~ *(mk) with { p = 1.0 - fr * 2.0 * ma.PI / ma.SR; // approx for fr << ma.SR scale(p) = pow(1-p,4); mk = 0-Q; }; /**************************************************************** ** building blocks */ fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); /**************************************************************** ** parameter definitions for use in alternative module */ ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01) : smoothi(0.999); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : ba.db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; wah_ctrl = environment { mode = vslider(".wah.mode[enum:manual|auto|alien][alias]", 0, 0, 2, 1); wah = vslider(".wah.Wah[alias]", 0, 0, 1, 0.01); freq = vslider(".wah.freq[name:Alien Freq][tooltip:LFO in Beats per Minute][alias]",24,24,360,1)/60; wet_dry = vslider(".wah.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:Phase][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * ma.PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; poweramp_ctrl = environment { ingain = vslider(".poweramp.Pregain[alias]",0,-30,30,0.1) : ba.db2linear : smoothi(0.999); outgain = vslider(".poweramp.Gain[alias]", 0, -30.0, 30.0, 0.1) : ba.db2linear : smoothi(0.999); }; /**************************************************************** ** reverb building blocks */ opf(a) = (_+_*(1-a)~@(1)*a); // BEWARE: This is not allpass filter. allpass(dt,fb) = (_,_ <: (*(fb),_:+:@(dt)), -) ~ _ : (!,_); // This is true allpass below. allpass_filter(dt,fb) = (+ <:(@(dt):_),*(fb)) ~ *(-fb) : mem,_ : + ; allpass_with_fdelay(dt1,coef,dt2,dt2pos) = (_,_ <: (*(coef),_:+:@(dt1):de.fdelay(dt2,dt2pos)), -) ~ _ : (!,_); comb(dt, fb, damp) = (+:@(dt)) ~ (*(1-damp) : (+ ~ *(damp)) : *(fb)); drive = vslider("Drive[style:knob][OWL:PARAMETER_A]", 1, 1, 20, 0.1); f = drive * -0.5 : db2linear : smoothi(0.999); wet = vslider("Dry/Wet[tooltip:percentage of processed signal in output signal][style:knob][OWL:PARAMETER_D]", 100, 0, 100, 1) : /(100); dry = 1 - wet; overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f; main = _<:*(dry),(*(wet) : overdrive):>_; output = _,_ : + : ba.bypass1(bypass,main) <: _,_; process = ba.bypass_fade(0, checkbox("bypass"), main);
https://raw.githubusercontent.com/Sylcantor/wam-web-components/c54352dae5b80bcf6d8d4c306ea22e2c91a12b08/plugins/OverdriveRix/OverdriveRix.dsp
faust
-*- faust -*- *************************************************************** ** helper definitions add_dc = +(anti_denormal); *************************************************************** ** nonlinear functions from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 2 exp() 4 exp() because contains 2 valve.tr simple triode circuit emulation fix me dcblock VkC = Vk0 * (Rp + Ranode(tb)) / Rk; Vp = -(Vk0) : Ftube(tb); tubeVp = Vp <: +(VkC - vplus); *************************************************************** ** filter ---------------------second order Parametric Equalizer--------- filter(Q,F,G) Q : quality factor [1..100] F : frequency (Hz) G : gain [0..1] --------------------------------------------------------------- from "bandfilter.dsp" in the faust2pd distribution which was released under the BSD license. *************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated ----- Flanging effect renamed in faust-0.9.27 from ----- flangermono -> pf.flanger_mono ----- flangerstereo -> pf.flanger_stereo ----- Moog "Voltage Controlled Filter" (VCF) ----- filter renamed in faust-0.9.27 from ----- moogvcf -> ve.moog_vcf approx for fr << ma.SR *************************************************************** ** building blocks *************************************************************** ** parameter definitions for use in alternative module *************************************************************** ** reverb building blocks BEWARE: This is not allpass filter. This is true allpass below.
declare name "Overdrive"; declare category "Distortion"; import("music.lib"); bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; valve = environment { ex(x) = (1 - exp(-x)); tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : ma.neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : ma.neg : vt(dist, q) : ma.neg; vtu_(dist, q, g) = vt_scaled(dist, q) :ma.neg : *(g) : vt_scaled(dist, q) : /(g) : ma.neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); Ftube = ffunction(float Ftube(int,float), "valve.h", ""); Ranode = ffunction(float Ranode(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); tubestageF(tb,vplus,divider,fck,Rk,Vk0) = anti_aliase : tube : hpf with { lpfk = fi.lowpass(1,fck); anti_aliase = fi.lowpass(3,ma.SR/2.1); Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tubeVp = -(Vk0) : Ftube(tb) : +(VkC-vplus); tube(x) = x : (+ : (tubeVp)) ~ (x*Rk/(Rp + Ranode(tb)) : lpfk) : /(divider); switch1 = checkbox(".amp.highgain[tooltip:Allow frequencies below 31Hz][alias]"); hpf = _<: select2(switch1, fi.highpass(1,31.0), fi.dcblockerat(1.0)); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); eqfilter(Q,F,G) = fi.TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(ma.PI*F/ma.SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); import("stdfaust.lib"); moogvcfN(Q,fr) = (+ : fi.pole(p) : fi.pole(p) : fi.pole(p) : fi.pole(p) : *(scale(p))) ~ *(mk) with { scale(p) = pow(1-p,4); mk = 0-Q; }; fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01) : smoothi(0.999); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : ba.db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : ba.db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; wah_ctrl = environment { mode = vslider(".wah.mode[enum:manual|auto|alien][alias]", 0, 0, 2, 1); wah = vslider(".wah.Wah[alias]", 0, 0, 1, 0.01); freq = vslider(".wah.freq[name:Alien Freq][tooltip:LFO in Beats per Minute][alias]",24,24,360,1)/60; wet_dry = vslider(".wah.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:Phase][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * ma.PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; poweramp_ctrl = environment { ingain = vslider(".poweramp.Pregain[alias]",0,-30,30,0.1) : ba.db2linear : smoothi(0.999); outgain = vslider(".poweramp.Gain[alias]", 0, -30.0, 30.0, 0.1) : ba.db2linear : smoothi(0.999); }; opf(a) = (_+_*(1-a)~@(1)*a); allpass(dt,fb) = (_,_ <: (*(fb),_:+:@(dt)), -) ~ _ : (!,_); allpass_filter(dt,fb) = (+ <:(@(dt):_),*(fb)) ~ *(-fb) : mem,_ : + ; allpass_with_fdelay(dt1,coef,dt2,dt2pos) = (_,_ <: (*(coef),_:+:@(dt1):de.fdelay(dt2,dt2pos)), -) ~ _ : (!,_); comb(dt, fb, damp) = (+:@(dt)) ~ (*(1-damp) : (+ ~ *(damp)) : *(fb)); drive = vslider("Drive[style:knob][OWL:PARAMETER_A]", 1, 1, 20, 0.1); f = drive * -0.5 : db2linear : smoothi(0.999); wet = vslider("Dry/Wet[tooltip:percentage of processed signal in output signal][style:knob][OWL:PARAMETER_D]", 100, 0, 100, 1) : /(100); dry = 1 - wet; overdrive(x) = (x*(abs(x) + drive)/(x*x + (drive-1)*abs(x) + 1)) * f; main = _<:*(dry),(*(wet) : overdrive):>_; output = _,_ : + : ba.bypass1(bypass,main) <: _,_; process = ba.bypass_fade(0, checkbox("bypass"), main);
d99a44c6ac68496eeeb7d7bf491c18d6b7e19a031d12c59283a2ff1dd259f420
sadko4u/tamgamp.lv2
vox_ac30_brilliant.dsp
/* * Simulation of VOX AC-30 brilliant channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "vox_ac30_brilliant"; declare name "vox_ac30_brilliant"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(1.21691030264956e-12*fs + 1.62254707019943e-11) + fs*(fs*(-1.21691030264956e-12*fs - 1.21853284971976e-8) - 1.62254707019943e-7)); b1 = gain*(pow(fs,2)*gain*(-3.65073090794867e-12*fs - 1.62254707019943e-11) + fs*(fs*(3.65073090794867e-12*fs + 1.21853284971976e-8) - 1.62254707019943e-7)); b2 = gain*(pow(fs,2)*gain*(3.65073090794867e-12*fs - 1.62254707019943e-11) + fs*(fs*(-3.65073090794867e-12*fs + 1.21853284971976e-8) + 1.62254707019943e-7)); b3 = gain*(pow(fs,2)*gain*(-1.21691030264956e-12*fs + 1.62254707019943e-11) + fs*(fs*(1.21691030264956e-12*fs - 1.21853284971976e-8) + 1.62254707019943e-7)); a0 = fs*(fs*(1.46759132724008e-15*fs + 2.11486483634959e-10) + 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(-1.63951503064558e-14*fs - 3.30417460278931e-13) + fs*(fs*(1.49275589792157e-14*fs - 3.25286498377207e-11) - 6.60834920557862e-10)) + 6.60834920557862e-6; a1 = fs*(fs*(-4.40277398172025e-15*fs - 2.11486483634959e-10) + 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(4.91854509193674e-14*fs + 3.30417460278931e-13) + fs*(fs*(-4.47826769376472e-14*fs + 3.25286498377207e-11) - 6.60834920557862e-10)) + 1.98250476167359e-5; a2 = fs*(fs*(4.40277398172025e-15*fs - 2.11486483634959e-10) - 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(-4.91854509193674e-14*fs + 3.30417460278931e-13) + fs*(fs*(4.47826769376472e-14*fs + 3.25286498377207e-11) + 6.60834920557862e-10)) + 1.98250476167359e-5; a3 = fs*(fs*(-1.46759132724008e-15*fs + 2.11486483634959e-10) - 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(1.63951503064558e-14*fs - 3.30417460278931e-13) + fs*(fs*(-1.49275589792157e-14*fs - 3.25286498377207e-11) + 6.60834920557862e-10)) + 6.60834920557862e-6; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/vox_ac30_brilliant/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/vox_ac30_brilliant/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*(bass*(pow(fs,3)*treble*(3.05797947138973e-17*fs + 4.63330222937843e-16) + fs*(fs*(fs*(3.3637774185287e-18*fs + 4.09921063749909e-14) + 7.47139476619465e-11) + 1.12263071754777e-9)) + fs*treble*(fs*(fs*(-3.08855926610362e-17*fs + 9.2202714364629e-16) + 1.79013949771437e-13) + 2.39323462261283e-12) + fs*(fs*(fs*(-3.3637774185287e-18*fs - 4.09226068415502e-14) - 7.3973537899982e-11) - 1.11142834271851e-9)) + fs*treble*(fs*(-1.40389057550165e-15*fs - 1.80804089269152e-13) - 2.41716696883895e-12) + fs*(fs*(-1.52898973569486e-16*fs - 1.4826096634268e-12) - 2.24286820047292e-11); b1 = bass*(bass*(pow(fs,3)*treble*(-1.22319178855589e-16*fs - 9.26660445875686e-16) + fs*(pow(fs,2)*(-1.34551096741148e-17*fs - 8.19842127499818e-14) + 2.24526143509553e-9)) + fs*treble*(pow(fs,2)*(1.23542370644145e-16*fs - 1.84405428729258e-15) + 4.78646924522565e-12) + fs*(pow(fs,2)*(1.34551096741148e-17*fs + 8.18452136831005e-14) - 2.22285668543703e-9)) + fs*treble*(2.80778115100329e-15*pow(fs,2) - 4.83433393767791e-12) + fs*(3.05797947138973e-16*pow(fs,2) - 4.48573640094584e-11); b2 = bass*(bass*(1.83478768283384e-16*pow(fs,4)*treble + pow(fs,2)*(2.01826645111722e-17*pow(fs,2) - 1.49427895323893e-10)) + pow(fs,2)*treble*(-1.85313555966217e-16*pow(fs,2) - 3.58027899542875e-13) + pow(fs,2)*(-2.01826645111722e-17*pow(fs,2) + 1.47947075799964e-10)) + 3.61608178538304e-13*pow(fs,2)*treble + 2.96521932685359e-12*pow(fs,2); b3 = bass*(bass*(pow(fs,3)*treble*(-1.22319178855589e-16*fs + 9.26660445875686e-16) + fs*(pow(fs,2)*(-1.34551096741148e-17*fs + 8.19842127499818e-14) - 2.24526143509553e-9)) + fs*treble*(pow(fs,2)*(1.23542370644145e-16*fs + 1.84405428729258e-15) - 4.78646924522565e-12) + fs*(pow(fs,2)*(1.34551096741148e-17*fs - 8.18452136831005e-14) + 2.22285668543703e-9)) + fs*treble*(-2.80778115100329e-15*pow(fs,2) + 4.83433393767791e-12) + fs*(-3.05797947138973e-16*pow(fs,2) + 4.48573640094584e-11); b4 = bass*(bass*(pow(fs,3)*treble*(3.05797947138973e-17*fs - 4.63330222937843e-16) + fs*(fs*(fs*(3.3637774185287e-18*fs - 4.09921063749909e-14) + 7.47139476619465e-11) - 1.12263071754777e-9)) + fs*treble*(fs*(fs*(-3.08855926610362e-17*fs - 9.2202714364629e-16) + 1.79013949771437e-13) - 2.39323462261283e-12) + fs*(fs*(fs*(-3.3637774185287e-18*fs + 4.09226068415502e-14) - 7.3973537899982e-11) + 1.11142834271851e-9)) + fs*treble*(fs*(1.40389057550165e-15*fs - 1.80804089269152e-13) + 2.41716696883895e-12) + fs*(fs*(1.52898973569486e-16*fs - 1.4826096634268e-12) + 2.24286820047292e-11); a0 = bass*(bass*fs*(fs*(fs*(-6.02672969538652e-19*fs - 6.49932574103903e-15) - 1.47032744910494e-12) - 3.81165435253458e-11) + fs*(fs*(fs*(6.08122466362163e-19*fs + 6.53131301878959e-15) + 1.19327043205117e-12) + 7.38273127010344e-13) - 8.64438325516983e-10) + fs*(fs*(2.76419302891892e-17*fs + 2.94253695876191e-13) + 3.812941500894e-11) + 8.73082708772152e-10; a1 = bass*(bass*fs*(pow(fs,2)*(2.41069187815461e-18*fs + 1.29986514820781e-14) - 7.62330870506917e-11) + fs*(pow(fs,2)*(-2.43248986544865e-18*fs - 1.30626260375792e-14) + 1.47654625402069e-12) - 3.45775330206793e-9) + fs*(-5.52838605783785e-17*pow(fs,2) + 7.62588300178801e-11) + 3.49233083508861e-9; a2 = bass*(bass*pow(fs,2)*(-3.61603781723191e-18*pow(fs,2) + 2.94065489820987e-12) + pow(fs,2)*(3.64873479817298e-18*pow(fs,2) - 2.38654086410234e-12) - 5.1866299531019e-9) - 5.88507391752382e-13*pow(fs,2) + 5.23849625263291e-9; a3 = bass*(bass*fs*(pow(fs,2)*(2.41069187815461e-18*fs - 1.29986514820781e-14) + 7.62330870506917e-11) + fs*(pow(fs,2)*(-2.43248986544865e-18*fs + 1.30626260375792e-14) - 1.47654625402069e-12) - 3.45775330206793e-9) + fs*(5.52838605783785e-17*pow(fs,2) - 7.62588300178801e-11) + 3.49233083508861e-9; a4 = bass*(bass*fs*(fs*(fs*(-6.02672969538652e-19*fs + 6.49932574103903e-15) - 1.47032744910494e-12) + 3.81165435253458e-11) + fs*(fs*(fs*(6.08122466362163e-19*fs - 6.53131301878959e-15) + 1.19327043205117e-12) - 7.38273127010344e-13) - 8.64438325516983e-10) + fs*(fs*(-2.76419302891892e-17*fs + 2.94253695876191e-13) - 3.812941500894e-11) + 8.73082708772152e-10; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/vox_ac30_brilliant/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/vox_ac30_brilliant/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = pow(fs,2)*(1.66051214997777e-13*fs + 6.26909307070816e-14); b1 = pow(fs,2)*(-4.9815364499333e-13*fs - 6.26909307070816e-14); b2 = pow(fs,2)*(4.9815364499333e-13*fs - 6.26909307070816e-14); b3 = pow(fs,2)*(-1.66051214997777e-13*fs + 6.26909307070816e-14); a0 = fs*(fs*(9.03712610288755e-15*fs + 2.45691087748693e-13) + 1.6200511205926e-12) + 8.32789355310672e-13; a1 = fs*(fs*(-2.71113783086627e-14*fs - 2.45691087748693e-13) + 1.6200511205926e-12) + 2.49836806593202e-12; a2 = fs*(fs*(2.71113783086627e-14*fs - 2.45691087748693e-13) - 1.6200511205926e-12) + 2.49836806593202e-12; a3 = fs*(fs*(-9.03712610288755e-15*fs + 2.45691087748693e-13) - 1.6200511205926e-12) + 8.32789355310672e-13; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/vox_ac30_brilliant/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/vox_ac30_brilliant/s03_stage3_neg_table.h", ""); }; process = *(pregain) : *(0.13) : p1 : *(0.075) : p2 : *(0.205) : p3 : *(1.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/vox_ac30_brilliant.dsp
faust
* Simulation of VOX AC-30 brilliant channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "vox_ac30_brilliant"; declare name "vox_ac30_brilliant"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(1.21691030264956e-12*fs + 1.62254707019943e-11) + fs*(fs*(-1.21691030264956e-12*fs - 1.21853284971976e-8) - 1.62254707019943e-7)); b1 = gain*(pow(fs,2)*gain*(-3.65073090794867e-12*fs - 1.62254707019943e-11) + fs*(fs*(3.65073090794867e-12*fs + 1.21853284971976e-8) - 1.62254707019943e-7)); b2 = gain*(pow(fs,2)*gain*(3.65073090794867e-12*fs - 1.62254707019943e-11) + fs*(fs*(-3.65073090794867e-12*fs + 1.21853284971976e-8) + 1.62254707019943e-7)); b3 = gain*(pow(fs,2)*gain*(-1.21691030264956e-12*fs + 1.62254707019943e-11) + fs*(fs*(1.21691030264956e-12*fs - 1.21853284971976e-8) + 1.62254707019943e-7)); a0 = fs*(fs*(1.46759132724008e-15*fs + 2.11486483634959e-10) + 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(-1.63951503064558e-14*fs - 3.30417460278931e-13) + fs*(fs*(1.49275589792157e-14*fs - 3.25286498377207e-11) - 6.60834920557862e-10)) + 6.60834920557862e-6; a1 = fs*(fs*(-4.40277398172025e-15*fs - 2.11486483634959e-10) + 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(4.91854509193674e-14*fs + 3.30417460278931e-13) + fs*(fs*(-4.47826769376472e-14*fs + 3.25286498377207e-11) - 6.60834920557862e-10)) + 1.98250476167359e-5; a2 = fs*(fs*(4.40277398172025e-15*fs - 2.11486483634959e-10) - 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(-4.91854509193674e-14*fs + 3.30417460278931e-13) + fs*(fs*(4.47826769376472e-14*fs + 3.25286498377207e-11) + 6.60834920557862e-10)) + 1.98250476167359e-5; a3 = fs*(fs*(-1.46759132724008e-15*fs + 2.11486483634959e-10) - 3.32555682503344e-7) + gain*(pow(fs,2)*gain*(1.63951503064558e-14*fs - 3.30417460278931e-13) + fs*(fs*(-1.49275589792157e-14*fs - 3.25286498377207e-11) + 6.60834920557862e-10)) + 6.60834920557862e-6; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/vox_ac30_brilliant/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/vox_ac30_brilliant/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); treble = ampctrl.treble : LogPot(3.0) : si.smooth(0.999); b0 = bass*(bass*(pow(fs,3)*treble*(3.05797947138973e-17*fs + 4.63330222937843e-16) + fs*(fs*(fs*(3.3637774185287e-18*fs + 4.09921063749909e-14) + 7.47139476619465e-11) + 1.12263071754777e-9)) + fs*treble*(fs*(fs*(-3.08855926610362e-17*fs + 9.2202714364629e-16) + 1.79013949771437e-13) + 2.39323462261283e-12) + fs*(fs*(fs*(-3.3637774185287e-18*fs - 4.09226068415502e-14) - 7.3973537899982e-11) - 1.11142834271851e-9)) + fs*treble*(fs*(-1.40389057550165e-15*fs - 1.80804089269152e-13) - 2.41716696883895e-12) + fs*(fs*(-1.52898973569486e-16*fs - 1.4826096634268e-12) - 2.24286820047292e-11); b1 = bass*(bass*(pow(fs,3)*treble*(-1.22319178855589e-16*fs - 9.26660445875686e-16) + fs*(pow(fs,2)*(-1.34551096741148e-17*fs - 8.19842127499818e-14) + 2.24526143509553e-9)) + fs*treble*(pow(fs,2)*(1.23542370644145e-16*fs - 1.84405428729258e-15) + 4.78646924522565e-12) + fs*(pow(fs,2)*(1.34551096741148e-17*fs + 8.18452136831005e-14) - 2.22285668543703e-9)) + fs*treble*(2.80778115100329e-15*pow(fs,2) - 4.83433393767791e-12) + fs*(3.05797947138973e-16*pow(fs,2) - 4.48573640094584e-11); b2 = bass*(bass*(1.83478768283384e-16*pow(fs,4)*treble + pow(fs,2)*(2.01826645111722e-17*pow(fs,2) - 1.49427895323893e-10)) + pow(fs,2)*treble*(-1.85313555966217e-16*pow(fs,2) - 3.58027899542875e-13) + pow(fs,2)*(-2.01826645111722e-17*pow(fs,2) + 1.47947075799964e-10)) + 3.61608178538304e-13*pow(fs,2)*treble + 2.96521932685359e-12*pow(fs,2); b3 = bass*(bass*(pow(fs,3)*treble*(-1.22319178855589e-16*fs + 9.26660445875686e-16) + fs*(pow(fs,2)*(-1.34551096741148e-17*fs + 8.19842127499818e-14) - 2.24526143509553e-9)) + fs*treble*(pow(fs,2)*(1.23542370644145e-16*fs + 1.84405428729258e-15) - 4.78646924522565e-12) + fs*(pow(fs,2)*(1.34551096741148e-17*fs - 8.18452136831005e-14) + 2.22285668543703e-9)) + fs*treble*(-2.80778115100329e-15*pow(fs,2) + 4.83433393767791e-12) + fs*(-3.05797947138973e-16*pow(fs,2) + 4.48573640094584e-11); b4 = bass*(bass*(pow(fs,3)*treble*(3.05797947138973e-17*fs - 4.63330222937843e-16) + fs*(fs*(fs*(3.3637774185287e-18*fs - 4.09921063749909e-14) + 7.47139476619465e-11) - 1.12263071754777e-9)) + fs*treble*(fs*(fs*(-3.08855926610362e-17*fs - 9.2202714364629e-16) + 1.79013949771437e-13) - 2.39323462261283e-12) + fs*(fs*(fs*(-3.3637774185287e-18*fs + 4.09226068415502e-14) - 7.3973537899982e-11) + 1.11142834271851e-9)) + fs*treble*(fs*(1.40389057550165e-15*fs - 1.80804089269152e-13) + 2.41716696883895e-12) + fs*(fs*(1.52898973569486e-16*fs - 1.4826096634268e-12) + 2.24286820047292e-11); a0 = bass*(bass*fs*(fs*(fs*(-6.02672969538652e-19*fs - 6.49932574103903e-15) - 1.47032744910494e-12) - 3.81165435253458e-11) + fs*(fs*(fs*(6.08122466362163e-19*fs + 6.53131301878959e-15) + 1.19327043205117e-12) + 7.38273127010344e-13) - 8.64438325516983e-10) + fs*(fs*(2.76419302891892e-17*fs + 2.94253695876191e-13) + 3.812941500894e-11) + 8.73082708772152e-10; a1 = bass*(bass*fs*(pow(fs,2)*(2.41069187815461e-18*fs + 1.29986514820781e-14) - 7.62330870506917e-11) + fs*(pow(fs,2)*(-2.43248986544865e-18*fs - 1.30626260375792e-14) + 1.47654625402069e-12) - 3.45775330206793e-9) + fs*(-5.52838605783785e-17*pow(fs,2) + 7.62588300178801e-11) + 3.49233083508861e-9; a2 = bass*(bass*pow(fs,2)*(-3.61603781723191e-18*pow(fs,2) + 2.94065489820987e-12) + pow(fs,2)*(3.64873479817298e-18*pow(fs,2) - 2.38654086410234e-12) - 5.1866299531019e-9) - 5.88507391752382e-13*pow(fs,2) + 5.23849625263291e-9; a3 = bass*(bass*fs*(pow(fs,2)*(2.41069187815461e-18*fs - 1.29986514820781e-14) + 7.62330870506917e-11) + fs*(pow(fs,2)*(-2.43248986544865e-18*fs + 1.30626260375792e-14) - 1.47654625402069e-12) - 3.45775330206793e-9) + fs*(5.52838605783785e-17*pow(fs,2) - 7.62588300178801e-11) + 3.49233083508861e-9; a4 = bass*(bass*fs*(fs*(fs*(-6.02672969538652e-19*fs + 6.49932574103903e-15) - 1.47032744910494e-12) + 3.81165435253458e-11) + fs*(fs*(fs*(6.08122466362163e-19*fs - 6.53131301878959e-15) + 1.19327043205117e-12) - 7.38273127010344e-13) - 8.64438325516983e-10) + fs*(fs*(-2.76419302891892e-17*fs + 2.94253695876191e-13) - 3.812941500894e-11) + 8.73082708772152e-10; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/vox_ac30_brilliant/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/vox_ac30_brilliant/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = pow(fs,2)*(1.66051214997777e-13*fs + 6.26909307070816e-14); b1 = pow(fs,2)*(-4.9815364499333e-13*fs - 6.26909307070816e-14); b2 = pow(fs,2)*(4.9815364499333e-13*fs - 6.26909307070816e-14); b3 = pow(fs,2)*(-1.66051214997777e-13*fs + 6.26909307070816e-14); a0 = fs*(fs*(9.03712610288755e-15*fs + 2.45691087748693e-13) + 1.6200511205926e-12) + 8.32789355310672e-13; a1 = fs*(fs*(-2.71113783086627e-14*fs - 2.45691087748693e-13) + 1.6200511205926e-12) + 2.49836806593202e-12; a2 = fs*(fs*(2.71113783086627e-14*fs - 2.45691087748693e-13) - 1.6200511205926e-12) + 2.49836806593202e-12; a3 = fs*(fs*(-9.03712610288755e-15*fs + 2.45691087748693e-13) - 1.6200511205926e-12) + 8.32789355310672e-13; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/vox_ac30_brilliant/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/vox_ac30_brilliant/s03_stage3_neg_table.h", ""); }; process = *(pregain) : *(0.13) : p1 : *(0.075) : p2 : *(0.205) : p3 : *(1.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
84c7ec1cd7e9c95e338700af83021e27bf5f3006883eb7536a7f0c6d2db1d19d
grame-cncm/smartfaust
sfIter.dsp
declare name "sfIter"; declare version "0.4"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); //-------------------- MAIN ------------------------------- process = Gringo <:zita_rev3:>_:*(out) with { out = checkbox ("v:sfIter/ON/OFF"):si.smooth(0.998); }; //-------------------- PARAMETERS ------------------------------- // to be compatible with android smartphone filter_accel = fi.lowpass(N,fc) with { fc= hslider("v:sfIter parameter(s)/high_cut [hidden:1]",0.5,0.01,10,0.01); N= 1; // order of filter }; // ratio of the envelope at high level to the tempo ratio_env = hslider ("v:sfIter parameter(s)/ratio_env [osc:/ratio -1 1] [acc:1 0 -10 0 10] [color:255 255 0][hidden:1]",0.166,0.,0.5,0.0001):filter_accel; //fade = vslider ("fade",0.5,0.0001,0.5,0.0001); // min > 0 pour eviter division par 0 fade = (0.5); // in hz speed = hslider ("v:sfIter parameter(s)/speed [osc:/speed -1 1][acc:1 1 -10 0 10][color:255 255 0][hidden:1]",10,0.001,20,0.0001):filter_accel; //proba = vslider ("proba",1.,0.,1.,0.01); proba = (1); // PHASOR_BIN ////////////////////////////// //phasor_bin (speed, init) = (+(float(speed)/float(SR)) : fmod(_,1.0)) ~ *(init); // version with freq controled by singal phasor_bin (init) = (+(float(speed)/float(ma.SR)) : fmod(_,1.0)) ~ *(init); // PULSAR ////////////////////////////// //pulsar = ((_)<(_))*((_)>((_:-(0.001),(noise:abs):latch)); // version with signal input //pulsar = _<:((_)<(ratio_env))*((proba)>((_),(noise:abs):latch)); // this version have a artefact of synchro pulsar = _<:(((_)<(ratio_env)):@(100))*((proba)>((_),(no.noise:abs):ba.latch)); //this version introduce a delay of 100 samples to resynchronize prob to output without artefact // ENVELOPPE PULSAR //////////////////// duree_env = 1/(speed: / (ratio_env*(0.25)*fade)); // SYNHT FM /////////////////////////// oscillateur(vol, freq, modul) = vol * os.osci(freq + modul); vln = oscillateur(vol, freq, modul1) with { modul1 = oscillateur(volmod, freqmod, modul1mod); vol = hslider ( "v:sfIter parameter(s)/vol [osc:/vol -1 1][acc:0 1 -10 0 10] [color:255 0 0][hidden:1]",0.5,0,1,0.0001):filter_accel; freq = hslider ( "v:sfIter parameter(s)/freq [osc:/freq -1 1][acc:0 0 -10 0 10][color:255 0 0][hidden:1]",390,100,2000,1):si.smooth(0.998); volmod = vol:*(freqmod); freqmod = hslider ("v:sfIter parameter(s)/freqmod [osc:/freqmod -1 1][acc:2 0 -10 0 10][color:0 255 0][hidden:1]", 0.1,0.1,9.5,0.1):*(freq):filter_accel; //modul1mod = vslider ("modulo", 0., 0.,100.,0.1); modul1mod = (10); }; Gringo = vln * (phasor_bin(1) :-(0.001): pulsar : an.amp_follower_ud(duree_env,duree_env)); // from effect.lib but with only N=4 for mobilephone applications (C.Lebreton) zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; // Delay-line lengths in seconds: apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, 0.029291, 0.013458, 0.019123); // feedforward delays in seconds tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, 0.192303, 0.125000, 0.219991); // total delays in seconds tdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,tdelays)); // samples apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); // NOTE: Since SR is not bounded at compile time, we can't use it to // allocate delay lines; hence, the fsmax parameter: tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); apcoeff(i) = select2(i&1,0.6,-0.6); // allpass comb-filter coefficient allpass_combs(N) = par(i,N,(fi.allpass_comb(maxapdelay(i),apdelay(i),apcoeff(i)))); // filter.lib fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); feedbackmatrix(N) = ro.hadamard(N); // math.lib staynormal = 10.0^(-20); // let signals decay well below LSB, but not to zero special_lowpass(g,f) = si.smooth(p) with { // unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: p = mbo2 - sqrt(max(0,mbo2*mbo2 - 1.0)); // other solution is unstable mbo2 = (1.0 - gs*c)/(1.0 - gs); // NOTE: must ensure |g|<1 (t60m finite) gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); low_shelf1_l(G0,fx,x) = x + (G0-1)* fi.lowpass(1,fx,x); // filter.lib g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); n60(j) = dur(j)* ma.SR; // decay time in samples g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); t1 = 0.37; // zita-rev1 linearly ramps from 0 to t1 over one buffer outmix(4) = !,ro.butterfly(2),!; // probably the result of some experimenting! outmix(N) = outmix(N/2),par(i,N/2,!); }; // from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders //---------------------------------- zita_rev1 ------------------------------ // Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). // // Only the dry/wet and output level parameters are "dezippered" here. If // parameters are to be varied in real time, use "si.smooth(0.999)" or the like // in the same way. // // REFERENCE: // http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html // // DEPENDENCIES: // filter.lib (peak_eq_rm) zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { fsmax = 48000.0; // highest sampling rate that will be used // rdel = vslider("[1] Pre_Delay [hidden:1] [unit:ms] [style:knob][tooltip: Delay in ms before reverberation begins]", 50,1,100,1); rdel = 50; // f1 = vslider("[1] LF X [hidden:1][unit:Hz] [style:knob] [tooltip: Crossover frequency (Hz) separating low and middle frequencies]", 500, 50, 1000, 1); f1=500; t60dc = hslider("v:sfIter parameter(s)/[2] Low RT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band][acc:1 0 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); t60m = hslider("v:sfIter parameter(s)/[3] Mid RT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in middle band][acc:1 0 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); //f2 = vslider("[4] HF Damping [hidden:1][unit:Hz] [style:knob] [tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]", 8000, 1500, 0.49*fsmax, 1); f2=8000; out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q); // Zolzer style peaking eq (not used in zita-rev1) (filter.lib): // pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); // Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): //pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) // with { // tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) // wcT = 2*PI*eqf/SR; // peak frequency in rad/sample //g = db2linear(eql); // peak gain // }; // pareq use directly peak_eq_cp from filter.lib pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; // eq1f = vslider("[1] F1[hidden:1] [unit:Hz] [style:knob] [tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]", 315, 40, 10000, 1); eq1f = 315; // eq1l = vslider("[2] L1 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]", 0, -15, 15, 0.1); eq1l = 0; // eq1q = vslider("[3] Q1[hidden:1] [style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]", 3, 0.1, 10, 0.1); eq1q =3; // eq2f = vslider("[1] F2[hidden:1] [unit:Hz] [style:knob][tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]", 3000, 40, 10000, 1); eq2f =3000; // eq2l = vslider("[2] L2 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]", 0, -15, 15, 0.1); eq2l =0; // eq2q = vslider("[3] Q2 [hidden:1][style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]", 3, 0.1, 10, 0.1); eq2q =3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; drywet = (hslider("v:sfIter parameter(s)/[1] Dry/Wet Mix [tooltip: -1 = dry, 1 = wet] [acc:1 0 -10 0 10][color:255 255 0][hidden:1]", 5, 0, 20, 0.1)*0.02)-1 : si.smooth(0.99); // out_level = *(gain),*(gain); // gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear; };
https://raw.githubusercontent.com/grame-cncm/smartfaust/0a9c93ea7eda9899e1401402901848f221366c99/src/sfIter/sfIter.dsp
faust
-------------------- MAIN ------------------------------- -------------------- PARAMETERS ------------------------------- to be compatible with android smartphone order of filter ratio of the envelope at high level to the tempo fade = vslider ("fade",0.5,0.0001,0.5,0.0001); // min > 0 pour eviter division par 0 in hz proba = vslider ("proba",1.,0.,1.,0.01); PHASOR_BIN ////////////////////////////// phasor_bin (speed, init) = (+(float(speed)/float(SR)) : fmod(_,1.0)) ~ *(init); // version with freq controled by singal PULSAR ////////////////////////////// pulsar = ((_)<(_))*((_)>((_:-(0.001),(noise:abs):latch)); // version with signal input pulsar = _<:((_)<(ratio_env))*((proba)>((_),(noise:abs):latch)); // this version have a artefact of synchro this version introduce a delay of 100 samples to resynchronize prob to output without artefact ENVELOPPE PULSAR //////////////////// SYNHT FM /////////////////////////// modul1mod = vslider ("modulo", 0., 0.,100.,0.1); from effect.lib but with only N=4 for mobilephone applications (C.Lebreton) Delay-line lengths in seconds: feedforward delays in seconds total delays in seconds samples NOTE: Since SR is not bounded at compile time, we can't use it to allocate delay lines; hence, the fsmax parameter: allpass comb-filter coefficient filter.lib math.lib let signals decay well below LSB, but not to zero unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: other solution is unstable NOTE: must ensure |g|<1 (t60m finite) filter.lib decay time in samples zita-rev1 linearly ramps from 0 to t1 over one buffer probably the result of some experimenting! from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders ---------------------------------- zita_rev1 ------------------------------ Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). Only the dry/wet and output level parameters are "dezippered" here. If parameters are to be varied in real time, use "si.smooth(0.999)" or the like in the same way. REFERENCE: http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html DEPENDENCIES: filter.lib (peak_eq_rm) highest sampling rate that will be used rdel = vslider("[1] Pre_Delay [hidden:1] [unit:ms] [style:knob][tooltip: Delay in ms before reverberation begins]", 50,1,100,1); f1 = vslider("[1] LF X [hidden:1][unit:Hz] [style:knob] [tooltip: Crossover frequency (Hz) separating low and middle frequencies]", 500, 50, 1000, 1); f2 = vslider("[4] HF Damping [hidden:1][unit:Hz] [style:knob] [tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]", 8000, 1500, 0.49*fsmax, 1); Zolzer style peaking eq (not used in zita-rev1) (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) with { tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) wcT = 2*PI*eqf/SR; // peak frequency in rad/sample g = db2linear(eql); // peak gain }; pareq use directly peak_eq_cp from filter.lib eq1f = vslider("[1] F1[hidden:1] [unit:Hz] [style:knob] [tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]", 315, 40, 10000, 1); eq1l = vslider("[2] L1 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]", 0, -15, 15, 0.1); eq1q = vslider("[3] Q1[hidden:1] [style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]", 3, 0.1, 10, 0.1); eq2f = vslider("[1] F2[hidden:1] [unit:Hz] [style:knob][tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]", 3000, 40, 10000, 1); eq2l = vslider("[2] L2 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]", 0, -15, 15, 0.1); eq2q = vslider("[3] Q2 [hidden:1][style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]", 3, 0.1, 10, 0.1); out_level = *(gain),*(gain); gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear;
declare name "sfIter"; declare version "0.4"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); process = Gringo <:zita_rev3:>_:*(out) with { out = checkbox ("v:sfIter/ON/OFF"):si.smooth(0.998); }; filter_accel = fi.lowpass(N,fc) with { fc= hslider("v:sfIter parameter(s)/high_cut [hidden:1]",0.5,0.01,10,0.01); }; ratio_env = hslider ("v:sfIter parameter(s)/ratio_env [osc:/ratio -1 1] [acc:1 0 -10 0 10] [color:255 255 0][hidden:1]",0.166,0.,0.5,0.0001):filter_accel; fade = (0.5); speed = hslider ("v:sfIter parameter(s)/speed [osc:/speed -1 1][acc:1 1 -10 0 10][color:255 255 0][hidden:1]",10,0.001,20,0.0001):filter_accel; proba = (1); phasor_bin (init) = (+(float(speed)/float(ma.SR)) : fmod(_,1.0)) ~ *(init); duree_env = 1/(speed: / (ratio_env*(0.25)*fade)); oscillateur(vol, freq, modul) = vol * os.osci(freq + modul); vln = oscillateur(vol, freq, modul1) with { modul1 = oscillateur(volmod, freqmod, modul1mod); vol = hslider ( "v:sfIter parameter(s)/vol [osc:/vol -1 1][acc:0 1 -10 0 10] [color:255 0 0][hidden:1]",0.5,0,1,0.0001):filter_accel; freq = hslider ( "v:sfIter parameter(s)/freq [osc:/freq -1 1][acc:0 0 -10 0 10][color:255 0 0][hidden:1]",390,100,2000,1):si.smooth(0.998); volmod = vol:*(freqmod); freqmod = hslider ("v:sfIter parameter(s)/freqmod [osc:/freqmod -1 1][acc:2 0 -10 0 10][color:0 255 0][hidden:1]", 0.1,0.1,9.5,0.1):*(freq):filter_accel; modul1mod = (10); }; Gringo = vln * (phasor_bin(1) :-(0.001): pulsar : an.amp_follower_ud(duree_env,duree_env)); zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); special_lowpass(g,f) = si.smooth(p) with { gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); outmix(N) = outmix(N/2),par(i,N/2,!); }; zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { rdel = 50; f1=500; t60dc = hslider("v:sfIter parameter(s)/[2] Low RT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band][acc:1 0 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); t60m = hslider("v:sfIter parameter(s)/[3] Mid RT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in middle band][acc:1 0 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); f2=8000; out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q); pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; eq1f = 315; eq1l = 0; eq1q =3; eq2f =3000; eq2l =0; eq2q =3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; drywet = (hslider("v:sfIter parameter(s)/[1] Dry/Wet Mix [tooltip: -1 = dry, 1 = wet] [acc:1 0 -10 0 10][color:255 255 0][hidden:1]", 5, 0, 20, 0.1)*0.02)-1 : si.smooth(0.99); };
32733f3da9eed4db2fbfc3d11635307ecc4cb809c2074c72652f6f8066b93be7
brummer10/guitarix
gxechocat.dsp
declare name "Tape Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); /* HEAD SPACING I have lold Selmer unit where playback heads are 1.5 inches apart and record head is 1.8 inches from last playback so : record - play4 - play 3 - play 2 - play 1 1.8 - 1.5 - 1.5 - 1.5 - 1.5 Se we have record -1.8inches - head1, 2.3 to head2, 3.8 to head3 5.3 to head 4 ! Or at 15ips head1 120ms head2 220ms head3 320ms head4 420ms According to what I have read the heads are not parallel but output from each one is fed into next ??? What ??? Also max de.delay from one head is 425ms Apparently originsl units has 23 inch tapes! Actual topology In -> stage1 -> pentode driver for record head ->play heads -> 2stage valve amp ->mixer->out and feedback to pentode Sounds OK maybe too much bandwidth loss try cleaner path Look ay adding soft clip before machine to simulate saturation Frequency response of tape in copicat would be poor due to design and use Tape usually has steep low end frop with a hump and not quite so steep high drop, maybe as for guitar we can lower this but would guess that should start around 40 - 80Hz steep fi.highpass with possible hump ( ? resonant filter ) 5- 6k fi.lowpass Am concerned that as each valve stage already has same lowapss filter that this may have same effect as in real amp of creating a resonance an will try same solution : stagger filters and identify dominant one ( biggest effect ) and slug it or drastically reduce it. */ // So we need multiple de.delay heads // Each head can be bypassed or moved to alter de.delay time // so tape speed in inches per second // distance from record head in inches // thus we get de.delay in milliseconds //speed = 7.5 ; bpm = hgroup( "Echo", vslider("BPM[style:knob]", 120, 24, 360, 0.1)) ; // The wow should be preset by experiment... // Lets introduce just a little sine(freq) = (os.oscs(freq) + 1) / 2 : max(0); // max(0) because of numerical inaccuracy freq= 4 ; // 4Hz depth = 0.005 ; // Play with this wow = sine( freq) * depth ; speed = ( 72/(2*bpm)) ; tapespeed = hgroup( "Tape Control",speed + wow ); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); s = 0.993; echo = hgroup( "Echo", vslider("Swell[style:knob]", 0, 0, 1, 0.01)): LogPot(1):si.smooth(s):*(0.25) ; feedback = hgroup( "Echo", vslider("Sustain[style:knob]", 0, 0.0, 1.0, 0.01)):LogPot(1):si.smooth(s):*(0.25); // Play with delays to get following ranges // 83.33ms => 1.25s on head1 // 166.6ms => 2.5s on head1 // 250ms => 3.75s on head1 dtime1 = ma.SR*( 30/bpm) ; dtime2 = ma.SR*( 60/ bpm) ; dtime3 = ma.SR*( 90/bpm ) ; dtime4 = ma.SR*( 240/bpm ) ; head1 = de.sdelay(N, interp, dtime1):*(checkbox("Head1")) with { interp = ma.SR/10.0; // 100*SER/1000 N = int( 2^19 ) ; }; head2 = de.sdelay(N, interp, dtime2):*(checkbox("Head2")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head3 = de.sdelay(N, interp, dtime3):*(checkbox("Head3")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head4 = de.sdelay(N, interp, dtime4):*(checkbox("Head4")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; input = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicat1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; // Input = vslider("Input[name:Input]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); Input = vslider("AUDIO_IN[name:Input]", 0.5, 0, 1, 0.01) : si.smooth(s); b0 = Input*fs*(-2.06740841499587e-8*fs - 5.51308910665569e-7); b1 = 4.13481682999174e-8*Input*pow(fs,2); b2 = Input*fs*(-2.06740841499587e-8*fs + 5.51308910665569e-7); a0 = Input*(Input*fs*(-7.83789728824443e-11*fs - 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs + 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs + 2.49068229273233e-8) + 3.09696552478371e-7; a1 = Input*(1.56757945764889e-10*Input*pow(fs,2) - 1.66568855633991e-10*pow(fs,2) + 1.25383219626868e-7) - 8.22850146831931e-10*pow(fs,2) + 6.19393104956741e-7; a2 = Input*(Input*fs*(-7.83789728824443e-11*fs + 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs - 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs - 2.49068229273233e-8) + 3.09696552478371e-7; }; copicat1clip = _<: ba.if(signbit(_), copicat1_neg_clip, copicat1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicat1_clip = ffunction(float copicat1clip(float), "copicat1_table.h", ""); copicat1_neg_clip = ffunction(float copicat1_negclip(float), "copicat1_neg_table.h", ""); }; record = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : copicatrecord_2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.23938408071082e-8*fs - 7.13052376187718e-7) - 9.98795811595446e-6; b1 = fs*(1.23938408071082e-8*fs - 7.13052376187718e-7) - 2.99638743478634e-5; b2 = fs*(1.23938408071082e-8*fs + 7.13052376187718e-7) - 2.99638743478634e-5; b3 = fs*(-1.23938408071082e-8*fs + 7.13052376187718e-7) - 9.98795811595446e-6; a0 = fs*(fs*(6.73029102377671e-15*fs + 1.10493997854221e-10) + 2.30183843147656e-8) + 6.01595252726883e-7; a1 = fs*(fs*(-2.01908730713301e-14*fs - 1.10493997854221e-10) + 2.30183843147656e-8) + 1.80478575818065e-6; a2 = fs*(fs*(2.01908730713301e-14*fs - 1.10493997854221e-10) - 2.30183843147656e-8) + 1.80478575818065e-6; a3 = fs*(fs*(-6.73029102377671e-15*fs + 1.10493997854221e-10) - 2.30183843147656e-8) + 6.01595252726883e-7; }; copicatrecord_2clip = _<: ba.if(signbit(_), copicatrecord_2_neg_clip, copicatrecord_2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatrecord_2_clip = ffunction(float copicatrecord_2clip(float), "copicatrecord_2_table.h", ""); copicatrecord_2_neg_clip = ffunction(float copicatrecord_2_negclip(float), "copicatrecord_2_neg_table.h", ""); }; replay1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-2.16461324600193e-8*fs - 1.31188681575873e-7); b1 = 4.32922649200386e-8*pow(fs,2); b2 = fs*(-2.16461324600193e-8*fs + 1.31188681575873e-7); a0 = fs*(4.33785780482415e-10*fs + 1.16144315716444e-8) + 6.90530766455131e-8; a1 = -8.6757156096483e-10*pow(fs,2) + 1.38106153291026e-7; a2 = fs*(4.33785780482415e-10*fs - 1.16144315716444e-8) + 6.90530766455131e-8; }; copicatreplay1clip = _<: ba.if(signbit(_), copicatreplay1_neg_clip, copicatreplay1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay1_clip = ffunction(float copicatreplay1clip(float), "copicatreplay1_table.h", ""); copicatreplay1_neg_clip = ffunction(float copicatreplay1_negclip(float), "copicatreplay1_neg_table.h", ""); }; replay2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.02325156488485e-9*fs - 1.05707806289759e-8); b1 = 2.0465031297697e-9*pow(fs,2); b2 = fs*(-1.02325156488485e-9*fs + 1.05707806289759e-8); a0 = fs*(4.3361242466424e-10*fs + 1.99329936161353e-8) + 1.89880017035189e-7; a1 = -8.6722484932848e-10*pow(fs,2) + 3.79760034070379e-7; a2 = fs*(4.3361242466424e-10*fs - 1.99329936161353e-8) + 1.89880017035189e-7; }; copicatreplay2clip = _<: ba.if(signbit(_), copicatreplay2_neg_clip, copicatreplay2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay2_clip = ffunction(float copicatreplay2clip(float), "copicatreplay2_table.h", ""); copicatreplay2_neg_clip = ffunction(float copicatreplay2_negclip(float), "copicatreplay2_neg_table.h", ""); }; machine = record:vgroup( "Tape Heads", fi.highpass( 4, 40 )<:head1,head2,head3:>fi.lowpass( 1, 6500 ):fi.dcblocker ):replay1:replay2; // May need to look at levels here fbloop = fi.lowpass( 1, 7500 ):*(feedback):fi.highpass( 1, 150 ) ; Output = vslider("Output[name:Output]", 1.0, 0.0, 2.0, 0.01) : LogPot(3) : si.smooth(s); amp = input<:_,((+:_<:machine :>_)~fbloop:*(echo)):>*(Output) ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
https://raw.githubusercontent.com/brummer10/guitarix/9734478d71ac7190dc8814ce250e28ce174ebaf1/trunk/src/LV2/faust/gxechocat.dsp
faust
HEAD SPACING I have lold Selmer unit where playback heads are 1.5 inches apart and record head is 1.8 inches from last playback so : record - play4 - play 3 - play 2 - play 1 1.8 - 1.5 - 1.5 - 1.5 - 1.5 Se we have record -1.8inches - head1, 2.3 to head2, 3.8 to head3 5.3 to head 4 ! Or at 15ips head1 120ms head2 220ms head3 320ms head4 420ms According to what I have read the heads are not parallel but output from each one is fed into next ??? What ??? Also max de.delay from one head is 425ms Apparently originsl units has 23 inch tapes! Actual topology In -> stage1 -> pentode driver for record head ->play heads -> 2stage valve amp ->mixer->out and feedback to pentode Sounds OK maybe too much bandwidth loss try cleaner path Look ay adding soft clip before machine to simulate saturation Frequency response of tape in copicat would be poor due to design and use Tape usually has steep low end frop with a hump and not quite so steep high drop, maybe as for guitar we can lower this but would guess that should start around 40 - 80Hz steep fi.highpass with possible hump ( ? resonant filter ) 5- 6k fi.lowpass Am concerned that as each valve stage already has same lowapss filter that this may have same effect as in real amp of creating a resonance an will try same solution : stagger filters and identify dominant one ( biggest effect ) and slug it or drastically reduce it. So we need multiple de.delay heads Each head can be bypassed or moved to alter de.delay time so tape speed in inches per second distance from record head in inches thus we get de.delay in milliseconds speed = 7.5 ; The wow should be preset by experiment... Lets introduce just a little max(0) because of numerical inaccuracy 4Hz Play with this Play with delays to get following ranges 83.33ms => 1.25s on head1 166.6ms => 2.5s on head1 250ms => 3.75s on head1 100*SER/1000 Input = vslider("Input[name:Input]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); May need to look at levels here
declare name "Tape Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); bpm = hgroup( "Echo", vslider("BPM[style:knob]", 120, 24, 360, 0.1)) ; wow = sine( freq) * depth ; speed = ( 72/(2*bpm)) ; tapespeed = hgroup( "Tape Control",speed + wow ); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); s = 0.993; echo = hgroup( "Echo", vslider("Swell[style:knob]", 0, 0, 1, 0.01)): LogPot(1):si.smooth(s):*(0.25) ; feedback = hgroup( "Echo", vslider("Sustain[style:knob]", 0, 0.0, 1.0, 0.01)):LogPot(1):si.smooth(s):*(0.25); dtime1 = ma.SR*( 30/bpm) ; dtime2 = ma.SR*( 60/ bpm) ; dtime3 = ma.SR*( 90/bpm ) ; dtime4 = ma.SR*( 240/bpm ) ; head1 = de.sdelay(N, interp, dtime1):*(checkbox("Head1")) with { N = int( 2^19 ) ; }; head2 = de.sdelay(N, interp, dtime2):*(checkbox("Head2")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head3 = de.sdelay(N, interp, dtime3):*(checkbox("Head3")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head4 = de.sdelay(N, interp, dtime4):*(checkbox("Head4")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; input = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicat1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Input = vslider("AUDIO_IN[name:Input]", 0.5, 0, 1, 0.01) : si.smooth(s); b0 = Input*fs*(-2.06740841499587e-8*fs - 5.51308910665569e-7); b1 = 4.13481682999174e-8*Input*pow(fs,2); b2 = Input*fs*(-2.06740841499587e-8*fs + 5.51308910665569e-7); a0 = Input*(Input*fs*(-7.83789728824443e-11*fs - 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs + 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs + 2.49068229273233e-8) + 3.09696552478371e-7; a1 = Input*(1.56757945764889e-10*Input*pow(fs,2) - 1.66568855633991e-10*pow(fs,2) + 1.25383219626868e-7) - 8.22850146831931e-10*pow(fs,2) + 6.19393104956741e-7; a2 = Input*(Input*fs*(-7.83789728824443e-11*fs + 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs - 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs - 2.49068229273233e-8) + 3.09696552478371e-7; }; copicat1clip = _<: ba.if(signbit(_), copicat1_neg_clip, copicat1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicat1_clip = ffunction(float copicat1clip(float), "copicat1_table.h", ""); copicat1_neg_clip = ffunction(float copicat1_negclip(float), "copicat1_neg_table.h", ""); }; record = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : copicatrecord_2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.23938408071082e-8*fs - 7.13052376187718e-7) - 9.98795811595446e-6; b1 = fs*(1.23938408071082e-8*fs - 7.13052376187718e-7) - 2.99638743478634e-5; b2 = fs*(1.23938408071082e-8*fs + 7.13052376187718e-7) - 2.99638743478634e-5; b3 = fs*(-1.23938408071082e-8*fs + 7.13052376187718e-7) - 9.98795811595446e-6; a0 = fs*(fs*(6.73029102377671e-15*fs + 1.10493997854221e-10) + 2.30183843147656e-8) + 6.01595252726883e-7; a1 = fs*(fs*(-2.01908730713301e-14*fs - 1.10493997854221e-10) + 2.30183843147656e-8) + 1.80478575818065e-6; a2 = fs*(fs*(2.01908730713301e-14*fs - 1.10493997854221e-10) - 2.30183843147656e-8) + 1.80478575818065e-6; a3 = fs*(fs*(-6.73029102377671e-15*fs + 1.10493997854221e-10) - 2.30183843147656e-8) + 6.01595252726883e-7; }; copicatrecord_2clip = _<: ba.if(signbit(_), copicatrecord_2_neg_clip, copicatrecord_2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatrecord_2_clip = ffunction(float copicatrecord_2clip(float), "copicatrecord_2_table.h", ""); copicatrecord_2_neg_clip = ffunction(float copicatrecord_2_negclip(float), "copicatrecord_2_neg_table.h", ""); }; replay1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-2.16461324600193e-8*fs - 1.31188681575873e-7); b1 = 4.32922649200386e-8*pow(fs,2); b2 = fs*(-2.16461324600193e-8*fs + 1.31188681575873e-7); a0 = fs*(4.33785780482415e-10*fs + 1.16144315716444e-8) + 6.90530766455131e-8; a1 = -8.6757156096483e-10*pow(fs,2) + 1.38106153291026e-7; a2 = fs*(4.33785780482415e-10*fs - 1.16144315716444e-8) + 6.90530766455131e-8; }; copicatreplay1clip = _<: ba.if(signbit(_), copicatreplay1_neg_clip, copicatreplay1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay1_clip = ffunction(float copicatreplay1clip(float), "copicatreplay1_table.h", ""); copicatreplay1_neg_clip = ffunction(float copicatreplay1_negclip(float), "copicatreplay1_neg_table.h", ""); }; replay2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.02325156488485e-9*fs - 1.05707806289759e-8); b1 = 2.0465031297697e-9*pow(fs,2); b2 = fs*(-1.02325156488485e-9*fs + 1.05707806289759e-8); a0 = fs*(4.3361242466424e-10*fs + 1.99329936161353e-8) + 1.89880017035189e-7; a1 = -8.6722484932848e-10*pow(fs,2) + 3.79760034070379e-7; a2 = fs*(4.3361242466424e-10*fs - 1.99329936161353e-8) + 1.89880017035189e-7; }; copicatreplay2clip = _<: ba.if(signbit(_), copicatreplay2_neg_clip, copicatreplay2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay2_clip = ffunction(float copicatreplay2clip(float), "copicatreplay2_table.h", ""); copicatreplay2_neg_clip = ffunction(float copicatreplay2_negclip(float), "copicatreplay2_neg_table.h", ""); }; machine = record:vgroup( "Tape Heads", fi.highpass( 4, 40 )<:head1,head2,head3:>fi.lowpass( 1, 6500 ):fi.dcblocker ):replay1:replay2; fbloop = fi.lowpass( 1, 7500 ):*(feedback):fi.highpass( 1, 150 ) ; Output = vslider("Output[name:Output]", 1.0, 0.0, 2.0, 0.01) : LogPot(3) : si.smooth(s); amp = input<:_,((+:_<:machine :>_)~fbloop:*(echo)):>*(Output) ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
f5320afb4dd1fe3ad87992a5b8202b792c06ee7db8db84e0ed27b4bf0e99285d
grame-cncm/smartfaust
sfHell.dsp
declare name "fstHell"; declare version "1.1"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); //-------------------- MAIN ------------------------------- process = Hell_EKS2: Hell_comb2:Hell_Verb2:*(out):max(-0.99):min(0.99) with { out = checkbox ("v:sfHell/ON OFF"):si.smooth(0.998); }; //-------------------- PARAMETERS ------------------------------- freq = hslider("v:sfHell parameter(s)/freq [acc:2 1 -10 0 10][color:0 255 0][hidden:1]",3570,120,7040,1); //gain = vgroup ("EKS:source", hslider("gain", 1, 0, 10, 0.01)); // 0 to 1 gain =1; //gate = button("gate"); // 0 or 1 gate = phasor_bin(1) :-(0.001): pulsar; // Pick angle in [0,0.9]: //pickangle = vgroup ("EKS:source", 0.9 * hslider("pick_angle",0.9,0,0.9,0.01)); pickangle =0.9; // Normalized pick-position in [0,0.5]: //beta = vgroup ("EKS:source", hslider("pick_position [midi: ctrl 0x81]", 0.334, 0.02, 0.5, 0.001)); beta =0.334; // String decay time in seconds: //t60 = vgroup ("EKS:source", hslider("decaytime_T60", 8.615, 0, 10, 0.01)); // -60db decay time (sec) t60 =8; // Normalized brightness in [0,1]: B = hslider("v:sfHell parameter(s)/brightness [midi:ctrl 0x74][acc:0 0 -10 0 10][color:255 0 0][hidden:1]", 0, 0, 1, 0.01);// 0-1 // Dynamic level specified as dB level desired at Nyquist limit: //L = vgroup ("EKS:source", hslider("dynamic_level", -60, -60, 0, 1) : db2linear); L =-60 : ba.db2linear; //----------------------- noiseburst ------------------------- // White noise burst (adapted from Faust karplus.dsp example) noiseburst(gate,P) = no.noise : *(gate : trigger(P)) with { diffgtz(x) = (x-x') > 0; decay(n,x) = x - (x>0)/n; release(n) = + ~ decay(n); trigger(n) = diffgtz : release(n) : > (0.0); }; P = ma.SR/freq; // fundamental period in samples Pmax = 4096; // maximum P (for delay-line allocation) ppdel = beta*P; // pick position delay pickposfilter = fi.ffcombfilter(Pmax,ppdel,-1); // defined in filter.lib excitation = noiseburst(gate,P) : *(gain); // defined in signal.lib rho = pow(0.001,1.0/(freq*t60)); // multiplies loop-gain // Original EKS damping filter: b1 = 0.5*B; b0 = 1.0-b1; // S and 1-S dampingfilter1(x) = rho * ((b0 * x) + (b1 * x')); // Linear phase FIR3 damping filter: h0 = (1.0 + B)/2; h1 = (1.0 - B)/4; dampingfilter2(x) = rho * (h0 * x' + h1*(x+x'')); loopfilter = dampingfilter2; // or dampingfilter1 filtered_excitation = excitation : si.smooth(pickangle) : pickposfilter : fi.levelfilter(L,freq); // see filter.lib stringloop = (+ : de.fdelay4(Pmax, P-2)) ~ (loopfilter); //Adequate when when brightness or dynamic level are sufficiently low: //stringloop = (+ : fdelay1(Pmax, P-2)) ~ (loopfilter); // Second output decorrelated somewhat for spatial diversity over imaging: //widthdelay = delay(Pmax,W*P/2); // Assumes an optionally spatialized mono signal, centrally panned: //stereopanner(A) = _,_ : *(1.0-A), *(A); //ratio_env = hgroup("rythm",vslider ("ratio_env",0.5,0.,0.5,0.0001)); // ratio de l'enveloppe au niveau haut par rapport au tempo. ratio_env = (0.5); fade = (0.5); // min > 0 pour eviter division par 0 speed = hslider ("v:sfHell parameter(s)/speed [acc:0 0 -10 0 10][color:255 0 0][hidden:1]",10,0.001,40,0.0001):fi.lowpass(1,1); // in hz proba = hslider ("v:sfHell parameter(s)/proba [acc:1 0 -10 0 10][color:255 255 0][hidden:1]",0.32,0.,1.,0.01):fi.lowpass(1,1); // PHASOR_BIN ////////////////////////////// //phasor_bin (speed, init) = (+(float(speed)/float(SR)) : fmod(_,1.0)) ~ *(init); // version with freq controled by singal phasor_bin (init) = (+(float(speed)/float(ma.SR)) : fmod(_,1.0)) ~ *(init); // PULSAR ////////////////////////////// //pulsar = ((_)<(_))*((_)>((_:-(0.001),(noise:abs):latch)); // version with signal input //pulsar = _<:((_)<(ratio_env))*((proba)>((_),(noise:abs):latch)); // this version have a artefact of synchro pulsar = _<:(((_)<(ratio_env)):@(100))*((proba)>((_),(no.noise:abs):ba.latch)); //this version introduce a delay of 100 samples to resynchronize prob to output without artefact //============================================================= //process = filtered_excitation : stringloop <: _,_ : widthdelay,_ : stereopanner(A); Hell_EKS2 = filtered_excitation : stringloop ; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Hell_comb2 /// Hell_comb2 = fi.fb_fcomb(maxdel,del,b0,aN) with { maxdel = 1<<16; // 2 exposant 16 soit 65536 samples 1<<16 freq = 1/(hslider("v:sfHell parameter(s)/freqcomb [acc:0 0 -10 0 10][color:255 0 0][hidden:1]",10000,100,20000,0.001)); //[accx:1 0 10000 0] del = freq * ma.SR: si.si.smooth(0.99); //b0 = vslider("gain ",10,0,10,0.001):si.smooth(0.99); b0 =10; //aN = vslider("feedback",100,0,100,0.01)*(0.01):si.smooth(0.99); aN =1; }; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Hell_Verb2 Hell_Verb2 =_<:zita_rev3:>_; // from effect.lib but with only N=4 for mobilephone applications (C.Lebreton) zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; // Delay-line lengths in seconds: apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, 0.029291, 0.013458, 0.019123); // feedforward delays in seconds tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, 0.192303, 0.125000, 0.219991); // total delays in seconds tdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,tdelays)); // samples apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); // NOTE: Since SR is not bounded at compile time, we can't use it to // allocate delay lines; hence, the fsmax parameter: tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); apcoeff(i) = select2(i&1,0.6,-0.6); // allpass comb-filter coefficient allpass_combs(N) = par(i,N,(fi.allpass_comb(maxapdelay(i),apdelay(i),apcoeff(i)))); // filter.lib fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); feedbackmatrix(N) = ro.hadamard(N); // math.lib staynormal = 10.0^(-20); // let signals decay well below LSB, but not to zero special_lowpass(g,f) = si.smooth(p) with { // unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: p = mbo2 - sqrt(max(0,mbo2*mbo2 - 1.0)); // other solution is unstable mbo2 = (1.0 - gs*c)/(1.0 - gs); // NOTE: must ensure |g|<1 (t60m finite) gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); low_shelf1_l(G0,fx,x) = x + (G0-1)* fi.lowpass(1,fx,x); // filter.lib g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); n60(j) = dur(j)* ma.SR; // decay time in samples g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); t1 = 0.37; // zita-rev1 linearly ramps from 0 to t1 over one buffer outmix(4) = !,ro.butterfly(2),!; // probably the result of some experimenting! outmix(N) = outmix(N/2),par(i,N/2,!); }; // from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders //---------------------------------- zita_rev1 ------------------------------ // Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). // // Only the dry/wet and output level parameters are "dezippered" here. If // parameters are to be varied in real time, use "si.smooth(0.999)" or the like // in the same way. // // REFERENCE: // http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html // // DEPENDENCIES: // filter.lib (peak_eq_rm) zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { fsmax = 48000.0; // highest sampling rate that will be used //rdel = in_group(vslider("[1] Pre_Delay [hidden:1] [unit:ms] [style:knob][tooltip: Delay in ms before reverberation begins]", 50,1,100,1)); rdel =50; //f1 = freq_group(vslider("[1] LF X [hidden:1][unit:Hz] [style:knob] [tooltip: Crossover frequency (Hz) separating low and middle frequencies]", 500, 50, 1000, 1)); f1 =500; //[accy:-1 0 6.5 0] t60dc = hslider("v:sfHell parameter(s)/[2] LowRT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band] [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); //[accy:-1 0 6.5 0] t60m = hslider("v:sfHell parameter(s)/[3] MidRT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in middle band] [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); //f2 = freq_group(vslider("[4] HF Damping [hidden:1][unit:Hz] [style:knob] [tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]", 8000, 1500, 0.49*fsmax, 1)); f2 = 8000; out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q); // Zolzer style peaking eq (not used in zita-rev1) (filter.lib): // pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); // Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): //pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) // with { // tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) // wcT = 2*PI*eqf/SR; // peak frequency in rad/sample //g = db2linear(eql); // peak gain // }; // pareq use directly peak_eq_cp from filter.lib pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; //eq1_group(x) = fdn_group(hgroup("[3] RM Peaking Equalizer 1[hidden:1]", x)); //eq1f = eq1_group (vslider("[1] F1[hidden:1] [unit:Hz] [style:knob] [tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]", 315, 40, 10000, 1)); eq1f =315; //eq1l = eq1_group(vslider("[2] L1 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]", 0, -15, 15, 0.1)); eq1l =0; //eq1q = eq1_group(vslider("[3] Q1[hidden:1] [style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]", 3, 0.1, 10, 0.1)); eq1q =3; //eq2_group(x) = fdn_group(hgroup("[4] RM Peaking Equalizer 2[hidden:1]", x)); //eq2f = eq2_group(vslider("[1] F2[hidden:1] [unit:Hz] [style:knob][tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]", 3000, 40, 10000, 1)); eq2f =3000; //eq2l = eq2_group(vslider("[2] L2 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]", 0, -15, 15, 0.1)); eq2l =0; //eq2q = eq2_group(vslider("[3] Q2 [hidden:1][style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]", 3, 0.1, 10, 0.1)); eq2q =3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; drywet = (hslider("v:sfHell parameter(s)/[1] DryWetMix [tooltip: -1 = dry, 1 = wet] [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 5, 0, 20, 0.1)*0.02)-1 : si.smooth(0.99):max(-1):min(1); // out_level = *(gain),*(gain); // gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear; };
https://raw.githubusercontent.com/grame-cncm/smartfaust/0a9c93ea7eda9899e1401402901848f221366c99/src/sfHell/sfHell.dsp
faust
-------------------- MAIN ------------------------------- -------------------- PARAMETERS ------------------------------- gain = vgroup ("EKS:source", hslider("gain", 1, 0, 10, 0.01)); // 0 to 1 gate = button("gate"); // 0 or 1 Pick angle in [0,0.9]: pickangle = vgroup ("EKS:source", 0.9 * hslider("pick_angle",0.9,0,0.9,0.01)); Normalized pick-position in [0,0.5]: beta = vgroup ("EKS:source", hslider("pick_position [midi: ctrl 0x81]", 0.334, 0.02, 0.5, 0.001)); String decay time in seconds: t60 = vgroup ("EKS:source", hslider("decaytime_T60", 8.615, 0, 10, 0.01)); // -60db decay time (sec) Normalized brightness in [0,1]: 0-1 Dynamic level specified as dB level desired at Nyquist limit: L = vgroup ("EKS:source", hslider("dynamic_level", -60, -60, 0, 1) : db2linear); ----------------------- noiseburst ------------------------- White noise burst (adapted from Faust karplus.dsp example) fundamental period in samples maximum P (for delay-line allocation) pick position delay defined in filter.lib defined in signal.lib multiplies loop-gain Original EKS damping filter: S and 1-S Linear phase FIR3 damping filter: or dampingfilter1 see filter.lib Adequate when when brightness or dynamic level are sufficiently low: stringloop = (+ : fdelay1(Pmax, P-2)) ~ (loopfilter); Second output decorrelated somewhat for spatial diversity over imaging: widthdelay = delay(Pmax,W*P/2); Assumes an optionally spatialized mono signal, centrally panned: stereopanner(A) = _,_ : *(1.0-A), *(A); ratio_env = hgroup("rythm",vslider ("ratio_env",0.5,0.,0.5,0.0001)); // ratio de l'enveloppe au niveau haut par rapport au tempo. min > 0 pour eviter division par 0 in hz PHASOR_BIN ////////////////////////////// phasor_bin (speed, init) = (+(float(speed)/float(SR)) : fmod(_,1.0)) ~ *(init); // version with freq controled by singal PULSAR ////////////////////////////// pulsar = ((_)<(_))*((_)>((_:-(0.001),(noise:abs):latch)); // version with signal input pulsar = _<:((_)<(ratio_env))*((proba)>((_),(noise:abs):latch)); // this version have a artefact of synchro this version introduce a delay of 100 samples to resynchronize prob to output without artefact ============================================================= process = filtered_excitation : stringloop <: _,_ : widthdelay,_ : stereopanner(A); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Hell_comb2 /// 2 exposant 16 soit 65536 samples 1<<16 [accx:1 0 10000 0] b0 = vslider("gain ",10,0,10,0.001):si.smooth(0.99); aN = vslider("feedback",100,0,100,0.01)*(0.01):si.smooth(0.99); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Hell_Verb2 from effect.lib but with only N=4 for mobilephone applications (C.Lebreton) Delay-line lengths in seconds: feedforward delays in seconds total delays in seconds samples NOTE: Since SR is not bounded at compile time, we can't use it to allocate delay lines; hence, the fsmax parameter: allpass comb-filter coefficient filter.lib math.lib let signals decay well below LSB, but not to zero unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: other solution is unstable NOTE: must ensure |g|<1 (t60m finite) filter.lib decay time in samples zita-rev1 linearly ramps from 0 to t1 over one buffer probably the result of some experimenting! from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders ---------------------------------- zita_rev1 ------------------------------ Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). Only the dry/wet and output level parameters are "dezippered" here. If parameters are to be varied in real time, use "si.smooth(0.999)" or the like in the same way. REFERENCE: http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html DEPENDENCIES: filter.lib (peak_eq_rm) highest sampling rate that will be used rdel = in_group(vslider("[1] Pre_Delay [hidden:1] [unit:ms] [style:knob][tooltip: Delay in ms before reverberation begins]", 50,1,100,1)); f1 = freq_group(vslider("[1] LF X [hidden:1][unit:Hz] [style:knob] [tooltip: Crossover frequency (Hz) separating low and middle frequencies]", 500, 50, 1000, 1)); [accy:-1 0 6.5 0] [accy:-1 0 6.5 0] f2 = freq_group(vslider("[4] HF Damping [hidden:1][unit:Hz] [style:knob] [tooltip: Frequency (Hz) at which the high-frequency T60 is half the middle-band's T60]", 8000, 1500, 0.49*fsmax, 1)); Zolzer style peaking eq (not used in zita-rev1) (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) with { tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) wcT = 2*PI*eqf/SR; // peak frequency in rad/sample g = db2linear(eql); // peak gain }; pareq use directly peak_eq_cp from filter.lib eq1_group(x) = fdn_group(hgroup("[3] RM Peaking Equalizer 1[hidden:1]", x)); eq1f = eq1_group (vslider("[1] F1[hidden:1] [unit:Hz] [style:knob] [tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 1]", 315, 40, 10000, 1)); eq1l = eq1_group(vslider("[2] L1 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 1]", 0, -15, 15, 0.1)); eq1q = eq1_group(vslider("[3] Q1[hidden:1] [style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 1]", 3, 0.1, 10, 0.1)); eq2_group(x) = fdn_group(hgroup("[4] RM Peaking Equalizer 2[hidden:1]", x)); eq2f = eq2_group(vslider("[1] F2[hidden:1] [unit:Hz] [style:knob][tooltip: Center-frequency of second-order Regalia-Mitra peaking equalizer section 2]", 3000, 40, 10000, 1)); eq2l = eq2_group(vslider("[2] L2 [hidden:1][unit:dB] [style:knob] [tooltip: Peak level in dB of second-order Regalia-Mitra peaking equalizer section 2]", 0, -15, 15, 0.1)); eq2q = eq2_group(vslider("[3] Q2 [hidden:1][style:knob] [tooltip: Q = centerFrequency/bandwidth of second-order peaking equalizer section 2]", 3, 0.1, 10, 0.1)); out_level = *(gain),*(gain); gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear;
declare name "fstHell"; declare version "1.1"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); process = Hell_EKS2: Hell_comb2:Hell_Verb2:*(out):max(-0.99):min(0.99) with { out = checkbox ("v:sfHell/ON OFF"):si.smooth(0.998); }; freq = hslider("v:sfHell parameter(s)/freq [acc:2 1 -10 0 10][color:0 255 0][hidden:1]",3570,120,7040,1); gain =1; gate = phasor_bin(1) :-(0.001): pulsar; pickangle =0.9; beta =0.334; t60 =8; L =-60 : ba.db2linear; noiseburst(gate,P) = no.noise : *(gate : trigger(P)) with { diffgtz(x) = (x-x') > 0; decay(n,x) = x - (x>0)/n; release(n) = + ~ decay(n); trigger(n) = diffgtz : release(n) : > (0.0); }; dampingfilter1(x) = rho * ((b0 * x) + (b1 * x')); h0 = (1.0 + B)/2; h1 = (1.0 - B)/4; dampingfilter2(x) = rho * (h0 * x' + h1*(x+x'')); stringloop = (+ : de.fdelay4(Pmax, P-2)) ~ (loopfilter); ratio_env = (0.5); proba = hslider ("v:sfHell parameter(s)/proba [acc:1 0 -10 0 10][color:255 255 0][hidden:1]",0.32,0.,1.,0.01):fi.lowpass(1,1); phasor_bin (init) = (+(float(speed)/float(ma.SR)) : fmod(_,1.0)) ~ *(init); Hell_EKS2 = filtered_excitation : stringloop ; Hell_comb2 = fi.fb_fcomb(maxdel,del,b0,aN) with { del = freq * ma.SR: si.si.smooth(0.99); b0 =10; aN =1; }; Hell_Verb2 =_<:zita_rev3:>_; zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); special_lowpass(g,f) = si.smooth(p) with { gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); outmix(N) = outmix(N/2),par(i,N/2,!); }; zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { rdel =50; f1 =500; t60dc = hslider("v:sfHell parameter(s)/[2] LowRT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band] [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); t60m = hslider("v:sfHell parameter(s)/[3] MidRT60 [unit:s] [tooltip: T60 = time (in seconds) to decay 60dB in middle band] [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 6.5, 1, 10, 0.1); f2 = 8000; out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q); pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; eq1f =315; eq1l =0; eq1q =3; eq2f =3000; eq2l =0; eq2q =3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; drywet = (hslider("v:sfHell parameter(s)/[1] DryWetMix [tooltip: -1 = dry, 1 = wet] [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 5, 0, 20, 0.1)*0.02)-1 : si.smooth(0.99):max(-1):min(1); };
97be2d974ad27d1a937feecc0e2fa05a6f494aeb71f0f2fe671c5a6dd9745bab
Pro19/guitarix
gxechocat.dsp
declare name "Tape Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); /* HEAD SPACING I have lold Selmer unit where playback heads are 1.5 inches apart and record head is 1.8 inches from last playback so : record - play4 - play 3 - play 2 - play 1 1.8 - 1.5 - 1.5 - 1.5 - 1.5 Se we have record -1.8inches - head1, 2.3 to head2, 3.8 to head3 5.3 to head 4 ! Or at 15ips head1 120ms head2 220ms head3 320ms head4 420ms According to what I have read the heads are not parallel but output from each one is fed into next ??? What ??? Also max de.delay from one head is 425ms Apparently originsl units has 23 inch tapes! Actual topology In -> stage1 -> pentode driver for record head ->play heads -> 2stage valve amp ->mixer->out and feedback to pentode Sounds OK maybe too much bandwidth loss try cleaner path Look ay adding soft clip before machine to simulate saturation Frequency response of tape in copicat would be poor due to design and use Tape usually has steep low end frop with a hump and not quite so steep high drop, maybe as for guitar we can lower this but would guess that should start around 40 - 80Hz steep fi.highpass with possible hump ( ? resonant filter ) 5- 6k fi.lowpass Am concerned that as each valve stage already has same lowapss filter that this may have same effect as in real amp of creating a resonance an will try same solution : stagger filters and identify dominant one ( biggest effect ) and slug it or drastically reduce it. */ // So we need multiple de.delay heads // Each head can be bypassed or moved to alter de.delay time // so tape speed in inches per second // distance from record head in inches // thus we get de.delay in milliseconds //speed = 7.5 ; bpm = hgroup( "Echo", vslider("BPM[style:knob]", 120, 24, 360, 0.1)) ; // The wow should be preset by experiment... // Lets introduce just a little sine(freq) = (os.oscs(freq) + 1) / 2 : max(0); // max(0) because of numerical inaccuracy freq= 4 ; // 4Hz depth = 0.005 ; // Play with this wow = sine( freq) * depth ; speed = ( 72/(2*bpm)) ; tapespeed = hgroup( "Tape Control",speed + wow ); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); s = 0.993; echo = hgroup( "Echo", vslider("Swell[style:knob]", 0, 0, 1, 0.01)): LogPot(1):si.smooth(s):*(0.25) ; feedback = hgroup( "Echo", vslider("Sustain[style:knob]", 0, 0.0, 1.0, 0.01)):LogPot(1):si.smooth(s):*(0.25); // Play with delays to get following ranges // 83.33ms => 1.25s on head1 // 166.6ms => 2.5s on head1 // 250ms => 3.75s on head1 dtime1 = ma.SR*( 30/bpm) ; dtime2 = ma.SR*( 60/ bpm) ; dtime3 = ma.SR*( 90/bpm ) ; dtime4 = ma.SR*( 240/bpm ) ; head1 = de.sdelay(N, interp, dtime1):*(checkbox("Head1")) with { interp = ma.SR/10.0; // 100*SER/1000 N = int( 2^19 ) ; }; head2 = de.sdelay(N, interp, dtime2):*(checkbox("Head2")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head3 = de.sdelay(N, interp, dtime3):*(checkbox("Head3")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head4 = de.sdelay(N, interp, dtime4):*(checkbox("Head4")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; input = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicat1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; // Input = vslider("Input[name:Input]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); Input = vslider("Input[name:Input]", 0.5, 0, 1, 0.01) : si.smooth(s); b0 = Input*fs*(-2.06740841499587e-8*fs - 5.51308910665569e-7); b1 = 4.13481682999174e-8*Input*pow(fs,2); b2 = Input*fs*(-2.06740841499587e-8*fs + 5.51308910665569e-7); a0 = Input*(Input*fs*(-7.83789728824443e-11*fs - 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs + 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs + 2.49068229273233e-8) + 3.09696552478371e-7; a1 = Input*(1.56757945764889e-10*Input*pow(fs,2) - 1.66568855633991e-10*pow(fs,2) + 1.25383219626868e-7) - 8.22850146831931e-10*pow(fs,2) + 6.19393104956741e-7; a2 = Input*(Input*fs*(-7.83789728824443e-11*fs + 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs - 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs - 2.49068229273233e-8) + 3.09696552478371e-7; }; copicat1clip = _<: ba.if(signbit(_), copicat1_neg_clip, copicat1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicat1_clip = ffunction(float copicat1clip(float), "copicat1_table.h", ""); copicat1_neg_clip = ffunction(float copicat1_negclip(float), "copicat1_neg_table.h", ""); }; record = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : copicatrecord_2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.23938408071082e-8*fs - 7.13052376187718e-7) - 9.98795811595446e-6; b1 = fs*(1.23938408071082e-8*fs - 7.13052376187718e-7) - 2.99638743478634e-5; b2 = fs*(1.23938408071082e-8*fs + 7.13052376187718e-7) - 2.99638743478634e-5; b3 = fs*(-1.23938408071082e-8*fs + 7.13052376187718e-7) - 9.98795811595446e-6; a0 = fs*(fs*(6.73029102377671e-15*fs + 1.10493997854221e-10) + 2.30183843147656e-8) + 6.01595252726883e-7; a1 = fs*(fs*(-2.01908730713301e-14*fs - 1.10493997854221e-10) + 2.30183843147656e-8) + 1.80478575818065e-6; a2 = fs*(fs*(2.01908730713301e-14*fs - 1.10493997854221e-10) - 2.30183843147656e-8) + 1.80478575818065e-6; a3 = fs*(fs*(-6.73029102377671e-15*fs + 1.10493997854221e-10) - 2.30183843147656e-8) + 6.01595252726883e-7; }; copicatrecord_2clip = _<: ba.if(signbit(_), copicatrecord_2_neg_clip, copicatrecord_2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatrecord_2_clip = ffunction(float copicatrecord_2clip(float), "copicatrecord_2_table.h", ""); copicatrecord_2_neg_clip = ffunction(float copicatrecord_2_negclip(float), "copicatrecord_2_neg_table.h", ""); }; replay1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-2.16461324600193e-8*fs - 1.31188681575873e-7); b1 = 4.32922649200386e-8*pow(fs,2); b2 = fs*(-2.16461324600193e-8*fs + 1.31188681575873e-7); a0 = fs*(4.33785780482415e-10*fs + 1.16144315716444e-8) + 6.90530766455131e-8; a1 = -8.6757156096483e-10*pow(fs,2) + 1.38106153291026e-7; a2 = fs*(4.33785780482415e-10*fs - 1.16144315716444e-8) + 6.90530766455131e-8; }; copicatreplay1clip = _<: ba.if(signbit(_), copicatreplay1_neg_clip, copicatreplay1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay1_clip = ffunction(float copicatreplay1clip(float), "copicatreplay1_table.h", ""); copicatreplay1_neg_clip = ffunction(float copicatreplay1_negclip(float), "copicatreplay1_neg_table.h", ""); }; replay2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.02325156488485e-9*fs - 1.05707806289759e-8); b1 = 2.0465031297697e-9*pow(fs,2); b2 = fs*(-1.02325156488485e-9*fs + 1.05707806289759e-8); a0 = fs*(4.3361242466424e-10*fs + 1.99329936161353e-8) + 1.89880017035189e-7; a1 = -8.6722484932848e-10*pow(fs,2) + 3.79760034070379e-7; a2 = fs*(4.3361242466424e-10*fs - 1.99329936161353e-8) + 1.89880017035189e-7; }; copicatreplay2clip = _<: ba.if(signbit(_), copicatreplay2_neg_clip, copicatreplay2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay2_clip = ffunction(float copicatreplay2clip(float), "copicatreplay2_table.h", ""); copicatreplay2_neg_clip = ffunction(float copicatreplay2_negclip(float), "copicatreplay2_neg_table.h", ""); }; machine = record:vgroup( "Tape Heads", fi.highpass( 4, 40 )<:head1,head2,head3:>fi.lowpass( 1, 6500 ):fi.dcblocker ):replay1:replay2; // May need to look at levels here fbloop = fi.lowpass( 1, 7500 ):*(feedback):fi.highpass( 1, 150 ) ; Output = vslider("Output[name:Output]", 1.0, 0.0, 2.0, 0.01) : LogPot(3) : si.smooth(s); amp = input<:_,((+:_<:machine :>_)~fbloop:*(echo)):>*(Output) ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
https://raw.githubusercontent.com/Pro19/guitarix/b1c686212332d1ea40683262bf95ad2b486b2bb6/trunk/src/LV2/faust/gxechocat.dsp
faust
HEAD SPACING I have lold Selmer unit where playback heads are 1.5 inches apart and record head is 1.8 inches from last playback so : record - play4 - play 3 - play 2 - play 1 1.8 - 1.5 - 1.5 - 1.5 - 1.5 Se we have record -1.8inches - head1, 2.3 to head2, 3.8 to head3 5.3 to head 4 ! Or at 15ips head1 120ms head2 220ms head3 320ms head4 420ms According to what I have read the heads are not parallel but output from each one is fed into next ??? What ??? Also max de.delay from one head is 425ms Apparently originsl units has 23 inch tapes! Actual topology In -> stage1 -> pentode driver for record head ->play heads -> 2stage valve amp ->mixer->out and feedback to pentode Sounds OK maybe too much bandwidth loss try cleaner path Look ay adding soft clip before machine to simulate saturation Frequency response of tape in copicat would be poor due to design and use Tape usually has steep low end frop with a hump and not quite so steep high drop, maybe as for guitar we can lower this but would guess that should start around 40 - 80Hz steep fi.highpass with possible hump ( ? resonant filter ) 5- 6k fi.lowpass Am concerned that as each valve stage already has same lowapss filter that this may have same effect as in real amp of creating a resonance an will try same solution : stagger filters and identify dominant one ( biggest effect ) and slug it or drastically reduce it. So we need multiple de.delay heads Each head can be bypassed or moved to alter de.delay time so tape speed in inches per second distance from record head in inches thus we get de.delay in milliseconds speed = 7.5 ; The wow should be preset by experiment... Lets introduce just a little max(0) because of numerical inaccuracy 4Hz Play with this Play with delays to get following ranges 83.33ms => 1.25s on head1 166.6ms => 2.5s on head1 250ms => 3.75s on head1 100*SER/1000 Input = vslider("Input[name:Input]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); May need to look at levels here
declare name "Tape Delay"; declare category "Echo / Delay"; import("stdfaust.lib"); import("guitarix.lib"); import("redeye.lib"); bpm = hgroup( "Echo", vslider("BPM[style:knob]", 120, 24, 360, 0.1)) ; wow = sine( freq) * depth ; speed = ( 72/(2*bpm)) ; tapespeed = hgroup( "Tape Control",speed + wow ); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); s = 0.993; echo = hgroup( "Echo", vslider("Swell[style:knob]", 0, 0, 1, 0.01)): LogPot(1):si.smooth(s):*(0.25) ; feedback = hgroup( "Echo", vslider("Sustain[style:knob]", 0, 0.0, 1.0, 0.01)):LogPot(1):si.smooth(s):*(0.25); dtime1 = ma.SR*( 30/bpm) ; dtime2 = ma.SR*( 60/ bpm) ; dtime3 = ma.SR*( 90/bpm ) ; dtime4 = ma.SR*( 240/bpm ) ; head1 = de.sdelay(N, interp, dtime1):*(checkbox("Head1")) with { N = int( 2^19 ) ; }; head2 = de.sdelay(N, interp, dtime2):*(checkbox("Head2")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head3 = de.sdelay(N, interp, dtime3):*(checkbox("Head3")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; head4 = de.sdelay(N, interp, dtime4):*(checkbox("Head4")) with { interp = 100*ma.SR/1000.0; N = int( 2^19 ) ; }; input = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicat1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Input = vslider("Input[name:Input]", 0.5, 0, 1, 0.01) : si.smooth(s); b0 = Input*fs*(-2.06740841499587e-8*fs - 5.51308910665569e-7); b1 = 4.13481682999174e-8*Input*pow(fs,2); b2 = Input*fs*(-2.06740841499587e-8*fs + 5.51308910665569e-7); a0 = Input*(Input*fs*(-7.83789728824443e-11*fs - 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs + 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs + 2.49068229273233e-8) + 3.09696552478371e-7; a1 = Input*(1.56757945764889e-10*Input*pow(fs,2) - 1.66568855633991e-10*pow(fs,2) + 1.25383219626868e-7) - 8.22850146831931e-10*pow(fs,2) + 6.19393104956741e-7; a2 = Input*(Input*fs*(-7.83789728824443e-11*fs + 3.13458049067171e-9) + fs*(8.32844278169955e-11*fs - 5.0418669893366e-9) + 6.26916098134342e-8) + fs*(4.11425073415965e-10*fs - 2.49068229273233e-8) + 3.09696552478371e-7; }; copicat1clip = _<: ba.if(signbit(_), copicat1_neg_clip, copicat1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicat1_clip = ffunction(float copicat1clip(float), "copicat1_table.h", ""); copicat1_neg_clip = ffunction(float copicat1_negclip(float), "copicat1_neg_table.h", ""); }; record = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : copicatrecord_2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.23938408071082e-8*fs - 7.13052376187718e-7) - 9.98795811595446e-6; b1 = fs*(1.23938408071082e-8*fs - 7.13052376187718e-7) - 2.99638743478634e-5; b2 = fs*(1.23938408071082e-8*fs + 7.13052376187718e-7) - 2.99638743478634e-5; b3 = fs*(-1.23938408071082e-8*fs + 7.13052376187718e-7) - 9.98795811595446e-6; a0 = fs*(fs*(6.73029102377671e-15*fs + 1.10493997854221e-10) + 2.30183843147656e-8) + 6.01595252726883e-7; a1 = fs*(fs*(-2.01908730713301e-14*fs - 1.10493997854221e-10) + 2.30183843147656e-8) + 1.80478575818065e-6; a2 = fs*(fs*(2.01908730713301e-14*fs - 1.10493997854221e-10) - 2.30183843147656e-8) + 1.80478575818065e-6; a3 = fs*(fs*(-6.73029102377671e-15*fs + 1.10493997854221e-10) - 2.30183843147656e-8) + 6.01595252726883e-7; }; copicatrecord_2clip = _<: ba.if(signbit(_), copicatrecord_2_neg_clip, copicatrecord_2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatrecord_2_clip = ffunction(float copicatrecord_2clip(float), "copicatrecord_2_table.h", ""); copicatrecord_2_neg_clip = ffunction(float copicatrecord_2_negclip(float), "copicatrecord_2_neg_table.h", ""); }; replay1 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-2.16461324600193e-8*fs - 1.31188681575873e-7); b1 = 4.32922649200386e-8*pow(fs,2); b2 = fs*(-2.16461324600193e-8*fs + 1.31188681575873e-7); a0 = fs*(4.33785780482415e-10*fs + 1.16144315716444e-8) + 6.90530766455131e-8; a1 = -8.6757156096483e-10*pow(fs,2) + 1.38106153291026e-7; a2 = fs*(4.33785780482415e-10*fs - 1.16144315716444e-8) + 6.90530766455131e-8; }; copicatreplay1clip = _<: ba.if(signbit(_), copicatreplay1_neg_clip, copicatreplay1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay1_clip = ffunction(float copicatreplay1clip(float), "copicatreplay1_table.h", ""); copicatreplay1_neg_clip = ffunction(float copicatreplay1_negclip(float), "copicatreplay1_neg_table.h", ""); }; replay2 = pre : fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : copicatreplay2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; b0 = fs*(-1.02325156488485e-9*fs - 1.05707806289759e-8); b1 = 2.0465031297697e-9*pow(fs,2); b2 = fs*(-1.02325156488485e-9*fs + 1.05707806289759e-8); a0 = fs*(4.3361242466424e-10*fs + 1.99329936161353e-8) + 1.89880017035189e-7; a1 = -8.6722484932848e-10*pow(fs,2) + 3.79760034070379e-7; a2 = fs*(4.3361242466424e-10*fs - 1.99329936161353e-8) + 1.89880017035189e-7; }; copicatreplay2clip = _<: ba.if(signbit(_), copicatreplay2_neg_clip, copicatreplay2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); copicatreplay2_clip = ffunction(float copicatreplay2clip(float), "copicatreplay2_table.h", ""); copicatreplay2_neg_clip = ffunction(float copicatreplay2_negclip(float), "copicatreplay2_neg_table.h", ""); }; machine = record:vgroup( "Tape Heads", fi.highpass( 4, 40 )<:head1,head2,head3:>fi.lowpass( 1, 6500 ):fi.dcblocker ):replay1:replay2; fbloop = fi.lowpass( 1, 7500 ):*(feedback):fi.highpass( 1, 150 ) ; Output = vslider("Output[name:Output]", 1.0, 0.0, 2.0, 0.01) : LogPot(3) : si.smooth(s); amp = input<:_,((+:_<:machine :>_)~fbloop:*(echo)):>*(Output) ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
193959b018eca3a408700ab46bd670e65311dc929b72ac887789030acb4bc402
grame-cncm/smartfaust
sfTrumpet.dsp
declare name "sfTrumpet"; declare version "0.3"; declare author "Christophe Lebreton"; declare license "BSD & STK-4.3"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); import("instrument.lib"); //----- NOTA 0.3 ---- // to comply with the new lib it was necessary to use asr_old otherwise a division by 0 // and use en.adsr but setting an envelopeRelease value to 0.001 instead of 0 to also avoid a division by 0 //-------------------- MAIN ------------------------------- process = trumpet : Zverb4 :max(-0.99):min(0.99); //==================== GUI SPECIFICATION ================ freq = hslider ( "v:sfTrumpet parameter(s)/freq [1] [acc:0 0 -10 0 10][color:255 0 0][hidden:1]",165,117,290,1):fi.lowpass(1,0.5); //gain = nentry("h:Basic_Parameters/gain [1][hidden:1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01):smooth(0.998); gain = 1; gate = checkbox("v:sfTrumpet/ON/OFF"); pressure = hslider("v:sfTrumpet parameter(s)/Pressure[2][tooltip:A value between 0 and 1][color:255 255 0][acc:1 0 -10 0 10][hidden:1]",0.095,0.001,0.198,0.001) : si.bsmooth; lipTension = hslider("v:sfTrumpet parameter(s)/Lip_Tension[2][tooltip:A value between 0 and 1][color:255 0 0][acc:0 0 -10 0 10][hidden:1]",0.688,0.626,0.751,0.001); //slideLength = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Slide_Length[2][tooltip:A value between 0 and 1]",0.326,0.01,1,0.001); slideLength = 0.01; /*typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type [3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal; 2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod; 4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1); */ typeModulation = 1; //nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity [3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01); nonLinearity = 0.1; //frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Mod_Freq [3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",329.7,20,1000,0.1); frequencyMod = 204.8; //nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/NL_Attack[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01); nonLinAttack = 0; //vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Freq [4][unit:Hz][color:255 0 0][accx:-1.3 0 7.5 0]",6,1,15,0.1); vibratoFreq = 0; //vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Gain[4][tooltip:A value between 0 and 1][color:255 255 0][accy:1 0 0.5 0]",0.05,0,1,0.01); vibratoGain = 0; //vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Begin[4][unit:s][tooltip:Vibrato silence duration before attack]",1.954,0,2,0.01); vibratoBegin = 0; //vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Attack [4][unit:s][tooltip:Vibrato attack duration]",0,0,2,0.01); vibratoAttack = 0; //vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Release [4][unit:s][tooltip:Vibrato release duration]",0,0,2,0.01); vibratoRelease = 0; //envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/E_Attack [5][unit:s][tooltip:Envelope attack duration]",0.005,0,2,0.01); envelopeAttack = 0.005; //envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/E_Decay [5][unit:s][tooltip:Envelope decay duration]",0.001,0,2,0.01); envelopeDecay = 0.001; //envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/E_Release [5][unit:s][tooltip:Envelope release duration]",0,0,2,0.01); envelopeRelease = 0.001; // était à 0 dans la version d'origine mais génère une division par 0 dans faust 2017 //==================== SIGNAL PROCESSING ================ //----------------------- Nonlinear filter ---------------------------- //nonlinearities are created by the nonlinear passive allpass ladder filter declared in filter.lib //nonlinear filter order nlfOrder = 6; //attack - sustain - release envelope for nonlinearity (declared in instrument.lib) envelopeMod = asr_old(nonLinAttack,100,envelopeRelease,gate); //envelopeMod = 1; //nonLinearModultor is declared in instrument.lib, it adapts allpassnn from filter.lib //for using it with waveguide instruments NLFM = nonLinearModulator((nonLinearity : si.smooth(0.999)),envelopeMod,freq, typeModulation,(frequencyMod : si.smooth(0.999)),nlfOrder); //----------------------- Synthesis parameters computing and functions declaration ---------------------------- //lips are simulated by a biquad filter whose output is squared and hard-clipped, bandPassH and saturationPos are declared in instrument.lib lipFilterFrequency = freq*pow(4,(2*lipTension)-1); lipFilter = *(0.03) : bandPassH(lipFilterFrequency,0.997) <: * : saturationPos; //stereoizer is declared in instrument.lib and implement a stereo spacialisation in function of //the frequency period in number of samples stereo = stereoizer(ma.SR/freq); //delay times in number of samples slideTarget = ((ma.SR/freq)*2 + 3)*(0.5 + slideLength); boreDelay = de.fdelay(4096,slideTarget); //----------------------- Algorithm implementation ---------------------------- //vibrato vibrato = vibratoGain*os.osc(vibratoFreq)*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate); //envelope (Attack / Decay / Sustain / Release), breath pressure and vibrato breathPressure = pressure * en.adsr(envelopeAttack,envelopeDecay,1,envelopeRelease,gate) + vibrato; mouthPressure = 0.3*breathPressure; //scale the delay feedback borePressure = *(0.85); //differencial presure deltaPressure = mouthPressure - _; trumpet = (borePressure <: deltaPressure,_ : (lipFilter <: *(mouthPressure),(1-_)),_ : _, * :> + : fi.dcblocker) ~ (boreDelay : NLFM) : *(gain)*4; //trumpet = NLFM; //////////////////////////////////////// // ZITA VERB 4 ///////////////////////// //////////////////////////////////////// lowpassmotion = fi.lowpass(N,fc) with { //fc= hslider("high_cut [hidden:1]",10,0.01,10,0.01); fc=10; N= 1; // order of filter }; // from effect.lib but with only N=4 for mobilephone application zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; // Delay-line lengths in seconds: apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, 0.029291, 0.013458, 0.019123); // feedforward delays in seconds tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, 0.192303, 0.125000, 0.219991); // total delays in seconds tdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,tdelays)); // samples apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); // NOTE: Since SR is not bounded at compile time, we can't use it to // allocate delay lines; hence, the fsmax parameter: tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); apcoeff(i) = select2(i&1,0.6,-0.6); // allpass comb-filter coefficient allpass_combs(N) = par(i,N,(fi.allpass_comb(maxapdelay(i),apdelay(i),apcoeff(i)))); // filter.lib fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); feedbackmatrix(N) = ro.hadamard(N); // math.lib staynormal = 10.0^(-20); // let signals decay well below LSB, but not to zero special_lowpass(g,f) = si.smooth(p) with { // unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: p = mbo2 - sqrt(max(0,mbo2*mbo2 - 1.0)); // other solution is unstable mbo2 = (1.0 - gs*c)/(1.0 - gs); // NOTE: must ensure |g|<1 (t60m finite) gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); low_shelf1_l(G0,fx,x) = x + (G0-1)* fi.lowpass(1,fx,x); // filter.lib g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); n60(j) = dur(j)* ma.SR; // decay time in samples g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); t1 = 0.37; // zita-rev1 linearly ramps from 0 to t1 over one buffer outmix(4) = !,ro.butterfly(2),!; // probably the result of some experimenting! outmix(N) = outmix(N/2),par(i,N/2,!); }; // direct from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders //---------------------------------- zita_rev1 ------------------------------ // Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). // // Only the dry/wet and output level parameters are "dezippered" here. If // parameters are to be varied in real time, use "smooth(0.999)" or the like // in the same way. // // REFERENCE: // http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html // // DEPENDENCIES: // filter.lib (peak_eq_rm) zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { fsmax = 48000.0; // highest sampling rate that will be used // rdel = vslider(" Pre_Delay [hidden:1]", 50,1,100,1); rdel=50; // f1 = vslider("LF X [hidden:1]", 500, 50, 1000, 1); f1=500; //[accy:-1 0 7 0] t60dc = hslider("v:sfTrumpet parameter(s)/Low RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 7, 1, 16, 0.1):fi.lowpass(1,1):max(1):min(16); //[accy:-1 0 7 0] t60m = hslider("v:sfTrumpet parameter(s)/Mid RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 7, 1, 16, 0.1):fi.lowpass(1,1):max(1):min(16); f2 = hslider("v:sfTrumpet parameter(s)/HF Damping[hidden:1]", 13340, 1500, 0.49*fsmax, 1); out_eq = pareq_stereo(eq1f,eq1l,eq1q) : pareq_stereo(eq2f,eq2l,eq2q);// Zolzer style peaking eq (not used in zita-rev1) (filter.lib): // pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); // Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): //pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) // with { // tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) // wcT = 2*PI*eqf/SR; // peak frequency in rad/sample //g = db2linear(eql); // peak gain // }; // pareq use directly peak_eq_cp from filter.lib pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; // eq1f = vslider("F1 [hidden:1]", 315, 40, 10000, 1); eq1f=315; // eq1l = vslider("L1 [hidden:1]", 0, -15, 15, 0.1); eq1l=0; // eq1q = vslider("Q1 [hidden:1]", 3, 0.1, 10, 0.1); eq1q=3; // eq2f = vslider("F2 [hidden:1]", 3000, 40, 10000, 1); eq2f=3000; // eq2l = vslider("L2 [hidden:1]", 0, -15, 15, 0.1); eq2l=0; // eq2q = vslider("Q2 [hidden:1]", 3, 0.1, 10, 0.1); eq2q=3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; //[accy:-1. 0. 20 0] drywet = (hslider("v:sfTrumpet parameter(s)/Dry/Wet Mix [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 20, 0, 55, 0.1)*0.02)-1:fi.lowpass(1,1):max(-1):min(1); // out_level = *(gain),*(gain); // gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear; }; Zverb4 = _<:zita_rev3:>_;
https://raw.githubusercontent.com/grame-cncm/smartfaust/0a9c93ea7eda9899e1401402901848f221366c99/src/sfTrumpet/sfTrumpet.dsp
faust
----- NOTA 0.3 ---- to comply with the new lib it was necessary to use asr_old otherwise a division by 0 and use en.adsr but setting an envelopeRelease value to 0.001 instead of 0 to also avoid a division by 0 -------------------- MAIN ------------------------------- ==================== GUI SPECIFICATION ================ gain = nentry("h:Basic_Parameters/gain [1][hidden:1][tooltip:Gain (value between 0 and 1)]",1,0,1,0.01):smooth(0.998); slideLength = hslider("h:Physical_and_Nonlinearity/v:Physical_Parameters/Slide_Length[2][tooltip:A value between 0 and 1]",0.326,0.01,1,0.001); typeModulation = nentry("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Modulation_Type [3][tooltip: 0=theta is modulated by the incoming signal; 1=theta is modulated by the averaged incoming signal; 2=theta is modulated by the squared incoming signal; 3=theta is modulated by a sine wave of frequency freqMod; 4=theta is modulated by a sine wave of frequency freq;]",0,0,4,1); nonLinearity = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Nonlinearity [3][tooltip:Nonlinearity factor (value between 0 and 1)]",0,0,1,0.01); frequencyMod = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/Mod_Freq [3][unit:Hz][tooltip:Frequency of the sine wave for the modulation of theta (works if Modulation Type=3)]",329.7,20,1000,0.1); nonLinAttack = hslider("h:Physical_and_Nonlinearity/v:Nonlinear_Filter_Parameters/NL_Attack[3][unit:s][Attack duration of the nonlinearity]",0.1,0,2,0.01); vibratoFreq = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Freq [4][unit:Hz][color:255 0 0][accx:-1.3 0 7.5 0]",6,1,15,0.1); vibratoGain = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Gain[4][tooltip:A value between 0 and 1][color:255 255 0][accy:1 0 0.5 0]",0.05,0,1,0.01); vibratoBegin = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Begin[4][unit:s][tooltip:Vibrato silence duration before attack]",1.954,0,2,0.01); vibratoAttack = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Attack [4][unit:s][tooltip:Vibrato attack duration]",0,0,2,0.01); vibratoRelease = hslider("h:Envelopes_and_Vibrato/v:Vibrato_Parameters/V_Release [4][unit:s][tooltip:Vibrato release duration]",0,0,2,0.01); envelopeAttack = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/E_Attack [5][unit:s][tooltip:Envelope attack duration]",0.005,0,2,0.01); envelopeDecay = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/E_Decay [5][unit:s][tooltip:Envelope decay duration]",0.001,0,2,0.01); envelopeRelease = hslider("h:Envelopes_and_Vibrato/v:Envelope_Parameters/E_Release [5][unit:s][tooltip:Envelope release duration]",0,0,2,0.01); était à 0 dans la version d'origine mais génère une division par 0 dans faust 2017 ==================== SIGNAL PROCESSING ================ ----------------------- Nonlinear filter ---------------------------- nonlinearities are created by the nonlinear passive allpass ladder filter declared in filter.lib nonlinear filter order attack - sustain - release envelope for nonlinearity (declared in instrument.lib) envelopeMod = 1; nonLinearModultor is declared in instrument.lib, it adapts allpassnn from filter.lib for using it with waveguide instruments ----------------------- Synthesis parameters computing and functions declaration ---------------------------- lips are simulated by a biquad filter whose output is squared and hard-clipped, bandPassH and saturationPos are declared in instrument.lib stereoizer is declared in instrument.lib and implement a stereo spacialisation in function of the frequency period in number of samples delay times in number of samples ----------------------- Algorithm implementation ---------------------------- vibrato envelope (Attack / Decay / Sustain / Release), breath pressure and vibrato scale the delay feedback differencial presure trumpet = NLFM; ////////////////////////////////////// ZITA VERB 4 ///////////////////////// ////////////////////////////////////// fc= hslider("high_cut [hidden:1]",10,0.01,10,0.01); order of filter from effect.lib but with only N=4 for mobilephone application Delay-line lengths in seconds: feedforward delays in seconds total delays in seconds samples NOTE: Since SR is not bounded at compile time, we can't use it to allocate delay lines; hence, the fsmax parameter: allpass comb-filter coefficient filter.lib math.lib let signals decay well below LSB, but not to zero unity-dc-gain lowpass needs gain g at frequency f => quadratic formula: other solution is unstable NOTE: must ensure |g|<1 (t60m finite) filter.lib decay time in samples zita-rev1 linearly ramps from 0 to t1 over one buffer probably the result of some experimenting! direct from effect.lib and adapted by Christophe Lebreton with EQ and some parameters ranges changed .... no level out sliders ---------------------------------- zita_rev1 ------------------------------ Example GUI for zita_rev1_stereo (mostly following the Linux zita-rev1 GUI). Only the dry/wet and output level parameters are "dezippered" here. If parameters are to be varied in real time, use "smooth(0.999)" or the like in the same way. REFERENCE: http://www.kokkinizita.net/linuxaudio/zita-rev1-doc/quickguide.html DEPENDENCIES: filter.lib (peak_eq_rm) highest sampling rate that will be used rdel = vslider(" Pre_Delay [hidden:1]", 50,1,100,1); f1 = vslider("LF X [hidden:1]", 500, 50, 1000, 1); [accy:-1 0 7 0] [accy:-1 0 7 0] Zolzer style peaking eq (not used in zita-rev1) (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq(eql,eqf,eqf/Q), peak_eq(eql,eqf,eqf/Q); Regalia-Mitra peaking eq with "Q" hard-wired near sqrt(g)/2 (filter.lib): pareq_stereo(eqf,eql,Q) = peak_eq_rm(eql,eqf,tpbt), peak_eq_rm(eql,eqf,tpbt) with { tpbt = wcT/sqrt(g); // tan(PI*B/SR) where B bandwidth in Hz (Q^2 ~ g/4) wcT = 2*PI*eqf/SR; // peak frequency in rad/sample g = db2linear(eql); // peak gain }; pareq use directly peak_eq_cp from filter.lib eq1f = vslider("F1 [hidden:1]", 315, 40, 10000, 1); eq1l = vslider("L1 [hidden:1]", 0, -15, 15, 0.1); eq1q = vslider("Q1 [hidden:1]", 3, 0.1, 10, 0.1); eq2f = vslider("F2 [hidden:1]", 3000, 40, 10000, 1); eq2l = vslider("L2 [hidden:1]", 0, -15, 15, 0.1); eq2q = vslider("Q2 [hidden:1]", 3, 0.1, 10, 0.1); [accy:-1. 0. 20 0] out_level = *(gain),*(gain); gain = out_group(vslider("[2] Level [unit:dB] [style:knob] [tooltip: Output scale factor]", -0, -70, 40, 0.1)) : db2linear;
declare name "sfTrumpet"; declare version "0.3"; declare author "Christophe Lebreton"; declare license "BSD & STK-4.3"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); import("instrument.lib"); process = trumpet : Zverb4 :max(-0.99):min(0.99); freq = hslider ( "v:sfTrumpet parameter(s)/freq [1] [acc:0 0 -10 0 10][color:255 0 0][hidden:1]",165,117,290,1):fi.lowpass(1,0.5); gain = 1; gate = checkbox("v:sfTrumpet/ON/OFF"); pressure = hslider("v:sfTrumpet parameter(s)/Pressure[2][tooltip:A value between 0 and 1][color:255 255 0][acc:1 0 -10 0 10][hidden:1]",0.095,0.001,0.198,0.001) : si.bsmooth; lipTension = hslider("v:sfTrumpet parameter(s)/Lip_Tension[2][tooltip:A value between 0 and 1][color:255 0 0][acc:0 0 -10 0 10][hidden:1]",0.688,0.626,0.751,0.001); slideLength = 0.01; typeModulation = 1; nonLinearity = 0.1; frequencyMod = 204.8; nonLinAttack = 0; vibratoFreq = 0; vibratoGain = 0; vibratoBegin = 0; vibratoAttack = 0; vibratoRelease = 0; envelopeAttack = 0.005; envelopeDecay = 0.001; nlfOrder = 6; envelopeMod = asr_old(nonLinAttack,100,envelopeRelease,gate); NLFM = nonLinearModulator((nonLinearity : si.smooth(0.999)),envelopeMod,freq, typeModulation,(frequencyMod : si.smooth(0.999)),nlfOrder); lipFilterFrequency = freq*pow(4,(2*lipTension)-1); lipFilter = *(0.03) : bandPassH(lipFilterFrequency,0.997) <: * : saturationPos; stereo = stereoizer(ma.SR/freq); slideTarget = ((ma.SR/freq)*2 + 3)*(0.5 + slideLength); boreDelay = de.fdelay(4096,slideTarget); vibrato = vibratoGain*os.osc(vibratoFreq)*envVibrato(vibratoBegin,vibratoAttack,100,vibratoRelease,gate); breathPressure = pressure * en.adsr(envelopeAttack,envelopeDecay,1,envelopeRelease,gate) + vibrato; mouthPressure = 0.3*breathPressure; borePressure = *(0.85); deltaPressure = mouthPressure - _; trumpet = (borePressure <: deltaPressure,_ : (lipFilter <: *(mouthPressure),(1-_)),_ : _, * :> + : fi.dcblocker) ~ (boreDelay : NLFM) : *(gain)*4; lowpassmotion = fi.lowpass(N,fc) with { fc=10; }; zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) = (( si.bus(2*N) :> allpass_combs(N) : feedbackmatrix(N)) ~ (delayfilters(N,freqs,durs) : fbdelaylines(N))) with { N = 4; apdelays = (0.020346, 0.024421, 0.031604, 0.027333, 0.022904, tdelays = ( 0.153129, 0.210389, 0.127837, 0.256891, 0.174713, apdelay(i) = floor(0.5 + ma.SR * ba.take(i+1,apdelays)); fbdelay(i) = tdelay(i) - apdelay(i); tdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,tdelays)); apdelaymaxfs(i) = floor(0.5 + fsmax * ba.take(i+1,apdelays)); fbdelaymaxfs(i) = tdelaymaxfs(i) - apdelaymaxfs(i); nextpow2(x) = ceil(log(x)/log(2.0)); maxapdelay(i) = int(2.0^max(1.0,nextpow2(apdelaymaxfs(i)))); maxfbdelay(i) = int(2.0^max(1.0,nextpow2(fbdelaymaxfs(i)))); fbdelaylines(N) = par(i,N,(de.delay(maxfbdelay(i),(fbdelay(i))))); freqs = (f1,f2); durs = (t60dc,t60m); delayfilters(N,freqs,durs) = par(i,N,filter(i,freqs,durs)); special_lowpass(g,f) = si.smooth(p) with { gs = g*g; c = cos(2.0*ma.PI*f/float(ma.SR)); }; filter(i,freqs,durs) = lowshelf_lowpass(i)/sqrt(float(N))+staynormal with { lowshelf_lowpass(i) = gM*low_shelf1_l(g0/gM,f(1)):special_lowpass(gM,f(2)); g0 = g(0,i); gM = g(1,i); f(k) = ba.ba.take(k,freqs); dur(j) = ba.ba.take(j+1,durs); g(j,i) = exp(-3.0*log(10.0)*tdelay(i)/n60(j)); }; }; zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax) = re.zita_in_delay(rdel) : re.zita_distrib2(N) : zita_rev_fdn4(f1,f2,t60dc,t60m,fsmax) : output2(N) with { N = 4; output2(N) = outmix(N) : *(t1),*(t1); outmix(N) = outmix(N/2),par(i,N/2,!); }; zita_rev3(x,y) = zita_rev1_stereo4(rdel,f1,f2,t60dc,t60m,fsmax,x,y) : out_eq : dry_wet(x,y) with { rdel=50; f1=500; t60dc = hslider("v:sfTrumpet parameter(s)/Low RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 7, 1, 16, 0.1):fi.lowpass(1,1):max(1):min(16); t60m = hslider("v:sfTrumpet parameter(s)/Mid RT60 [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 7, 1, 16, 0.1):fi.lowpass(1,1):max(1):min(16); f2 = hslider("v:sfTrumpet parameter(s)/HF Damping[hidden:1]", 13340, 1500, 0.49*fsmax, 1); pareq_stereo (eqf,eql,Q) = fi.peak_eq_cq (eql,eqf,Q) , fi.peak_eq_cq (eql,eqf,Q) ; eq1f=315; eq1l=0; eq1q=3; eq2f=3000; eq2l=0; eq2q=3; dry_wet(x,y) = *(wet) + dry*x, *(wet) + dry*y with { wet = 0.5*(drywet+1.0); dry = 1.0-wet; }; drywet = (hslider("v:sfTrumpet parameter(s)/Dry/Wet Mix [acc:1 1 -10 0 10][color:255 255 0][hidden:1]", 20, 0, 55, 0.1)*0.02)-1:fi.lowpass(1,1):max(-1):min(1); }; Zverb4 = _<:zita_rev3:>_;
b148a8b26581fadd3251bbf24cf75fc9086976dd1c1b5bd73f4c6e36afb5700b
JoaoSvidzinski/HermesV2
compresseur.dsp
declare filename "compresseur.dsp"; declare name "compresseur"; declare compilation_options "-single -scal -I libraries/ -I project/ -lang wasm"; declare library_path0 "/libraries/stdfaust.lib"; declare library_path1 "/libraries/demos.lib"; declare library_path2 "/libraries/basics.lib"; declare library_path3 "/libraries/compressors.lib"; declare library_path4 "/libraries/maths.lib"; declare library_path5 "/libraries/platform.lib"; declare library_path6 "/libraries/analyzers.lib"; declare library_path7 "/libraries/signals.lib"; declare library_path8 "/libraries/routes.lib"; declare analyzers_lib_name "Faust Analyzer Library"; declare analyzers_lib_version "0.1"; declare author "JOS, revised by RM"; declare basics_lib_bypass2_author "Julius Smith"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.6"; declare compressors_lib_compression_gain_mono_author "Julius O. Smith III"; declare compressors_lib_compression_gain_mono_copyright "Copyright (C) 2014-2020 by Julius O. Smith III <[email protected]>"; declare compressors_lib_compression_gain_mono_license "MIT-style STK-4.3 license"; declare compressors_lib_compressor_stereo_author "Julius O. Smith III"; declare compressors_lib_compressor_stereo_copyright "Copyright (C) 2014-2020 by Julius O. Smith III <[email protected]>"; declare compressors_lib_compressor_stereo_license "MIT-style STK-4.3 license"; declare compressors_lib_name "Faust Compressor Effect Library"; declare compressors_lib_version "0.2"; declare demos_lib_name "Faust Demos Library"; declare demos_lib_version "0.1"; declare description "Compressor demo application"; declare filename "FaustDSP"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.5"; declare name "compressor"; declare platform_lib_name "Generic Platform Library"; declare platform_lib_version "0.2"; declare routes_lib_name "Faust Signal Routing Library"; declare routes_lib_version "0.2"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.1"; declare version "0.0"; ID_54 = ID_50, 1.0f; ID_55 = ID_53, ID_54; ID_56 = (ID_55 : select2); ID_57 = ID_56, ID_37; ID_58 = (ID_57 : *); ID_59 = -1.0f, ID_58; ID_60 = ID_59 : /; ID_61 = (ID_60 : exp); ID_62 = ID_61, 0.0f; ID_63 = ID_53, ID_62; ID_64 = (ID_63 : select2); ID_65 = ID_45, ID_64; ID_66 = >, ID_65; ID_67 = (ID_66 : select2); ID_68 = ID_67, _; ID_77 = hbargraph("[1] Compressor Gain [unit:dB] [tooltip: Current gain of the compressor in dB]", -50.0f, 10.0f); ID_78 = hgroup("[0]", ID_77); ID_79 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_78); ID_69 = (ID_68 : \(x1).(\(x2).(\(x3).(((1.0f,x1 : -),x2 : *),(x1,x3 : *) : +)~_))); ID_70 = ID_69 ~ _; ID_71 = _ <: ID_70; ID_72 = abs : ID_71; ID_89 = hslider("[5] Makeup Gain [unit:dB] [tooltip: The compressed-signal output level is increased by this amount (in dB) to make up for the level lost due to compression]", 40.0f, -96.0f, 96.0f, 0.10000000000000001f); ID_90 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_89); ID_2 = hgroup("[0]", ID_1); ID_3 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_2); ID_4 = _, 0; ID_5 = ID_3, ID_4; ID_6 = (ID_5 : select2); ID_7 = ID_6, ID_6; ID_8 = ID_7 : ID_0; ID_9 = ID_0 : ID_8; ID_98 = 2, 1; ID_99 = 2, ID_98; ID_100 = 1, ID_99; ID_101 = route(2,2,ID_100); ID_102 = ID_101, _; ID_103 = _, ID_102; ID_104 = ID_3, ID_0; ID_105 = (ID_104 : select2); ID_106 = ID_105, ID_105; ID_107 = ID_106 : ID_0; ID_108 = ID_103 : ID_107; ID_73 = \(x35).(\(x36).(((1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x35 : *),(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x36 : *) : +)~_) : \(x37).(10.0f,(x37,20.0f : /) : pow); ID_74 = \(x34).(((x34,vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -30.0f, -100.0f, 10.0f, 0.10000000000000001f)))) : -),0.0f : max),((1.0f,(1.1920928960000001e-07f,(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 5.0f, 1.0f, 20.0f, 0.10000000000000001f)))) : float) : max) : /),1.0f : -) : *) : ID_73; ID_75 = \(x33).(20.0f,(1.175494351e-38f,x33 : max : log10) : *) : ID_74; ID_76 = ID_72 : ID_75; ID_80 = \(x38).(20.0f,(1.175494351e-38f,x38 : max : log10) : *) : ID_79; ID_81 = (ID_76 : ID_80); ID_82 = _, ID_81; ID_83 = _, ID_82; ID_85 = ID_83 : ID_84; ID_86 = ID_13 : ID_85; ID_87 = ID_0 <: ID_86; ID_88 = \(x28).(\(x29).((((x28 : abs),(x29 : abs) : + : abs : _<:((>,(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : select2),_ : \(x1).(\(x2).(\(x3).(((1.0f,x1 : -),x2 : *),(x1,x3 : *) : +)~_)))~_ : \(x4).(20.0f,(1.175494351e-38f,x4 : max : log10) : *) : \(x30).(((x30,vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -30.0f, -100.0f, 10.0f, 0.10000000000000001f)))) : -),0.0f : max),((1.0f,(1.1920928960000001e-07f,(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 5.0f, 1.0f, 20.0f, 0.10000000000000001f)))) : float) : max) : /),1.0f : -) : *) : \(x31).(\(x32).(((1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x31 : *),(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x32 : *) : +)~_) : \(x8).(10.0f,(x8,20.0f : /) : pow)),x28 : *),(((x28 : abs),(x29 : abs) : + : abs : _<:((>,(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : select2),_ : \(x1).(\(x2).(\(x3).(((1.0f,x1 : -),x2 : *),(x1,x3 : *) : +)~_)))~_ : \(x4).(20.0f,(1.175494351e-38f,x4 : max : log10) : *) : \(x30).(((x30,vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -30.0f, -100.0f, 10.0f, 0.10000000000000001f)))) : -),0.0f : max),((1.0f,(1.1920928960000001e-07f,(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 5.0f, 1.0f, 20.0f, 0.10000000000000001f)))) : float) : max) : /),1.0f : -) : *) : \(x31).(\(x32).(((1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x31 : *),(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x32 : *) : +)~_) : \(x8).(10.0f,(x8,20.0f : /) : pow)),x29 : *))) : ID_87; ID_91 = (ID_90 : \(x39).(10.0f,(x39,20.0f : /) : pow)); ID_92 = _, ID_91; ID_93 = (ID_92 : *); ID_94 = ID_93, ID_93; ID_95 = ID_88 : ID_94; ID_96 = (ID_9 : ID_95); ID_97 = ID_96, ID_0; ID_109 = ID_97 : ID_108; ID_110 = ID_0 <: ID_109; ID_1 = checkbox("[0] Bypass [tooltip: When this is checked, the compressor has no effect]"); ID_0 = _, _; ID_10 = abs, abs; ID_11 = (ID_10 : +); ID_12 = _, ID_11; ID_13 = _, ID_12; ID_84 = _, attach; ID_42 = (ID_41 : exp); ID_39 = (ID_38 : *); ID_40 = -1.0f, ID_39; ID_38 = ID_36, ID_37; ID_41 = ID_40 : /; ID_37 = (ID_24 : float); ID_43 = ID_42, 0.0f; ID_44 = ID_33, ID_43; ID_45 = (ID_44 : select2); ID_46 = hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f); ID_47 = hgroup("[4] Compression Response", ID_46); ID_48 = hgroup("[1]", ID_47); ID_49 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_48); ID_18 = _, 0.001f; ID_19 = ID_18 : *; ID_20 = fconstant(int fSamplingFreq, <math.h>); ID_21 = 1.0f, ID_20; ID_22 = (ID_21 : max); ID_23 = 192000.0f, ID_22; ID_24 = (ID_23 : min); ID_25 = 1, ID_24; ID_26 = (ID_25 : /); ID_27 = ID_26, _; ID_28 = ID_27 : max; ID_29 = ID_19 : ID_28; ID_50 = ID_49 : ID_29; ID_14 = hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f); ID_15 = hgroup("[4] Compression Response", ID_14); ID_16 = hgroup("[1]", ID_15); ID_17 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_16); ID_30 = ID_17 : ID_29; ID_31 = (ID_30 : abs); ID_32 = ID_31, 1.1920928960000001e-07f; ID_33 = (ID_32 : <); ID_34 = ID_30, 1.0f; ID_35 = ID_33, ID_34; ID_36 = (ID_35 : select2); ID_51 = (ID_50 : abs); ID_52 = ID_51, 1.1920928960000001e-07f; ID_53 = (ID_52 : <); process = ID_110;
https://raw.githubusercontent.com/JoaoSvidzinski/HermesV2/a96f9cd288d5cb68be2f5bb5788d5869008d8cef/Patch%20Max/_external/compresseur%7E.mxo/compresseur.dsp
faust
declare filename "compresseur.dsp"; declare name "compresseur"; declare compilation_options "-single -scal -I libraries/ -I project/ -lang wasm"; declare library_path0 "/libraries/stdfaust.lib"; declare library_path1 "/libraries/demos.lib"; declare library_path2 "/libraries/basics.lib"; declare library_path3 "/libraries/compressors.lib"; declare library_path4 "/libraries/maths.lib"; declare library_path5 "/libraries/platform.lib"; declare library_path6 "/libraries/analyzers.lib"; declare library_path7 "/libraries/signals.lib"; declare library_path8 "/libraries/routes.lib"; declare analyzers_lib_name "Faust Analyzer Library"; declare analyzers_lib_version "0.1"; declare author "JOS, revised by RM"; declare basics_lib_bypass2_author "Julius Smith"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.6"; declare compressors_lib_compression_gain_mono_author "Julius O. Smith III"; declare compressors_lib_compression_gain_mono_copyright "Copyright (C) 2014-2020 by Julius O. Smith III <[email protected]>"; declare compressors_lib_compression_gain_mono_license "MIT-style STK-4.3 license"; declare compressors_lib_compressor_stereo_author "Julius O. Smith III"; declare compressors_lib_compressor_stereo_copyright "Copyright (C) 2014-2020 by Julius O. Smith III <[email protected]>"; declare compressors_lib_compressor_stereo_license "MIT-style STK-4.3 license"; declare compressors_lib_name "Faust Compressor Effect Library"; declare compressors_lib_version "0.2"; declare demos_lib_name "Faust Demos Library"; declare demos_lib_version "0.1"; declare description "Compressor demo application"; declare filename "FaustDSP"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.5"; declare name "compressor"; declare platform_lib_name "Generic Platform Library"; declare platform_lib_version "0.2"; declare routes_lib_name "Faust Signal Routing Library"; declare routes_lib_version "0.2"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.1"; declare version "0.0"; ID_54 = ID_50, 1.0f; ID_55 = ID_53, ID_54; ID_56 = (ID_55 : select2); ID_57 = ID_56, ID_37; ID_58 = (ID_57 : *); ID_59 = -1.0f, ID_58; ID_60 = ID_59 : /; ID_61 = (ID_60 : exp); ID_62 = ID_61, 0.0f; ID_63 = ID_53, ID_62; ID_64 = (ID_63 : select2); ID_65 = ID_45, ID_64; ID_66 = >, ID_65; ID_67 = (ID_66 : select2); ID_68 = ID_67, _; ID_77 = hbargraph("[1] Compressor Gain [unit:dB] [tooltip: Current gain of the compressor in dB]", -50.0f, 10.0f); ID_78 = hgroup("[0]", ID_77); ID_79 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_78); ID_69 = (ID_68 : \(x1).(\(x2).(\(x3).(((1.0f,x1 : -),x2 : *),(x1,x3 : *) : +)~_))); ID_70 = ID_69 ~ _; ID_71 = _ <: ID_70; ID_72 = abs : ID_71; ID_89 = hslider("[5] Makeup Gain [unit:dB] [tooltip: The compressed-signal output level is increased by this amount (in dB) to make up for the level lost due to compression]", 40.0f, -96.0f, 96.0f, 0.10000000000000001f); ID_90 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_89); ID_2 = hgroup("[0]", ID_1); ID_3 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_2); ID_4 = _, 0; ID_5 = ID_3, ID_4; ID_6 = (ID_5 : select2); ID_7 = ID_6, ID_6; ID_8 = ID_7 : ID_0; ID_9 = ID_0 : ID_8; ID_98 = 2, 1; ID_99 = 2, ID_98; ID_100 = 1, ID_99; ID_101 = route(2,2,ID_100); ID_102 = ID_101, _; ID_103 = _, ID_102; ID_104 = ID_3, ID_0; ID_105 = (ID_104 : select2); ID_106 = ID_105, ID_105; ID_107 = ID_106 : ID_0; ID_108 = ID_103 : ID_107; ID_73 = \(x35).(\(x36).(((1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x35 : *),(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x36 : *) : +)~_) : \(x37).(10.0f,(x37,20.0f : /) : pow); ID_74 = \(x34).(((x34,vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -30.0f, -100.0f, 10.0f, 0.10000000000000001f)))) : -),0.0f : max),((1.0f,(1.1920928960000001e-07f,(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 5.0f, 1.0f, 20.0f, 0.10000000000000001f)))) : float) : max) : /),1.0f : -) : *) : ID_73; ID_75 = \(x33).(20.0f,(1.175494351e-38f,x33 : max : log10) : *) : ID_74; ID_76 = ID_72 : ID_75; ID_80 = \(x38).(20.0f,(1.175494351e-38f,x38 : max : log10) : *) : ID_79; ID_81 = (ID_76 : ID_80); ID_82 = _, ID_81; ID_83 = _, ID_82; ID_85 = ID_83 : ID_84; ID_86 = ID_13 : ID_85; ID_87 = ID_0 <: ID_86; ID_88 = \(x28).(\(x29).((((x28 : abs),(x29 : abs) : + : abs : _<:((>,(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : select2),_ : \(x1).(\(x2).(\(x3).(((1.0f,x1 : -),x2 : *),(x1,x3 : *) : +)~_)))~_ : \(x4).(20.0f,(1.175494351e-38f,x4 : max : log10) : *) : \(x30).(((x30,vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -30.0f, -100.0f, 10.0f, 0.10000000000000001f)))) : -),0.0f : max),((1.0f,(1.1920928960000001e-07f,(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 5.0f, 1.0f, 20.0f, 0.10000000000000001f)))) : float) : max) : /),1.0f : -) : *) : \(x31).(\(x32).(((1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x31 : *),(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x32 : *) : +)~_) : \(x8).(10.0f,(x8,20.0f : /) : pow)),x28 : *),(((x28 : abs),(x29 : abs) : + : abs : _<:((>,(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),(((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(-1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max : abs),1.1920928960000001e-07f : <),(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : select2),_ : \(x1).(\(x2).(\(x3).(((1.0f,x1 : -),x2 : *),(x1,x3 : *) : +)~_)))~_ : \(x4).(20.0f,(1.175494351e-38f,x4 : max : log10) : *) : \(x30).(((x30,vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -30.0f, -100.0f, 10.0f, 0.10000000000000001f)))) : -),0.0f : max),((1.0f,(1.1920928960000001e-07f,(vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[3] Compression Control", hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 5.0f, 1.0f, 20.0f, 0.10000000000000001f)))) : float) : max) : /),1.0f : -) : *) : \(x31).(\(x32).(((1.0f,((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -),x31 : *),(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),(-1.0f,(((((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : / : abs),1.1920928960000001e-07f : <),((vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", hgroup("[1]", hgroup("[4] Compression Response", hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f)))) : _,0.001f : * : (1,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /),_ : max),2.0f : /),1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2),x32 : *) : +)~_) : \(x8).(10.0f,(x8,20.0f : /) : pow)),x29 : *))) : ID_87; ID_91 = (ID_90 : \(x39).(10.0f,(x39,20.0f : /) : pow)); ID_92 = _, ID_91; ID_93 = (ID_92 : *); ID_94 = ID_93, ID_93; ID_95 = ID_88 : ID_94; ID_96 = (ID_9 : ID_95); ID_97 = ID_96, ID_0; ID_109 = ID_97 : ID_108; ID_110 = ID_0 <: ID_109; ID_1 = checkbox("[0] Bypass [tooltip: When this is checked, the compressor has no effect]"); ID_0 = _, _; ID_10 = abs, abs; ID_11 = (ID_10 : +); ID_12 = _, ID_11; ID_13 = _, ID_12; ID_84 = _, attach; ID_42 = (ID_41 : exp); ID_39 = (ID_38 : *); ID_40 = -1.0f, ID_39; ID_38 = ID_36, ID_37; ID_41 = ID_40 : /; ID_37 = (ID_24 : float); ID_43 = ID_42, 0.0f; ID_44 = ID_33, ID_43; ID_45 = (ID_44 : select2); ID_46 = hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 500.0f, 1.0f, 1000.0f, 0.10000000000000001f); ID_47 = hgroup("[4] Compression Response", ID_46); ID_48 = hgroup("[1]", ID_47); ID_49 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_48); ID_18 = _, 0.001f; ID_19 = ID_18 : *; ID_20 = fconstant(int fSamplingFreq, <math.h>); ID_21 = 1.0f, ID_20; ID_22 = (ID_21 : max); ID_23 = 192000.0f, ID_22; ID_24 = (ID_23 : min); ID_25 = 1, ID_24; ID_26 = (ID_25 : /); ID_27 = ID_26, _; ID_28 = ID_27 : max; ID_29 = ID_19 : ID_28; ID_50 = ID_49 : ID_29; ID_14 = hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 50.0f, 1.0f, 1000.0f, 0.10000000000000001f); ID_15 = hgroup("[4] Compression Response", ID_14); ID_16 = hgroup("[1]", ID_15); ID_17 = vgroup("COMPRESSOR [tooltip: Reference: http://en.wikipedia.org/wiki/Dynamic_range_compression]", ID_16); ID_30 = ID_17 : ID_29; ID_31 = (ID_30 : abs); ID_32 = ID_31, 1.1920928960000001e-07f; ID_33 = (ID_32 : <); ID_34 = ID_30, 1.0f; ID_35 = ID_33, ID_34; ID_36 = (ID_35 : select2); ID_51 = (ID_50 : abs); ID_52 = ID_51, 1.1920928960000001e-07f; ID_53 = (ID_52 : <); process = ID_110;
7641f13fc3f7ea3d7c364770dd00e571d3685dc6aa3b9eceeb530e32f7e5bd0f
sadko4u/tamgamp.lv2
marshall_jcm800hi.dsp
/* * Simulation of Marshall JCM-800 High-gain input * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "marshall_jcm800hi"; declare name "marshall_jcm800hi"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00100706000116536*fs - 2.74253812953532; b1 = 0.00100706000116536*fs - 2.74253812953532; a0 = 1.82383685270143e-5*fs + 0.124558310703316; a1 = -1.82383685270143e-5*fs + 0.124558310703316; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/marshall_jcm800hi/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/marshall_jcm800hi/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(1.18724587211056e-8*fs + 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs - 3.28091553929331e-5) - 0.0134364630161901); b1 = gain*(-2.37449174422112e-8*pow(fs,2)*gain + 2.37449174422112e-8*pow(fs,2) - 0.0268729260323803); b2 = gain*(fs*gain*(1.18724587211056e-8*fs - 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs + 3.28091553929331e-5) - 0.0134364630161901); a0 = 2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs - 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs + 1.83330739030423e-6)) + 0.00254241685259171; a1 = gain*(3.05643473598644e-9*pow(fs,2)*gain - 3.05643473598644e-9*pow(fs,2)) + 0.00508483370518342; a2 = -2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs + 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs - 1.83330739030423e-6)) + 0.00254241685259171; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/marshall_jcm800hi/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/marshall_jcm800hi/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s03_stage3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; b0 = bass*(pow(fs,3)*treble*(-9.188187558692e-18*fs - 2.07971651396379e-14) + pow(fs,2)*middle*(fs*(-7.04427712833053e-18*fs - 4.61974934559815e-14) - 6.84766866959239e-11) + fs*(fs*(-8.22633872334683e-15*fs - 4.9873150795398e-11) - 7.07403788181033e-8)) + fs*(fs*(-1.8097945191363e-16*fs - 1.09720931749876e-12) - 1.55628833399827e-9) + middle*(pow(fs,2)*middle*(fs*(1.54974096823272e-19*fs + 1.01634485603159e-15) + 1.50648710731033e-12) + fs*(fs*(fs*(-1.54974096823272e-19*fs - 1.15555981904208e-15) - 2.49478214493775e-12) - 1.52373579652701e-9)) + treble*(pow(fs,3)*middle*(2.02140126291224e-19*fs + 4.57537633072034e-16) + fs*(fs*(fs*(-2.02140126291224e-19*fs - 8.75182522103488e-16) - 1.08914279871338e-12) - 3.25525374712589e-10)); b1 = bass*(pow(fs,3)*middle*(2.81771085133221e-17*fs + 9.2394986911963e-14) + pow(fs,3)*treble*(3.6752750234768e-17*fs + 4.15943302792758e-14) + fs*(1.64526774466937e-14*pow(fs,2) - 1.41480757636207e-7)) + fs*(3.61958903827261e-16*pow(fs,2) - 3.11257666799654e-9) + middle*(pow(fs,3)*middle*(-6.19896387293087e-19*fs - 2.03268971206319e-15) + fs*(pow(fs,2)*(6.19896387293087e-19*fs + 2.31111963808416e-15) - 3.04747159305403e-9)) + treble*(pow(fs,3)*middle*(-8.08560505164896e-19*fs - 9.15075266144067e-16) + fs*(pow(fs,2)*(8.08560505164896e-19*fs + 1.75036504420698e-15) - 6.51050749425178e-10)); b2 = bass*(-5.5129125352152e-17*pow(fs,4)*treble + pow(fs,2)*middle*(-4.22656627699832e-17*pow(fs,2) + 1.36953373391848e-10) + 9.97463015907961e-11*pow(fs,2)) + 2.19441863499751e-12*pow(fs,2) + middle*(pow(fs,2)*middle*(9.2984458093963e-19*pow(fs,2) - 3.01297421462065e-12) + pow(fs,2)*(-9.2984458093963e-19*pow(fs,2) + 4.98956428987549e-12)) + treble*(1.21284075774734e-18*pow(fs,4)*middle + pow(fs,2)*(-1.21284075774734e-18*pow(fs,2) + 2.17828559742676e-12)); b3 = bass*(pow(fs,3)*middle*(2.81771085133221e-17*fs - 9.2394986911963e-14) + pow(fs,3)*treble*(3.6752750234768e-17*fs - 4.15943302792758e-14) + fs*(-1.64526774466937e-14*pow(fs,2) + 1.41480757636207e-7)) + fs*(-3.61958903827261e-16*pow(fs,2) + 3.11257666799654e-9) + middle*(pow(fs,3)*middle*(-6.19896387293087e-19*fs + 2.03268971206319e-15) + fs*(pow(fs,2)*(6.19896387293087e-19*fs - 2.31111963808416e-15) + 3.04747159305403e-9)) + treble*(pow(fs,3)*middle*(-8.08560505164896e-19*fs + 9.15075266144067e-16) + fs*(pow(fs,2)*(8.08560505164896e-19*fs - 1.75036504420698e-15) + 6.51050749425178e-10)); b4 = bass*(pow(fs,3)*treble*(-9.188187558692e-18*fs + 2.07971651396379e-14) + pow(fs,2)*middle*(fs*(-7.04427712833053e-18*fs + 4.61974934559815e-14) - 6.84766866959239e-11) + fs*(fs*(8.22633872334683e-15*fs - 4.9873150795398e-11) + 7.07403788181033e-8)) + fs*(fs*(1.8097945191363e-16*fs - 1.09720931749876e-12) + 1.55628833399827e-9) + middle*(pow(fs,2)*middle*(fs*(1.54974096823272e-19*fs - 1.01634485603159e-15) + 1.50648710731033e-12) + fs*(fs*(fs*(-1.54974096823272e-19*fs + 1.15555981904208e-15) - 2.49478214493775e-12) + 1.52373579652701e-9)) + treble*(pow(fs,3)*middle*(2.02140126291224e-19*fs - 4.57537633072034e-16) + fs*(fs*(fs*(-2.02140126291224e-19*fs + 8.75182522103488e-16) - 1.08914279871338e-12) + 3.25525374712589e-10)); a0 = bass*(pow(fs,2)*middle*(fs*(1.66033922737963e-19*fs + 1.46468936918562e-15) + 3.22799705380621e-12) + fs*(fs*(fs*(2.19386941982751e-19*fs + 2.24638509167905e-15) + 6.40994887020324e-12) + 3.33470770021303e-9)) + fs*(fs*(fs*(4.82651272362052e-21*fs + 5.93926057434279e-17) + 2.37697888066948e-13) + 3.23054405974956e-10) + middle*(pow(fs,2)*middle*(fs*(-3.65274630023519e-21*fs - 3.22231661220837e-17) - 7.10159351837366e-14) + fs*(fs*(fs*(-1.17376642338534e-21*fs - 9.65030940676621e-18) - 3.76512801644073e-15) + 7.1829039915581e-11)) + 7.42035536317985e-8; a1 = bass*(pow(fs,3)*middle*(-6.64135690951852e-19*fs - 2.92937873837125e-15) + fs*(pow(fs,2)*(-8.77547767931004e-19*fs - 4.49277018335811e-15) + 6.66941540042605e-9)) + fs*(pow(fs,2)*(-1.93060508944821e-20*fs - 1.18785211486856e-16) + 6.46108811949911e-10) + middle*(pow(fs,3)*middle*(1.46109852009407e-20*fs + 6.44463322441675e-17) + fs*(pow(fs,2)*(4.69506569354134e-21*fs + 1.93006188135324e-17) + 1.43658079831162e-10)) + 2.96814214527194e-7; a2 = bass*(pow(fs,2)*middle*(9.96203536427778e-19*pow(fs,2) - 6.45599410761242e-12) + pow(fs,2)*(1.31632165189651e-18*pow(fs,2) - 1.28198977404065e-11)) + pow(fs,2)*(2.89590763417231e-20*pow(fs,2) - 4.75395776133895e-13) + middle*(pow(fs,2)*middle*(-2.19164778014111e-20*pow(fs,2) + 1.42031870367473e-13) + pow(fs,2)*(-7.04259854031202e-21*pow(fs,2) + 7.53025603288146e-15)) + 4.45221321790791e-7; a3 = bass*(pow(fs,3)*middle*(-6.64135690951852e-19*fs + 2.92937873837125e-15) + fs*(pow(fs,2)*(-8.77547767931004e-19*fs + 4.49277018335811e-15) - 6.66941540042605e-9)) + fs*(pow(fs,2)*(-1.93060508944821e-20*fs + 1.18785211486856e-16) - 6.46108811949911e-10) + middle*(pow(fs,3)*middle*(1.46109852009407e-20*fs - 6.44463322441675e-17) + fs*(pow(fs,2)*(4.69506569354134e-21*fs - 1.93006188135324e-17) - 1.43658079831162e-10)) + 2.96814214527194e-7; a4 = bass*(pow(fs,2)*middle*(fs*(1.66033922737963e-19*fs - 1.46468936918562e-15) + 3.22799705380621e-12) + fs*(fs*(fs*(2.19386941982751e-19*fs - 2.24638509167905e-15) + 6.40994887020324e-12) - 3.33470770021303e-9)) + fs*(fs*(fs*(4.82651272362052e-21*fs - 5.93926057434279e-17) + 2.37697888066948e-13) - 3.23054405974956e-10) + middle*(pow(fs,2)*middle*(fs*(-3.65274630023519e-21*fs + 3.22231661220837e-17) - 7.10159351837366e-14) + fs*(fs*(fs*(-1.17376642338534e-21*fs + 9.65030940676621e-18) - 3.76512801644073e-15) - 7.1829039915581e-11)) + 7.42035536317985e-8; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/marshall_jcm800hi/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/marshall_jcm800hi/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s05_stage4clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); master = ampctrl.master : LogPot(3.0) : si.smooth(0.999); presence = ampctrl.presence : si.smooth(0.999); b0 = master*(pow(fs,2)*presence*(fs*(9.12394327531584e-21*fs + 1.74558527699721e-15) + 8.64128766812471e-15) + fs*(fs*(2.07362347166269e-18*fs + 3.96723926590274e-13) + 1.96392901548289e-12)); b1 = master*(pow(fs,3)*presence*(-3.64957731012633e-20*fs - 3.49117055399442e-15) + fs*(-4.14724694332538e-18*pow(fs,2) + 3.92785803096578e-12)); b2 = master*(pow(fs,2)*presence*(5.4743659651895e-20*pow(fs,2) - 1.72825753362494e-14) - 7.93447853180549e-13*pow(fs,2)); b3 = master*(pow(fs,3)*presence*(-3.64957731012633e-20*fs + 3.49117055399442e-15) + fs*(4.14724694332538e-18*pow(fs,2) - 3.92785803096578e-12)); b4 = master*(pow(fs,2)*presence*(fs*(9.12394327531584e-21*fs - 1.74558527699721e-15) + 8.64128766812471e-15) + fs*(fs*(-2.07362347166269e-18*fs + 3.96723926590274e-13) - 1.96392901548289e-12)); a0 = fs*presence*(fs*(fs*(5.1560102834067e-20*fs + 9.48192763255562e-15) + 1.23816215364688e-13) + 1.03383405136796e-13) + fs*(fs*(fs*(9.02577972632804e-21*fs + 1.65716792398355e-15) + 2.17938668748945e-12) + 2.81613125818046e-11) + master*(pow(fs,2)*presence*(fs*(2.32157187007022e-20*fs + 4.05857493481995e-15) + 4.54886982601903e-15) + fs*(fs*(fs*(4.91959463392667e-21*fs + 8.65022072411122e-16) + 9.23338994229777e-13) + 1.03383405136796e-12) + master*(pow(fs,2)*presence*(fs*(-2.32157187007022e-20*fs - 4.05857493481995e-15) - 4.54886982601903e-15) + fs*(fs*(fs*(-4.91959463392667e-21*fs - 8.65022072411122e-16) - 9.23338994229777e-13) - 1.03383405136796e-12))) + 2.34962284401809e-11; a1 = fs*presence*(pow(fs,2)*(-2.06240411336268e-19*fs - 1.89638552651112e-14) + 2.06766810273592e-13) + fs*(pow(fs,2)*(-3.61031189053122e-20*fs - 3.3143358479671e-15) + 5.63226251636091e-11) + master*(pow(fs,3)*presence*(-9.28628748028089e-20*fs - 8.11714986963989e-15) + fs*(pow(fs,2)*(-1.96783785357067e-20*fs - 1.73004414482224e-15) + 2.06766810273592e-12) + master*(pow(fs,3)*presence*(9.28628748028089e-20*fs + 8.11714986963989e-15) + fs*(pow(fs,2)*(1.96783785357067e-20*fs + 1.73004414482224e-15) - 2.06766810273592e-12))) + 9.39849137607238e-11; a2 = pow(fs,2)*presence*(3.09360617004402e-19*pow(fs,2) - 2.47632430729377e-13) + pow(fs,2)*(5.41546783579682e-20*pow(fs,2) - 4.3587733749789e-12) + master*(pow(fs,2)*presence*(1.39294312204213e-19*pow(fs,2) - 9.09773965203806e-15) + pow(fs,2)*(2.951756780356e-20*pow(fs,2) - 1.84667798845955e-12) + master*(pow(fs,2)*presence*(-1.39294312204213e-19*pow(fs,2) + 9.09773965203806e-15) + pow(fs,2)*(-2.951756780356e-20*pow(fs,2) + 1.84667798845955e-12))) + 1.40977370641086e-10; a3 = fs*presence*(pow(fs,2)*(-2.06240411336268e-19*fs + 1.89638552651112e-14) - 2.06766810273592e-13) + fs*(pow(fs,2)*(-3.61031189053122e-20*fs + 3.3143358479671e-15) - 5.63226251636091e-11) + master*(pow(fs,3)*presence*(-9.28628748028089e-20*fs + 8.11714986963989e-15) + fs*(pow(fs,2)*(-1.96783785357067e-20*fs + 1.73004414482224e-15) - 2.06766810273592e-12) + master*(pow(fs,3)*presence*(9.28628748028089e-20*fs - 8.11714986963989e-15) + fs*(pow(fs,2)*(1.96783785357067e-20*fs - 1.73004414482224e-15) + 2.06766810273592e-12))) + 9.39849137607238e-11; a4 = fs*presence*(fs*(fs*(5.1560102834067e-20*fs - 9.48192763255562e-15) + 1.23816215364688e-13) - 1.03383405136796e-13) + fs*(fs*(fs*(9.02577972632804e-21*fs - 1.65716792398355e-15) + 2.17938668748945e-12) - 2.81613125818046e-11) + master*(pow(fs,2)*presence*(fs*(2.32157187007022e-20*fs - 4.05857493481995e-15) + 4.54886982601903e-15) + fs*(fs*(fs*(4.91959463392667e-21*fs - 8.65022072411122e-16) + 9.23338994229777e-13) - 1.03383405136796e-12) + master*(pow(fs,2)*presence*(fs*(-2.32157187007022e-20*fs + 4.05857493481995e-15) - 4.54886982601903e-15) + fs*(fs*(fs*(-4.91959463392667e-21*fs + 8.65022072411122e-16) - 9.23338994229777e-13) + 1.03383405136796e-12))) + 2.34962284401809e-11; }; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/marshall_jcm800hi/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/marshall_jcm800hi/s05_stage4_neg_table.h", ""); }; process = *(pregain) : *(0.5) : p1 : *(28.0) : p2 : *(13.0) : p3 : *(70.0) : p4 : *(100.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/marshall_jcm800hi.dsp
faust
* Simulation of Marshall JCM-800 High-gain input * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "marshall_jcm800hi"; declare name "marshall_jcm800hi"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = -0.00100706000116536*fs - 2.74253812953532; b1 = 0.00100706000116536*fs - 2.74253812953532; a0 = 1.82383685270143e-5*fs + 0.124558310703316; a1 = -1.82383685270143e-5*fs + 0.124558310703316; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/marshall_jcm800hi/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/marshall_jcm800hi/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(1.18724587211056e-8*fs + 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs - 3.28091553929331e-5) - 0.0134364630161901); b1 = gain*(-2.37449174422112e-8*pow(fs,2)*gain + 2.37449174422112e-8*pow(fs,2) - 0.0268729260323803); b2 = gain*(fs*gain*(1.18724587211056e-8*fs - 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs + 3.28091553929331e-5) - 0.0134364630161901); a0 = 2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs - 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs + 1.83330739030423e-6)) + 0.00254241685259171; a1 = gain*(3.05643473598644e-9*pow(fs,2)*gain - 3.05643473598644e-9*pow(fs,2)) + 0.00508483370518342; a2 = -2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs + 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs - 1.83330739030423e-6)) + 0.00254241685259171; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/marshall_jcm800hi/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/marshall_jcm800hi/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s03_stage3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3.0) : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; b0 = bass*(pow(fs,3)*treble*(-9.188187558692e-18*fs - 2.07971651396379e-14) + pow(fs,2)*middle*(fs*(-7.04427712833053e-18*fs - 4.61974934559815e-14) - 6.84766866959239e-11) + fs*(fs*(-8.22633872334683e-15*fs - 4.9873150795398e-11) - 7.07403788181033e-8)) + fs*(fs*(-1.8097945191363e-16*fs - 1.09720931749876e-12) - 1.55628833399827e-9) + middle*(pow(fs,2)*middle*(fs*(1.54974096823272e-19*fs + 1.01634485603159e-15) + 1.50648710731033e-12) + fs*(fs*(fs*(-1.54974096823272e-19*fs - 1.15555981904208e-15) - 2.49478214493775e-12) - 1.52373579652701e-9)) + treble*(pow(fs,3)*middle*(2.02140126291224e-19*fs + 4.57537633072034e-16) + fs*(fs*(fs*(-2.02140126291224e-19*fs - 8.75182522103488e-16) - 1.08914279871338e-12) - 3.25525374712589e-10)); b1 = bass*(pow(fs,3)*middle*(2.81771085133221e-17*fs + 9.2394986911963e-14) + pow(fs,3)*treble*(3.6752750234768e-17*fs + 4.15943302792758e-14) + fs*(1.64526774466937e-14*pow(fs,2) - 1.41480757636207e-7)) + fs*(3.61958903827261e-16*pow(fs,2) - 3.11257666799654e-9) + middle*(pow(fs,3)*middle*(-6.19896387293087e-19*fs - 2.03268971206319e-15) + fs*(pow(fs,2)*(6.19896387293087e-19*fs + 2.31111963808416e-15) - 3.04747159305403e-9)) + treble*(pow(fs,3)*middle*(-8.08560505164896e-19*fs - 9.15075266144067e-16) + fs*(pow(fs,2)*(8.08560505164896e-19*fs + 1.75036504420698e-15) - 6.51050749425178e-10)); b2 = bass*(-5.5129125352152e-17*pow(fs,4)*treble + pow(fs,2)*middle*(-4.22656627699832e-17*pow(fs,2) + 1.36953373391848e-10) + 9.97463015907961e-11*pow(fs,2)) + 2.19441863499751e-12*pow(fs,2) + middle*(pow(fs,2)*middle*(9.2984458093963e-19*pow(fs,2) - 3.01297421462065e-12) + pow(fs,2)*(-9.2984458093963e-19*pow(fs,2) + 4.98956428987549e-12)) + treble*(1.21284075774734e-18*pow(fs,4)*middle + pow(fs,2)*(-1.21284075774734e-18*pow(fs,2) + 2.17828559742676e-12)); b3 = bass*(pow(fs,3)*middle*(2.81771085133221e-17*fs - 9.2394986911963e-14) + pow(fs,3)*treble*(3.6752750234768e-17*fs - 4.15943302792758e-14) + fs*(-1.64526774466937e-14*pow(fs,2) + 1.41480757636207e-7)) + fs*(-3.61958903827261e-16*pow(fs,2) + 3.11257666799654e-9) + middle*(pow(fs,3)*middle*(-6.19896387293087e-19*fs + 2.03268971206319e-15) + fs*(pow(fs,2)*(6.19896387293087e-19*fs - 2.31111963808416e-15) + 3.04747159305403e-9)) + treble*(pow(fs,3)*middle*(-8.08560505164896e-19*fs + 9.15075266144067e-16) + fs*(pow(fs,2)*(8.08560505164896e-19*fs - 1.75036504420698e-15) + 6.51050749425178e-10)); b4 = bass*(pow(fs,3)*treble*(-9.188187558692e-18*fs + 2.07971651396379e-14) + pow(fs,2)*middle*(fs*(-7.04427712833053e-18*fs + 4.61974934559815e-14) - 6.84766866959239e-11) + fs*(fs*(8.22633872334683e-15*fs - 4.9873150795398e-11) + 7.07403788181033e-8)) + fs*(fs*(1.8097945191363e-16*fs - 1.09720931749876e-12) + 1.55628833399827e-9) + middle*(pow(fs,2)*middle*(fs*(1.54974096823272e-19*fs - 1.01634485603159e-15) + 1.50648710731033e-12) + fs*(fs*(fs*(-1.54974096823272e-19*fs + 1.15555981904208e-15) - 2.49478214493775e-12) + 1.52373579652701e-9)) + treble*(pow(fs,3)*middle*(2.02140126291224e-19*fs - 4.57537633072034e-16) + fs*(fs*(fs*(-2.02140126291224e-19*fs + 8.75182522103488e-16) - 1.08914279871338e-12) + 3.25525374712589e-10)); a0 = bass*(pow(fs,2)*middle*(fs*(1.66033922737963e-19*fs + 1.46468936918562e-15) + 3.22799705380621e-12) + fs*(fs*(fs*(2.19386941982751e-19*fs + 2.24638509167905e-15) + 6.40994887020324e-12) + 3.33470770021303e-9)) + fs*(fs*(fs*(4.82651272362052e-21*fs + 5.93926057434279e-17) + 2.37697888066948e-13) + 3.23054405974956e-10) + middle*(pow(fs,2)*middle*(fs*(-3.65274630023519e-21*fs - 3.22231661220837e-17) - 7.10159351837366e-14) + fs*(fs*(fs*(-1.17376642338534e-21*fs - 9.65030940676621e-18) - 3.76512801644073e-15) + 7.1829039915581e-11)) + 7.42035536317985e-8; a1 = bass*(pow(fs,3)*middle*(-6.64135690951852e-19*fs - 2.92937873837125e-15) + fs*(pow(fs,2)*(-8.77547767931004e-19*fs - 4.49277018335811e-15) + 6.66941540042605e-9)) + fs*(pow(fs,2)*(-1.93060508944821e-20*fs - 1.18785211486856e-16) + 6.46108811949911e-10) + middle*(pow(fs,3)*middle*(1.46109852009407e-20*fs + 6.44463322441675e-17) + fs*(pow(fs,2)*(4.69506569354134e-21*fs + 1.93006188135324e-17) + 1.43658079831162e-10)) + 2.96814214527194e-7; a2 = bass*(pow(fs,2)*middle*(9.96203536427778e-19*pow(fs,2) - 6.45599410761242e-12) + pow(fs,2)*(1.31632165189651e-18*pow(fs,2) - 1.28198977404065e-11)) + pow(fs,2)*(2.89590763417231e-20*pow(fs,2) - 4.75395776133895e-13) + middle*(pow(fs,2)*middle*(-2.19164778014111e-20*pow(fs,2) + 1.42031870367473e-13) + pow(fs,2)*(-7.04259854031202e-21*pow(fs,2) + 7.53025603288146e-15)) + 4.45221321790791e-7; a3 = bass*(pow(fs,3)*middle*(-6.64135690951852e-19*fs + 2.92937873837125e-15) + fs*(pow(fs,2)*(-8.77547767931004e-19*fs + 4.49277018335811e-15) - 6.66941540042605e-9)) + fs*(pow(fs,2)*(-1.93060508944821e-20*fs + 1.18785211486856e-16) - 6.46108811949911e-10) + middle*(pow(fs,3)*middle*(1.46109852009407e-20*fs - 6.44463322441675e-17) + fs*(pow(fs,2)*(4.69506569354134e-21*fs - 1.93006188135324e-17) - 1.43658079831162e-10)) + 2.96814214527194e-7; a4 = bass*(pow(fs,2)*middle*(fs*(1.66033922737963e-19*fs - 1.46468936918562e-15) + 3.22799705380621e-12) + fs*(fs*(fs*(2.19386941982751e-19*fs - 2.24638509167905e-15) + 6.40994887020324e-12) - 3.33470770021303e-9)) + fs*(fs*(fs*(4.82651272362052e-21*fs - 5.93926057434279e-17) + 2.37697888066948e-13) - 3.23054405974956e-10) + middle*(pow(fs,2)*middle*(fs*(-3.65274630023519e-21*fs + 3.22231661220837e-17) - 7.10159351837366e-14) + fs*(fs*(fs*(-1.17376642338534e-21*fs + 9.65030940676621e-18) - 3.76512801644073e-15) - 7.1829039915581e-11)) + 7.42035536317985e-8; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/marshall_jcm800hi/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/marshall_jcm800hi/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s05_stage4clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); master = ampctrl.master : LogPot(3.0) : si.smooth(0.999); presence = ampctrl.presence : si.smooth(0.999); b0 = master*(pow(fs,2)*presence*(fs*(9.12394327531584e-21*fs + 1.74558527699721e-15) + 8.64128766812471e-15) + fs*(fs*(2.07362347166269e-18*fs + 3.96723926590274e-13) + 1.96392901548289e-12)); b1 = master*(pow(fs,3)*presence*(-3.64957731012633e-20*fs - 3.49117055399442e-15) + fs*(-4.14724694332538e-18*pow(fs,2) + 3.92785803096578e-12)); b2 = master*(pow(fs,2)*presence*(5.4743659651895e-20*pow(fs,2) - 1.72825753362494e-14) - 7.93447853180549e-13*pow(fs,2)); b3 = master*(pow(fs,3)*presence*(-3.64957731012633e-20*fs + 3.49117055399442e-15) + fs*(4.14724694332538e-18*pow(fs,2) - 3.92785803096578e-12)); b4 = master*(pow(fs,2)*presence*(fs*(9.12394327531584e-21*fs - 1.74558527699721e-15) + 8.64128766812471e-15) + fs*(fs*(-2.07362347166269e-18*fs + 3.96723926590274e-13) - 1.96392901548289e-12)); a0 = fs*presence*(fs*(fs*(5.1560102834067e-20*fs + 9.48192763255562e-15) + 1.23816215364688e-13) + 1.03383405136796e-13) + fs*(fs*(fs*(9.02577972632804e-21*fs + 1.65716792398355e-15) + 2.17938668748945e-12) + 2.81613125818046e-11) + master*(pow(fs,2)*presence*(fs*(2.32157187007022e-20*fs + 4.05857493481995e-15) + 4.54886982601903e-15) + fs*(fs*(fs*(4.91959463392667e-21*fs + 8.65022072411122e-16) + 9.23338994229777e-13) + 1.03383405136796e-12) + master*(pow(fs,2)*presence*(fs*(-2.32157187007022e-20*fs - 4.05857493481995e-15) - 4.54886982601903e-15) + fs*(fs*(fs*(-4.91959463392667e-21*fs - 8.65022072411122e-16) - 9.23338994229777e-13) - 1.03383405136796e-12))) + 2.34962284401809e-11; a1 = fs*presence*(pow(fs,2)*(-2.06240411336268e-19*fs - 1.89638552651112e-14) + 2.06766810273592e-13) + fs*(pow(fs,2)*(-3.61031189053122e-20*fs - 3.3143358479671e-15) + 5.63226251636091e-11) + master*(pow(fs,3)*presence*(-9.28628748028089e-20*fs - 8.11714986963989e-15) + fs*(pow(fs,2)*(-1.96783785357067e-20*fs - 1.73004414482224e-15) + 2.06766810273592e-12) + master*(pow(fs,3)*presence*(9.28628748028089e-20*fs + 8.11714986963989e-15) + fs*(pow(fs,2)*(1.96783785357067e-20*fs + 1.73004414482224e-15) - 2.06766810273592e-12))) + 9.39849137607238e-11; a2 = pow(fs,2)*presence*(3.09360617004402e-19*pow(fs,2) - 2.47632430729377e-13) + pow(fs,2)*(5.41546783579682e-20*pow(fs,2) - 4.3587733749789e-12) + master*(pow(fs,2)*presence*(1.39294312204213e-19*pow(fs,2) - 9.09773965203806e-15) + pow(fs,2)*(2.951756780356e-20*pow(fs,2) - 1.84667798845955e-12) + master*(pow(fs,2)*presence*(-1.39294312204213e-19*pow(fs,2) + 9.09773965203806e-15) + pow(fs,2)*(-2.951756780356e-20*pow(fs,2) + 1.84667798845955e-12))) + 1.40977370641086e-10; a3 = fs*presence*(pow(fs,2)*(-2.06240411336268e-19*fs + 1.89638552651112e-14) - 2.06766810273592e-13) + fs*(pow(fs,2)*(-3.61031189053122e-20*fs + 3.3143358479671e-15) - 5.63226251636091e-11) + master*(pow(fs,3)*presence*(-9.28628748028089e-20*fs + 8.11714986963989e-15) + fs*(pow(fs,2)*(-1.96783785357067e-20*fs + 1.73004414482224e-15) - 2.06766810273592e-12) + master*(pow(fs,3)*presence*(9.28628748028089e-20*fs - 8.11714986963989e-15) + fs*(pow(fs,2)*(1.96783785357067e-20*fs - 1.73004414482224e-15) + 2.06766810273592e-12))) + 9.39849137607238e-11; a4 = fs*presence*(fs*(fs*(5.1560102834067e-20*fs - 9.48192763255562e-15) + 1.23816215364688e-13) - 1.03383405136796e-13) + fs*(fs*(fs*(9.02577972632804e-21*fs - 1.65716792398355e-15) + 2.17938668748945e-12) - 2.81613125818046e-11) + master*(pow(fs,2)*presence*(fs*(2.32157187007022e-20*fs - 4.05857493481995e-15) + 4.54886982601903e-15) + fs*(fs*(fs*(4.91959463392667e-21*fs - 8.65022072411122e-16) + 9.23338994229777e-13) - 1.03383405136796e-12) + master*(pow(fs,2)*presence*(fs*(-2.32157187007022e-20*fs + 4.05857493481995e-15) - 4.54886982601903e-15) + fs*(fs*(fs*(-4.91959463392667e-21*fs + 8.65022072411122e-16) - 9.23338994229777e-13) + 1.03383405136796e-12))) + 2.34962284401809e-11; }; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/marshall_jcm800hi/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/marshall_jcm800hi/s05_stage4_neg_table.h", ""); }; process = *(pregain) : *(0.5) : p1 : *(28.0) : p2 : *(13.0) : p3 : *(70.0) : p4 : *(100.0) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
45c15f6cc31ccc2fae70916cb0a82150caa5d7685e0c8180dec16ead4a22dd55
JoaoSvidzinski/lorenz-dream
jgrain3.dsp
declare compilation_options "-single -scal"; declare library_path "jgrain3"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/noises.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "Jgrain 3"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; declare version "1.0"; process = (_,(hslider("h:Grain/v:Input/inp 0 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 1 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 2 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : (_,_,_,_,_,_<:_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_ : (+ : _,1 : * : \(x8).(((x8,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x8,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 0", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x19).(((x19,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x19,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 1", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x20).(((x20,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x20,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 2", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *))~((_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 0", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 1", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 2", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : _,_,_<:((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 0") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 1") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 2") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 3") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 4") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 5") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 6") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 7") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 8") : *):>_)) : (_,(hslider("h:Grain/v:Output/out 0 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 1 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 2 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *);
https://raw.githubusercontent.com/JoaoSvidzinski/lorenz-dream/9d6014145d8101e92c34418f81c9be210650cf05/Patch_concert_2019/Dep/Jgrain/jgrain3%7E.mxo/jgrain3.dsp
faust
declare compilation_options "-single -scal"; declare library_path "jgrain3"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/noises.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "Jgrain 3"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; declare version "1.0"; process = (_,(hslider("h:Grain/v:Input/inp 0 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 1 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 2 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : (_,_,_,_,_,_<:_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_ : (+ : _,1 : * : \(x8).(((x8,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x8,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 0", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x19).(((x19,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x19,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 1", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x20).(((x20,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x20,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 2", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *))~((_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 0", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 1", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 2", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : _,_,_<:((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 0") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 1") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 2") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 3") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 4") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 5") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 6") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 7") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 8") : *):>_)) : (_,(hslider("h:Grain/v:Output/out 0 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 1 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 2 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *);
3c9589fd48b34a7b4f49e86d0d9c235f7113cae0b386470ebfacdd73b9db7ce4
JoaoSvidzinski/lorenz-dream
jgrain3.dsp
declare compilation_options "-single -scal"; declare library_path "jgrain3"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/noises.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "Jgrain 7"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; declare version "1.0"; process = (_,(hslider("h:Grain/v:Input/inp 0 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 1 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 2 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : (_,_,_,_,_,_<:_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_ : (+ : _,1 : * : \(x8).(((x8,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x8,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 0", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x19).(((x19,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x19,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 1", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x20).(((x20,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x20,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 2", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *))~((_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 0", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 1", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 2", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : _,_,_<:((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 0") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 1") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 2") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 3") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 4") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 5") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 6") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 7") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 8") : *):>_)) : (_,(hslider("h:Grain/v:Output/out 0 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 1 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 2 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *);
https://raw.githubusercontent.com/JoaoSvidzinski/lorenz-dream/9d6014145d8101e92c34418f81c9be210650cf05/_Patch/jgrain3%7E.mxo/jgrain3.dsp
faust
declare compilation_options "-single -scal"; declare library_path "jgrain3"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/noises.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "Jgrain 7"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; declare version "1.0"; process = (_,(hslider("h:Grain/v:Input/inp 0 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 1 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 2 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : (_,_,_,_,_,_<:_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_,!,!,!,_,!,!,!,!,!,!,!,!,_ : (+ : _,1 : * : \(x8).(((x8,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x8,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 0", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x19).(((x19,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x19,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 1", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x20).(((x20,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x20,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 5000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 2", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin<:*),(((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *))~((_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 0", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 1", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 2", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : _,_,_<:((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 0") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 1") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 2") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 3") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 4") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 5") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 6") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 7") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 8") : *):>_)) : (_,(hslider("h:Grain/v:Output/out 0 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 1 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 2 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *);
160ac1769d88ca039726421d131007f708d12652ef52c22fd1ac10a2d92dafac
sadko4u/tamgamp.lv2
peavey_5150ii_lead.dsp
/* * Simulation of Peavey 5150II lead channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "peavey_5150ii_lead"; declare name "peavey_5150ii_lead"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = pow(fs,2)*(-1.41619366649534e-13*fs - 8.63532723472799e-13); b1 = 2.83238733299068e-13*pow(fs,3); b2 = 1.7270654469456e-12*pow(fs,2); b3 = -2.83238733299068e-13*pow(fs,3); b4 = pow(fs,2)*(1.41619366649534e-13*fs - 8.63532723472799e-13); a0 = fs*(fs*(fs*(6.72246728677859e-21*fs + 8.7052636265908e-15) + 6.86307224330787e-13) + 1.208780256712e-11) + 4.40771504790753e-11; a1 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs - 1.74105272531816e-14) + 2.41756051342399e-11) + 1.76308601916301e-10; a2 = pow(fs,2)*(4.03348037206715e-20*pow(fs,2) - 1.37261444866157e-12) + 2.64462902874452e-10; a3 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs + 1.74105272531816e-14) - 2.41756051342399e-11) + 1.76308601916301e-10; a4 = fs*(fs*(fs*(6.72246728677859e-21*fs - 8.7052636265908e-15) + 6.86307224330787e-13) - 1.208780256712e-11) + 4.40771504790753e-11; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/peavey_5150ii_lead/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/peavey_5150ii_lead/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(fs*(3.4063252169753e-13*fs + 1.72393288420091e-10) + 1.03851378566326e-9) + fs*(fs*(-3.4063252169753e-13*fs - 3.42709549268856e-10) - 2.07702757132652e-9)); b1 = gain*(fs*gain*(fs*(-1.02189756509259e-12*fs - 1.72393288420091e-10) + 1.03851378566326e-9) + fs*(fs*(1.02189756509259e-12*fs + 3.42709549268856e-10) - 2.07702757132652e-9)); b2 = gain*(fs*gain*(fs*(1.02189756509259e-12*fs - 1.72393288420091e-10) - 1.03851378566326e-9) + fs*(fs*(-1.02189756509259e-12*fs + 3.42709549268856e-10) + 2.07702757132652e-9)); b3 = gain*(fs*gain*(fs*(-3.4063252169753e-13*fs + 1.72393288420091e-10) - 1.03851378566326e-9) + fs*(fs*(3.4063252169753e-13*fs - 3.42709549268856e-10) + 2.07702757132652e-9)); a0 = fs*(5.03890839310646e-11*fs + 5.44278531556381e-8) + gain*(fs*(fs*(3.22215910851706e-14*fs + 1.80358263851319e-11) + 9.62515421273177e-10) + gain*(fs*(fs*(-3.22215910851706e-14*fs - 5.23141147736113e-11) - 2.01495647671585e-8) - 1.02395257582279e-6) - 1.45699490863443e-20) + 3.07185772746841e-6; a1 = fs*(-5.03890839310646e-11*fs + 5.44278531556381e-8) + gain*(fs*(fs*(-9.66647732555118e-14*fs - 1.80358263851319e-11) + 9.62515421273177e-10) + gain*(fs*(fs*(9.66647732555118e-14*fs + 5.23141147736113e-11) - 2.01495647671585e-8) - 3.07185772746838e-6) - 4.37098472590328e-20) + 9.21557318240523e-6; a2 = fs*(-5.03890839310646e-11*fs - 5.44278531556381e-8) + gain*(fs*(fs*(9.66647732555118e-14*fs - 1.80358263851319e-11) - 9.62515421273177e-10) + gain*(fs*(fs*(-9.66647732555118e-14*fs + 5.23141147736113e-11) + 2.01495647671585e-8) - 3.07185772746838e-6) - 4.37098472590328e-20) + 9.21557318240523e-6; a3 = fs*(5.03890839310646e-11*fs - 5.44278531556381e-8) + gain*(fs*(fs*(-3.22215910851706e-14*fs + 1.80358263851319e-11) - 9.62515421273177e-10) + gain*(fs*(fs*(3.22215910851706e-14*fs - 5.23141147736113e-11) + 2.01495647671585e-8) - 1.02395257582279e-6) - 1.45699490863443e-20) + 3.07185772746841e-6; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/peavey_5150ii_lead/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/peavey_5150ii_lead/s02_stage2_neg_table.h", ""); }; p3 = s03_stage3clip; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/peavey_5150ii_lead/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/peavey_5150ii_lead/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s04_stage4clip with { fs = float(ma.SR); b0 = -0.000408700311197658*fs - 0.00249207506827852; b1 = 0.000408700311197658*fs - 0.00249207506827852; a0 = 2.08110484866641e-5*fs + 0.00106967264012324; a1 = -2.08110484866641e-5*fs + 0.00106967264012324; }; s04_stage4clip = _<: ba.if(signbit(_), s04_stage4_neg_clip, s04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage4_clip = ffunction(float s04_stage4clip(float), "generated/stage/peavey_5150ii_lead/s04_stage4_table.h", ""); s04_stage4_neg_clip = ffunction(float s04_stage4_negclip(float), "generated/stage/peavey_5150ii_lead/s04_stage4_neg_table.h", ""); }; p5 = s05_stage5clip; s05_stage5clip = _<: ba.if(signbit(_), s05_stage5_neg_clip, s05_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage5_clip = ffunction(float s05_stage5clip(float), "generated/stage/peavey_5150ii_lead/s05_stage5_table.h", ""); s05_stage5_neg_clip = ffunction(float s05_stage5_negclip(float), "generated/stage/peavey_5150ii_lead/s05_stage5_neg_table.h", ""); }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s06_stage6clip with { fs = float(ma.SR); b0 = fs*(-3.52021176770952e-10*fs - 5.33049166798005e-7) + 4.79170533214517e-7; b1 = 7.04042353541903e-10*pow(fs,2) + 9.58341066429035e-7; b2 = fs*(-3.52021176770952e-10*fs + 5.33049166798005e-7) + 4.79170533214517e-7; a0 = fs*(4.27669797848661e-10*fs + 3.04860828397743e-7) + 1.54659935933281e-5; a1 = -8.55339595697322e-10*pow(fs,2) + 3.09319871866562e-5; a2 = fs*(4.27669797848661e-10*fs - 3.04860828397743e-7) + 1.54659935933281e-5; }; s06_stage6clip = _<: ba.if(signbit(_), s06_stage6_neg_clip, s06_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage6_clip = ffunction(float s06_stage6clip(float), "generated/stage/peavey_5150ii_lead/s06_stage6_table.h", ""); s06_stage6_neg_clip = ffunction(float s06_stage6_negclip(float), "generated/stage/peavey_5150ii_lead/s06_stage6_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3) : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; master = ampctrl.master : LogPot(3) : si.smooth(0.999); b0 = bass*fs*(7.21272904185746e-12*fs + 2.27820978547042e-8) + fs*(1.74741373694485e-13*fs + 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(1.36999917324118e-14*fs + 5.01206152803492e-11) + pow(fs,2)*treble*(1.67629806160407e-17*fs + 1.35098167440689e-13) + fs*(fs*(3.31907016197606e-16*fs + 1.34125460635116e-12) + 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(-7.0618514084597e-15*fs - 2.58353687012109e-11) + pow(fs,2)*treble*(-2.79383010267345e-16*fs - 1.35098167440689e-13) + pow(fs,2)*(-3.31907016197606e-16*fs - 1.21426232895691e-12))) + treble*(1.0840060798373e-14*bass*pow(fs,3) + fs*(fs*(2.62620029651304e-16*fs + 4.9273003628968e-13) + 1.19132020379517e-10)); b1 = bass*fs*(-7.21272904185746e-12*fs + 2.27820978547042e-8) + fs*(-1.74741373694485e-13*fs + 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(-4.10999751972355e-14*fs - 5.01206152803492e-11) + pow(fs,2)*treble*(-5.0288941848122e-17*fs - 1.35098167440689e-13) + fs*(fs*(-9.95721048592818e-16*fs - 1.34125460635116e-12) + 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(2.11855542253791e-14*fs + 2.58353687012109e-11) + pow(fs,2)*treble*(8.38149030802034e-16*fs + 1.35098167440689e-13) + pow(fs,2)*(9.95721048592818e-16*fs + 1.21426232895691e-12))) + treble*(-3.25201823951189e-14*bass*pow(fs,3) + fs*(fs*(-7.87860088953912e-16*fs - 4.9273003628968e-13) + 1.19132020379517e-10)); b2 = bass*fs*(-7.21272904185746e-12*fs - 2.27820978547042e-8) + fs*(-1.74741373694485e-13*fs - 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(4.10999751972355e-14*fs - 5.01206152803492e-11) + pow(fs,2)*treble*(5.0288941848122e-17*fs - 1.35098167440689e-13) + fs*(fs*(9.95721048592818e-16*fs - 1.34125460635116e-12) - 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(-2.11855542253791e-14*fs + 2.58353687012109e-11) + pow(fs,2)*treble*(-8.38149030802034e-16*fs + 1.35098167440689e-13) + pow(fs,2)*(-9.95721048592818e-16*fs + 1.21426232895691e-12))) + treble*(3.25201823951189e-14*bass*pow(fs,3) + fs*(fs*(7.87860088953912e-16*fs - 4.9273003628968e-13) - 1.19132020379517e-10)); b3 = bass*fs*(7.21272904185746e-12*fs - 2.27820978547042e-8) + fs*(1.74741373694485e-13*fs - 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(-1.36999917324118e-14*fs + 5.01206152803492e-11) + pow(fs,2)*treble*(-1.67629806160407e-17*fs + 1.35098167440689e-13) + fs*(fs*(-3.31907016197606e-16*fs + 1.34125460635116e-12) - 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(7.0618514084597e-15*fs - 2.58353687012109e-11) + pow(fs,2)*treble*(2.79383010267345e-16*fs - 1.35098167440689e-13) + pow(fs,2)*(3.31907016197606e-16*fs - 1.21426232895691e-12))) + treble*(-1.0840060798373e-14*bass*pow(fs,3) + fs*(fs*(-2.62620029651304e-16*fs + 4.9273003628968e-13) - 1.19132020379517e-10)); a0 = bass*fs*(fs*(1.0840060798373e-14*fs + 5.33406473328063e-11) + 2.27820978547042e-8) + fs*(fs*(2.62620029651304e-16*fs + 1.78500345105354e-12) + 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(1.36999917324118e-14*fs + 5.01206152803492e-11) + fs*(fs*(3.48669996813647e-16*fs + 1.54768460620053e-12) + 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(-7.0618514084597e-15*fs - 2.58353687012109e-11) + fs*(fs*(-6.11290026464951e-16*fs - 2.53822436987567e-12) - 5.7488581889655e-10))) + 5.06944767572412e-7; a1 = bass*fs*(fs*(-3.25201823951189e-14*fs - 5.33406473328063e-11) + 2.27820978547042e-8) + fs*(fs*(-7.87860088953912e-16*fs - 1.78500345105354e-12) + 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(-4.10999751972355e-14*fs - 5.01206152803492e-11) + fs*(fs*(-1.04600999044094e-15*fs - 1.54768460620053e-12) + 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(2.11855542253791e-14*fs + 2.58353687012109e-11) + fs*(fs*(1.83387007939485e-15*fs + 2.53822436987567e-12) - 5.7488581889655e-10))) + 1.52083430271724e-6; a2 = bass*fs*(fs*(3.25201823951189e-14*fs - 5.33406473328063e-11) - 2.27820978547042e-8) + fs*(fs*(7.87860088953912e-16*fs - 1.78500345105354e-12) - 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(4.10999751972355e-14*fs - 5.01206152803492e-11) + fs*(fs*(1.04600999044094e-15*fs - 1.54768460620053e-12) - 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(-2.11855542253791e-14*fs + 2.58353687012109e-11) + fs*(fs*(-1.83387007939485e-15*fs + 2.53822436987567e-12) + 5.7488581889655e-10))) + 1.52083430271724e-6; a3 = bass*fs*(fs*(-1.0840060798373e-14*fs + 5.33406473328063e-11) - 2.27820978547042e-8) + fs*(fs*(-2.62620029651304e-16*fs + 1.78500345105354e-12) - 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(-1.36999917324118e-14*fs + 5.01206152803492e-11) + fs*(fs*(-3.48669996813647e-16*fs + 1.54768460620053e-12) - 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(7.0618514084597e-15*fs - 2.58353687012109e-11) + fs*(fs*(6.11290026464951e-16*fs - 2.53822436987567e-12) + 5.7488581889655e-10))) + 5.06944767572412e-7; }; p8 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s08_stage7clip with { fs = float(ma.SR); b0 = 8.82123032648896e-15*pow(fs,3); b1 = -2.64636909794669e-14*pow(fs,3); b2 = 2.64636909794669e-14*pow(fs,3); b3 = -8.82123032648896e-15*pow(fs,3); a0 = fs*(fs*(9.03361060537002e-15*fs + 4.14420870053604e-13) + 2.29677429297512e-12) + 1.14901989819789e-12; a1 = fs*(fs*(-2.71008318161101e-14*fs - 4.14420870053604e-13) + 2.29677429297512e-12) + 3.44705969459367e-12; a2 = fs*(fs*(2.71008318161101e-14*fs - 4.14420870053604e-13) - 2.29677429297512e-12) + 3.44705969459367e-12; a3 = fs*(fs*(-9.03361060537002e-15*fs + 4.14420870053604e-13) - 2.29677429297512e-12) + 1.14901989819789e-12; }; s08_stage7clip = _<: ba.if(signbit(_), s08_stage7_neg_clip, s08_stage7_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s08_stage7_clip = ffunction(float s08_stage7clip(float), "generated/stage/peavey_5150ii_lead/s08_stage7_table.h", ""); s08_stage7_neg_clip = ffunction(float s08_stage7_negclip(float), "generated/stage/peavey_5150ii_lead/s08_stage7_neg_table.h", ""); }; p9 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s09_stage8clip with { fs = float(ma.SR); b0 = fs*(-6.2021647107889e-9*fs - 0.000199940835293); b1 = 1.24043294215778e-8*pow(fs,2); b2 = fs*(-6.2021647107889e-9*fs + 0.000199940835293); a0 = fs*(1.3725322285498e-10*fs + 1.42420224832928e-5) + 0.00015149534407047; a1 = -2.74506445709959e-10*pow(fs,2) + 0.00030299068814094; a2 = fs*(1.3725322285498e-10*fs - 1.42420224832928e-5) + 0.00015149534407047; }; s09_stage8clip = _<: ba.if(signbit(_), s09_stage8_neg_clip, s09_stage8_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s09_stage8_clip = ffunction(float s09_stage8clip(float), "generated/stage/peavey_5150ii_lead/s09_stage8_table.h", ""); s09_stage8_neg_clip = ffunction(float s09_stage8_negclip(float), "generated/stage/peavey_5150ii_lead/s09_stage8_neg_table.h", ""); }; p10 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s10_stage9clip with { fs = float(ma.SR); b0 = fs*(2.57276196211087e-11*fs + 4.08266440921021e-12); b1 = -5.14552392422173e-11*pow(fs,2); b2 = fs*(2.57276196211087e-11*fs - 4.08266440921021e-12); a0 = fs*(4.3370466939498e-10*fs + 1.55086385348147e-8) + 2.70642953771017e-8; a1 = -8.6740933878996e-10*pow(fs,2) + 5.41285907542035e-8; a2 = fs*(4.3370466939498e-10*fs - 1.55086385348147e-8) + 2.70642953771017e-8; }; s10_stage9clip = _<: ba.if(signbit(_), s10_stage9_neg_clip, s10_stage9_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s10_stage9_clip = ffunction(float s10_stage9clip(float), "generated/stage/peavey_5150ii_lead/s10_stage9_table.h", ""); s10_stage9_neg_clip = ffunction(float s10_stage9_negclip(float), "generated/stage/peavey_5150ii_lead/s10_stage9_neg_table.h", ""); }; process = *(pregain) : *(0.08) : p1 : *(7.0) : p2 : *(4.0) : p3 : *(20.9) : p4 : *(73.0) : p5 : *(71.0) : p6 : p7 : *(90.0) : p8 : *(90.0) : p9 : *(68.0) : p10 : *(4.15) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/peavey_5150ii_lead.dsp
faust
* Simulation of Peavey 5150II lead channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "peavey_5150ii_lead"; declare name "peavey_5150ii_lead"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = pow(fs,2)*(-1.41619366649534e-13*fs - 8.63532723472799e-13); b1 = 2.83238733299068e-13*pow(fs,3); b2 = 1.7270654469456e-12*pow(fs,2); b3 = -2.83238733299068e-13*pow(fs,3); b4 = pow(fs,2)*(1.41619366649534e-13*fs - 8.63532723472799e-13); a0 = fs*(fs*(fs*(6.72246728677859e-21*fs + 8.7052636265908e-15) + 6.86307224330787e-13) + 1.208780256712e-11) + 4.40771504790753e-11; a1 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs - 1.74105272531816e-14) + 2.41756051342399e-11) + 1.76308601916301e-10; a2 = pow(fs,2)*(4.03348037206715e-20*pow(fs,2) - 1.37261444866157e-12) + 2.64462902874452e-10; a3 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs + 1.74105272531816e-14) - 2.41756051342399e-11) + 1.76308601916301e-10; a4 = fs*(fs*(fs*(6.72246728677859e-21*fs - 8.7052636265908e-15) + 6.86307224330787e-13) - 1.208780256712e-11) + 4.40771504790753e-11; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/peavey_5150ii_lead/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/peavey_5150ii_lead/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(fs*(3.4063252169753e-13*fs + 1.72393288420091e-10) + 1.03851378566326e-9) + fs*(fs*(-3.4063252169753e-13*fs - 3.42709549268856e-10) - 2.07702757132652e-9)); b1 = gain*(fs*gain*(fs*(-1.02189756509259e-12*fs - 1.72393288420091e-10) + 1.03851378566326e-9) + fs*(fs*(1.02189756509259e-12*fs + 3.42709549268856e-10) - 2.07702757132652e-9)); b2 = gain*(fs*gain*(fs*(1.02189756509259e-12*fs - 1.72393288420091e-10) - 1.03851378566326e-9) + fs*(fs*(-1.02189756509259e-12*fs + 3.42709549268856e-10) + 2.07702757132652e-9)); b3 = gain*(fs*gain*(fs*(-3.4063252169753e-13*fs + 1.72393288420091e-10) - 1.03851378566326e-9) + fs*(fs*(3.4063252169753e-13*fs - 3.42709549268856e-10) + 2.07702757132652e-9)); a0 = fs*(5.03890839310646e-11*fs + 5.44278531556381e-8) + gain*(fs*(fs*(3.22215910851706e-14*fs + 1.80358263851319e-11) + 9.62515421273177e-10) + gain*(fs*(fs*(-3.22215910851706e-14*fs - 5.23141147736113e-11) - 2.01495647671585e-8) - 1.02395257582279e-6) - 1.45699490863443e-20) + 3.07185772746841e-6; a1 = fs*(-5.03890839310646e-11*fs + 5.44278531556381e-8) + gain*(fs*(fs*(-9.66647732555118e-14*fs - 1.80358263851319e-11) + 9.62515421273177e-10) + gain*(fs*(fs*(9.66647732555118e-14*fs + 5.23141147736113e-11) - 2.01495647671585e-8) - 3.07185772746838e-6) - 4.37098472590328e-20) + 9.21557318240523e-6; a2 = fs*(-5.03890839310646e-11*fs - 5.44278531556381e-8) + gain*(fs*(fs*(9.66647732555118e-14*fs - 1.80358263851319e-11) - 9.62515421273177e-10) + gain*(fs*(fs*(-9.66647732555118e-14*fs + 5.23141147736113e-11) + 2.01495647671585e-8) - 3.07185772746838e-6) - 4.37098472590328e-20) + 9.21557318240523e-6; a3 = fs*(5.03890839310646e-11*fs - 5.44278531556381e-8) + gain*(fs*(fs*(-3.22215910851706e-14*fs + 1.80358263851319e-11) - 9.62515421273177e-10) + gain*(fs*(fs*(3.22215910851706e-14*fs - 5.23141147736113e-11) + 2.01495647671585e-8) - 1.02395257582279e-6) - 1.45699490863443e-20) + 3.07185772746841e-6; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/peavey_5150ii_lead/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/peavey_5150ii_lead/s02_stage2_neg_table.h", ""); }; p3 = s03_stage3clip; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/peavey_5150ii_lead/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/peavey_5150ii_lead/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s04_stage4clip with { fs = float(ma.SR); b0 = -0.000408700311197658*fs - 0.00249207506827852; b1 = 0.000408700311197658*fs - 0.00249207506827852; a0 = 2.08110484866641e-5*fs + 0.00106967264012324; a1 = -2.08110484866641e-5*fs + 0.00106967264012324; }; s04_stage4clip = _<: ba.if(signbit(_), s04_stage4_neg_clip, s04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage4_clip = ffunction(float s04_stage4clip(float), "generated/stage/peavey_5150ii_lead/s04_stage4_table.h", ""); s04_stage4_neg_clip = ffunction(float s04_stage4_negclip(float), "generated/stage/peavey_5150ii_lead/s04_stage4_neg_table.h", ""); }; p5 = s05_stage5clip; s05_stage5clip = _<: ba.if(signbit(_), s05_stage5_neg_clip, s05_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage5_clip = ffunction(float s05_stage5clip(float), "generated/stage/peavey_5150ii_lead/s05_stage5_table.h", ""); s05_stage5_neg_clip = ffunction(float s05_stage5_negclip(float), "generated/stage/peavey_5150ii_lead/s05_stage5_neg_table.h", ""); }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s06_stage6clip with { fs = float(ma.SR); b0 = fs*(-3.52021176770952e-10*fs - 5.33049166798005e-7) + 4.79170533214517e-7; b1 = 7.04042353541903e-10*pow(fs,2) + 9.58341066429035e-7; b2 = fs*(-3.52021176770952e-10*fs + 5.33049166798005e-7) + 4.79170533214517e-7; a0 = fs*(4.27669797848661e-10*fs + 3.04860828397743e-7) + 1.54659935933281e-5; a1 = -8.55339595697322e-10*pow(fs,2) + 3.09319871866562e-5; a2 = fs*(4.27669797848661e-10*fs - 3.04860828397743e-7) + 1.54659935933281e-5; }; s06_stage6clip = _<: ba.if(signbit(_), s06_stage6_neg_clip, s06_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage6_clip = ffunction(float s06_stage6clip(float), "generated/stage/peavey_5150ii_lead/s06_stage6_table.h", ""); s06_stage6_neg_clip = ffunction(float s06_stage6_negclip(float), "generated/stage/peavey_5150ii_lead/s06_stage6_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3) : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; master = ampctrl.master : LogPot(3) : si.smooth(0.999); b0 = bass*fs*(7.21272904185746e-12*fs + 2.27820978547042e-8) + fs*(1.74741373694485e-13*fs + 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(1.36999917324118e-14*fs + 5.01206152803492e-11) + pow(fs,2)*treble*(1.67629806160407e-17*fs + 1.35098167440689e-13) + fs*(fs*(3.31907016197606e-16*fs + 1.34125460635116e-12) + 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(-7.0618514084597e-15*fs - 2.58353687012109e-11) + pow(fs,2)*treble*(-2.79383010267345e-16*fs - 1.35098167440689e-13) + pow(fs,2)*(-3.31907016197606e-16*fs - 1.21426232895691e-12))) + treble*(1.0840060798373e-14*bass*pow(fs,3) + fs*(fs*(2.62620029651304e-16*fs + 4.9273003628968e-13) + 1.19132020379517e-10)); b1 = bass*fs*(-7.21272904185746e-12*fs + 2.27820978547042e-8) + fs*(-1.74741373694485e-13*fs + 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(-4.10999751972355e-14*fs - 5.01206152803492e-11) + pow(fs,2)*treble*(-5.0288941848122e-17*fs - 1.35098167440689e-13) + fs*(fs*(-9.95721048592818e-16*fs - 1.34125460635116e-12) + 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(2.11855542253791e-14*fs + 2.58353687012109e-11) + pow(fs,2)*treble*(8.38149030802034e-16*fs + 1.35098167440689e-13) + pow(fs,2)*(9.95721048592818e-16*fs + 1.21426232895691e-12))) + treble*(-3.25201823951189e-14*bass*pow(fs,3) + fs*(fs*(-7.87860088953912e-16*fs - 4.9273003628968e-13) + 1.19132020379517e-10)); b2 = bass*fs*(-7.21272904185746e-12*fs - 2.27820978547042e-8) + fs*(-1.74741373694485e-13*fs - 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(4.10999751972355e-14*fs - 5.01206152803492e-11) + pow(fs,2)*treble*(5.0288941848122e-17*fs - 1.35098167440689e-13) + fs*(fs*(9.95721048592818e-16*fs - 1.34125460635116e-12) - 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(-2.11855542253791e-14*fs + 2.58353687012109e-11) + pow(fs,2)*treble*(-8.38149030802034e-16*fs + 1.35098167440689e-13) + pow(fs,2)*(-9.95721048592818e-16*fs + 1.21426232895691e-12))) + treble*(3.25201823951189e-14*bass*pow(fs,3) + fs*(fs*(7.87860088953912e-16*fs - 4.9273003628968e-13) - 1.19132020379517e-10)); b3 = bass*fs*(7.21272904185746e-12*fs - 2.27820978547042e-8) + fs*(1.74741373694485e-13*fs - 5.51937422253143e-10) + middle*(bass*pow(fs,2)*(-1.36999917324118e-14*fs + 5.01206152803492e-11) + pow(fs,2)*treble*(-1.67629806160407e-17*fs + 1.35098167440689e-13) + fs*(fs*(-3.31907016197606e-16*fs + 1.34125460635116e-12) - 5.40392669762757e-10) + middle*(bass*pow(fs,2)*(7.0618514084597e-15*fs - 2.58353687012109e-11) + pow(fs,2)*treble*(2.79383010267345e-16*fs - 1.35098167440689e-13) + pow(fs,2)*(3.31907016197606e-16*fs - 1.21426232895691e-12))) + treble*(-1.0840060798373e-14*bass*pow(fs,3) + fs*(fs*(-2.62620029651304e-16*fs + 4.9273003628968e-13) - 1.19132020379517e-10)); a0 = bass*fs*(fs*(1.0840060798373e-14*fs + 5.33406473328063e-11) + 2.27820978547042e-8) + fs*(fs*(2.62620029651304e-16*fs + 1.78500345105354e-12) + 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(1.36999917324118e-14*fs + 5.01206152803492e-11) + fs*(fs*(3.48669996813647e-16*fs + 1.54768460620053e-12) + 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(-7.0618514084597e-15*fs - 2.58353687012109e-11) + fs*(fs*(-6.11290026464951e-16*fs - 2.53822436987567e-12) - 5.7488581889655e-10))) + 5.06944767572412e-7; a1 = bass*fs*(fs*(-3.25201823951189e-14*fs - 5.33406473328063e-11) + 2.27820978547042e-8) + fs*(fs*(-7.87860088953912e-16*fs - 1.78500345105354e-12) + 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(-4.10999751972355e-14*fs - 5.01206152803492e-11) + fs*(fs*(-1.04600999044094e-15*fs - 1.54768460620053e-12) + 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(2.11855542253791e-14*fs + 2.58353687012109e-11) + fs*(fs*(1.83387007939485e-15*fs + 2.53822436987567e-12) - 5.7488581889655e-10))) + 1.52083430271724e-6; a2 = bass*fs*(fs*(3.25201823951189e-14*fs - 5.33406473328063e-11) - 2.27820978547042e-8) + fs*(fs*(7.87860088953912e-16*fs - 1.78500345105354e-12) - 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(4.10999751972355e-14*fs - 5.01206152803492e-11) + fs*(fs*(1.04600999044094e-15*fs - 1.54768460620053e-12) - 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(-2.11855542253791e-14*fs + 2.58353687012109e-11) + fs*(fs*(-1.83387007939485e-15*fs + 2.53822436987567e-12) + 5.7488581889655e-10))) + 1.52083430271724e-6; a3 = bass*fs*(fs*(-1.0840060798373e-14*fs + 5.33406473328063e-11) - 2.27820978547042e-8) + fs*(fs*(-2.62620029651304e-16*fs + 1.78500345105354e-12) - 2.76779300131215e-9) + middle*(bass*pow(fs,2)*(-1.36999917324118e-14*fs + 5.01206152803492e-11) + fs*(fs*(-3.48669996813647e-16*fs + 1.54768460620053e-12) - 1.11527848865931e-9) + middle*(bass*pow(fs,2)*(7.0618514084597e-15*fs - 2.58353687012109e-11) + fs*(fs*(6.11290026464951e-16*fs - 2.53822436987567e-12) + 5.7488581889655e-10))) + 5.06944767572412e-7; }; p8 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s08_stage7clip with { fs = float(ma.SR); b0 = 8.82123032648896e-15*pow(fs,3); b1 = -2.64636909794669e-14*pow(fs,3); b2 = 2.64636909794669e-14*pow(fs,3); b3 = -8.82123032648896e-15*pow(fs,3); a0 = fs*(fs*(9.03361060537002e-15*fs + 4.14420870053604e-13) + 2.29677429297512e-12) + 1.14901989819789e-12; a1 = fs*(fs*(-2.71008318161101e-14*fs - 4.14420870053604e-13) + 2.29677429297512e-12) + 3.44705969459367e-12; a2 = fs*(fs*(2.71008318161101e-14*fs - 4.14420870053604e-13) - 2.29677429297512e-12) + 3.44705969459367e-12; a3 = fs*(fs*(-9.03361060537002e-15*fs + 4.14420870053604e-13) - 2.29677429297512e-12) + 1.14901989819789e-12; }; s08_stage7clip = _<: ba.if(signbit(_), s08_stage7_neg_clip, s08_stage7_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s08_stage7_clip = ffunction(float s08_stage7clip(float), "generated/stage/peavey_5150ii_lead/s08_stage7_table.h", ""); s08_stage7_neg_clip = ffunction(float s08_stage7_negclip(float), "generated/stage/peavey_5150ii_lead/s08_stage7_neg_table.h", ""); }; p9 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s09_stage8clip with { fs = float(ma.SR); b0 = fs*(-6.2021647107889e-9*fs - 0.000199940835293); b1 = 1.24043294215778e-8*pow(fs,2); b2 = fs*(-6.2021647107889e-9*fs + 0.000199940835293); a0 = fs*(1.3725322285498e-10*fs + 1.42420224832928e-5) + 0.00015149534407047; a1 = -2.74506445709959e-10*pow(fs,2) + 0.00030299068814094; a2 = fs*(1.3725322285498e-10*fs - 1.42420224832928e-5) + 0.00015149534407047; }; s09_stage8clip = _<: ba.if(signbit(_), s09_stage8_neg_clip, s09_stage8_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s09_stage8_clip = ffunction(float s09_stage8clip(float), "generated/stage/peavey_5150ii_lead/s09_stage8_table.h", ""); s09_stage8_neg_clip = ffunction(float s09_stage8_negclip(float), "generated/stage/peavey_5150ii_lead/s09_stage8_neg_table.h", ""); }; p10 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s10_stage9clip with { fs = float(ma.SR); b0 = fs*(2.57276196211087e-11*fs + 4.08266440921021e-12); b1 = -5.14552392422173e-11*pow(fs,2); b2 = fs*(2.57276196211087e-11*fs - 4.08266440921021e-12); a0 = fs*(4.3370466939498e-10*fs + 1.55086385348147e-8) + 2.70642953771017e-8; a1 = -8.6740933878996e-10*pow(fs,2) + 5.41285907542035e-8; a2 = fs*(4.3370466939498e-10*fs - 1.55086385348147e-8) + 2.70642953771017e-8; }; s10_stage9clip = _<: ba.if(signbit(_), s10_stage9_neg_clip, s10_stage9_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s10_stage9_clip = ffunction(float s10_stage9clip(float), "generated/stage/peavey_5150ii_lead/s10_stage9_table.h", ""); s10_stage9_neg_clip = ffunction(float s10_stage9_negclip(float), "generated/stage/peavey_5150ii_lead/s10_stage9_neg_table.h", ""); }; process = *(pregain) : *(0.08) : p1 : *(7.0) : p2 : *(4.0) : p3 : *(20.9) : p4 : *(73.0) : p5 : *(71.0) : p6 : p7 : *(90.0) : p8 : *(90.0) : p9 : *(68.0) : p10 : *(4.15) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
a0e9eb17614fb0159a3dca007be5f9876d5c88b05d4b4b71da6ecbb40f658bd8
HexHive/datAFLow
comb_bug_exp.dsp
declare compilation_options "-single -scal -e comb_bug.dsp -o comb_bug_exp.dsp"; declare library_path "/Documents/Recherche/Expressive E/CombFilter/comb_bug.dsp"; declare library_path "/usr/local/share/faust/stdfaust.lib"; declare library_path "/usr/local/share/faust/envelopes.lib"; declare library_path "/usr/local/share/faust/maths.lib"; declare library_path "/usr/local/share/faust/noises.lib"; declare library_path "/usr/local/share/faust/signals.lib"; declare library_path "/usr/local/share/faust/basics.lib"; declare library_path "/usr/local/share/faust/filters.lib"; declare library_path "/usr/local/share/faust/delays.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.1"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.1"; declare envelopes_lib_adsr_author "Yann Orlarey"; declare envelopes_lib_ar_author "Yann Orlarey, Stéphane Letz"; declare envelopes_lib_author "GRAME"; declare envelopes_lib_copyright "GRAME"; declare envelopes_lib_license "LGPL with exception"; declare envelopes_lib_name "Faust Envelope Library"; declare envelopes_lib_version "0.0"; declare filename "comb_bug.dsp"; declare filters_lib_fb_fcomb_author "Julius O. Smith III"; declare filters_lib_fb_fcomb_copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"; declare filters_lib_fb_fcomb_license "MIT-style STK-4.3 license"; declare filters_lib_lowpass0_highpass1 "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"; declare filters_lib_name "Faust Filters Library"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.1"; declare name "comb_bug"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; process = (((_,12345 : +)~((_,1103515245 : *),-1 : &),2147483647.0f : /),((((\(x3).(x3,(x3,0 : >) : +),(button("gate"),(button("gate") : mem) : <=) : *),(button("gate"),(button("gate") : mem) : >) : +)~_,(1,(1,(hslider("env_a", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *),((1,((1,(hslider("env_a", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max),(1,(1,(hslider("env_r", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : +),(((\(x3).(x3,(x3,0 : >) : +),(button("gate"),(button("gate") : mem) : <=) : *),(button("gate"),(button("gate") : mem) : >) : +)~_,(1,(1,(hslider("env_r", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : -) : min : 0,_ : max : _,(hslider("vitesse", 127.0f, 0.0f, 127.0f, 1.0f),127.0f : / : float) : *) : *),((((_,button("gate") : +)~(_,((button("gate") : mem),button("gate") : >=) : *),(1,(1,(0.10000000000000001f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *),(((1,((1,(0.10000000000000001f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max),(0.0f,(1,(0.01f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : +),((_,button("gate") : +)~(_,((button("gate") : mem),button("gate") : >=) : *),(0.0f,(1,(0.01f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : -),1.0f : max) : min),((_,1 : + : _,(button("gate"),0 : ==) : *)~_,(1.0f,(1,(0.01f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : - : 0,_ : max) : * : _<:0,(0,_,0 : select2 : (+<:\(x5).(((x5,(1025,(0,((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : int) : max) : min) : @),(1,(((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : -),((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : floor) : -) : -) : *),((x5,(1025,(0,(((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : int),1 : +) : max) : min) : @),(((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : -),((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : floor) : -) : *) : +),_)~(_,(0,(hslider("comb_res", 0.999f, -0.999f, 0.999f, 0.01f),-1 : *) : -) : *) : !,(_,(hslider("gain", 0.80000000000000004f, 0.0f, 1.0f, 0.01f) : _,0.0010000000000000009f : * : +~(_,0.999f : *)) : *) : mem),_ : select2 : _,0.29999999999999999f : *<:_,_;
https://raw.githubusercontent.com/HexHive/datAFLow/b9f3cbc42b1970f8655817c9fb67b1eaba3ae4c0/evaluation/ddfuzz/seeds/faust/comb_bug_exp.dsp
faust
declare compilation_options "-single -scal -e comb_bug.dsp -o comb_bug_exp.dsp"; declare library_path "/Documents/Recherche/Expressive E/CombFilter/comb_bug.dsp"; declare library_path "/usr/local/share/faust/stdfaust.lib"; declare library_path "/usr/local/share/faust/envelopes.lib"; declare library_path "/usr/local/share/faust/maths.lib"; declare library_path "/usr/local/share/faust/noises.lib"; declare library_path "/usr/local/share/faust/signals.lib"; declare library_path "/usr/local/share/faust/basics.lib"; declare library_path "/usr/local/share/faust/filters.lib"; declare library_path "/usr/local/share/faust/delays.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.1"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.1"; declare envelopes_lib_adsr_author "Yann Orlarey"; declare envelopes_lib_ar_author "Yann Orlarey, Stéphane Letz"; declare envelopes_lib_author "GRAME"; declare envelopes_lib_copyright "GRAME"; declare envelopes_lib_license "LGPL with exception"; declare envelopes_lib_name "Faust Envelope Library"; declare envelopes_lib_version "0.0"; declare filename "comb_bug.dsp"; declare filters_lib_fb_fcomb_author "Julius O. Smith III"; declare filters_lib_fb_fcomb_copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"; declare filters_lib_fb_fcomb_license "MIT-style STK-4.3 license"; declare filters_lib_lowpass0_highpass1 "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"; declare filters_lib_name "Faust Filters Library"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.1"; declare name "comb_bug"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; process = (((_,12345 : +)~((_,1103515245 : *),-1 : &),2147483647.0f : /),((((\(x3).(x3,(x3,0 : >) : +),(button("gate"),(button("gate") : mem) : <=) : *),(button("gate"),(button("gate") : mem) : >) : +)~_,(1,(1,(hslider("env_a", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *),((1,((1,(hslider("env_a", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max),(1,(1,(hslider("env_r", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : +),(((\(x3).(x3,(x3,0 : >) : +),(button("gate"),(button("gate") : mem) : <=) : *),(button("gate"),(button("gate") : mem) : >) : +)~_,(1,(1,(hslider("env_r", 0.94999999999999996f, 0.001f, 1.0f, 0.01f),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : -) : min : 0,_ : max : _,(hslider("vitesse", 127.0f, 0.0f, 127.0f, 1.0f),127.0f : / : float) : *) : *),((((_,button("gate") : +)~(_,((button("gate") : mem),button("gate") : >=) : *),(1,(1,(0.10000000000000001f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *),(((1,((1,(0.10000000000000001f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max),(0.0f,(1,(0.01f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : +),((_,button("gate") : +)~(_,((button("gate") : mem),button("gate") : >=) : *),(0.0f,(1,(0.01f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : -),1.0f : max) : min),((_,1 : + : _,(button("gate"),0 : ==) : *)~_,(1.0f,(1,(0.01f,(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : *) : max) : /) : *) : - : 0,_ : max) : * : _<:0,(0,_,0 : select2 : (+<:\(x5).(((x5,(1025,(0,((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : int) : max) : min) : @),(1,(((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : -),((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : floor) : -) : -) : *),((x5,(1025,(0,(((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : int),1 : +) : max) : min) : @),(((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : -),((((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.059999999999999998f : <=),(((((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : / : floor) : -),0.94999999999999996f : >=),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : -) : select2),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /),(((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),0.00067350000000000005f : *),(hslider("freq", 200.0f, 200.0f, 800.0f, 1.0f) : _,(1.0f,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : -) : * : +~(_,(0,(-1.0f,((0,0.001f,1.0f : select2),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : *) : / : exp),0.0f : select2) : *)) : /) : +) : select2 : float),1.0f : - : floor) : -) : *) : +),_)~(_,(0,(hslider("comb_res", 0.999f, -0.999f, 0.999f, 0.01f),-1 : *) : -) : *) : !,(_,(hslider("gain", 0.80000000000000004f, 0.0f, 1.0f, 0.01f) : _,0.0010000000000000009f : * : +~(_,0.999f : *)) : *) : mem),_ : select2 : _,0.29999999999999999f : *<:_,_;
34a75353b9b04cc8c40767a075e72753db17ee81c67266ee5973b52eb0449f96
sadko4u/tamgamp.lv2
peavey_5150ii_crunch.dsp
/* * Simulation of Peavey 5150II crunch channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "peavey_5150ii_crunch"; declare name "peavey_5150ii_crunch"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = pow(fs,2)*(-1.41619366649534e-13*fs - 8.63532723472799e-13); b1 = 2.83238733299068e-13*pow(fs,3); b2 = 1.7270654469456e-12*pow(fs,2); b3 = -2.83238733299068e-13*pow(fs,3); b4 = pow(fs,2)*(1.41619366649534e-13*fs - 8.63532723472799e-13); a0 = fs*(fs*(fs*(6.72246728677859e-21*fs + 8.7052636265908e-15) + 6.86307224330787e-13) + 1.208780256712e-11) + 4.40771504790753e-11; a1 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs - 1.74105272531816e-14) + 2.41756051342399e-11) + 1.76308601916301e-10; a2 = pow(fs,2)*(4.03348037206715e-20*pow(fs,2) - 1.37261444866157e-12) + 2.64462902874452e-10; a3 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs + 1.74105272531816e-14) - 2.41756051342399e-11) + 1.76308601916301e-10; a4 = fs*(fs*(fs*(6.72246728677859e-21*fs - 8.7052636265908e-15) + 6.86307224330787e-13) - 1.208780256712e-11) + 4.40771504790753e-11; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/peavey_5150ii_crunch/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/peavey_5150ii_crunch/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(fs*(4.65094790958669e-17*fs + 1.37304022225245e-13) + 7.25018598718153e-11) + fs*(fs*(fs*(-4.65094790958669e-17*fs - 1.40723836864647e-13) - 8.25977438589657e-11) - 5.33101910822171e-9)); b1 = gain*(pow(fs,3)*gain*(-1.86037916383467e-16*fs - 2.7460804445049e-13) + fs*(pow(fs,2)*(1.86037916383467e-16*fs + 2.81447673729294e-13) - 1.06620382164434e-8)); b2 = gain*(pow(fs,2)*gain*(2.79056874575201e-16*pow(fs,2) - 1.45003719743631e-10) + pow(fs,2)*(-2.79056874575201e-16*pow(fs,2) + 1.65195487717931e-10)); b3 = gain*(pow(fs,3)*gain*(-1.86037916383467e-16*fs + 2.7460804445049e-13) + fs*(pow(fs,2)*(1.86037916383467e-16*fs - 2.81447673729294e-13) + 1.06620382164434e-8)); b4 = gain*(pow(fs,2)*gain*(fs*(4.65094790958669e-17*fs - 1.37304022225245e-13) + 7.25018598718153e-11) + fs*(fs*(fs*(-4.65094790958669e-17*fs + 1.40723836864647e-13) - 8.25977438589657e-11) + 5.33101910822171e-9)); a0 = fs*(fs*(1.96553718457028e-16*fs + 1.13349301191717e-12) + 1.11617868321251e-9) + gain*(fs*gain*(fs*(fs*(-6.53431917359364e-19*fs - 4.15013217407039e-15) - 4.94521757525643e-12) - 1.12107818776202e-9) + fs*(fs*(fs*(6.53431917359364e-19*fs + 4.00162492012508e-15) + 4.12028433597e-12) + 4.0496760992863e-10) + 6.22821215423343e-8) + 5.85451942497945e-8; a1 = fs*(-3.93107436914056e-16*pow(fs,2) + 2.23235736642502e-9) + gain*(fs*gain*(pow(fs,2)*(2.61372766943745e-18*fs + 8.30026434814079e-15) - 2.24215637552403e-9) + fs*(pow(fs,2)*(-2.61372766943745e-18*fs - 8.00324984025017e-15) + 8.09935219857261e-10) + 2.49128486169337e-7) + 2.34180776999178e-7; a2 = -2.26698602383433e-12*pow(fs,2) + gain*(pow(fs,2)*gain*(-3.92059150415618e-18*pow(fs,2) + 9.89043515051286e-12) + pow(fs,2)*(3.92059150415618e-18*pow(fs,2) - 8.24056867194e-12) + 3.73692729254006e-7) + 3.51271165498767e-7; a3 = fs*(3.93107436914056e-16*pow(fs,2) - 2.23235736642502e-9) + gain*(fs*gain*(pow(fs,2)*(2.61372766943745e-18*fs - 8.30026434814079e-15) + 2.24215637552403e-9) + fs*(pow(fs,2)*(-2.61372766943745e-18*fs + 8.00324984025017e-15) - 8.09935219857261e-10) + 2.49128486169337e-7) + 2.34180776999178e-7; a4 = fs*(fs*(-1.96553718457028e-16*fs + 1.13349301191717e-12) - 1.11617868321251e-9) + gain*(fs*gain*(fs*(fs*(-6.53431917359364e-19*fs + 4.15013217407039e-15) - 4.94521757525643e-12) + 1.12107818776202e-9) + fs*(fs*(fs*(6.53431917359364e-19*fs - 4.00162492012508e-15) + 4.12028433597e-12) - 4.0496760992863e-10) + 6.22821215423343e-8) + 5.85451942497945e-8; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/peavey_5150ii_crunch/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/peavey_5150ii_crunch/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.000471052261884848*fs - 0.0486624237484344; b1 = 0.000471052261884848*fs - 0.0486624237484344; a0 = 2.07565118653794e-5*fs + 0.00368743046178661; a1 = -2.07565118653794e-5*fs + 0.00368743046178661; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/peavey_5150ii_crunch/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/peavey_5150ii_crunch/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) with { fs = float(ma.SR); b0 = 5.82287201278019e-6*fs + 0.00107591870154845; b1 = -5.82287201278019e-6*fs + 0.00107591870154845; a0 = 2.07583450601951e-5*fs + 0.0035994371106348; a1 = -2.07583450601951e-5*fs + 0.0035994371106348; }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3) : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; master = ampctrl.master : LogPot(3) : si.smooth(0.999); b0 = bass*fs*(9.89404969304451e-12*fs + 2.81767586220316e-8) + fs*(2.47351242326113e-13*fs + 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(-2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(2.4367228397506e-16*fs + 9.70550136098047e-13) + 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(4.54625321338628e-13*fs + 3.95761987721781e-10) + 1.12707034488126e-6) + fs*(fs*(2.27312660669314e-14*fs + 3.05588370266185e-11) + 3.52927322217472e-8)) + fs*(fs*(2.84140825836642e-16*fs + 5.1661968333935e-13) + 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(3.89875654360096e-13*fs + 1.23977737936939e-9) + fs*(fs*(-1.2984374707929e-14*fs + 2.89279557508774e-11) - 7.11597359971556e-10)) + fs*(fs*(-5.68281651673284e-16*fs - 7.63970925665462e-13) - 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(-1.94937827180048e-14*fs - 6.19888689684695e-11) + pow(fs,2)*middle*(2.4367228397506e-16*fs + 7.74860862105869e-13) + fs*(fs*(4.04685418615824e-17*fs - 9.70550136098047e-13) - 6.86629031551501e-10)))); b1 = bass*fs*(-9.89404969304451e-12*fs + 2.81767586220316e-8) + fs*(-2.47351242326113e-13*fs + 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(-2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(-7.3101685192518e-16*fs - 9.70550136098047e-13) + 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(-1.36387596401588e-12*fs - 3.95761987721781e-10) + 1.12707034488126e-6) + fs*(fs*(-6.81937982007941e-14*fs - 3.05588370266185e-11) + 3.52927322217472e-8)) + fs*(fs*(-8.52422477509927e-16*fs - 5.1661968333935e-13) + 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(-1.16962696308029e-12*fs - 1.23977737936939e-9) + fs*(fs*(3.8953124123787e-14*fs - 2.89279557508774e-11) - 7.11597359971556e-10)) + fs*(fs*(1.70484495501985e-15*fs + 7.63970925665462e-13) - 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(5.84813481540144e-14*fs + 6.19888689684695e-11) + pow(fs,2)*middle*(-7.3101685192518e-16*fs - 7.74860862105869e-13) + fs*(fs*(-1.21405625584747e-16*fs + 9.70550136098047e-13) - 6.86629031551501e-10)))); b2 = bass*fs*(-9.89404969304451e-12*fs - 2.81767586220316e-8) + fs*(-2.47351242326113e-13*fs - 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(-7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(7.3101685192518e-16*fs - 9.70550136098047e-13) - 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(1.36387596401588e-12*fs - 3.95761987721781e-10) - 1.12707034488126e-6) + fs*(fs*(6.81937982007941e-14*fs - 3.05588370266185e-11) - 3.52927322217472e-8)) + fs*(fs*(8.52422477509927e-16*fs - 5.1661968333935e-13) - 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(1.16962696308029e-12*fs - 1.23977737936939e-9) + fs*(fs*(-3.8953124123787e-14*fs - 2.89279557508774e-11) + 7.11597359971556e-10)) + fs*(fs*(-1.70484495501985e-15*fs + 7.63970925665462e-13) + 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(-5.84813481540144e-14*fs + 6.19888689684695e-11) + pow(fs,2)*middle*(7.3101685192518e-16*fs - 7.74860862105869e-13) + fs*(fs*(1.21405625584747e-16*fs + 9.70550136098047e-13) + 6.86629031551501e-10)))); b3 = bass*fs*(9.89404969304451e-12*fs - 2.81767586220316e-8) + fs*(2.47351242326113e-13*fs - 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(-9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(-2.4367228397506e-16*fs + 9.70550136098047e-13) - 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(-4.54625321338628e-13*fs + 3.95761987721781e-10) - 1.12707034488126e-6) + fs*(fs*(-2.27312660669314e-14*fs + 3.05588370266185e-11) - 3.52927322217472e-8)) + fs*(fs*(-2.84140825836642e-16*fs + 5.1661968333935e-13) - 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(-3.89875654360096e-13*fs + 1.23977737936939e-9) + fs*(fs*(1.2984374707929e-14*fs + 2.89279557508774e-11) + 7.11597359971556e-10)) + fs*(fs*(5.68281651673284e-16*fs - 7.63970925665462e-13) + 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(1.94937827180048e-14*fs - 6.19888689684695e-11) + pow(fs,2)*middle*(-2.4367228397506e-16*fs + 7.74860862105869e-13) + fs*(fs*(-4.04685418615824e-17*fs - 9.70550136098047e-13) + 6.86629031551501e-10)))); a0 = bass*fs*(fs*(1.13656330334657e-14*fs + 4.97734638455557e-11) + 2.81767586220316e-8) + fs*(fs*(2.84140825836642e-16*fs + 1.76095627947824e-12) + 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(-2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(-4.04685418615824e-17*fs - 2.64352177147328e-14) + 6.86629031551501e-10)) + 6.24208210501365e-7; a1 = bass*fs*(fs*(-3.40968991003971e-14*fs - 4.97734638455557e-11) + 2.81767586220316e-8) + fs*(fs*(-8.52422477509927e-16*fs - 1.76095627947824e-12) + 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(-2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(1.21405625584747e-16*fs + 2.64352177147328e-14) + 6.86629031551501e-10)) + 1.87262463150409e-6; a2 = bass*fs*(fs*(3.40968991003971e-14*fs - 4.97734638455557e-11) - 2.81767586220316e-8) + fs*(fs*(8.52422477509927e-16*fs - 1.76095627947824e-12) - 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(-7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(-1.21405625584747e-16*fs + 2.64352177147328e-14) - 6.86629031551501e-10)) + 1.87262463150409e-6; a3 = bass*fs*(fs*(-1.13656330334657e-14*fs + 4.97734638455557e-11) - 2.81767586220316e-8) + fs*(fs*(-2.84140825836642e-16*fs + 1.76095627947824e-12) - 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(-9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(4.04685418615824e-17*fs - 2.64352177147328e-14) - 6.86629031551501e-10)) + 6.24208210501365e-7; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s06_stage4clip with { fs = float(ma.SR); b0 = 8.82123032648896e-15*pow(fs,3); b1 = -2.64636909794669e-14*pow(fs,3); b2 = 2.64636909794669e-14*pow(fs,3); b3 = -8.82123032648896e-15*pow(fs,3); a0 = fs*(fs*(9.03361060537002e-15*fs + 4.14420870053604e-13) + 2.29677429297512e-12) + 1.14901989819789e-12; a1 = fs*(fs*(-2.71008318161101e-14*fs - 4.14420870053604e-13) + 2.29677429297512e-12) + 3.44705969459367e-12; a2 = fs*(fs*(2.71008318161101e-14*fs - 4.14420870053604e-13) - 2.29677429297512e-12) + 3.44705969459367e-12; a3 = fs*(fs*(-9.03361060537002e-15*fs + 4.14420870053604e-13) - 2.29677429297512e-12) + 1.14901989819789e-12; }; s06_stage4clip = _<: ba.if(signbit(_), s06_stage4_neg_clip, s06_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage4_clip = ffunction(float s06_stage4clip(float), "generated/stage/peavey_5150ii_crunch/s06_stage4_table.h", ""); s06_stage4_neg_clip = ffunction(float s06_stage4_negclip(float), "generated/stage/peavey_5150ii_crunch/s06_stage4_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s07_stage5clip with { fs = float(ma.SR); b0 = fs*(-6.2021647107889e-9*fs - 0.000199940835293); b1 = 1.24043294215778e-8*pow(fs,2); b2 = fs*(-6.2021647107889e-9*fs + 0.000199940835293); a0 = fs*(1.3725322285498e-10*fs + 1.42420224832928e-5) + 0.00015149534407047; a1 = -2.74506445709959e-10*pow(fs,2) + 0.00030299068814094; a2 = fs*(1.3725322285498e-10*fs - 1.42420224832928e-5) + 0.00015149534407047; }; s07_stage5clip = _<: ba.if(signbit(_), s07_stage5_neg_clip, s07_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s07_stage5_clip = ffunction(float s07_stage5clip(float), "generated/stage/peavey_5150ii_crunch/s07_stage5_table.h", ""); s07_stage5_neg_clip = ffunction(float s07_stage5_negclip(float), "generated/stage/peavey_5150ii_crunch/s07_stage5_neg_table.h", ""); }; p8 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s08_stage6clip with { fs = float(ma.SR); b0 = fs*(4.86576834283976e-12*fs + 6.31789783214569e-10) + 6.84578809362547e-11; b1 = -9.73153668567952e-12*pow(fs,2) + 1.36915761872509e-10; b2 = fs*(4.86576834283976e-12*fs - 6.31789783214569e-10) + 6.84578809362547e-11; a0 = fs*(4.33699283765577e-10*fs + 1.57671526976176e-8) + 2.6874624433038e-8; a1 = -8.67398567531154e-10*pow(fs,2) + 5.37492488660761e-8; a2 = fs*(4.33699283765577e-10*fs - 1.57671526976176e-8) + 2.6874624433038e-8; }; s08_stage6clip = _<: ba.if(signbit(_), s08_stage6_neg_clip, s08_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s08_stage6_clip = ffunction(float s08_stage6clip(float), "generated/stage/peavey_5150ii_crunch/s08_stage6_table.h", ""); s08_stage6_neg_clip = ffunction(float s08_stage6_negclip(float), "generated/stage/peavey_5150ii_crunch/s08_stage6_neg_table.h", ""); }; process = *(pregain) : // *(0.2) : *(0.1) : p1 : // *(1.05) : *(0.7) : p2 : *(1.35) : p3 : p4 : // *(2.15) : *(2.4) : p5 : // *(3.4) : *(4.9) : p6 : // *(5.0) : *(10.24) : p7 : // *(11.8) : *(21.9) : p8 : // *(71.5) : *(75.21) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/peavey_5150ii_crunch.dsp
faust
* Simulation of Peavey 5150II crunch channel * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *(0.2) : *(1.05) : *(2.15) : *(3.4) : *(5.0) : *(11.8) : *(71.5) :
declare id "peavey_5150ii_crunch"; declare name "peavey_5150ii_crunch"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s01_stage1clip with { fs = float(ma.SR); b0 = pow(fs,2)*(-1.41619366649534e-13*fs - 8.63532723472799e-13); b1 = 2.83238733299068e-13*pow(fs,3); b2 = 1.7270654469456e-12*pow(fs,2); b3 = -2.83238733299068e-13*pow(fs,3); b4 = pow(fs,2)*(1.41619366649534e-13*fs - 8.63532723472799e-13); a0 = fs*(fs*(fs*(6.72246728677859e-21*fs + 8.7052636265908e-15) + 6.86307224330787e-13) + 1.208780256712e-11) + 4.40771504790753e-11; a1 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs - 1.74105272531816e-14) + 2.41756051342399e-11) + 1.76308601916301e-10; a2 = pow(fs,2)*(4.03348037206715e-20*pow(fs,2) - 1.37261444866157e-12) + 2.64462902874452e-10; a3 = fs*(pow(fs,2)*(-2.68898691471143e-20*fs + 1.74105272531816e-14) - 2.41756051342399e-11) + 1.76308601916301e-10; a4 = fs*(fs*(fs*(6.72246728677859e-21*fs - 8.7052636265908e-15) + 6.86307224330787e-13) - 1.208780256712e-11) + 4.40771504790753e-11; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/peavey_5150ii_crunch/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/peavey_5150ii_crunch/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s02_stage2clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(fs*(4.65094790958669e-17*fs + 1.37304022225245e-13) + 7.25018598718153e-11) + fs*(fs*(fs*(-4.65094790958669e-17*fs - 1.40723836864647e-13) - 8.25977438589657e-11) - 5.33101910822171e-9)); b1 = gain*(pow(fs,3)*gain*(-1.86037916383467e-16*fs - 2.7460804445049e-13) + fs*(pow(fs,2)*(1.86037916383467e-16*fs + 2.81447673729294e-13) - 1.06620382164434e-8)); b2 = gain*(pow(fs,2)*gain*(2.79056874575201e-16*pow(fs,2) - 1.45003719743631e-10) + pow(fs,2)*(-2.79056874575201e-16*pow(fs,2) + 1.65195487717931e-10)); b3 = gain*(pow(fs,3)*gain*(-1.86037916383467e-16*fs + 2.7460804445049e-13) + fs*(pow(fs,2)*(1.86037916383467e-16*fs - 2.81447673729294e-13) + 1.06620382164434e-8)); b4 = gain*(pow(fs,2)*gain*(fs*(4.65094790958669e-17*fs - 1.37304022225245e-13) + 7.25018598718153e-11) + fs*(fs*(fs*(-4.65094790958669e-17*fs + 1.40723836864647e-13) - 8.25977438589657e-11) + 5.33101910822171e-9)); a0 = fs*(fs*(1.96553718457028e-16*fs + 1.13349301191717e-12) + 1.11617868321251e-9) + gain*(fs*gain*(fs*(fs*(-6.53431917359364e-19*fs - 4.15013217407039e-15) - 4.94521757525643e-12) - 1.12107818776202e-9) + fs*(fs*(fs*(6.53431917359364e-19*fs + 4.00162492012508e-15) + 4.12028433597e-12) + 4.0496760992863e-10) + 6.22821215423343e-8) + 5.85451942497945e-8; a1 = fs*(-3.93107436914056e-16*pow(fs,2) + 2.23235736642502e-9) + gain*(fs*gain*(pow(fs,2)*(2.61372766943745e-18*fs + 8.30026434814079e-15) - 2.24215637552403e-9) + fs*(pow(fs,2)*(-2.61372766943745e-18*fs - 8.00324984025017e-15) + 8.09935219857261e-10) + 2.49128486169337e-7) + 2.34180776999178e-7; a2 = -2.26698602383433e-12*pow(fs,2) + gain*(pow(fs,2)*gain*(-3.92059150415618e-18*pow(fs,2) + 9.89043515051286e-12) + pow(fs,2)*(3.92059150415618e-18*pow(fs,2) - 8.24056867194e-12) + 3.73692729254006e-7) + 3.51271165498767e-7; a3 = fs*(3.93107436914056e-16*pow(fs,2) - 2.23235736642502e-9) + gain*(fs*gain*(pow(fs,2)*(2.61372766943745e-18*fs - 8.30026434814079e-15) + 2.24215637552403e-9) + fs*(pow(fs,2)*(-2.61372766943745e-18*fs + 8.00324984025017e-15) - 8.09935219857261e-10) + 2.49128486169337e-7) + 2.34180776999178e-7; a4 = fs*(fs*(-1.96553718457028e-16*fs + 1.13349301191717e-12) - 1.11617868321251e-9) + gain*(fs*gain*(fs*(fs*(-6.53431917359364e-19*fs + 4.15013217407039e-15) - 4.94521757525643e-12) + 1.12107818776202e-9) + fs*(fs*(fs*(6.53431917359364e-19*fs - 4.00162492012508e-15) + 4.12028433597e-12) - 4.0496760992863e-10) + 6.22821215423343e-8) + 5.85451942497945e-8; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/peavey_5150ii_crunch/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/peavey_5150ii_crunch/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.000471052261884848*fs - 0.0486624237484344; b1 = 0.000471052261884848*fs - 0.0486624237484344; a0 = 2.07565118653794e-5*fs + 0.00368743046178661; a1 = -2.07565118653794e-5*fs + 0.00368743046178661; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/peavey_5150ii_crunch/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/peavey_5150ii_crunch/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) with { fs = float(ma.SR); b0 = 5.82287201278019e-6*fs + 0.00107591870154845; b1 = -5.82287201278019e-6*fs + 0.00107591870154845; a0 = 2.07583450601951e-5*fs + 0.0035994371106348; a1 = -2.07583450601951e-5*fs + 0.0035994371106348; }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); bass = ampctrl.bass : LogPot(3) : si.smooth(0.999); middle = ampctrl.middle : LogPot(3) : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; master = ampctrl.master : LogPot(3) : si.smooth(0.999); b0 = bass*fs*(9.89404969304451e-12*fs + 2.81767586220316e-8) + fs*(2.47351242326113e-13*fs + 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(-2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(2.4367228397506e-16*fs + 9.70550136098047e-13) + 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(4.54625321338628e-13*fs + 3.95761987721781e-10) + 1.12707034488126e-6) + fs*(fs*(2.27312660669314e-14*fs + 3.05588370266185e-11) + 3.52927322217472e-8)) + fs*(fs*(2.84140825836642e-16*fs + 5.1661968333935e-13) + 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(3.89875654360096e-13*fs + 1.23977737936939e-9) + fs*(fs*(-1.2984374707929e-14*fs + 2.89279557508774e-11) - 7.11597359971556e-10)) + fs*(fs*(-5.68281651673284e-16*fs - 7.63970925665462e-13) - 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(-1.94937827180048e-14*fs - 6.19888689684695e-11) + pow(fs,2)*middle*(2.4367228397506e-16*fs + 7.74860862105869e-13) + fs*(fs*(4.04685418615824e-17*fs - 9.70550136098047e-13) - 6.86629031551501e-10)))); b1 = bass*fs*(-9.89404969304451e-12*fs + 2.81767586220316e-8) + fs*(-2.47351242326113e-13*fs + 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(-2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(-7.3101685192518e-16*fs - 9.70550136098047e-13) + 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(-1.36387596401588e-12*fs - 3.95761987721781e-10) + 1.12707034488126e-6) + fs*(fs*(-6.81937982007941e-14*fs - 3.05588370266185e-11) + 3.52927322217472e-8)) + fs*(fs*(-8.52422477509927e-16*fs - 5.1661968333935e-13) + 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(-1.16962696308029e-12*fs - 1.23977737936939e-9) + fs*(fs*(3.8953124123787e-14*fs - 2.89279557508774e-11) - 7.11597359971556e-10)) + fs*(fs*(1.70484495501985e-15*fs + 7.63970925665462e-13) - 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(5.84813481540144e-14*fs + 6.19888689684695e-11) + pow(fs,2)*middle*(-7.3101685192518e-16*fs - 7.74860862105869e-13) + fs*(fs*(-1.21405625584747e-16*fs + 9.70550136098047e-13) - 6.86629031551501e-10)))); b2 = bass*fs*(-9.89404969304451e-12*fs - 2.81767586220316e-8) + fs*(-2.47351242326113e-13*fs - 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(-7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(7.3101685192518e-16*fs - 9.70550136098047e-13) - 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(1.36387596401588e-12*fs - 3.95761987721781e-10) - 1.12707034488126e-6) + fs*(fs*(6.81937982007941e-14*fs - 3.05588370266185e-11) - 3.52927322217472e-8)) + fs*(fs*(8.52422477509927e-16*fs - 5.1661968333935e-13) - 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(1.16962696308029e-12*fs - 1.23977737936939e-9) + fs*(fs*(-3.8953124123787e-14*fs - 2.89279557508774e-11) + 7.11597359971556e-10)) + fs*(fs*(-1.70484495501985e-15*fs + 7.63970925665462e-13) + 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(-5.84813481540144e-14*fs + 6.19888689684695e-11) + pow(fs,2)*middle*(7.3101685192518e-16*fs - 7.74860862105869e-13) + fs*(fs*(1.21405625584747e-16*fs + 9.70550136098047e-13) + 6.86629031551501e-10)))); b3 = bass*fs*(9.89404969304451e-12*fs - 2.81767586220316e-8) + fs*(2.47351242326113e-13*fs - 7.0441896555079e-10) + middle*(bass*pow(fs,2)*(-9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(-2.4367228397506e-16*fs + 9.70550136098047e-13) - 6.86629031551501e-10)) + treble*(bass*(bass*fs*(fs*(-4.54625321338628e-13*fs + 3.95761987721781e-10) - 1.12707034488126e-6) + fs*(fs*(-2.27312660669314e-14*fs + 3.05588370266185e-11) - 3.52927322217472e-8)) + fs*(fs*(-2.84140825836642e-16*fs + 5.1661968333935e-13) - 1.77899339992889e-10) + middle*(bass*(bass*pow(fs,2)*(-3.89875654360096e-13*fs + 1.23977737936939e-9) + fs*(fs*(1.2984374707929e-14*fs + 2.89279557508774e-11) + 7.11597359971556e-10)) + fs*(fs*(5.68281651673284e-16*fs - 7.63970925665462e-13) + 8.82318305543679e-10) + middle*(bass*pow(fs,2)*(1.94937827180048e-14*fs - 6.19888689684695e-11) + pow(fs,2)*middle*(-2.4367228397506e-16*fs + 7.74860862105869e-13) + fs*(fs*(-4.04685418615824e-17*fs - 9.70550136098047e-13) + 6.86629031551501e-10)))); a0 = bass*fs*(fs*(1.13656330334657e-14*fs + 4.97734638455557e-11) + 2.81767586220316e-8) + fs*(fs*(2.84140825836642e-16*fs + 1.76095627947824e-12) + 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(-2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(-4.04685418615824e-17*fs - 2.64352177147328e-14) + 6.86629031551501e-10)) + 6.24208210501365e-7; a1 = bass*fs*(fs*(-3.40968991003971e-14*fs - 4.97734638455557e-11) + 2.81767586220316e-8) + fs*(fs*(-8.52422477509927e-16*fs - 1.76095627947824e-12) + 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(-2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(1.21405625584747e-16*fs + 2.64352177147328e-14) + 6.86629031551501e-10)) + 1.87262463150409e-6; a2 = bass*fs*(fs*(3.40968991003971e-14*fs - 4.97734638455557e-11) - 2.81767586220316e-8) + fs*(fs*(8.52422477509927e-16*fs - 1.76095627947824e-12) - 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(2.92406740770072e-14*fs - 3.09944344842348e-11) + pow(fs,2)*middle*(-7.3101685192518e-16*fs + 7.74860862105869e-13) + fs*(fs*(-1.21405625584747e-16*fs + 2.64352177147328e-14) - 6.86629031551501e-10)) + 1.87262463150409e-6; a3 = bass*fs*(fs*(-1.13656330334657e-14*fs + 4.97734638455557e-11) - 2.81767586220316e-8) + fs*(fs*(-2.84140825836642e-16*fs + 1.76095627947824e-12) - 2.69501894883964e-9) + middle*(bass*pow(fs,2)*(-9.74689135900239e-15*fs + 3.09944344842348e-11) + pow(fs,2)*middle*(2.4367228397506e-16*fs - 7.74860862105869e-13) + fs*(fs*(4.04685418615824e-17*fs - 2.64352177147328e-14) - 6.86629031551501e-10)) + 6.24208210501365e-7; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : s06_stage4clip with { fs = float(ma.SR); b0 = 8.82123032648896e-15*pow(fs,3); b1 = -2.64636909794669e-14*pow(fs,3); b2 = 2.64636909794669e-14*pow(fs,3); b3 = -8.82123032648896e-15*pow(fs,3); a0 = fs*(fs*(9.03361060537002e-15*fs + 4.14420870053604e-13) + 2.29677429297512e-12) + 1.14901989819789e-12; a1 = fs*(fs*(-2.71008318161101e-14*fs - 4.14420870053604e-13) + 2.29677429297512e-12) + 3.44705969459367e-12; a2 = fs*(fs*(2.71008318161101e-14*fs - 4.14420870053604e-13) - 2.29677429297512e-12) + 3.44705969459367e-12; a3 = fs*(fs*(-9.03361060537002e-15*fs + 4.14420870053604e-13) - 2.29677429297512e-12) + 1.14901989819789e-12; }; s06_stage4clip = _<: ba.if(signbit(_), s06_stage4_neg_clip, s06_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage4_clip = ffunction(float s06_stage4clip(float), "generated/stage/peavey_5150ii_crunch/s06_stage4_table.h", ""); s06_stage4_neg_clip = ffunction(float s06_stage4_negclip(float), "generated/stage/peavey_5150ii_crunch/s06_stage4_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s07_stage5clip with { fs = float(ma.SR); b0 = fs*(-6.2021647107889e-9*fs - 0.000199940835293); b1 = 1.24043294215778e-8*pow(fs,2); b2 = fs*(-6.2021647107889e-9*fs + 0.000199940835293); a0 = fs*(1.3725322285498e-10*fs + 1.42420224832928e-5) + 0.00015149534407047; a1 = -2.74506445709959e-10*pow(fs,2) + 0.00030299068814094; a2 = fs*(1.3725322285498e-10*fs - 1.42420224832928e-5) + 0.00015149534407047; }; s07_stage5clip = _<: ba.if(signbit(_), s07_stage5_neg_clip, s07_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s07_stage5_clip = ffunction(float s07_stage5clip(float), "generated/stage/peavey_5150ii_crunch/s07_stage5_table.h", ""); s07_stage5_neg_clip = ffunction(float s07_stage5_negclip(float), "generated/stage/peavey_5150ii_crunch/s07_stage5_neg_table.h", ""); }; p8 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s08_stage6clip with { fs = float(ma.SR); b0 = fs*(4.86576834283976e-12*fs + 6.31789783214569e-10) + 6.84578809362547e-11; b1 = -9.73153668567952e-12*pow(fs,2) + 1.36915761872509e-10; b2 = fs*(4.86576834283976e-12*fs - 6.31789783214569e-10) + 6.84578809362547e-11; a0 = fs*(4.33699283765577e-10*fs + 1.57671526976176e-8) + 2.6874624433038e-8; a1 = -8.67398567531154e-10*pow(fs,2) + 5.37492488660761e-8; a2 = fs*(4.33699283765577e-10*fs - 1.57671526976176e-8) + 2.6874624433038e-8; }; s08_stage6clip = _<: ba.if(signbit(_), s08_stage6_neg_clip, s08_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s08_stage6_clip = ffunction(float s08_stage6clip(float), "generated/stage/peavey_5150ii_crunch/s08_stage6_table.h", ""); s08_stage6_neg_clip = ffunction(float s08_stage6_negclip(float), "generated/stage/peavey_5150ii_crunch/s08_stage6_neg_table.h", ""); }; process = *(pregain) : *(0.1) : p1 : *(0.7) : p2 : *(1.35) : p3 : p4 : *(2.4) : p5 : *(4.9) : p6 : *(10.24) : p7 : *(21.9) : p8 : *(75.21) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
7ac3a291b90a1aa19df6f708067eaedac688759169f3b443ed4a57cb9f9c29d8
sadko4u/tamgamp.lv2
marshall_jcm800lo.dsp
/* * Simulation of Marshall JCM-800 Low-gain input * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "marshall_jcm800lo"; declare name "marshall_jcm800lo"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(1.18724587211056e-8*fs + 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs - 3.28091553929331e-5) - 0.0134364630161901); b1 = gain*(-2.37449174422112e-8*pow(fs,2)*gain + 2.37449174422112e-8*pow(fs,2) - 0.0268729260323803); b2 = gain*(fs*gain*(1.18724587211056e-8*fs - 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs + 3.28091553929331e-5) - 0.0134364630161901); a0 = 2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs - 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs + 1.83330739030423e-6)) + 0.00254241685259171; a1 = gain*(3.05643473598644e-9*pow(fs,2)*gain - 3.05643473598644e-9*pow(fs,2)) + 0.00508483370518342; a2 = -2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs + 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs - 1.83330739030423e-6)) + 0.00254241685259171; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/marshall_jcm800lo/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/marshall_jcm800lo/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.000807713873033297*fs - 1.8282342078617; b1 = 0.000807713873033297*fs - 1.8282342078617; a0 = 1.90378516271373e-5*fs + 0.0861831218974076; a1 = -1.90378516271373e-5*fs + 0.0861831218974076; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/marshall_jcm800lo/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/marshall_jcm800lo/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); bass = ampctrl.bass : LogPot(10) : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; master = ampctrl.master : si.smooth(0.999); b0 = master*(bass*(bass*(-5.40199666291365e-12*pow(fs,3)*treble + pow(fs,2)*middle*(-4.14153077490047e-12*fs - 1.77865988241706e-8) + fs*(-4.83649838966099e-9*fs - 1.83745855621597e-5)) + fs*(-2.12805929145083e-10*fs - 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(1.82227354095621e-13*fs + 7.82610348263506e-10) + fs*(fs*(-1.82227354095621e-13*fs - 7.58055817977535e-10) + 8.45541676514158e-9)) + treble*(2.37687853168201e-13*pow(fs,3)*middle + fs*(fs*(-2.37687853168201e-13*fs - 2.45545302859712e-10) - 8.45541676514158e-8))) + fs*(-2.34086522059592e-12*fs - 8.8932994120853e-9) + middle*(fs*(fs*(-2.00450089505183e-15*fs - 8.0685141646072e-12) + 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(-2.00450089505183e-15*fs - 8.60871383089857e-12) + fs*(fs*(4.00900179010365e-15*fs + 1.90180932161017e-11) + 8.70728024325218e-9))) + treble*(fs*(fs*(-2.61456638485021e-15*fs - 5.40199666291365e-12) - 1.86019168833115e-9) + middle*(-2.61456638485021e-15*pow(fs,3)*middle + fs*(fs*(5.22913276970042e-15*fs + 5.40199666291365e-12) + 1.86019168833115e-9)))); b1 = master*(bass*(bass*(1.6205989988741e-11*pow(fs,3)*treble + pow(fs,2)*middle*(1.24245923247014e-11*fs + 1.77865988241706e-8) + fs*(4.83649838966099e-9*fs - 1.83745855621597e-5)) + fs*(2.12805929145083e-10*fs - 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(-5.46682062286862e-13*fs - 7.82610348263506e-10) + fs*(fs*(5.46682062286862e-13*fs + 7.58055817977535e-10) + 8.45541676514158e-9)) + treble*(-7.13063559504602e-13*pow(fs,3)*middle + fs*(fs*(7.13063559504602e-13*fs + 2.45545302859712e-10) - 8.45541676514158e-8))) + fs*(2.34086522059592e-12*fs - 8.8932994120853e-9) + middle*(fs*(fs*(6.01350268515548e-15*fs + 8.0685141646072e-12) + 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(6.01350268515548e-15*fs + 8.60871383089857e-12) + fs*(fs*(-1.2027005370311e-14*fs - 1.90180932161017e-11) + 8.70728024325218e-9))) + treble*(fs*(fs*(7.84369915455063e-15*fs + 5.40199666291365e-12) - 1.86019168833115e-9) + middle*(7.84369915455063e-15*pow(fs,3)*middle + fs*(fs*(-1.56873983091013e-14*fs - 5.40199666291365e-12) + 1.86019168833115e-9)))); b2 = master*(bass*(bass*(-1.6205989988741e-11*pow(fs,3)*treble + pow(fs,2)*middle*(-1.24245923247014e-11*fs + 1.77865988241706e-8) + fs*(4.83649838966099e-9*fs + 1.83745855621597e-5)) + fs*(2.12805929145083e-10*fs + 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(5.46682062286862e-13*fs - 7.82610348263506e-10) + fs*(fs*(-5.46682062286862e-13*fs + 7.58055817977535e-10) - 8.45541676514158e-9)) + treble*(7.13063559504602e-13*pow(fs,3)*middle + fs*(fs*(-7.13063559504602e-13*fs + 2.45545302859712e-10) + 8.45541676514158e-8))) + fs*(2.34086522059592e-12*fs + 8.8932994120853e-9) + middle*(fs*(fs*(-6.01350268515548e-15*fs + 8.0685141646072e-12) - 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(-6.01350268515548e-15*fs + 8.60871383089857e-12) + fs*(fs*(1.2027005370311e-14*fs - 1.90180932161017e-11) - 8.70728024325218e-9))) + treble*(fs*(fs*(-7.84369915455063e-15*fs + 5.40199666291365e-12) + 1.86019168833115e-9) + middle*(-7.84369915455063e-15*pow(fs,3)*middle + fs*(fs*(1.56873983091013e-14*fs - 5.40199666291365e-12) - 1.86019168833115e-9)))); b3 = master*(bass*(bass*(5.40199666291365e-12*pow(fs,3)*treble + pow(fs,2)*middle*(4.14153077490047e-12*fs - 1.77865988241706e-8) + fs*(-4.83649838966099e-9*fs + 1.83745855621597e-5)) + fs*(-2.12805929145083e-10*fs + 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(-1.82227354095621e-13*fs + 7.82610348263506e-10) + fs*(fs*(1.82227354095621e-13*fs - 7.58055817977535e-10) - 8.45541676514158e-9)) + treble*(-2.37687853168201e-13*pow(fs,3)*middle + fs*(fs*(2.37687853168201e-13*fs - 2.45545302859712e-10) + 8.45541676514158e-8))) + fs*(-2.34086522059592e-12*fs + 8.8932994120853e-9) + middle*(fs*(fs*(2.00450089505183e-15*fs - 8.0685141646072e-12) - 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(2.00450089505183e-15*fs - 8.60871383089857e-12) + fs*(fs*(-4.00900179010365e-15*fs + 1.90180932161017e-11) - 8.70728024325218e-9))) + treble*(fs*(fs*(2.61456638485021e-15*fs - 5.40199666291365e-12) + 1.86019168833115e-9) + middle*(2.61456638485021e-15*pow(fs,3)*middle + fs*(fs*(-5.22913276970042e-15*fs + 5.40199666291365e-12) - 1.86019168833115e-9)))); a0 = bass*(fs*middle*(fs*(8.52074940296914e-15*fs + 3.68862555090236e-11) + 7.91570931204744e-10) + fs*(fs*(1.08039933258273e-14*fs + 6.24077688445545e-11) + 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(1.3468978346198e-15*fs + 7.49870974548878e-12) + fs*(fs*(2.37687853168201e-15*fs + 1.26394880011049e-11) + 7.74660097674461e-9) + treble*(-1.58458568778801e-15*pow(fs,3)*middle + pow(fs,2)*(-2.37687853168201e-15*fs - 1.63696868573141e-12))) + 8.17738565294157e-7) + fs*(fs*(2.37687853168201e-16*fs + 1.86406152029962e-12) + 3.40826695848827e-9) + middle*(fs*middle*(fs*(-1.87456486865321e-16*fs - 8.1149762119852e-13) - 1.74145604865044e-11) + fs*(fs*(-5.02313663028798e-17*fs - 1.74166502337627e-13) + 8.08985491691248e-10)) + treble*(fs*(fs*(5.22913276970042e-17*fs + 3.8610866928258e-13) + 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(-2.96317523616357e-17*fs - 1.64971614400753e-13) + fs*(fs*(-2.26595753353685e-17*fs - 5.18744927771992e-14) + 1.74145604865044e-10)) + treble*(fs*(fs*(-5.22913276970042e-17*fs - 1.44053244344364e-13) - 3.7203833766623e-11) + middle*(3.48608851313361e-17*pow(fs,3)*middle + pow(fs,2)*(1.74304425656681e-17*fs - 3.6013311086091e-14))) + 1.79902484364715e-7) + 8.35728813730628e-7; a1 = bass*(fs*middle*(fs*(-2.55622482089074e-14*fs - 3.68862555090236e-11) + 7.91570931204744e-10) + fs*(fs*(-3.24119799774819e-14*fs - 6.24077688445545e-11) + 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(-4.04069350385941e-15*fs - 7.49870974548878e-12) + fs*(fs*(-7.13063559504602e-15*fs - 1.26394880011049e-11) + 7.74660097674461e-9) + treble*(4.75375706336402e-15*pow(fs,3)*middle + pow(fs,2)*(7.13063559504602e-15*fs + 1.63696868573141e-12))) + 2.45321569588247e-6) + fs*(fs*(-7.13063559504602e-16*fs - 1.86406152029962e-12) + 3.40826695848827e-9) + middle*(fs*middle*(fs*(5.62369460595963e-16*fs + 8.1149762119852e-13) - 1.74145604865044e-11) + fs*(fs*(1.50694098908639e-16*fs + 1.74166502337627e-13) + 8.08985491691248e-10)) + treble*(fs*(fs*(-1.56873983091013e-16*fs - 3.8610866928258e-13) + 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(8.88952570849071e-17*fs + 1.64971614400753e-13) + fs*(fs*(6.79787260061054e-17*fs + 5.18744927771992e-14) + 1.74145604865044e-10)) + treble*(fs*(fs*(1.56873983091013e-16*fs + 1.44053244344364e-13) - 3.7203833766623e-11) + middle*(-1.04582655394008e-16*pow(fs,3)*middle + pow(fs,2)*(-5.22913276970042e-17*fs + 3.6013311086091e-14))) + 5.39707453094144e-7) + 2.50718644119189e-6; a2 = bass*(fs*middle*(fs*(2.55622482089074e-14*fs - 3.68862555090236e-11) - 7.91570931204744e-10) + fs*(fs*(3.24119799774819e-14*fs - 6.24077688445545e-11) - 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(4.04069350385941e-15*fs - 7.49870974548878e-12) + fs*(fs*(7.13063559504602e-15*fs - 1.26394880011049e-11) - 7.74660097674461e-9) + treble*(-4.75375706336402e-15*pow(fs,3)*middle + pow(fs,2)*(-7.13063559504602e-15*fs + 1.63696868573141e-12))) + 2.45321569588247e-6) + fs*(fs*(7.13063559504602e-16*fs - 1.86406152029962e-12) - 3.40826695848827e-9) + middle*(fs*middle*(fs*(-5.62369460595963e-16*fs + 8.1149762119852e-13) + 1.74145604865044e-11) + fs*(fs*(-1.50694098908639e-16*fs + 1.74166502337627e-13) - 8.08985491691248e-10)) + treble*(fs*(fs*(1.56873983091013e-16*fs - 3.8610866928258e-13) - 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(-8.88952570849071e-17*fs + 1.64971614400753e-13) + fs*(fs*(-6.79787260061054e-17*fs + 5.18744927771992e-14) - 1.74145604865044e-10)) + treble*(fs*(fs*(-1.56873983091013e-16*fs + 1.44053244344364e-13) + 3.7203833766623e-11) + middle*(1.04582655394008e-16*pow(fs,3)*middle + pow(fs,2)*(5.22913276970042e-17*fs + 3.6013311086091e-14))) + 5.39707453094144e-7) + 2.50718644119189e-6; a3 = bass*(fs*middle*(fs*(-8.52074940296914e-15*fs + 3.68862555090236e-11) - 7.91570931204744e-10) + fs*(fs*(-1.08039933258273e-14*fs + 6.24077688445545e-11) - 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(-1.3468978346198e-15*fs + 7.49870974548878e-12) + fs*(fs*(-2.37687853168201e-15*fs + 1.26394880011049e-11) - 7.74660097674461e-9) + treble*(1.58458568778801e-15*pow(fs,3)*middle + pow(fs,2)*(2.37687853168201e-15*fs - 1.63696868573141e-12))) + 8.17738565294157e-7) + fs*(fs*(-2.37687853168201e-16*fs + 1.86406152029962e-12) - 3.40826695848827e-9) + middle*(fs*middle*(fs*(1.87456486865321e-16*fs - 8.1149762119852e-13) + 1.74145604865044e-11) + fs*(fs*(5.02313663028798e-17*fs - 1.74166502337627e-13) - 8.08985491691248e-10)) + treble*(fs*(fs*(-5.22913276970042e-17*fs + 3.8610866928258e-13) - 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(2.96317523616357e-17*fs - 1.64971614400753e-13) + fs*(fs*(2.26595753353685e-17*fs - 5.18744927771992e-14) - 1.74145604865044e-10)) + treble*(fs*(fs*(5.22913276970042e-17*fs - 1.44053244344364e-13) + 3.7203833766623e-11) + middle*(-3.48608851313361e-17*pow(fs,3)*middle + pow(fs,2)*(-1.74304425656681e-17*fs - 3.6013311086091e-14))) + 1.79902484364715e-7) + 8.35728813730628e-7; }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s05_stage4clip with { fs = float(ma.SR); presence = ampctrl.presence : si.smooth(0.999); b0 = pow(fs,2)*presence*(fs*(1.01658253199921e-20*fs + 1.94491729153694e-15) + 9.62805428549019e-15) + fs*(fs*(2.31041484545276e-18*fs + 4.42026657167486e-13) + 2.18819415579322e-12); b1 = pow(fs,3)*presence*(-4.06633012799685e-20*fs - 3.88983458307388e-15) + fs*(-4.62082969090551e-18*pow(fs,2) + 4.37638831158645e-12); b2 = pow(fs,2)*presence*(6.09949519199528e-20*pow(fs,2) - 1.92561085709804e-14) - 8.84053314334972e-13*pow(fs,2); b3 = pow(fs,3)*presence*(-4.06633012799685e-20*fs + 3.88983458307388e-15) + fs*(4.62082969090551e-18*pow(fs,2) - 4.37638831158645e-12); b4 = pow(fs,2)*presence*(fs*(1.01658253199921e-20*fs - 1.94491729153694e-15) + 9.62805428549019e-15) + fs*(fs*(-2.31041484545276e-18*fs + 4.42026657167486e-13) - 2.18819415579322e-12); a0 = fs*presence*(fs*(fs*(5.74478583620837e-20*fs + 1.05646886954294e-14) + 1.3795504704645e-13) + 1.15188971565309e-13) + fs*(fs*(fs*(1.00564523200911e-20*fs + 1.84640338108797e-15) + 2.4282553920437e-12) + 3.1377111557384e-11) + 2.61793117193885e-11; a1 = fs*presence*(pow(fs,2)*(-2.29791433448335e-19*fs - 2.11293773908589e-14) + 2.30377943130619e-13) + fs*(pow(fs,2)*(-4.02258092803644e-20*fs - 3.69280676217593e-15) + 6.2754223114768e-11) + 1.04717246877554e-10; a2 = pow(fs,2)*presence*(3.44687150172502e-19*pow(fs,2) - 2.75910094092901e-13) + pow(fs,2)*(6.03387139205466e-20*pow(fs,2) - 4.85651078408741e-12) + 1.57075870316331e-10; a3 = fs*presence*(pow(fs,2)*(-2.29791433448335e-19*fs + 2.11293773908589e-14) - 2.30377943130619e-13) + fs*(pow(fs,2)*(-4.02258092803644e-20*fs + 3.69280676217593e-15) - 6.2754223114768e-11) + 1.04717246877554e-10; a4 = fs*presence*(fs*(fs*(5.74478583620837e-20*fs - 1.05646886954294e-14) + 1.3795504704645e-13) - 1.15188971565309e-13) + fs*(fs*(fs*(1.00564523200911e-20*fs - 1.84640338108797e-15) + 2.4282553920437e-12) - 3.1377111557384e-11) + 2.61793117193885e-11; }; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/marshall_jcm800lo/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/marshall_jcm800lo/s05_stage4_neg_table.h", ""); }; process = *(pregain) : // *(6.5) : *(7.86) : p2 : *(14.280) : // *(15.85) : p3 : p4 : *(31.6) : // *(31.6) : p5 *(15.85) // *(15.85) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/marshall_jcm800lo.dsp
faust
* Simulation of Marshall JCM-800 Low-gain input * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *(6.5) : *(15.85) : *(31.6) : *(15.85) :
declare id "marshall_jcm800lo"; declare name "marshall_jcm800lo"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(fs*gain*(1.18724587211056e-8*fs + 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs - 3.28091553929331e-5) - 0.0134364630161901); b1 = gain*(-2.37449174422112e-8*pow(fs,2)*gain + 2.37449174422112e-8*pow(fs,2) - 0.0268729260323803); b2 = gain*(fs*gain*(1.18724587211056e-8*fs - 2.68729260323803e-5) + fs*(-1.18724587211056e-8*fs + 3.28091553929331e-5) - 0.0134364630161901); a0 = 2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs - 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs + 1.83330739030423e-6)) + 0.00254241685259171; a1 = gain*(3.05643473598644e-9*pow(fs,2)*gain - 3.05643473598644e-9*pow(fs,2)) + 0.00508483370518342; a2 = -2.38987184143621e-6*fs + gain*(fs*gain*(-1.52821736799322e-9*fs + 3.45907054774382e-6) + fs*(1.52821736799322e-9*fs - 1.83330739030423e-6)) + 0.00254241685259171; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/marshall_jcm800lo/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/marshall_jcm800lo/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.000807713873033297*fs - 1.8282342078617; b1 = 0.000807713873033297*fs - 1.8282342078617; a0 = 1.90378516271373e-5*fs + 0.0861831218974076; a1 = -1.90378516271373e-5*fs + 0.0861831218974076; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/marshall_jcm800lo/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/marshall_jcm800lo/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); bass = ampctrl.bass : LogPot(10) : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999) ; master = ampctrl.master : si.smooth(0.999); b0 = master*(bass*(bass*(-5.40199666291365e-12*pow(fs,3)*treble + pow(fs,2)*middle*(-4.14153077490047e-12*fs - 1.77865988241706e-8) + fs*(-4.83649838966099e-9*fs - 1.83745855621597e-5)) + fs*(-2.12805929145083e-10*fs - 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(1.82227354095621e-13*fs + 7.82610348263506e-10) + fs*(fs*(-1.82227354095621e-13*fs - 7.58055817977535e-10) + 8.45541676514158e-9)) + treble*(2.37687853168201e-13*pow(fs,3)*middle + fs*(fs*(-2.37687853168201e-13*fs - 2.45545302859712e-10) - 8.45541676514158e-8))) + fs*(-2.34086522059592e-12*fs - 8.8932994120853e-9) + middle*(fs*(fs*(-2.00450089505183e-15*fs - 8.0685141646072e-12) + 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(-2.00450089505183e-15*fs - 8.60871383089857e-12) + fs*(fs*(4.00900179010365e-15*fs + 1.90180932161017e-11) + 8.70728024325218e-9))) + treble*(fs*(fs*(-2.61456638485021e-15*fs - 5.40199666291365e-12) - 1.86019168833115e-9) + middle*(-2.61456638485021e-15*pow(fs,3)*middle + fs*(fs*(5.22913276970042e-15*fs + 5.40199666291365e-12) + 1.86019168833115e-9)))); b1 = master*(bass*(bass*(1.6205989988741e-11*pow(fs,3)*treble + pow(fs,2)*middle*(1.24245923247014e-11*fs + 1.77865988241706e-8) + fs*(4.83649838966099e-9*fs - 1.83745855621597e-5)) + fs*(2.12805929145083e-10*fs - 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(-5.46682062286862e-13*fs - 7.82610348263506e-10) + fs*(fs*(5.46682062286862e-13*fs + 7.58055817977535e-10) + 8.45541676514158e-9)) + treble*(-7.13063559504602e-13*pow(fs,3)*middle + fs*(fs*(7.13063559504602e-13*fs + 2.45545302859712e-10) - 8.45541676514158e-8))) + fs*(2.34086522059592e-12*fs - 8.8932994120853e-9) + middle*(fs*(fs*(6.01350268515548e-15*fs + 8.0685141646072e-12) + 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(6.01350268515548e-15*fs + 8.60871383089857e-12) + fs*(fs*(-1.2027005370311e-14*fs - 1.90180932161017e-11) + 8.70728024325218e-9))) + treble*(fs*(fs*(7.84369915455063e-15*fs + 5.40199666291365e-12) - 1.86019168833115e-9) + middle*(7.84369915455063e-15*pow(fs,3)*middle + fs*(fs*(-1.56873983091013e-14*fs - 5.40199666291365e-12) + 1.86019168833115e-9)))); b2 = master*(bass*(bass*(-1.6205989988741e-11*pow(fs,3)*treble + pow(fs,2)*middle*(-1.24245923247014e-11*fs + 1.77865988241706e-8) + fs*(4.83649838966099e-9*fs + 1.83745855621597e-5)) + fs*(2.12805929145083e-10*fs + 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(5.46682062286862e-13*fs - 7.82610348263506e-10) + fs*(fs*(-5.46682062286862e-13*fs + 7.58055817977535e-10) - 8.45541676514158e-9)) + treble*(7.13063559504602e-13*pow(fs,3)*middle + fs*(fs*(-7.13063559504602e-13*fs + 2.45545302859712e-10) + 8.45541676514158e-8))) + fs*(2.34086522059592e-12*fs + 8.8932994120853e-9) + middle*(fs*(fs*(-6.01350268515548e-15*fs + 8.0685141646072e-12) - 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(-6.01350268515548e-15*fs + 8.60871383089857e-12) + fs*(fs*(1.2027005370311e-14*fs - 1.90180932161017e-11) - 8.70728024325218e-9))) + treble*(fs*(fs*(-7.84369915455063e-15*fs + 5.40199666291365e-12) + 1.86019168833115e-9) + middle*(-7.84369915455063e-15*pow(fs,3)*middle + fs*(fs*(1.56873983091013e-14*fs - 5.40199666291365e-12) - 1.86019168833115e-9)))); b3 = master*(bass*(bass*(5.40199666291365e-12*pow(fs,3)*treble + pow(fs,2)*middle*(4.14153077490047e-12*fs - 1.77865988241706e-8) + fs*(-4.83649838966099e-9*fs + 1.83745855621597e-5)) + fs*(-2.12805929145083e-10*fs + 8.08481764735027e-7) + middle*(pow(fs,2)*middle*(-1.82227354095621e-13*fs + 7.82610348263506e-10) + fs*(fs*(1.82227354095621e-13*fs - 7.58055817977535e-10) - 8.45541676514158e-9)) + treble*(-2.37687853168201e-13*pow(fs,3)*middle + fs*(fs*(2.37687853168201e-13*fs - 2.45545302859712e-10) + 8.45541676514158e-8))) + fs*(-2.34086522059592e-12*fs + 8.8932994120853e-9) + middle*(fs*(fs*(2.00450089505183e-15*fs - 8.0685141646072e-12) - 1.86019168833115e-10) + middle*(pow(fs,2)*middle*(2.00450089505183e-15*fs - 8.60871383089857e-12) + fs*(fs*(-4.00900179010365e-15*fs + 1.90180932161017e-11) - 8.70728024325218e-9))) + treble*(fs*(fs*(2.61456638485021e-15*fs - 5.40199666291365e-12) + 1.86019168833115e-9) + middle*(2.61456638485021e-15*pow(fs,3)*middle + fs*(fs*(-5.22913276970042e-15*fs + 5.40199666291365e-12) - 1.86019168833115e-9)))); a0 = bass*(fs*middle*(fs*(8.52074940296914e-15*fs + 3.68862555090236e-11) + 7.91570931204744e-10) + fs*(fs*(1.08039933258273e-14*fs + 6.24077688445545e-11) + 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(1.3468978346198e-15*fs + 7.49870974548878e-12) + fs*(fs*(2.37687853168201e-15*fs + 1.26394880011049e-11) + 7.74660097674461e-9) + treble*(-1.58458568778801e-15*pow(fs,3)*middle + pow(fs,2)*(-2.37687853168201e-15*fs - 1.63696868573141e-12))) + 8.17738565294157e-7) + fs*(fs*(2.37687853168201e-16*fs + 1.86406152029962e-12) + 3.40826695848827e-9) + middle*(fs*middle*(fs*(-1.87456486865321e-16*fs - 8.1149762119852e-13) - 1.74145604865044e-11) + fs*(fs*(-5.02313663028798e-17*fs - 1.74166502337627e-13) + 8.08985491691248e-10)) + treble*(fs*(fs*(5.22913276970042e-17*fs + 3.8610866928258e-13) + 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(-2.96317523616357e-17*fs - 1.64971614400753e-13) + fs*(fs*(-2.26595753353685e-17*fs - 5.18744927771992e-14) + 1.74145604865044e-10)) + treble*(fs*(fs*(-5.22913276970042e-17*fs - 1.44053244344364e-13) - 3.7203833766623e-11) + middle*(3.48608851313361e-17*pow(fs,3)*middle + pow(fs,2)*(1.74304425656681e-17*fs - 3.6013311086091e-14))) + 1.79902484364715e-7) + 8.35728813730628e-7; a1 = bass*(fs*middle*(fs*(-2.55622482089074e-14*fs - 3.68862555090236e-11) + 7.91570931204744e-10) + fs*(fs*(-3.24119799774819e-14*fs - 6.24077688445545e-11) + 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(-4.04069350385941e-15*fs - 7.49870974548878e-12) + fs*(fs*(-7.13063559504602e-15*fs - 1.26394880011049e-11) + 7.74660097674461e-9) + treble*(4.75375706336402e-15*pow(fs,3)*middle + pow(fs,2)*(7.13063559504602e-15*fs + 1.63696868573141e-12))) + 2.45321569588247e-6) + fs*(fs*(-7.13063559504602e-16*fs - 1.86406152029962e-12) + 3.40826695848827e-9) + middle*(fs*middle*(fs*(5.62369460595963e-16*fs + 8.1149762119852e-13) - 1.74145604865044e-11) + fs*(fs*(1.50694098908639e-16*fs + 1.74166502337627e-13) + 8.08985491691248e-10)) + treble*(fs*(fs*(-1.56873983091013e-16*fs - 3.8610866928258e-13) + 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(8.88952570849071e-17*fs + 1.64971614400753e-13) + fs*(fs*(6.79787260061054e-17*fs + 5.18744927771992e-14) + 1.74145604865044e-10)) + treble*(fs*(fs*(1.56873983091013e-16*fs + 1.44053244344364e-13) - 3.7203833766623e-11) + middle*(-1.04582655394008e-16*pow(fs,3)*middle + pow(fs,2)*(-5.22913276970042e-17*fs + 3.6013311086091e-14))) + 5.39707453094144e-7) + 2.50718644119189e-6; a2 = bass*(fs*middle*(fs*(2.55622482089074e-14*fs - 3.68862555090236e-11) - 7.91570931204744e-10) + fs*(fs*(3.24119799774819e-14*fs - 6.24077688445545e-11) - 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(4.04069350385941e-15*fs - 7.49870974548878e-12) + fs*(fs*(7.13063559504602e-15*fs - 1.26394880011049e-11) - 7.74660097674461e-9) + treble*(-4.75375706336402e-15*pow(fs,3)*middle + pow(fs,2)*(-7.13063559504602e-15*fs + 1.63696868573141e-12))) + 2.45321569588247e-6) + fs*(fs*(7.13063559504602e-16*fs - 1.86406152029962e-12) - 3.40826695848827e-9) + middle*(fs*middle*(fs*(-5.62369460595963e-16*fs + 8.1149762119852e-13) + 1.74145604865044e-11) + fs*(fs*(-1.50694098908639e-16*fs + 1.74166502337627e-13) - 8.08985491691248e-10)) + treble*(fs*(fs*(1.56873983091013e-16*fs - 3.8610866928258e-13) - 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(-8.88952570849071e-17*fs + 1.64971614400753e-13) + fs*(fs*(-6.79787260061054e-17*fs + 5.18744927771992e-14) - 1.74145604865044e-10)) + treble*(fs*(fs*(-1.56873983091013e-16*fs + 1.44053244344364e-13) + 3.7203833766623e-11) + middle*(1.04582655394008e-16*pow(fs,3)*middle + pow(fs,2)*(5.22913276970042e-17*fs + 3.6013311086091e-14))) + 5.39707453094144e-7) + 2.50718644119189e-6; a3 = bass*(fs*middle*(fs*(-8.52074940296914e-15*fs + 3.68862555090236e-11) - 7.91570931204744e-10) + fs*(fs*(-1.08039933258273e-14*fs + 6.24077688445545e-11) - 3.92929922532365e-8) + treble*(pow(fs,2)*middle*(-1.3468978346198e-15*fs + 7.49870974548878e-12) + fs*(fs*(-2.37687853168201e-15*fs + 1.26394880011049e-11) - 7.74660097674461e-9) + treble*(1.58458568778801e-15*pow(fs,3)*middle + pow(fs,2)*(2.37687853168201e-15*fs - 1.63696868573141e-12))) + 8.17738565294157e-7) + fs*(fs*(-2.37687853168201e-16*fs + 1.86406152029962e-12) - 3.40826695848827e-9) + middle*(fs*middle*(fs*(1.87456486865321e-16*fs - 8.1149762119852e-13) + 1.74145604865044e-11) + fs*(fs*(5.02313663028798e-17*fs - 1.74166502337627e-13) - 8.08985491691248e-10)) + treble*(fs*(fs*(-5.22913276970042e-17*fs + 3.8610866928258e-13) - 7.30065869850135e-10) + middle*(pow(fs,2)*middle*(2.96317523616357e-17*fs - 1.64971614400753e-13) + fs*(fs*(2.26595753353685e-17*fs - 5.18744927771992e-14) - 1.74145604865044e-10)) + treble*(fs*(fs*(5.22913276970042e-17*fs - 1.44053244344364e-13) + 3.7203833766623e-11) + middle*(-3.48608851313361e-17*pow(fs,3)*middle + pow(fs,2)*(-1.74304425656681e-17*fs - 3.6013311086091e-14))) + 1.79902484364715e-7) + 8.35728813730628e-7; }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : s05_stage4clip with { fs = float(ma.SR); presence = ampctrl.presence : si.smooth(0.999); b0 = pow(fs,2)*presence*(fs*(1.01658253199921e-20*fs + 1.94491729153694e-15) + 9.62805428549019e-15) + fs*(fs*(2.31041484545276e-18*fs + 4.42026657167486e-13) + 2.18819415579322e-12); b1 = pow(fs,3)*presence*(-4.06633012799685e-20*fs - 3.88983458307388e-15) + fs*(-4.62082969090551e-18*pow(fs,2) + 4.37638831158645e-12); b2 = pow(fs,2)*presence*(6.09949519199528e-20*pow(fs,2) - 1.92561085709804e-14) - 8.84053314334972e-13*pow(fs,2); b3 = pow(fs,3)*presence*(-4.06633012799685e-20*fs + 3.88983458307388e-15) + fs*(4.62082969090551e-18*pow(fs,2) - 4.37638831158645e-12); b4 = pow(fs,2)*presence*(fs*(1.01658253199921e-20*fs - 1.94491729153694e-15) + 9.62805428549019e-15) + fs*(fs*(-2.31041484545276e-18*fs + 4.42026657167486e-13) - 2.18819415579322e-12); a0 = fs*presence*(fs*(fs*(5.74478583620837e-20*fs + 1.05646886954294e-14) + 1.3795504704645e-13) + 1.15188971565309e-13) + fs*(fs*(fs*(1.00564523200911e-20*fs + 1.84640338108797e-15) + 2.4282553920437e-12) + 3.1377111557384e-11) + 2.61793117193885e-11; a1 = fs*presence*(pow(fs,2)*(-2.29791433448335e-19*fs - 2.11293773908589e-14) + 2.30377943130619e-13) + fs*(pow(fs,2)*(-4.02258092803644e-20*fs - 3.69280676217593e-15) + 6.2754223114768e-11) + 1.04717246877554e-10; a2 = pow(fs,2)*presence*(3.44687150172502e-19*pow(fs,2) - 2.75910094092901e-13) + pow(fs,2)*(6.03387139205466e-20*pow(fs,2) - 4.85651078408741e-12) + 1.57075870316331e-10; a3 = fs*presence*(pow(fs,2)*(-2.29791433448335e-19*fs + 2.11293773908589e-14) - 2.30377943130619e-13) + fs*(pow(fs,2)*(-4.02258092803644e-20*fs + 3.69280676217593e-15) - 6.2754223114768e-11) + 1.04717246877554e-10; a4 = fs*presence*(fs*(fs*(5.74478583620837e-20*fs - 1.05646886954294e-14) + 1.3795504704645e-13) - 1.15188971565309e-13) + fs*(fs*(fs*(1.00564523200911e-20*fs - 1.84640338108797e-15) + 2.4282553920437e-12) - 3.1377111557384e-11) + 2.61793117193885e-11; }; s05_stage4clip = _<: ba.if(signbit(_), s05_stage4_neg_clip, s05_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s05_stage4_clip = ffunction(float s05_stage4clip(float), "generated/stage/marshall_jcm800lo/s05_stage4_table.h", ""); s05_stage4_neg_clip = ffunction(float s05_stage4_negclip(float), "generated/stage/marshall_jcm800lo/s05_stage4_neg_table.h", ""); }; process = *(pregain) : *(7.86) : p2 : *(14.280) : p3 : p4 : *(31.6) : p5 *(15.85) *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
88817584f49a4dad2ccf08054c32857a8c5cbd7a168ed435f1c557df94fa7cb7
guizmo2000/WebAudioPluginBank
OscTube.dsp
declare id "tube2"; import("stdfaust.lib"); import("music.lib"); import("effect.lib"); declare id "HighShelf"; import("maxmsp.lib"); // Simple bypass mecanism // Bypass an effect (fx:n->n). Once bypassed the effect is replaced by par(i,n,_). // Bypassed effects can be chained. // Example: _,_ : bypass(checkbox("bypass reverb"), freeverb) : _,_ bypass_fx(b, fx) = par(i, inputs(fx), _) <: ((block_on(b, fx):fx), block_off(b, fx)) :> par(i, outputs(fx), _) with { block_on(b, fx) = par(i, inputs(fx), _*(1-b)); block_off(b, fx) = par(i, inputs(fx), _*b); }; // Bypass an effect (fx:n->n) with 's' samples crossfades. Once bypassed the // effect is replaced by par(i,n,_). Bypassed effects can be chained. // Example: _,_ : bypass_fx_fade(checkbox("bypass reverb"), ma.SR/10, freeverb) : _,_ bypass_fade(b, s, fx) = par(i, inputs(fx), _) <: (par(i, inputs(fx), *(1-xb)) : fx : par(i, outputs(fx), *(1-xb))) , par(i, inputs(fx), *(xb)) :> par(i, outputs(fx), _) with { xb = ramp(s, b); ramp(n) = \(y,x).(if (y+1.0/n < x, y+1.0/n, if(y-1.0/n > x, y-1.0/n, x))) ~ _; if (c,t,e) = select2(c,e,t); }; // Bypass an effect (fx:n->n) with crossfades expressed in seconds. bypass_fade_sec(b, d, fx) = bypass_fx_fade(b, ba.sec2samp(d), fx); hs(x) = highShelf(x,F,G,Q) with { G = -20.; F = SR/2 -100.; Q = 100.; }; //process = +(anti_denormal_ac) : hs; /* -*- faust -*- */ /**************************************************************** ** helper definitions */ bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); //add_dc = +(anti_denormal); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; /**************************************************************** ** nonlinear functions */ // from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) valve = environment { ex(x) = (1 - exp(-x)); nlim = 50; // exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 /* 2 exp() */ tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); /* 4 exp() because contains 2 valve.tr */ vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : neg : vt(dist, q) : neg; vtu_(dist, q, g) = vt_scaled(dist, q) :neg : *(g) : vt_scaled(dist, q) : /(g) : neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); // simple triode circuit emulation Ftube = ffunction(float Ftube(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); tubestageF(tb,vplus,divider,fck,Rk,Vk0) = tube : hpf with { lpfk = lowpass(1,fck); Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tube = (+ : -(Vk0) : Ftube(tb) : +(VkC-vplus)) ~ (*(Rk/Rp) : lpfk) : /(divider); hpf = highpass(1,31.0); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); /**************************************************************** ** filter */ //---------------------second order Parametric Equalizer--------- // filter(Q,F,G) // Q : quality factor [1..100] // F : frequency (Hz) // G : gain [0..1] //--------------------------------------------------------------- // from "bandfilter.dsp" in the faust2pd distribution // which was released under the BSD license. eqfilter(Q,F,G) = TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(PI*F/SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); /**************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated */ //----- Flanging effect renamed in faust-0.9.27 from //----- flangermono -> flanger_mono //----- flangerstereo -> flanger_stereo flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); //----- Moog "Voltage Controlled Filter" (VCF) //----- filter renamed in faust-0.9.27 from //----- moogvcf -> moog_vcf import("filter.lib"); moogvcfN(Q,fr) = (+ : pole(p) : pole(p) : pole(p) : pole(p) : *(scale(p))) ~ *(mk) with { p = 1.0 - fr * 2.0 * PI / SR; // approx for fr << SR scale(p) = pow(1-p,4); mk = 0-Q; }; /**************************************************************** ** building blocks */ fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); /**************************************************************** ** parameter definitions for use in alternative module */ ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:St.df][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; resonator = (+ <: (delay(4096, d-1) + delay(4096, d))/2.0)~*(1.0-a) with { d = 1 - vslider("Vibrato[style:knob][OWL:PARAMETER_C]", 1, 0, 0.99, 0.01); a = 0.9 - vslider("Resonance[style:knob][OWL:PARAMETER_B]", 0.5, 0, 0.9, 0.01); }; fuzzy = vslider("Fuzz[name:tube][style:knob][OWL:PARAMETER_A]", 1, -3, 20, 1); tube1 = +(anti_denormal_ac) : hs : nonlin1 : resonator : +(anti_denormal_ac) : speakerbp(130,5000) * fuzzy * 0.5; OscTube(x) = x + tube1(x) : sym_clip(0.7); process= bypass_fade(checkbox("bypass"), ma.SR/10, OscTube);
https://raw.githubusercontent.com/guizmo2000/WebAudioPluginBank/9d7a3c1bd0977d57316046c116c217dccd6caa10/jordan-SINTES/OscTube/assets/dsp_src/OscTube.dsp
faust
Simple bypass mecanism Bypass an effect (fx:n->n). Once bypassed the effect is replaced by par(i,n,_). Bypassed effects can be chained. Example: _,_ : bypass(checkbox("bypass reverb"), freeverb) : _,_ Bypass an effect (fx:n->n) with 's' samples crossfades. Once bypassed the effect is replaced by par(i,n,_). Bypassed effects can be chained. Example: _,_ : bypass_fx_fade(checkbox("bypass reverb"), ma.SR/10, freeverb) : _,_ Bypass an effect (fx:n->n) with crossfades expressed in seconds. process = +(anti_denormal_ac) : hs; -*- faust -*- *************************************************************** ** helper definitions add_dc = +(anti_denormal); *************************************************************** ** nonlinear functions from thesis of Ragnar Bendiksen (used in swh ladspa valve plugin) exp(-nlim)+1 == 1, exp(nlim)/(exp(nlim)+1) == 1 2 exp() 4 exp() because contains 2 valve.tr simple triode circuit emulation *************************************************************** ** filter ---------------------second order Parametric Equalizer--------- filter(Q,F,G) Q : quality factor [1..100] F : frequency (Hz) G : gain [0..1] --------------------------------------------------------------- from "bandfilter.dsp" in the faust2pd distribution which was released under the BSD license. *************************************************************** ** backward compatible faust library definitions, may removed when ** the good versions in wafscript where updated ----- Flanging effect renamed in faust-0.9.27 from ----- flangermono -> flanger_mono ----- flangerstereo -> flanger_stereo ----- Moog "Voltage Controlled Filter" (VCF) ----- filter renamed in faust-0.9.27 from ----- moogvcf -> moog_vcf approx for fr << SR *************************************************************** ** building blocks *************************************************************** ** parameter definitions for use in alternative module
declare id "tube2"; import("stdfaust.lib"); import("music.lib"); import("effect.lib"); declare id "HighShelf"; import("maxmsp.lib"); bypass_fx(b, fx) = par(i, inputs(fx), _) <: ((block_on(b, fx):fx), block_off(b, fx)) :> par(i, outputs(fx), _) with { block_on(b, fx) = par(i, inputs(fx), _*(1-b)); block_off(b, fx) = par(i, inputs(fx), _*b); }; bypass_fade(b, s, fx) = par(i, inputs(fx), _) <: (par(i, inputs(fx), *(1-xb)) : fx : par(i, outputs(fx), *(1-xb))) , par(i, inputs(fx), *(xb)) :> par(i, outputs(fx), _) with { xb = ramp(s, b); ramp(n) = \(y,x).(if (y+1.0/n < x, y+1.0/n, if(y-1.0/n > x, y-1.0/n, x))) ~ _; if (c,t,e) = select2(c,e,t); }; bypass_fade_sec(b, d, fx) = bypass_fx_fade(b, ba.sec2samp(d), fx); hs(x) = highShelf(x,F,G,Q) with { G = -20.; F = SR/2 -100.; Q = 100.; }; bypass(switch, block) = _ <: select2(switch, _, block); BP(block) = bypass(checkbox("ON"), block); copysign = ffunction(float copysign(float,float), <math.h>, ""); anti_denormal = pow(10,-20); add_dc = +(anti_denormal); anti_denormal_ac = 1 - 1' : *(anti_denormal) : + ~ *(-1); smoothi(c) = *(1-c) : +~*(c); clip(lo,hi) = min(hi) : max(lo); sym_clip(thr) = clip(-thr,thr); balance(b) = *(1 - max(0, b)), *(1 - max(0, -b)); wet_dry_mix(w, Fx) = _ <: _, Fx : balance(w) : +; valve = environment { ex(x) = (1 - exp(-x)); tr(x) = select2(abs(x) > eps, tr_taylor(x), tr_func(max(-600,x))) with { eps = pow(10,-4); tr_func(x) = select2(x < -nlim, x / ex(x), -x*exp(x)); tr_taylor(x) = 1 + x/2 + x*x/12; }; df(x) = select2(abs(x) > eps, df_taylor(x), df_func(max(-600,x))) with { eps = pow(10,-4); df_func(x) = select2(x < -nlim, 1/ex(x) - (x * exp(-x)) / (ex(x)*ex(x)), -x*exp(x)); df_taylor(x) = 0.5 + x/6 - x*x*x/180; }; qd(dist, q, x) = dist * (x - q); vt(dist, q, x) = (tr(qd(dist, q, x)) - tr(qd(dist, q, 0))) / dist; vt_scaled(dist, q, x) = select2(dist*q > nlim, vt(dist, q, x) / df(qd(dist, q, 0)), vt_lim(dist, q, x)) with { bigval = pow(10,10); f(dist, q, x) = (qd(dist, q, x)/(1 - exp(-qd(dist, q, x)))*exp(dist*q) - dist*q)/(dist*dist*q); vt_lim(dist, q, x) = select2(dist*x > nlim, select2(dist*x < -nlim, f(dist, q, x), -1/dist), bigval); }; vts(dist, q, x) = abs(x) : neg : vt_scaled(dist, q) : copysign(_, x); vtu(dist, q, g) = vt_scaled(dist, q) : *(g) : neg : vt(dist, q) : neg; vtu_(dist, q, g) = vt_scaled(dist, q) :neg : *(g) : vt_scaled(dist, q) : /(g) : neg; }; saturate(t, x) = select2(abs(x) < t, x, v) with { sigmoid(x) = x * (1.5 - 0.5 * x * x); sat(x) = t + (1 - t)*sigmoid((abs(x)-t)/((1-t)*1.5)); v = copysign(x, sat(x)); }; nonlin(a,b,c,x) = ((a * x - b * abs(x) * x) - x) * c; nonlin1 = nonlin(2,1,0.5); Ftube = ffunction(float Ftube(int,float), "valve.h", ""); TB_12AX7_68k = fconstant(int TUBE_TABLE_12AX7_68k, "valve.h"); TB_12AX7_250k = fconstant(int TUBE_TABLE_12AX7_250k, "valve.h"); TB_6V6_68k = fconstant(int TUBE_TABLE_6V6_68k, "valve.h"); TB_6V6_250k = fconstant(int TUBE_TABLE_6V6_250k, "valve.h"); TB_12AU7_68k = fconstant(int TUBE_TABLE_12AU7_68k, "valve.h"); TB_12AU7_250k = fconstant(int TUBE_TABLE_12AU7_250k, "valve.h"); TB_6DJ8_68k = fconstant(int TUBE_TABLE_6DJ8_68k, "valve.h"); TB_6DJ8_250k = fconstant(int TUBE_TABLE_6DJ8_250k, "valve.h"); TB_12AT7_68k = fconstant(int TUBE_TABLE_12AT7_68k, "valve.h"); TB_12AT7_250k = fconstant(int TUBE_TABLE_12AT7_250k, "valve.h"); TB_6C16_68k = fconstant(int TUBE_TABLE_6C16_68k, "valve.h"); TB_6C16_250k = fconstant(int TUBE_TABLE_6C16_250k, "valve.h"); tubestageF(tb,vplus,divider,fck,Rk,Vk0) = tube : hpf with { lpfk = lowpass(1,fck); Rp = 100.0e3; VkC = Vk0 * (Rp/Rk); tube = (+ : -(Vk0) : Ftube(tb) : +(VkC-vplus)) ~ (*(Rk/Rp) : lpfk) : /(divider); hpf = highpass(1,31.0); }; tubestage(tb,fck,Rk,Vk0) = tubestageF(tb,250.0,40.0,fck,Rk,Vk0); tubestage130_10(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,10.0,fck,Rk,Vk0); tubestage130_20(tb,fck,Rk,Vk0) = tubestageF(tb,130.0,20.0,fck,Rk,Vk0); eqfilter(Q,F,G) = TF2( (1 + K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - K/Q + K*K) / D, 2 * (K*K - 1) / D, (1 - G*K/Q + K*K) / D ) with { K = tan(PI*F/SR); D = 1 + G*K/Q + K*K; }; ifilter(Q,F,G) = eqfilter(Q,F,1/G); flangermonoN(dmax,curdel,depth,fb,invert) = _ <: _, (-:fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(0.5); flangerstereoN(dmax,curdel1,curdel2,depth,fb,invert) = flangermonoN(dmax,curdel1,depth,fb,invert), flangermonoN(dmax,curdel2,depth,fb,invert); import("filter.lib"); moogvcfN(Q,fr) = (+ : pole(p) : pole(p) : pole(p) : pole(p) : *(scale(p))) ~ *(mk) with { scale(p) = pow(1-p,4); mk = 0-Q; }; fuzzy_tube(a,b,c,fuzzy) = _ <: _ + nonlin(a,b,c) * fuzzy * 0.5 : sym_clip(0.7); ampctrl = environment { drive = vslider(".gxdistortion.drive[alias]",0.35, 0, 1, 0.01); wet_dry = vslider(".gxdistortion.wet_dry[alias]", 100, 0, 100, 1) : /(100) : smoothi(0.999); preamp = vslider(".amp2.stage1.Pregain[alias]",-6,-20,20,0.1) : db2linear : smoothi(0.999); gain1 = vslider(".amp2.stage2.gain1[alias]", -6, -20.0, 20.0, 0.1) : db2linear : smoothi(0.999); }; crybaby_ctrl = environment { level = vslider(".crybaby.level[alias]", 0.1, 0, 1, 0.01); wah = vslider(".crybaby.wah[alias]", 0, 0, 1, 0.01); wet_dry = vslider(".crybaby.wet_dry[name:dry/wet][alias]", 100, 0, 100, 1) : /(100); }; balance_ctrl = environment { bal = vslider(".amp.balance[name:Balance][alias]", 0, -1, 1, 0.1) : smoothi(0.999); }; vibe_lfo_ctrl = environment { freq = vslider(".univibe.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; phase = vslider(".univibe.stereo[name:St.df][tooltip:LFO phase shift between left and right channels][alias]", 0.11, -0.5, 0.5, 0.01) * 2 * PI; }; vibe_mono_lfo_ctrl = environment { freq = vslider(".univibe_mono.freq[name:Tempo][tooltip:LFO frequency (Hz)][alias]", 4.4, 0.1, 10, 0.1) * 16; }; resonator = (+ <: (delay(4096, d-1) + delay(4096, d))/2.0)~*(1.0-a) with { d = 1 - vslider("Vibrato[style:knob][OWL:PARAMETER_C]", 1, 0, 0.99, 0.01); a = 0.9 - vslider("Resonance[style:knob][OWL:PARAMETER_B]", 0.5, 0, 0.9, 0.01); }; fuzzy = vslider("Fuzz[name:tube][style:knob][OWL:PARAMETER_A]", 1, -3, 20, 1); tube1 = +(anti_denormal_ac) : hs : nonlin1 : resonator : +(anti_denormal_ac) : speakerbp(130,5000) * fuzzy * 0.5; OscTube(x) = x + tube1(x) : sym_clip(0.7); process= bypass_fade(checkbox("bypass"), ma.SR/10, OscTube);
f8e8c0306aa462530dbcfde01b219bdaf22815ab58a299cd256b5245562b7e69
brummer10/guitarix
gxtilttone.dsp
declare id "tiltdrive"; declare name "Tilt Tone Pro"; declare category "External"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : tiltdrivepro_inclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Body = vslider("Body[name:Body]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s); Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(1) : si.smooth(s); Drive = vslider("Drive[name:Drive]", 0.5, 0, 1, 0.01) : Inverted(1) : LogPot(1) : si.smooth(s); b0 = Body*(Drive*fs*(fs*(7.4702418575578e-15*fs + 1.59088484003545e-12) + 5.76407550737481e-11) + Tone*(Drive*pow(fs,2)*(fs*(3.65730590942934e-18*fs + 6.09550984904878e-16) - 9.63708565903573e-28) + pow(fs,2)*(fs*(-3.65730590942934e-18*fs - 6.09550984904878e-16) + 9.63708565903573e-28)) + fs*(fs*(-7.4702418575578e-15*fs - 1.59088484003545e-12) - 5.76407550737481e-11)) + Drive*fs*(fs*(9.8607192519763e-16*fs + 3.66844210330959e-12) + 5.84016130407215e-10) + Tone*(Drive*fs*(fs*(fs*(4.82764380044673e-19*fs + 8.0460730007444e-17) - 3.45844530442491e-12) - 5.7640755073748e-10) + fs*(fs*(fs*(-4.82764380044673e-19*fs - 8.0460730007444e-17) + 3.45844530442491e-12) + 5.7640755073748e-10)) + fs*(fs*(-9.8607192519763e-16*fs - 3.66844210330959e-12) - 5.84016130407215e-10); b1 = Body*(Drive*fs*(-1.49404837151156e-14*pow(fs,2) + 1.15281510147496e-10) + Tone*(Drive*pow(fs,3)*(-1.46292236377174e-17*fs - 1.21910196980976e-15) + pow(fs,3)*(1.46292236377174e-17*fs + 1.21910196980976e-15)) + fs*(1.49404837151156e-14*pow(fs,2) - 1.15281510147496e-10)) + Drive*fs*(-1.97214385039526e-15*pow(fs,2) + 1.16803226081443e-9) + Tone*(Drive*fs*(pow(fs,2)*(-1.93105752017869e-18*fs - 1.60921460014888e-16) - 1.15281510147496e-9) + fs*(pow(fs,2)*(1.93105752017869e-18*fs + 1.60921460014888e-16) + 1.15281510147496e-9)) + fs*(1.97214385039526e-15*pow(fs,2) - 1.16803226081443e-9); b2 = Body*(-3.18176968007089e-12*Drive*pow(fs,2) + Tone*(Drive*pow(fs,2)*(2.1943835456576e-17*pow(fs,2) + 1.92741713180715e-27) + pow(fs,2)*(-2.1943835456576e-17*pow(fs,2) - 1.92741713180715e-27)) + 3.18176968007089e-12*pow(fs,2)) - 7.33688420661919e-12*Drive*pow(fs,2) + Tone*(Drive*pow(fs,2)*(2.89658628026804e-18*pow(fs,2) + 6.91689060884983e-12) + pow(fs,2)*(-2.89658628026804e-18*pow(fs,2) - 6.91689060884983e-12)) + 7.33688420661919e-12*pow(fs,2); b3 = Body*(Drive*fs*(1.49404837151156e-14*pow(fs,2) - 1.15281510147496e-10) + Tone*(Drive*pow(fs,3)*(-1.46292236377174e-17*fs + 1.21910196980976e-15) + pow(fs,3)*(1.46292236377174e-17*fs - 1.21910196980976e-15)) + fs*(-1.49404837151156e-14*pow(fs,2) + 1.15281510147496e-10)) + Drive*fs*(1.97214385039526e-15*pow(fs,2) - 1.16803226081443e-9) + Tone*(Drive*fs*(pow(fs,2)*(-1.93105752017869e-18*fs + 1.60921460014888e-16) + 1.15281510147496e-9) + fs*(pow(fs,2)*(1.93105752017869e-18*fs - 1.60921460014888e-16) - 1.15281510147496e-9)) + fs*(-1.97214385039526e-15*pow(fs,2) + 1.16803226081443e-9); b4 = Body*(Drive*fs*(fs*(-7.4702418575578e-15*fs + 1.59088484003545e-12) - 5.76407550737481e-11) + Tone*(Drive*pow(fs,2)*(fs*(3.65730590942934e-18*fs - 6.09550984904878e-16) - 9.63708565903573e-28) + pow(fs,2)*(fs*(-3.65730590942934e-18*fs + 6.09550984904878e-16) + 9.63708565903573e-28)) + fs*(fs*(7.4702418575578e-15*fs - 1.59088484003545e-12) + 5.76407550737481e-11)) + Drive*fs*(fs*(-9.8607192519763e-16*fs + 3.66844210330959e-12) - 5.84016130407215e-10) + Tone*(Drive*fs*(fs*(fs*(4.82764380044673e-19*fs - 8.0460730007444e-17) - 3.45844530442491e-12) + 5.7640755073748e-10) + fs*(fs*(fs*(-4.82764380044673e-19*fs + 8.0460730007444e-17) + 3.45844530442491e-12) - 5.7640755073748e-10)) + fs*(fs*(9.8607192519763e-16*fs - 3.66844210330959e-12) + 5.84016130407215e-10); a0 = Body*(Drive*(Drive*(fs*(fs*(fs*(-7.30862585054866e-20*fs - 1.67322263662277e-16) - 5.1124129373811e-14) - 1.94898394972096e-12) + 1.96683234297117e-25) + fs*(fs*(fs*(7.30862585054866e-20*fs + 1.42960177493781e-16) + 3.6417513972127e-14) - 5.41394578846342e-14) - 4.14677436110847e-11) + Tone*(Drive*(fs*(fs*(fs*(-1.82715646263716e-20*fs - 1.61866577328053e-18) + 8.22617247056166e-17) - 4.8724598743024e-13) + 4.91708085742792e-26) + Tone*(Drive*fs*(fs*(fs*(1.61878313287101e-20*fs + 1.69238926121966e-17) + 3.65434490572681e-15) - 3.68781064307094e-28) + fs*(fs*(fs*(-3.23756626574203e-20*fs - 3.38477852243932e-17) - 7.30868981145362e-15) + 7.37562128614188e-28)) + fs*(fs*(fs*(3.65431292527433e-20*fs + 3.23733154656106e-18) - 1.64523449411233e-16) + 9.7449197486048e-13) - 9.83416171485584e-26) + fs*(fs*(fs*(7.30862585054866e-20*fs + 2.16046435999268e-16) + 8.0537360177179e-14) + 5.95523076493215e-12) + 8.29354872221687e-11) + Drive*(Drive*(fs*(fs*(fs*(-9.29967180291844e-20*fs - 3.84360911986598e-16) - 4.45548735927406e-13) - 9.98720416827966e-11) - 1.65870974444338e-9) + fs*(fs*(fs*(9.29967180291844e-20*fs + 3.5336200597687e-16) + 3.79597819598007e-13) + 8.2686476087768e-11) + 1.23855856617587e-9) + Tone*(Drive*(fs*(fs*(fs*(-2.32491795072961e-20*fs - 3.52160359068941e-17) + 1.83300570278997e-14) + 8.87429618975008e-12) + 4.14677436110845e-10) + Tone*(Drive*(fs*(fs*(fs*(2.29741267120048e-20*fs + 6.50194364851177e-17) + 4.61728181436945e-14) + 7.98254064513374e-12) - 4.91708085742792e-25) + fs*(fs*(fs*(-4.59482534240096e-20*fs - 1.30038872970235e-16) - 9.23456362873891e-14) - 1.59650812902675e-11) + 9.83416171485584e-25) + fs*(fs*(fs*(4.64983590145922e-20*fs + 7.04320718137881e-17) - 3.66601140557995e-14) - 1.77485923795002e-11) - 8.2935487222169e-10) + fs*(fs*(fs*(9.29967180291844e-20*fs + 4.46358724006055e-16) + 5.77450568586205e-13) + 1.34243172872854e-10) + 2.49901210097839e-9; a1 = Body*(Drive*(Drive*(fs*(pow(fs,2)*(2.92345034021946e-19*fs + 3.34644527324554e-16) - 3.89796789944192e-12) + 7.86732937188467e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs - 2.85920354987563e-16) - 1.08278915769268e-13) - 1.65870974444339e-10) + Tone*(Drive*(fs*(pow(fs,2)*(7.30862585054866e-20*fs + 3.23733154656106e-18) - 9.7449197486048e-13) + 1.96683234297117e-25) + Tone*(Drive*fs*(pow(fs,2)*(-6.47513253148406e-20*fs - 3.38477852243932e-17) - 7.37562128614188e-28) + fs*(pow(fs,2)*(1.29502650629681e-19*fs + 6.76955704487864e-17) + 1.47512425722838e-27)) + fs*(pow(fs,2)*(-1.46172517010973e-19*fs - 6.47466309312212e-18) + 1.94898394972096e-12) - 3.93366468594234e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs - 4.32092871998536e-16) + 1.19104615298643e-11) + 3.31741948888675e-10) + Drive*(Drive*(fs*(pow(fs,2)*(3.71986872116738e-19*fs + 7.68721823973197e-16) - 1.99744083365593e-10) - 6.63483897777351e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs - 7.06724011953741e-16) + 1.65372952175536e-10) + 4.95423426470347e-9) + Tone*(Drive*(fs*(pow(fs,2)*(9.29967180291844e-20*fs + 7.04320718137881e-17) + 1.77485923795002e-11) + 1.65870974444338e-9) + Tone*(Drive*(fs*(pow(fs,2)*(-9.18965068480191e-20*fs - 1.30038872970235e-16) + 1.59650812902675e-11) - 1.96683234297117e-24) + fs*(pow(fs,2)*(1.83793013696038e-19*fs + 2.60077745940471e-16) - 3.1930162580535e-11) + 3.93366468594234e-24) + fs*(pow(fs,2)*(-1.85993436058369e-19*fs - 1.40864143627576e-16) - 3.54971847590003e-11) - 3.31741948888676e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs - 8.92717448012109e-16) + 2.68486345745707e-10) + 9.99604840391357e-9; a2 = Body*(Drive*(Drive*(pow(fs,2)*(-4.38517551032919e-19*pow(fs,2) + 1.02248258747622e-13) + 1.1800994057827e-24) + pow(fs,2)*(4.38517551032919e-19*pow(fs,2) - 7.2835027944254e-14) - 2.48806461666508e-10) + Tone*(Drive*(pow(fs,2)*(-1.0962938775823e-19*pow(fs,2) - 1.64523449411233e-16) + 2.95024851445675e-25) + Tone*(Drive*pow(fs,2)*(9.71269879722608e-20*pow(fs,2) - 7.30868981145362e-15) + pow(fs,2)*(-1.94253975944522e-19*pow(fs,2) + 1.46173796229072e-14)) + pow(fs,2)*(2.1925877551646e-19*pow(fs,2) + 3.29046898822466e-16) - 5.90049702891351e-25) + pow(fs,2)*(4.38517551032919e-19*pow(fs,2) - 1.61074720354358e-13) + 4.97612923333012e-10) + Drive*(Drive*(pow(fs,2)*(-5.57980308175106e-19*pow(fs,2) + 8.91097471854812e-13) - 9.95225846666026e-9) + pow(fs,2)*(5.57980308175106e-19*pow(fs,2) - 7.59195639196014e-13) + 7.43135139705521e-9) + Tone*(Drive*(pow(fs,2)*(-1.39495077043777e-19*pow(fs,2) - 3.66601140557995e-14) + 2.48806461666507e-9) + Tone*(Drive*(pow(fs,2)*(1.37844760272029e-19*pow(fs,2) - 9.23456362873891e-14) - 2.95024851445675e-24) + pow(fs,2)*(-2.75689520544057e-19*pow(fs,2) + 1.84691272574778e-13) + 5.90049702891351e-24) + pow(fs,2)*(2.78990154087553e-19*pow(fs,2) + 7.33202281115989e-14) - 4.97612923333014e-9) + pow(fs,2)*(5.57980308175106e-19*pow(fs,2) - 1.15490113717241e-12) + 1.49940726058704e-8; a3 = Body*(Drive*(Drive*(fs*(pow(fs,2)*(2.92345034021946e-19*fs - 3.34644527324554e-16) + 3.89796789944192e-12) + 7.86732937188467e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs + 2.85920354987563e-16) + 1.08278915769268e-13) - 1.65870974444339e-10) + Tone*(Drive*(fs*(pow(fs,2)*(7.30862585054866e-20*fs - 3.23733154656106e-18) + 9.7449197486048e-13) + 1.96683234297117e-25) + Tone*(Drive*fs*(pow(fs,2)*(-6.47513253148406e-20*fs + 3.38477852243932e-17) + 7.37562128614188e-28) + fs*(pow(fs,2)*(1.29502650629681e-19*fs - 6.76955704487864e-17) - 1.47512425722838e-27)) + fs*(pow(fs,2)*(-1.46172517010973e-19*fs + 6.47466309312212e-18) - 1.94898394972096e-12) - 3.93366468594234e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs + 4.32092871998536e-16) - 1.19104615298643e-11) + 3.31741948888675e-10) + Drive*(Drive*(fs*(pow(fs,2)*(3.71986872116738e-19*fs - 7.68721823973197e-16) + 1.99744083365593e-10) - 6.63483897777351e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs + 7.06724011953741e-16) - 1.65372952175536e-10) + 4.95423426470347e-9) + Tone*(Drive*(fs*(pow(fs,2)*(9.29967180291844e-20*fs - 7.04320718137881e-17) - 1.77485923795002e-11) + 1.65870974444338e-9) + Tone*(Drive*(fs*(pow(fs,2)*(-9.18965068480191e-20*fs + 1.30038872970235e-16) - 1.59650812902675e-11) - 1.96683234297117e-24) + fs*(pow(fs,2)*(1.83793013696038e-19*fs - 2.60077745940471e-16) + 3.1930162580535e-11) + 3.93366468594234e-24) + fs*(pow(fs,2)*(-1.85993436058369e-19*fs + 1.40864143627576e-16) + 3.54971847590003e-11) - 3.31741948888676e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs + 8.92717448012109e-16) - 2.68486345745707e-10) + 9.99604840391357e-9; a4 = Body*(Drive*(Drive*(fs*(fs*(fs*(-7.30862585054866e-20*fs + 1.67322263662277e-16) - 5.1124129373811e-14) + 1.94898394972096e-12) + 1.96683234297117e-25) + fs*(fs*(fs*(7.30862585054866e-20*fs - 1.42960177493781e-16) + 3.6417513972127e-14) + 5.41394578846342e-14) - 4.14677436110847e-11) + Tone*(Drive*(fs*(fs*(fs*(-1.82715646263716e-20*fs + 1.61866577328053e-18) + 8.22617247056166e-17) + 4.8724598743024e-13) + 4.91708085742792e-26) + Tone*(Drive*fs*(fs*(fs*(1.61878313287101e-20*fs - 1.69238926121966e-17) + 3.65434490572681e-15) + 3.68781064307094e-28) + fs*(fs*(fs*(-3.23756626574203e-20*fs + 3.38477852243932e-17) - 7.30868981145362e-15) - 7.37562128614188e-28)) + fs*(fs*(fs*(3.65431292527433e-20*fs - 3.23733154656106e-18) - 1.64523449411233e-16) - 9.7449197486048e-13) - 9.83416171485584e-26) + fs*(fs*(fs*(7.30862585054866e-20*fs - 2.16046435999268e-16) + 8.0537360177179e-14) - 5.95523076493215e-12) + 8.29354872221687e-11) + Drive*(Drive*(fs*(fs*(fs*(-9.29967180291844e-20*fs + 3.84360911986598e-16) - 4.45548735927406e-13) + 9.98720416827966e-11) - 1.65870974444338e-9) + fs*(fs*(fs*(9.29967180291844e-20*fs - 3.5336200597687e-16) + 3.79597819598007e-13) - 8.2686476087768e-11) + 1.23855856617587e-9) + Tone*(Drive*(fs*(fs*(fs*(-2.32491795072961e-20*fs + 3.52160359068941e-17) + 1.83300570278997e-14) - 8.87429618975008e-12) + 4.14677436110845e-10) + Tone*(Drive*(fs*(fs*(fs*(2.29741267120048e-20*fs - 6.50194364851177e-17) + 4.61728181436945e-14) - 7.98254064513374e-12) - 4.91708085742792e-25) + fs*(fs*(fs*(-4.59482534240096e-20*fs + 1.30038872970235e-16) - 9.23456362873891e-14) + 1.59650812902675e-11) + 9.83416171485584e-25) + fs*(fs*(fs*(4.64983590145922e-20*fs - 7.04320718137881e-17) - 3.66601140557995e-14) + 1.77485923795002e-11) - 8.2935487222169e-10) + fs*(fs*(fs*(9.29967180291844e-20*fs - 4.46358724006055e-16) + 5.77450568586205e-13) - 1.34243172872854e-10) + 2.49901210097839e-9; }; tiltdrivepro_inclip = _<: ba.if(signbit(_), tiltdrivepro_in_neg_clip, tiltdrivepro_in_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); tiltdrivepro_in_clip = ffunction(float tiltdrivepro_inclip(float), "tiltdrivepro_in_table.h", ""); tiltdrivepro_in_neg_clip = ffunction(float tiltdrivepro_in_negclip(float), "tiltdrivepro_in_neg_table.h", ""); }; p2 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) : tiltdrivepro_out_3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -0.000487217249496405*Level*fs; b1 = 0.000487217249496405*Level*fs; a0 = 2.08313095376176e-5*fs + 9.71421943566398e-5; a1 = -2.08313095376176e-5*fs + 9.71421943566398e-5; }; tiltdrivepro_out_3clip = _<: ba.if(signbit(_), tiltdrivepro_out_3_neg_clip, tiltdrivepro_out_3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); tiltdrivepro_out_3_clip = ffunction(float tiltdrivepro_out_3clip(float), "tiltdrivepro_out_3_table.h", ""); tiltdrivepro_out_3_neg_clip = ffunction(float tiltdrivepro_out_3_negclip(float), "tiltdrivepro_out_3_neg_table.h", ""); }; amp = p1 : p2 ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
https://raw.githubusercontent.com/brummer10/guitarix/5672b8cb8f1c324ea28b1fddc7e1b39f79aabbc6/trunk/src/LV2/faust/gxtilttone.dsp
faust
declare id "tiltdrive"; declare name "Tilt Tone Pro"; declare category "External"; import("stdfaust.lib"); p1 = pre : fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) : tiltdrivepro_inclip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Body = vslider("Body[name:Body]", 0.5, 0, 1, 0.01) : Inverted(0) : si.smooth(s); Tone = vslider("Tone[name:Tone]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(1) : si.smooth(s); Drive = vslider("Drive[name:Drive]", 0.5, 0, 1, 0.01) : Inverted(1) : LogPot(1) : si.smooth(s); b0 = Body*(Drive*fs*(fs*(7.4702418575578e-15*fs + 1.59088484003545e-12) + 5.76407550737481e-11) + Tone*(Drive*pow(fs,2)*(fs*(3.65730590942934e-18*fs + 6.09550984904878e-16) - 9.63708565903573e-28) + pow(fs,2)*(fs*(-3.65730590942934e-18*fs - 6.09550984904878e-16) + 9.63708565903573e-28)) + fs*(fs*(-7.4702418575578e-15*fs - 1.59088484003545e-12) - 5.76407550737481e-11)) + Drive*fs*(fs*(9.8607192519763e-16*fs + 3.66844210330959e-12) + 5.84016130407215e-10) + Tone*(Drive*fs*(fs*(fs*(4.82764380044673e-19*fs + 8.0460730007444e-17) - 3.45844530442491e-12) - 5.7640755073748e-10) + fs*(fs*(fs*(-4.82764380044673e-19*fs - 8.0460730007444e-17) + 3.45844530442491e-12) + 5.7640755073748e-10)) + fs*(fs*(-9.8607192519763e-16*fs - 3.66844210330959e-12) - 5.84016130407215e-10); b1 = Body*(Drive*fs*(-1.49404837151156e-14*pow(fs,2) + 1.15281510147496e-10) + Tone*(Drive*pow(fs,3)*(-1.46292236377174e-17*fs - 1.21910196980976e-15) + pow(fs,3)*(1.46292236377174e-17*fs + 1.21910196980976e-15)) + fs*(1.49404837151156e-14*pow(fs,2) - 1.15281510147496e-10)) + Drive*fs*(-1.97214385039526e-15*pow(fs,2) + 1.16803226081443e-9) + Tone*(Drive*fs*(pow(fs,2)*(-1.93105752017869e-18*fs - 1.60921460014888e-16) - 1.15281510147496e-9) + fs*(pow(fs,2)*(1.93105752017869e-18*fs + 1.60921460014888e-16) + 1.15281510147496e-9)) + fs*(1.97214385039526e-15*pow(fs,2) - 1.16803226081443e-9); b2 = Body*(-3.18176968007089e-12*Drive*pow(fs,2) + Tone*(Drive*pow(fs,2)*(2.1943835456576e-17*pow(fs,2) + 1.92741713180715e-27) + pow(fs,2)*(-2.1943835456576e-17*pow(fs,2) - 1.92741713180715e-27)) + 3.18176968007089e-12*pow(fs,2)) - 7.33688420661919e-12*Drive*pow(fs,2) + Tone*(Drive*pow(fs,2)*(2.89658628026804e-18*pow(fs,2) + 6.91689060884983e-12) + pow(fs,2)*(-2.89658628026804e-18*pow(fs,2) - 6.91689060884983e-12)) + 7.33688420661919e-12*pow(fs,2); b3 = Body*(Drive*fs*(1.49404837151156e-14*pow(fs,2) - 1.15281510147496e-10) + Tone*(Drive*pow(fs,3)*(-1.46292236377174e-17*fs + 1.21910196980976e-15) + pow(fs,3)*(1.46292236377174e-17*fs - 1.21910196980976e-15)) + fs*(-1.49404837151156e-14*pow(fs,2) + 1.15281510147496e-10)) + Drive*fs*(1.97214385039526e-15*pow(fs,2) - 1.16803226081443e-9) + Tone*(Drive*fs*(pow(fs,2)*(-1.93105752017869e-18*fs + 1.60921460014888e-16) + 1.15281510147496e-9) + fs*(pow(fs,2)*(1.93105752017869e-18*fs - 1.60921460014888e-16) - 1.15281510147496e-9)) + fs*(-1.97214385039526e-15*pow(fs,2) + 1.16803226081443e-9); b4 = Body*(Drive*fs*(fs*(-7.4702418575578e-15*fs + 1.59088484003545e-12) - 5.76407550737481e-11) + Tone*(Drive*pow(fs,2)*(fs*(3.65730590942934e-18*fs - 6.09550984904878e-16) - 9.63708565903573e-28) + pow(fs,2)*(fs*(-3.65730590942934e-18*fs + 6.09550984904878e-16) + 9.63708565903573e-28)) + fs*(fs*(7.4702418575578e-15*fs - 1.59088484003545e-12) + 5.76407550737481e-11)) + Drive*fs*(fs*(-9.8607192519763e-16*fs + 3.66844210330959e-12) - 5.84016130407215e-10) + Tone*(Drive*fs*(fs*(fs*(4.82764380044673e-19*fs - 8.0460730007444e-17) - 3.45844530442491e-12) + 5.7640755073748e-10) + fs*(fs*(fs*(-4.82764380044673e-19*fs + 8.0460730007444e-17) + 3.45844530442491e-12) - 5.7640755073748e-10)) + fs*(fs*(9.8607192519763e-16*fs - 3.66844210330959e-12) + 5.84016130407215e-10); a0 = Body*(Drive*(Drive*(fs*(fs*(fs*(-7.30862585054866e-20*fs - 1.67322263662277e-16) - 5.1124129373811e-14) - 1.94898394972096e-12) + 1.96683234297117e-25) + fs*(fs*(fs*(7.30862585054866e-20*fs + 1.42960177493781e-16) + 3.6417513972127e-14) - 5.41394578846342e-14) - 4.14677436110847e-11) + Tone*(Drive*(fs*(fs*(fs*(-1.82715646263716e-20*fs - 1.61866577328053e-18) + 8.22617247056166e-17) - 4.8724598743024e-13) + 4.91708085742792e-26) + Tone*(Drive*fs*(fs*(fs*(1.61878313287101e-20*fs + 1.69238926121966e-17) + 3.65434490572681e-15) - 3.68781064307094e-28) + fs*(fs*(fs*(-3.23756626574203e-20*fs - 3.38477852243932e-17) - 7.30868981145362e-15) + 7.37562128614188e-28)) + fs*(fs*(fs*(3.65431292527433e-20*fs + 3.23733154656106e-18) - 1.64523449411233e-16) + 9.7449197486048e-13) - 9.83416171485584e-26) + fs*(fs*(fs*(7.30862585054866e-20*fs + 2.16046435999268e-16) + 8.0537360177179e-14) + 5.95523076493215e-12) + 8.29354872221687e-11) + Drive*(Drive*(fs*(fs*(fs*(-9.29967180291844e-20*fs - 3.84360911986598e-16) - 4.45548735927406e-13) - 9.98720416827966e-11) - 1.65870974444338e-9) + fs*(fs*(fs*(9.29967180291844e-20*fs + 3.5336200597687e-16) + 3.79597819598007e-13) + 8.2686476087768e-11) + 1.23855856617587e-9) + Tone*(Drive*(fs*(fs*(fs*(-2.32491795072961e-20*fs - 3.52160359068941e-17) + 1.83300570278997e-14) + 8.87429618975008e-12) + 4.14677436110845e-10) + Tone*(Drive*(fs*(fs*(fs*(2.29741267120048e-20*fs + 6.50194364851177e-17) + 4.61728181436945e-14) + 7.98254064513374e-12) - 4.91708085742792e-25) + fs*(fs*(fs*(-4.59482534240096e-20*fs - 1.30038872970235e-16) - 9.23456362873891e-14) - 1.59650812902675e-11) + 9.83416171485584e-25) + fs*(fs*(fs*(4.64983590145922e-20*fs + 7.04320718137881e-17) - 3.66601140557995e-14) - 1.77485923795002e-11) - 8.2935487222169e-10) + fs*(fs*(fs*(9.29967180291844e-20*fs + 4.46358724006055e-16) + 5.77450568586205e-13) + 1.34243172872854e-10) + 2.49901210097839e-9; a1 = Body*(Drive*(Drive*(fs*(pow(fs,2)*(2.92345034021946e-19*fs + 3.34644527324554e-16) - 3.89796789944192e-12) + 7.86732937188467e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs - 2.85920354987563e-16) - 1.08278915769268e-13) - 1.65870974444339e-10) + Tone*(Drive*(fs*(pow(fs,2)*(7.30862585054866e-20*fs + 3.23733154656106e-18) - 9.7449197486048e-13) + 1.96683234297117e-25) + Tone*(Drive*fs*(pow(fs,2)*(-6.47513253148406e-20*fs - 3.38477852243932e-17) - 7.37562128614188e-28) + fs*(pow(fs,2)*(1.29502650629681e-19*fs + 6.76955704487864e-17) + 1.47512425722838e-27)) + fs*(pow(fs,2)*(-1.46172517010973e-19*fs - 6.47466309312212e-18) + 1.94898394972096e-12) - 3.93366468594234e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs - 4.32092871998536e-16) + 1.19104615298643e-11) + 3.31741948888675e-10) + Drive*(Drive*(fs*(pow(fs,2)*(3.71986872116738e-19*fs + 7.68721823973197e-16) - 1.99744083365593e-10) - 6.63483897777351e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs - 7.06724011953741e-16) + 1.65372952175536e-10) + 4.95423426470347e-9) + Tone*(Drive*(fs*(pow(fs,2)*(9.29967180291844e-20*fs + 7.04320718137881e-17) + 1.77485923795002e-11) + 1.65870974444338e-9) + Tone*(Drive*(fs*(pow(fs,2)*(-9.18965068480191e-20*fs - 1.30038872970235e-16) + 1.59650812902675e-11) - 1.96683234297117e-24) + fs*(pow(fs,2)*(1.83793013696038e-19*fs + 2.60077745940471e-16) - 3.1930162580535e-11) + 3.93366468594234e-24) + fs*(pow(fs,2)*(-1.85993436058369e-19*fs - 1.40864143627576e-16) - 3.54971847590003e-11) - 3.31741948888676e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs - 8.92717448012109e-16) + 2.68486345745707e-10) + 9.99604840391357e-9; a2 = Body*(Drive*(Drive*(pow(fs,2)*(-4.38517551032919e-19*pow(fs,2) + 1.02248258747622e-13) + 1.1800994057827e-24) + pow(fs,2)*(4.38517551032919e-19*pow(fs,2) - 7.2835027944254e-14) - 2.48806461666508e-10) + Tone*(Drive*(pow(fs,2)*(-1.0962938775823e-19*pow(fs,2) - 1.64523449411233e-16) + 2.95024851445675e-25) + Tone*(Drive*pow(fs,2)*(9.71269879722608e-20*pow(fs,2) - 7.30868981145362e-15) + pow(fs,2)*(-1.94253975944522e-19*pow(fs,2) + 1.46173796229072e-14)) + pow(fs,2)*(2.1925877551646e-19*pow(fs,2) + 3.29046898822466e-16) - 5.90049702891351e-25) + pow(fs,2)*(4.38517551032919e-19*pow(fs,2) - 1.61074720354358e-13) + 4.97612923333012e-10) + Drive*(Drive*(pow(fs,2)*(-5.57980308175106e-19*pow(fs,2) + 8.91097471854812e-13) - 9.95225846666026e-9) + pow(fs,2)*(5.57980308175106e-19*pow(fs,2) - 7.59195639196014e-13) + 7.43135139705521e-9) + Tone*(Drive*(pow(fs,2)*(-1.39495077043777e-19*pow(fs,2) - 3.66601140557995e-14) + 2.48806461666507e-9) + Tone*(Drive*(pow(fs,2)*(1.37844760272029e-19*pow(fs,2) - 9.23456362873891e-14) - 2.95024851445675e-24) + pow(fs,2)*(-2.75689520544057e-19*pow(fs,2) + 1.84691272574778e-13) + 5.90049702891351e-24) + pow(fs,2)*(2.78990154087553e-19*pow(fs,2) + 7.33202281115989e-14) - 4.97612923333014e-9) + pow(fs,2)*(5.57980308175106e-19*pow(fs,2) - 1.15490113717241e-12) + 1.49940726058704e-8; a3 = Body*(Drive*(Drive*(fs*(pow(fs,2)*(2.92345034021946e-19*fs - 3.34644527324554e-16) + 3.89796789944192e-12) + 7.86732937188467e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs + 2.85920354987563e-16) + 1.08278915769268e-13) - 1.65870974444339e-10) + Tone*(Drive*(fs*(pow(fs,2)*(7.30862585054866e-20*fs - 3.23733154656106e-18) + 9.7449197486048e-13) + 1.96683234297117e-25) + Tone*(Drive*fs*(pow(fs,2)*(-6.47513253148406e-20*fs + 3.38477852243932e-17) + 7.37562128614188e-28) + fs*(pow(fs,2)*(1.29502650629681e-19*fs - 6.76955704487864e-17) - 1.47512425722838e-27)) + fs*(pow(fs,2)*(-1.46172517010973e-19*fs + 6.47466309312212e-18) - 1.94898394972096e-12) - 3.93366468594234e-25) + fs*(pow(fs,2)*(-2.92345034021946e-19*fs + 4.32092871998536e-16) - 1.19104615298643e-11) + 3.31741948888675e-10) + Drive*(Drive*(fs*(pow(fs,2)*(3.71986872116738e-19*fs - 7.68721823973197e-16) + 1.99744083365593e-10) - 6.63483897777351e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs + 7.06724011953741e-16) - 1.65372952175536e-10) + 4.95423426470347e-9) + Tone*(Drive*(fs*(pow(fs,2)*(9.29967180291844e-20*fs - 7.04320718137881e-17) - 1.77485923795002e-11) + 1.65870974444338e-9) + Tone*(Drive*(fs*(pow(fs,2)*(-9.18965068480191e-20*fs + 1.30038872970235e-16) - 1.59650812902675e-11) - 1.96683234297117e-24) + fs*(pow(fs,2)*(1.83793013696038e-19*fs - 2.60077745940471e-16) + 3.1930162580535e-11) + 3.93366468594234e-24) + fs*(pow(fs,2)*(-1.85993436058369e-19*fs + 1.40864143627576e-16) + 3.54971847590003e-11) - 3.31741948888676e-9) + fs*(pow(fs,2)*(-3.71986872116738e-19*fs + 8.92717448012109e-16) - 2.68486345745707e-10) + 9.99604840391357e-9; a4 = Body*(Drive*(Drive*(fs*(fs*(fs*(-7.30862585054866e-20*fs + 1.67322263662277e-16) - 5.1124129373811e-14) + 1.94898394972096e-12) + 1.96683234297117e-25) + fs*(fs*(fs*(7.30862585054866e-20*fs - 1.42960177493781e-16) + 3.6417513972127e-14) + 5.41394578846342e-14) - 4.14677436110847e-11) + Tone*(Drive*(fs*(fs*(fs*(-1.82715646263716e-20*fs + 1.61866577328053e-18) + 8.22617247056166e-17) + 4.8724598743024e-13) + 4.91708085742792e-26) + Tone*(Drive*fs*(fs*(fs*(1.61878313287101e-20*fs - 1.69238926121966e-17) + 3.65434490572681e-15) + 3.68781064307094e-28) + fs*(fs*(fs*(-3.23756626574203e-20*fs + 3.38477852243932e-17) - 7.30868981145362e-15) - 7.37562128614188e-28)) + fs*(fs*(fs*(3.65431292527433e-20*fs - 3.23733154656106e-18) - 1.64523449411233e-16) - 9.7449197486048e-13) - 9.83416171485584e-26) + fs*(fs*(fs*(7.30862585054866e-20*fs - 2.16046435999268e-16) + 8.0537360177179e-14) - 5.95523076493215e-12) + 8.29354872221687e-11) + Drive*(Drive*(fs*(fs*(fs*(-9.29967180291844e-20*fs + 3.84360911986598e-16) - 4.45548735927406e-13) + 9.98720416827966e-11) - 1.65870974444338e-9) + fs*(fs*(fs*(9.29967180291844e-20*fs - 3.5336200597687e-16) + 3.79597819598007e-13) - 8.2686476087768e-11) + 1.23855856617587e-9) + Tone*(Drive*(fs*(fs*(fs*(-2.32491795072961e-20*fs + 3.52160359068941e-17) + 1.83300570278997e-14) - 8.87429618975008e-12) + 4.14677436110845e-10) + Tone*(Drive*(fs*(fs*(fs*(2.29741267120048e-20*fs - 6.50194364851177e-17) + 4.61728181436945e-14) - 7.98254064513374e-12) - 4.91708085742792e-25) + fs*(fs*(fs*(-4.59482534240096e-20*fs + 1.30038872970235e-16) - 9.23456362873891e-14) + 1.59650812902675e-11) + 9.83416171485584e-25) + fs*(fs*(fs*(4.64983590145922e-20*fs - 7.04320718137881e-17) - 3.66601140557995e-14) + 1.77485923795002e-11) - 8.2935487222169e-10) + fs*(fs*(fs*(9.29967180291844e-20*fs - 4.46358724006055e-16) + 5.77450568586205e-13) - 1.34243172872854e-10) + 2.49901210097839e-9; }; tiltdrivepro_inclip = _<: ba.if(signbit(_), tiltdrivepro_in_neg_clip, tiltdrivepro_in_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); tiltdrivepro_in_clip = ffunction(float tiltdrivepro_inclip(float), "tiltdrivepro_in_table.h", ""); tiltdrivepro_in_neg_clip = ffunction(float tiltdrivepro_in_negclip(float), "tiltdrivepro_in_neg_table.h", ""); }; p2 = pre : fi.iir((b0/a0,b1/a0),(a1/a0)) : tiltdrivepro_out_3clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); Inverted(b, x) = ba.if(b, 1 - x, x); s = 0.993; fs = float(ma.SR); pre = _; Level = vslider("Level[name:Level]", 0.5, 0, 1, 0.01) : Inverted(0) : LogPot(3) : si.smooth(s); b0 = -0.000487217249496405*Level*fs; b1 = 0.000487217249496405*Level*fs; a0 = 2.08313095376176e-5*fs + 9.71421943566398e-5; a1 = -2.08313095376176e-5*fs + 9.71421943566398e-5; }; tiltdrivepro_out_3clip = _<: ba.if(signbit(_), tiltdrivepro_out_3_neg_clip, tiltdrivepro_out_3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); tiltdrivepro_out_3_clip = ffunction(float tiltdrivepro_out_3clip(float), "tiltdrivepro_out_3_table.h", ""); tiltdrivepro_out_3_neg_clip = ffunction(float tiltdrivepro_out_3_negclip(float), "tiltdrivepro_out_3_neg_table.h", ""); }; amp = p1 : p2 ; freq_split = fi.filterbank(3, (86.0,210.0,1200.0,6531.0)); process = freq_split: ( amp , amp , amp, amp, amp) :>_;
cdb7da647063d09eef7e693c2ca803ea8614bc35e72fa7e645e5ed1b75a45c31
sadko4u/tamgamp.lv2
mesa_dual_rect_orange.dsp
/* * This is simulation of Mesa Dual Rectifier preamplifier (orange channel, less gain) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "mesa_dual_rect_orange"; declare name "mesa_dual_rect_orange"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs - 5.89531552466728e-14) - 2.36970197236252e-11) - 3.0525726492396e-9)); b1 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs + 5.89531552466728e-14) - 2.36970197236252e-11) - 9.1577179477188e-9)); b2 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs - 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs + 1.17906310493346e-13) + 4.73940394472505e-11) - 6.1051452984792e-9)); b3 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs + 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs - 1.17906310493346e-13) + 4.73940394472505e-11) + 6.1051452984792e-9)); b4 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs - 5.89531552466728e-14) - 2.36970197236252e-11) + 9.1577179477188e-9)); b5 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs + 5.89531552466728e-14) - 2.36970197236252e-11) + 3.0525726492396e-9)); a0 = fs*(fs*(fs*(2.77018846582032e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) + 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-36*fs - 6.47844436758614e-19) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-36*fs + 6.20142552100412e-19) + 3.72391306054362e-16) + 3.48645631966802e-14) - 3.34246646073902e-12)) + 1.67123323036951e-9; a1 = fs*(fs*(fs*(-8.31056539746097e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) + 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(9.95059808088511e-36*fs + 1.94353331027584e-18) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-9.95059808088511e-36*fs - 1.86042765630124e-18) - 3.72391306054362e-16) + 3.48645631966802e-14) - 1.00273993822171e-11)) + 8.35616615184755e-9; a2 = fs*(fs*(fs*(5.54037693164065e-20*fs - 1.10816840615726e-15) - 1.00268158126056e-12) + 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-35*fs - 1.29568887351723e-18) + 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-35*fs + 1.24028510420082e-18) - 7.44782612108724e-16) - 6.97291263933603e-14) - 6.68493292147804e-12)) + 1.67123323036951e-8; a3 = fs*(fs*(fs*(5.54037693164065e-20*fs + 1.10816840615726e-15) - 1.00268158126056e-12) - 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-35*fs - 1.29568887351723e-18) - 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-35*fs + 1.24028510420082e-18) + 7.44782612108724e-16) - 6.97291263933603e-14) + 6.68493292147804e-12)) + 1.67123323036951e-8; a4 = fs*(fs*(fs*(-8.31056539746097e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) - 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-9.95059808088511e-36*fs + 1.94353331027584e-18) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(9.95059808088511e-36*fs - 1.86042765630124e-18) + 3.72391306054362e-16) + 3.48645631966802e-14) + 1.00273993822171e-11)) + 8.35616615184755e-9; a5 = fs*(fs*(fs*(2.77018846582032e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) - 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-36*fs - 6.47844436758614e-19) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-36*fs + 6.20142552100412e-19) - 3.72391306054362e-16) + 3.48645631966802e-14) + 3.34246646073902e-12)) + 1.67123323036951e-9; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/mesa_dual_rect_orange/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/mesa_dual_rect_orange/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { fs = float(ma.SR); b0 = -0.000655304158661071*fs - 0.18202893296141; b1 = -0.364057865922819; b2 = 0.000655304158661071*fs - 0.18202893296141; a0 = fs*(2.03405658623965e-10*fs + 1.09382323078101e-5) + 0.0063182117555006; a1 = -4.0681131724793e-10*pow(fs,2) + 0.0126364235110012; a2 = fs*(2.03405658623965e-10*fs - 1.09382323078101e-5) + 0.0063182117555006; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/mesa_dual_rect_orange/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/mesa_dual_rect_orange/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.146261721859089; b1 = -0.146261721859089; a0 = 1.88103770813187e-5*fs + 0.0971019000967005; a1 = -1.88103770813187e-5*fs + 0.0971019000967005; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/mesa_dual_rect_orange/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/mesa_dual_rect_orange/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s04_stage4clip with { fs = float(ma.SR); b0 = -0.00149525527902205*fs - 0.415348688617234; b1 = 0.00149525527902205*fs - 0.415348688617234; a0 = 2.06413022257424e-5*fs + 0.00921749316436716; a1 = -2.06413022257424e-5*fs + 0.00921749316436716; }; s04_stage4clip = _<: ba.if(signbit(_), s04_stage4_neg_clip, s04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage4_clip = ffunction(float s04_stage4clip(float), "generated/stage/mesa_dual_rect_orange/s04_stage4_table.h", ""); s04_stage4_neg_clip = ffunction(float s04_stage4_negclip(float), "generated/stage/mesa_dual_rect_orange/s04_stage4_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); b0 = bass*(pow(fs,2)*master*middle*(fs*(4.76406912084697e-20*fs + 4.1254512694203e-16) + 8.56336077593319e-13) + fs*master*(fs*(5.51797904906181e-17*fs + 4.51811269036553e-13) + 8.56336077593319e-10)) + fs*master*(fs*(1.37949476226545e-18*fs + 1.12952817259138e-14) + 2.1408401939833e-11) + middle*(pow(fs,2)*master*middle*(fs*(-1.19101728021174e-21*fs - 1.03136281735508e-17) - 2.1408401939833e-14) + fs*master*(fs*(fs*(1.19101728021174e-21*fs + 1.13161679717088e-17) + 3.06401225812049e-14) + 2.0886245794959e-11)) + treble*(bass*pow(fs,3)*master*(7.53909928214839e-20*fs + 3.92661420945228e-16) + pow(fs,3)*master*middle*(-1.8847748205371e-21*fs - 9.81653552363071e-18) + fs*master*(fs*(fs*(1.8847748205371e-21*fs + 1.35860851647049e-17) + 2.06356108454195e-14) + 5.22156144873975e-12)); b1 = bass*(pow(fs,3)*master*middle*(-1.90562764833879e-19*fs - 8.2509025388406e-16) + fs*master*(-1.10359580981236e-16*pow(fs,2) + 1.71267215518664e-9)) + fs*master*(-2.7589895245309e-18*pow(fs,2) + 4.2816803879666e-11) + middle*(pow(fs,3)*master*middle*(4.76406912084697e-21*fs + 2.06272563471015e-17) + fs*master*(pow(fs,2)*(-4.76406912084697e-21*fs - 2.26323359434176e-17) + 4.1772491589918e-11)) + treble*(bass*pow(fs,3)*master*(-3.01563971285935e-19*fs - 7.85322841890457e-16) + pow(fs,3)*master*middle*(7.53909928214839e-21*fs + 1.96330710472614e-17) + fs*master*(pow(fs,2)*(-7.53909928214839e-21*fs - 2.71721703294098e-17) + 1.04431228974795e-11)); b2 = bass*(pow(fs,2)*master*middle*(2.85844147250818e-19*pow(fs,2) - 1.71267215518664e-12) - 9.03622538073106e-13*pow(fs,2)*master) - 2.25905634518277e-14*pow(fs,2)*master + middle*(pow(fs,2)*master*middle*(-7.14610368127045e-21*pow(fs,2) + 4.2816803879666e-14) + pow(fs,2)*master*(7.14610368127045e-21*pow(fs,2) - 6.12802451624097e-14)) + treble*(4.52345956928903e-19*bass*pow(fs,4)*master - 1.13086489232226e-20*pow(fs,4)*master*middle + pow(fs,2)*master*(1.13086489232226e-20*pow(fs,2) - 4.12712216908389e-14)); b3 = bass*(pow(fs,3)*master*middle*(-1.90562764833879e-19*fs + 8.2509025388406e-16) + fs*master*(1.10359580981236e-16*pow(fs,2) - 1.71267215518664e-9)) + fs*master*(2.7589895245309e-18*pow(fs,2) - 4.2816803879666e-11) + middle*(pow(fs,3)*master*middle*(4.76406912084697e-21*fs - 2.06272563471015e-17) + fs*master*(pow(fs,2)*(-4.76406912084697e-21*fs + 2.26323359434176e-17) - 4.1772491589918e-11)) + treble*(bass*pow(fs,3)*master*(-3.01563971285935e-19*fs + 7.85322841890457e-16) + pow(fs,3)*master*middle*(7.53909928214839e-21*fs - 1.96330710472614e-17) + fs*master*(pow(fs,2)*(-7.53909928214839e-21*fs + 2.71721703294098e-17) - 1.04431228974795e-11)); b4 = bass*(pow(fs,2)*master*middle*(fs*(4.76406912084697e-20*fs - 4.1254512694203e-16) + 8.56336077593319e-13) + fs*master*(fs*(-5.51797904906181e-17*fs + 4.51811269036553e-13) - 8.56336077593319e-10)) + fs*master*(fs*(-1.37949476226545e-18*fs + 1.12952817259138e-14) - 2.1408401939833e-11) + middle*(pow(fs,2)*master*middle*(fs*(-1.19101728021174e-21*fs + 1.03136281735508e-17) - 2.1408401939833e-14) + fs*master*(fs*(fs*(1.19101728021174e-21*fs - 1.13161679717088e-17) + 3.06401225812049e-14) - 2.0886245794959e-11)) + treble*(bass*pow(fs,3)*master*(7.53909928214839e-20*fs - 3.92661420945228e-16) + pow(fs,3)*master*middle*(-1.8847748205371e-21*fs + 9.81653552363071e-18) + fs*master*(fs*(fs*(1.8847748205371e-21*fs - 1.35860851647049e-17) + 2.06356108454195e-14) - 5.22156144873975e-12)); a0 = bass*(fs*middle*(fs*(fs*(1.08424679170791e-19*fs + 6.97829522805543e-16) + 1.03015141509897e-12) + 2.0886245794959e-11) + fs*(fs*(fs*(7.53909928214839e-20*fs + 8.70973158646425e-16) + 2.5606938360539e-12) + 1.06941755719349e-9) + 2.0886245794959e-8) + fs*(fs*(fs*(1.8847748205371e-21*fs + 2.55438786072348e-17) + 9.97311553110636e-14) + 1.14499443760255e-10) + middle*(fs*middle*(fs*(fs*(-2.71061697926978e-21*fs - 1.74457380701386e-17) - 2.57537853774742e-14) - 5.22156144873975e-13) + fs*(fs*(fs*(8.2584215873268e-22*fs + 1.09264306251751e-18) - 4.28063607567676e-15) + 2.1408401939833e-11)) + treble*(bass*(pow(fs,2)*middle*(fs*(2.62535096943644e-19*fs + 1.30334351009703e-15) + 2.0364089650085e-13) + fs*(fs*(fs*(6.07839879623214e-19*fs + 2.73127598271048e-15) + 1.68618839551863e-12) + 2.0364089650085e-10)) + fs*(fs*(fs*(1.51959969905803e-20*fs + 9.86738935489228e-17) + 1.76713930697073e-13) + 5.83613923125642e-11) + middle*(pow(fs,2)*middle*(fs*(-6.5633774235911e-21*fs - 3.25835877524258e-17) - 5.09102241252126e-15) + fs*(fs*(fs*(-8.63261956698924e-21*fs - 2.25715569681541e-17) + 2.8911785741672e-14) + 5.22156144873975e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.23319084905965e-19*fs - 5.22156144873975e-17) + pow(fs,2)*(fs*(-6.07839879623214e-19*fs - 4.21484440142273e-16) - 5.22156144873975e-14)) + fs*(fs*(fs*(-1.51959969905803e-20*fs - 4.09291049847175e-17) - 1.42966352466494e-14) - 1.30539036218494e-12) + middle*(pow(fs,3)*middle*(8.08297712264914e-21*fs + 1.30539036218494e-18) + pow(fs,2)*(fs*(7.1130198679312e-21*fs - 6.93423360392639e-18) - 1.30539036218494e-15))) + 5.22156144873975e-9) + 2.1408401939833e-8; a1 = bass*(fs*middle*(pow(fs,2)*(-4.33698716683164e-19*fs - 1.39565904561109e-15) + 4.1772491589918e-11) + fs*(pow(fs,2)*(-3.01563971285935e-19*fs - 1.74194631729285e-15) + 2.13883511438698e-9) + 8.3544983179836e-8) + fs*(pow(fs,2)*(-7.53909928214839e-21*fs - 5.10877572144696e-17) + 2.2899888752051e-10) + middle*(fs*middle*(pow(fs,2)*(1.08424679170791e-20*fs + 3.48914761402771e-17) - 1.04431228974795e-12) + fs*(pow(fs,2)*(-3.30336863493072e-21*fs - 2.18528612503502e-18) + 4.2816803879666e-11)) + treble*(bass*(pow(fs,3)*middle*(-1.05014038777458e-18*fs - 2.60668702019406e-15) + fs*(pow(fs,2)*(-2.43135951849285e-18*fs - 5.46255196542097e-15) + 4.07281793001701e-10)) + fs*(pow(fs,2)*(-6.07839879623214e-20*fs - 1.97347787097846e-16) + 1.16722784625128e-10) + middle*(pow(fs,3)*middle*(2.62535096943644e-20*fs + 6.51671755048516e-17) + fs*(pow(fs,2)*(3.4530478267957e-20*fs + 4.51431139363082e-17) + 1.04431228974795e-11)) + treble*(bass*(pow(fs,3)*middle*(1.29327633962386e-18*fs + 1.04431228974795e-16) + pow(fs,3)*(2.43135951849285e-18*fs + 8.42968880284545e-16)) + fs*(pow(fs,2)*(6.07839879623214e-20*fs + 8.1858209969435e-17) - 2.61078072436988e-12) + middle*(pow(fs,3)*middle*(-3.23319084905965e-20*fs - 2.61078072436988e-18) + pow(fs,3)*(-2.84520794717248e-20*fs + 1.38684672078528e-17))) + 2.0886245794959e-8) + 8.56336077593319e-8; a2 = bass*(pow(fs,2)*middle*(6.50548075024746e-19*pow(fs,2) - 2.06030283019794e-12) + pow(fs,2)*(4.52345956928903e-19*pow(fs,2) - 5.12138767210779e-12) + 1.25317474769754e-7) + pow(fs,2)*(1.13086489232226e-20*pow(fs,2) - 1.99462310622127e-13) + middle*(pow(fs,2)*middle*(-1.62637018756187e-20*pow(fs,2) + 5.15075707549484e-14) + pow(fs,2)*(4.95505295239608e-21*pow(fs,2) + 8.56127215135352e-15)) + treble*(bass*(pow(fs,2)*middle*(1.57521058166186e-18*pow(fs,2) - 4.07281793001701e-13) + pow(fs,2)*(3.64703927773928e-18*pow(fs,2) - 3.37237679103726e-12)) + pow(fs,2)*(9.1175981943482e-20*pow(fs,2) - 3.53427861394146e-13) + middle*(pow(fs,2)*middle*(-3.93802645415466e-20*pow(fs,2) + 1.01820448250425e-14) + pow(fs,2)*(-5.17957174019354e-20*pow(fs,2) - 5.78235714833441e-14)) + treble*(bass*(-1.93991450943579e-18*pow(fs,4)*middle + pow(fs,2)*(-3.64703927773928e-18*pow(fs,2) + 1.04431228974795e-13)) + pow(fs,2)*(-9.1175981943482e-20*pow(fs,2) + 2.85932704932989e-14) + middle*(4.84978627358948e-20*pow(fs,4)*middle + pow(fs,2)*(4.26781192075872e-20*pow(fs,2) + 2.61078072436988e-15))) + 3.13293686924385e-8) + 1.28450411638998e-7; a3 = bass*(fs*middle*(pow(fs,2)*(-4.33698716683164e-19*fs + 1.39565904561109e-15) - 4.1772491589918e-11) + fs*(pow(fs,2)*(-3.01563971285935e-19*fs + 1.74194631729285e-15) - 2.13883511438698e-9) + 8.3544983179836e-8) + fs*(pow(fs,2)*(-7.53909928214839e-21*fs + 5.10877572144696e-17) - 2.2899888752051e-10) + middle*(fs*middle*(pow(fs,2)*(1.08424679170791e-20*fs - 3.48914761402771e-17) + 1.04431228974795e-12) + fs*(pow(fs,2)*(-3.30336863493072e-21*fs + 2.18528612503502e-18) - 4.2816803879666e-11)) + treble*(bass*(pow(fs,3)*middle*(-1.05014038777458e-18*fs + 2.60668702019406e-15) + fs*(pow(fs,2)*(-2.43135951849285e-18*fs + 5.46255196542097e-15) - 4.07281793001701e-10)) + fs*(pow(fs,2)*(-6.07839879623214e-20*fs + 1.97347787097846e-16) - 1.16722784625128e-10) + middle*(pow(fs,3)*middle*(2.62535096943644e-20*fs - 6.51671755048516e-17) + fs*(pow(fs,2)*(3.4530478267957e-20*fs - 4.51431139363082e-17) - 1.04431228974795e-11)) + treble*(bass*(pow(fs,3)*middle*(1.29327633962386e-18*fs - 1.04431228974795e-16) + pow(fs,3)*(2.43135951849285e-18*fs - 8.42968880284545e-16)) + fs*(pow(fs,2)*(6.07839879623214e-20*fs - 8.1858209969435e-17) + 2.61078072436988e-12) + middle*(pow(fs,3)*middle*(-3.23319084905965e-20*fs + 2.61078072436988e-18) + pow(fs,3)*(-2.84520794717248e-20*fs - 1.38684672078528e-17))) + 2.0886245794959e-8) + 8.56336077593319e-8; a4 = bass*(fs*middle*(fs*(fs*(1.08424679170791e-19*fs - 6.97829522805543e-16) + 1.03015141509897e-12) - 2.0886245794959e-11) + fs*(fs*(fs*(7.53909928214839e-20*fs - 8.70973158646425e-16) + 2.5606938360539e-12) - 1.06941755719349e-9) + 2.0886245794959e-8) + fs*(fs*(fs*(1.8847748205371e-21*fs - 2.55438786072348e-17) + 9.97311553110636e-14) - 1.14499443760255e-10) + middle*(fs*middle*(fs*(fs*(-2.71061697926978e-21*fs + 1.74457380701386e-17) - 2.57537853774742e-14) + 5.22156144873975e-13) + fs*(fs*(fs*(8.2584215873268e-22*fs - 1.09264306251751e-18) - 4.28063607567676e-15) - 2.1408401939833e-11)) + treble*(bass*(pow(fs,2)*middle*(fs*(2.62535096943644e-19*fs - 1.30334351009703e-15) + 2.0364089650085e-13) + fs*(fs*(fs*(6.07839879623214e-19*fs - 2.73127598271048e-15) + 1.68618839551863e-12) - 2.0364089650085e-10)) + fs*(fs*(fs*(1.51959969905803e-20*fs - 9.86738935489228e-17) + 1.76713930697073e-13) - 5.83613923125642e-11) + middle*(pow(fs,2)*middle*(fs*(-6.5633774235911e-21*fs + 3.25835877524258e-17) - 5.09102241252126e-15) + fs*(fs*(fs*(-8.63261956698924e-21*fs + 2.25715569681541e-17) + 2.8911785741672e-14) - 5.22156144873975e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.23319084905965e-19*fs + 5.22156144873975e-17) + pow(fs,2)*(fs*(-6.07839879623214e-19*fs + 4.21484440142273e-16) - 5.22156144873975e-14)) + fs*(fs*(fs*(-1.51959969905803e-20*fs + 4.09291049847175e-17) - 1.42966352466494e-14) + 1.30539036218494e-12) + middle*(pow(fs,3)*middle*(8.08297712264914e-21*fs - 1.30539036218494e-18) + pow(fs,2)*(fs*(7.1130198679312e-21*fs + 6.93423360392639e-18) - 1.30539036218494e-15))) + 5.22156144873975e-9) + 2.1408401939833e-8; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s06_stage5clip with { fs = float(ma.SR); b0 = 2.82461475968336e-10*pow(fs,2); b1 = -5.64922951936672e-10*pow(fs,2); b2 = 2.82461475968336e-10*pow(fs,2); a0 = fs*(4.33570405894608e-10*fs + 2.19519582346283e-8) + 9.08235621017275e-8; a1 = -8.67140811789215e-10*pow(fs,2) + 1.81647124203455e-7; a2 = fs*(4.33570405894608e-10*fs - 2.19519582346283e-8) + 9.08235621017275e-8; }; s06_stage5clip = _<: ba.if(signbit(_), s06_stage5_neg_clip, s06_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage5_clip = ffunction(float s06_stage5clip(float), "generated/stage/mesa_dual_rect_orange/s06_stage5_table.h", ""); s06_stage5_neg_clip = ffunction(float s06_stage5_negclip(float), "generated/stage/mesa_dual_rect_orange/s06_stage5_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s07_stage6clip with { fs = float(ma.SR); b0 = -0.00119749787393626*fs - 0.123708458051269; b1 = 0.00119749787393626*fs - 0.123708458051269; a0 = 2.07375662139675e-5*fs + 0.00459682172955979; a1 = -2.07375662139675e-5*fs + 0.00459682172955979; }; s07_stage6clip = _<: ba.if(signbit(_), s07_stage6_neg_clip, s07_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s07_stage6_clip = ffunction(float s07_stage6clip(float), "generated/stage/mesa_dual_rect_orange/s07_stage6_table.h", ""); s07_stage6_neg_clip = ffunction(float s07_stage6_negclip(float), "generated/stage/mesa_dual_rect_orange/s07_stage6_neg_table.h", ""); }; process = *(pregain) : *(0.4) : p1 : *(1.4) : p2 : *(2.0) : p3 : *(2.0) : p4 : p5 : *(1.2) : p6 : *(1.2) : p7 : *(0.03) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/mesa_dual_rect_orange.dsp
faust
* This is simulation of Mesa Dual Rectifier preamplifier (orange channel, less gain) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "mesa_dual_rect_orange"; declare name "mesa_dual_rect_orange"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs - 5.89531552466728e-14) - 2.36970197236252e-11) - 3.0525726492396e-9)); b1 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs + 5.89531552466728e-14) - 2.36970197236252e-11) - 9.1577179477188e-9)); b2 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs - 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs + 1.17906310493346e-13) + 4.73940394472505e-11) - 6.1051452984792e-9)); b3 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs + 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs - 1.17906310493346e-13) + 4.73940394472505e-11) + 6.1051452984792e-9)); b4 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs - 5.89531552466728e-14) - 2.36970197236252e-11) + 9.1577179477188e-9)); b5 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs + 5.89531552466728e-14) - 2.36970197236252e-11) + 3.0525726492396e-9)); a0 = fs*(fs*(fs*(2.77018846582032e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) + 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-36*fs - 6.47844436758614e-19) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-36*fs + 6.20142552100412e-19) + 3.72391306054362e-16) + 3.48645631966802e-14) - 3.34246646073902e-12)) + 1.67123323036951e-9; a1 = fs*(fs*(fs*(-8.31056539746097e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) + 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(9.95059808088511e-36*fs + 1.94353331027584e-18) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-9.95059808088511e-36*fs - 1.86042765630124e-18) - 3.72391306054362e-16) + 3.48645631966802e-14) - 1.00273993822171e-11)) + 8.35616615184755e-9; a2 = fs*(fs*(fs*(5.54037693164065e-20*fs - 1.10816840615726e-15) - 1.00268158126056e-12) + 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-35*fs - 1.29568887351723e-18) + 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-35*fs + 1.24028510420082e-18) - 7.44782612108724e-16) - 6.97291263933603e-14) - 6.68493292147804e-12)) + 1.67123323036951e-8; a3 = fs*(fs*(fs*(5.54037693164065e-20*fs + 1.10816840615726e-15) - 1.00268158126056e-12) - 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-35*fs - 1.29568887351723e-18) - 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-35*fs + 1.24028510420082e-18) + 7.44782612108724e-16) - 6.97291263933603e-14) + 6.68493292147804e-12)) + 1.67123323036951e-8; a4 = fs*(fs*(fs*(-8.31056539746097e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) - 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-9.95059808088511e-36*fs + 1.94353331027584e-18) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(9.95059808088511e-36*fs - 1.86042765630124e-18) + 3.72391306054362e-16) + 3.48645631966802e-14) + 1.00273993822171e-11)) + 8.35616615184755e-9; a5 = fs*(fs*(fs*(2.77018846582032e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) - 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-36*fs - 6.47844436758614e-19) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-36*fs + 6.20142552100412e-19) - 3.72391306054362e-16) + 3.48645631966802e-14) + 3.34246646073902e-12)) + 1.67123323036951e-9; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/mesa_dual_rect_orange/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/mesa_dual_rect_orange/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { fs = float(ma.SR); b0 = -0.000655304158661071*fs - 0.18202893296141; b1 = -0.364057865922819; b2 = 0.000655304158661071*fs - 0.18202893296141; a0 = fs*(2.03405658623965e-10*fs + 1.09382323078101e-5) + 0.0063182117555006; a1 = -4.0681131724793e-10*pow(fs,2) + 0.0126364235110012; a2 = fs*(2.03405658623965e-10*fs - 1.09382323078101e-5) + 0.0063182117555006; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/mesa_dual_rect_orange/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/mesa_dual_rect_orange/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.146261721859089; b1 = -0.146261721859089; a0 = 1.88103770813187e-5*fs + 0.0971019000967005; a1 = -1.88103770813187e-5*fs + 0.0971019000967005; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/mesa_dual_rect_orange/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/mesa_dual_rect_orange/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s04_stage4clip with { fs = float(ma.SR); b0 = -0.00149525527902205*fs - 0.415348688617234; b1 = 0.00149525527902205*fs - 0.415348688617234; a0 = 2.06413022257424e-5*fs + 0.00921749316436716; a1 = -2.06413022257424e-5*fs + 0.00921749316436716; }; s04_stage4clip = _<: ba.if(signbit(_), s04_stage4_neg_clip, s04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage4_clip = ffunction(float s04_stage4clip(float), "generated/stage/mesa_dual_rect_orange/s04_stage4_table.h", ""); s04_stage4_neg_clip = ffunction(float s04_stage4_negclip(float), "generated/stage/mesa_dual_rect_orange/s04_stage4_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); b0 = bass*(pow(fs,2)*master*middle*(fs*(4.76406912084697e-20*fs + 4.1254512694203e-16) + 8.56336077593319e-13) + fs*master*(fs*(5.51797904906181e-17*fs + 4.51811269036553e-13) + 8.56336077593319e-10)) + fs*master*(fs*(1.37949476226545e-18*fs + 1.12952817259138e-14) + 2.1408401939833e-11) + middle*(pow(fs,2)*master*middle*(fs*(-1.19101728021174e-21*fs - 1.03136281735508e-17) - 2.1408401939833e-14) + fs*master*(fs*(fs*(1.19101728021174e-21*fs + 1.13161679717088e-17) + 3.06401225812049e-14) + 2.0886245794959e-11)) + treble*(bass*pow(fs,3)*master*(7.53909928214839e-20*fs + 3.92661420945228e-16) + pow(fs,3)*master*middle*(-1.8847748205371e-21*fs - 9.81653552363071e-18) + fs*master*(fs*(fs*(1.8847748205371e-21*fs + 1.35860851647049e-17) + 2.06356108454195e-14) + 5.22156144873975e-12)); b1 = bass*(pow(fs,3)*master*middle*(-1.90562764833879e-19*fs - 8.2509025388406e-16) + fs*master*(-1.10359580981236e-16*pow(fs,2) + 1.71267215518664e-9)) + fs*master*(-2.7589895245309e-18*pow(fs,2) + 4.2816803879666e-11) + middle*(pow(fs,3)*master*middle*(4.76406912084697e-21*fs + 2.06272563471015e-17) + fs*master*(pow(fs,2)*(-4.76406912084697e-21*fs - 2.26323359434176e-17) + 4.1772491589918e-11)) + treble*(bass*pow(fs,3)*master*(-3.01563971285935e-19*fs - 7.85322841890457e-16) + pow(fs,3)*master*middle*(7.53909928214839e-21*fs + 1.96330710472614e-17) + fs*master*(pow(fs,2)*(-7.53909928214839e-21*fs - 2.71721703294098e-17) + 1.04431228974795e-11)); b2 = bass*(pow(fs,2)*master*middle*(2.85844147250818e-19*pow(fs,2) - 1.71267215518664e-12) - 9.03622538073106e-13*pow(fs,2)*master) - 2.25905634518277e-14*pow(fs,2)*master + middle*(pow(fs,2)*master*middle*(-7.14610368127045e-21*pow(fs,2) + 4.2816803879666e-14) + pow(fs,2)*master*(7.14610368127045e-21*pow(fs,2) - 6.12802451624097e-14)) + treble*(4.52345956928903e-19*bass*pow(fs,4)*master - 1.13086489232226e-20*pow(fs,4)*master*middle + pow(fs,2)*master*(1.13086489232226e-20*pow(fs,2) - 4.12712216908389e-14)); b3 = bass*(pow(fs,3)*master*middle*(-1.90562764833879e-19*fs + 8.2509025388406e-16) + fs*master*(1.10359580981236e-16*pow(fs,2) - 1.71267215518664e-9)) + fs*master*(2.7589895245309e-18*pow(fs,2) - 4.2816803879666e-11) + middle*(pow(fs,3)*master*middle*(4.76406912084697e-21*fs - 2.06272563471015e-17) + fs*master*(pow(fs,2)*(-4.76406912084697e-21*fs + 2.26323359434176e-17) - 4.1772491589918e-11)) + treble*(bass*pow(fs,3)*master*(-3.01563971285935e-19*fs + 7.85322841890457e-16) + pow(fs,3)*master*middle*(7.53909928214839e-21*fs - 1.96330710472614e-17) + fs*master*(pow(fs,2)*(-7.53909928214839e-21*fs + 2.71721703294098e-17) - 1.04431228974795e-11)); b4 = bass*(pow(fs,2)*master*middle*(fs*(4.76406912084697e-20*fs - 4.1254512694203e-16) + 8.56336077593319e-13) + fs*master*(fs*(-5.51797904906181e-17*fs + 4.51811269036553e-13) - 8.56336077593319e-10)) + fs*master*(fs*(-1.37949476226545e-18*fs + 1.12952817259138e-14) - 2.1408401939833e-11) + middle*(pow(fs,2)*master*middle*(fs*(-1.19101728021174e-21*fs + 1.03136281735508e-17) - 2.1408401939833e-14) + fs*master*(fs*(fs*(1.19101728021174e-21*fs - 1.13161679717088e-17) + 3.06401225812049e-14) - 2.0886245794959e-11)) + treble*(bass*pow(fs,3)*master*(7.53909928214839e-20*fs - 3.92661420945228e-16) + pow(fs,3)*master*middle*(-1.8847748205371e-21*fs + 9.81653552363071e-18) + fs*master*(fs*(fs*(1.8847748205371e-21*fs - 1.35860851647049e-17) + 2.06356108454195e-14) - 5.22156144873975e-12)); a0 = bass*(fs*middle*(fs*(fs*(1.08424679170791e-19*fs + 6.97829522805543e-16) + 1.03015141509897e-12) + 2.0886245794959e-11) + fs*(fs*(fs*(7.53909928214839e-20*fs + 8.70973158646425e-16) + 2.5606938360539e-12) + 1.06941755719349e-9) + 2.0886245794959e-8) + fs*(fs*(fs*(1.8847748205371e-21*fs + 2.55438786072348e-17) + 9.97311553110636e-14) + 1.14499443760255e-10) + middle*(fs*middle*(fs*(fs*(-2.71061697926978e-21*fs - 1.74457380701386e-17) - 2.57537853774742e-14) - 5.22156144873975e-13) + fs*(fs*(fs*(8.2584215873268e-22*fs + 1.09264306251751e-18) - 4.28063607567676e-15) + 2.1408401939833e-11)) + treble*(bass*(pow(fs,2)*middle*(fs*(2.62535096943644e-19*fs + 1.30334351009703e-15) + 2.0364089650085e-13) + fs*(fs*(fs*(6.07839879623214e-19*fs + 2.73127598271048e-15) + 1.68618839551863e-12) + 2.0364089650085e-10)) + fs*(fs*(fs*(1.51959969905803e-20*fs + 9.86738935489228e-17) + 1.76713930697073e-13) + 5.83613923125642e-11) + middle*(pow(fs,2)*middle*(fs*(-6.5633774235911e-21*fs - 3.25835877524258e-17) - 5.09102241252126e-15) + fs*(fs*(fs*(-8.63261956698924e-21*fs - 2.25715569681541e-17) + 2.8911785741672e-14) + 5.22156144873975e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.23319084905965e-19*fs - 5.22156144873975e-17) + pow(fs,2)*(fs*(-6.07839879623214e-19*fs - 4.21484440142273e-16) - 5.22156144873975e-14)) + fs*(fs*(fs*(-1.51959969905803e-20*fs - 4.09291049847175e-17) - 1.42966352466494e-14) - 1.30539036218494e-12) + middle*(pow(fs,3)*middle*(8.08297712264914e-21*fs + 1.30539036218494e-18) + pow(fs,2)*(fs*(7.1130198679312e-21*fs - 6.93423360392639e-18) - 1.30539036218494e-15))) + 5.22156144873975e-9) + 2.1408401939833e-8; a1 = bass*(fs*middle*(pow(fs,2)*(-4.33698716683164e-19*fs - 1.39565904561109e-15) + 4.1772491589918e-11) + fs*(pow(fs,2)*(-3.01563971285935e-19*fs - 1.74194631729285e-15) + 2.13883511438698e-9) + 8.3544983179836e-8) + fs*(pow(fs,2)*(-7.53909928214839e-21*fs - 5.10877572144696e-17) + 2.2899888752051e-10) + middle*(fs*middle*(pow(fs,2)*(1.08424679170791e-20*fs + 3.48914761402771e-17) - 1.04431228974795e-12) + fs*(pow(fs,2)*(-3.30336863493072e-21*fs - 2.18528612503502e-18) + 4.2816803879666e-11)) + treble*(bass*(pow(fs,3)*middle*(-1.05014038777458e-18*fs - 2.60668702019406e-15) + fs*(pow(fs,2)*(-2.43135951849285e-18*fs - 5.46255196542097e-15) + 4.07281793001701e-10)) + fs*(pow(fs,2)*(-6.07839879623214e-20*fs - 1.97347787097846e-16) + 1.16722784625128e-10) + middle*(pow(fs,3)*middle*(2.62535096943644e-20*fs + 6.51671755048516e-17) + fs*(pow(fs,2)*(3.4530478267957e-20*fs + 4.51431139363082e-17) + 1.04431228974795e-11)) + treble*(bass*(pow(fs,3)*middle*(1.29327633962386e-18*fs + 1.04431228974795e-16) + pow(fs,3)*(2.43135951849285e-18*fs + 8.42968880284545e-16)) + fs*(pow(fs,2)*(6.07839879623214e-20*fs + 8.1858209969435e-17) - 2.61078072436988e-12) + middle*(pow(fs,3)*middle*(-3.23319084905965e-20*fs - 2.61078072436988e-18) + pow(fs,3)*(-2.84520794717248e-20*fs + 1.38684672078528e-17))) + 2.0886245794959e-8) + 8.56336077593319e-8; a2 = bass*(pow(fs,2)*middle*(6.50548075024746e-19*pow(fs,2) - 2.06030283019794e-12) + pow(fs,2)*(4.52345956928903e-19*pow(fs,2) - 5.12138767210779e-12) + 1.25317474769754e-7) + pow(fs,2)*(1.13086489232226e-20*pow(fs,2) - 1.99462310622127e-13) + middle*(pow(fs,2)*middle*(-1.62637018756187e-20*pow(fs,2) + 5.15075707549484e-14) + pow(fs,2)*(4.95505295239608e-21*pow(fs,2) + 8.56127215135352e-15)) + treble*(bass*(pow(fs,2)*middle*(1.57521058166186e-18*pow(fs,2) - 4.07281793001701e-13) + pow(fs,2)*(3.64703927773928e-18*pow(fs,2) - 3.37237679103726e-12)) + pow(fs,2)*(9.1175981943482e-20*pow(fs,2) - 3.53427861394146e-13) + middle*(pow(fs,2)*middle*(-3.93802645415466e-20*pow(fs,2) + 1.01820448250425e-14) + pow(fs,2)*(-5.17957174019354e-20*pow(fs,2) - 5.78235714833441e-14)) + treble*(bass*(-1.93991450943579e-18*pow(fs,4)*middle + pow(fs,2)*(-3.64703927773928e-18*pow(fs,2) + 1.04431228974795e-13)) + pow(fs,2)*(-9.1175981943482e-20*pow(fs,2) + 2.85932704932989e-14) + middle*(4.84978627358948e-20*pow(fs,4)*middle + pow(fs,2)*(4.26781192075872e-20*pow(fs,2) + 2.61078072436988e-15))) + 3.13293686924385e-8) + 1.28450411638998e-7; a3 = bass*(fs*middle*(pow(fs,2)*(-4.33698716683164e-19*fs + 1.39565904561109e-15) - 4.1772491589918e-11) + fs*(pow(fs,2)*(-3.01563971285935e-19*fs + 1.74194631729285e-15) - 2.13883511438698e-9) + 8.3544983179836e-8) + fs*(pow(fs,2)*(-7.53909928214839e-21*fs + 5.10877572144696e-17) - 2.2899888752051e-10) + middle*(fs*middle*(pow(fs,2)*(1.08424679170791e-20*fs - 3.48914761402771e-17) + 1.04431228974795e-12) + fs*(pow(fs,2)*(-3.30336863493072e-21*fs + 2.18528612503502e-18) - 4.2816803879666e-11)) + treble*(bass*(pow(fs,3)*middle*(-1.05014038777458e-18*fs + 2.60668702019406e-15) + fs*(pow(fs,2)*(-2.43135951849285e-18*fs + 5.46255196542097e-15) - 4.07281793001701e-10)) + fs*(pow(fs,2)*(-6.07839879623214e-20*fs + 1.97347787097846e-16) - 1.16722784625128e-10) + middle*(pow(fs,3)*middle*(2.62535096943644e-20*fs - 6.51671755048516e-17) + fs*(pow(fs,2)*(3.4530478267957e-20*fs - 4.51431139363082e-17) - 1.04431228974795e-11)) + treble*(bass*(pow(fs,3)*middle*(1.29327633962386e-18*fs - 1.04431228974795e-16) + pow(fs,3)*(2.43135951849285e-18*fs - 8.42968880284545e-16)) + fs*(pow(fs,2)*(6.07839879623214e-20*fs - 8.1858209969435e-17) + 2.61078072436988e-12) + middle*(pow(fs,3)*middle*(-3.23319084905965e-20*fs + 2.61078072436988e-18) + pow(fs,3)*(-2.84520794717248e-20*fs - 1.38684672078528e-17))) + 2.0886245794959e-8) + 8.56336077593319e-8; a4 = bass*(fs*middle*(fs*(fs*(1.08424679170791e-19*fs - 6.97829522805543e-16) + 1.03015141509897e-12) - 2.0886245794959e-11) + fs*(fs*(fs*(7.53909928214839e-20*fs - 8.70973158646425e-16) + 2.5606938360539e-12) - 1.06941755719349e-9) + 2.0886245794959e-8) + fs*(fs*(fs*(1.8847748205371e-21*fs - 2.55438786072348e-17) + 9.97311553110636e-14) - 1.14499443760255e-10) + middle*(fs*middle*(fs*(fs*(-2.71061697926978e-21*fs + 1.74457380701386e-17) - 2.57537853774742e-14) + 5.22156144873975e-13) + fs*(fs*(fs*(8.2584215873268e-22*fs - 1.09264306251751e-18) - 4.28063607567676e-15) - 2.1408401939833e-11)) + treble*(bass*(pow(fs,2)*middle*(fs*(2.62535096943644e-19*fs - 1.30334351009703e-15) + 2.0364089650085e-13) + fs*(fs*(fs*(6.07839879623214e-19*fs - 2.73127598271048e-15) + 1.68618839551863e-12) - 2.0364089650085e-10)) + fs*(fs*(fs*(1.51959969905803e-20*fs - 9.86738935489228e-17) + 1.76713930697073e-13) - 5.83613923125642e-11) + middle*(pow(fs,2)*middle*(fs*(-6.5633774235911e-21*fs + 3.25835877524258e-17) - 5.09102241252126e-15) + fs*(fs*(fs*(-8.63261956698924e-21*fs + 2.25715569681541e-17) + 2.8911785741672e-14) - 5.22156144873975e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.23319084905965e-19*fs + 5.22156144873975e-17) + pow(fs,2)*(fs*(-6.07839879623214e-19*fs + 4.21484440142273e-16) - 5.22156144873975e-14)) + fs*(fs*(fs*(-1.51959969905803e-20*fs + 4.09291049847175e-17) - 1.42966352466494e-14) + 1.30539036218494e-12) + middle*(pow(fs,3)*middle*(8.08297712264914e-21*fs - 1.30539036218494e-18) + pow(fs,2)*(fs*(7.1130198679312e-21*fs + 6.93423360392639e-18) - 1.30539036218494e-15))) + 5.22156144873975e-9) + 2.1408401939833e-8; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s06_stage5clip with { fs = float(ma.SR); b0 = 2.82461475968336e-10*pow(fs,2); b1 = -5.64922951936672e-10*pow(fs,2); b2 = 2.82461475968336e-10*pow(fs,2); a0 = fs*(4.33570405894608e-10*fs + 2.19519582346283e-8) + 9.08235621017275e-8; a1 = -8.67140811789215e-10*pow(fs,2) + 1.81647124203455e-7; a2 = fs*(4.33570405894608e-10*fs - 2.19519582346283e-8) + 9.08235621017275e-8; }; s06_stage5clip = _<: ba.if(signbit(_), s06_stage5_neg_clip, s06_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage5_clip = ffunction(float s06_stage5clip(float), "generated/stage/mesa_dual_rect_orange/s06_stage5_table.h", ""); s06_stage5_neg_clip = ffunction(float s06_stage5_negclip(float), "generated/stage/mesa_dual_rect_orange/s06_stage5_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s07_stage6clip with { fs = float(ma.SR); b0 = -0.00119749787393626*fs - 0.123708458051269; b1 = 0.00119749787393626*fs - 0.123708458051269; a0 = 2.07375662139675e-5*fs + 0.00459682172955979; a1 = -2.07375662139675e-5*fs + 0.00459682172955979; }; s07_stage6clip = _<: ba.if(signbit(_), s07_stage6_neg_clip, s07_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s07_stage6_clip = ffunction(float s07_stage6clip(float), "generated/stage/mesa_dual_rect_orange/s07_stage6_table.h", ""); s07_stage6_neg_clip = ffunction(float s07_stage6_negclip(float), "generated/stage/mesa_dual_rect_orange/s07_stage6_neg_table.h", ""); }; process = *(pregain) : *(0.4) : p1 : *(1.4) : p2 : *(2.0) : p3 : *(2.0) : p4 : p5 : *(1.2) : p6 : *(1.2) : p7 : *(0.03) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
a9271fe3547db8c486ea5fc60a2a8ea2eb2bc6d1329bc50630875a4ff2f7f772
jpcima/Bass21
Bass21Faust.dsp
import("stdfaust.lib"); declare author "JPC"; declare license "AGPL-3.0-or-later"; //NOTE: requires -double process = bass21(pregain, level, blend, presence, drive, bass, treble) with { begin = checkbox("[0] begin"); pregain = hslider("[1] pregain", 0.5, 0.0, 1.0, 0.001) : si.smooth(pole); level = hslider("[2] level", 0.5, 0.0, 1.0, 0.001) : si.smooth(pole); blend = hslider("[3] blend", 0.5, 0.0, 1.0, 0.001) : si.smooth(pole); presence = hslider("[4] presence", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); drive = hslider("[5] drive", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); bass = hslider("[6] bass", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); treble = hslider("[7] treble", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); pole = ba.tau2pole(50e-3/6.91); }; //------------------------------------------------------------------------------ // Circuit //------------------------------------------------------------------------------ bass21(pregain, level, blend, presence, drive, bass, treble) = *(pregain) : bass21Input <: ((_ : bass21RCNetwork1 : bass21Presence(presence) : bass21Clip : bass21Drive(drive) : bass21Clip : bass21MysteryActiveFilter : bass21RCNetwork2 : bass21ActiveSimple1 : bass21HPF : *(blend)), *(1.0-blend)) :> + : *(level) : bass21ActiveSimple2 : bass21Clip : bass21EQ(bass, treble) : bass21Clip : bass21HPF; //------------------------------------------------------------------------------ // Distortions //------------------------------------------------------------------------------ // TODO the overdrive sections //bass21Clip = atan; //bass21Clip = ma.tanh; //bass21Clip = ef.cubicnl(0.0, 0.0); bass21Clip(x) = y with { y = table(i0)+(ixf-float(i0))*(table(i1)-table(i0)); ixf = ((x-xmin)*(float(tsize-1)/(xmax-xmin))) : max(0.0) : min(tsize-1); i0 = int(ixf); i1 = (i0+1) : min(tsize-1); table = rdtable(tsize, ma.tanh((float(ba.time)/float(tsize-1))*(xmax-xmin)+xmin)); xmin = -4.0; xmax = 4.0; tsize = 128; }; //------------------------------------------------------------------------------ // Subcircuits //------------------------------------------------------------------------------ bass21HPF = _ /*NOTE: negligible RC high-pass*/ //fi.highpass(1, f) with { f = 1.0/(2.0*ma.PI*R*C); R = 100e3; C = 2.2e-6; }; bass21Input = _ /*NOTE: negligible input buffer*/ //analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 10e3; R2 = 1e6; C1 = 22e-9; B0 = 0.0; B1 = C1*R2; B2 = 0.0; A0 = 1.0; A1 = C1*R2+C1*R1; A2 = 0.0; }; bass21Presence(param) = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 330e3; C1 = 220e-12; R2 = 3.3e3; C2 = 10e-9; Rp = 100e3*(1.0-param); B0 = 1.0; B1 = C2*(Rp+R2)+R1*C1+R1*C2; B2 = R1*C1*(Rp+R2)*C2; A0 = 1.0; A1 = C2*(Rp+R2)+R1*C1; A2 = R1*C1*(Rp+R2)*C2; }; bass21Drive(param) = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 330e3; C1 = 220e-12; R2 = 3.3e3; Rp = 100e3*(1.0-param); B0 = R1+R2+Rp; B1 = C1*R1*(R2+Rp); B2 = 0.0; A0 = R2+Rp; A1 = C1*R1*(R2+Rp); A2 = 0.0; }; bass21RCNetwork1 = analogThirdOrder(B0, B1, B2, B3, A0, A1, A2, A3) //could also be: fi.tf3slf(B3, B2, B1, B0, A3, A2, A1, A0) with { R1 = 100e3; R2 = 2.2e3; R3 = 22e3; C1 = 22e-9; C2 = 22e-9; C3 = 22e-9; B0 = 1.0; B1 = C1*R2+C2*R3+C3*R3+C3*R2; B2 = C2*C1*R2*R3+C3*C1*R2*R3+C3*C2*R2*R3; B3 = C3*C2*C1*R1*R2*R3; A0 = 1.0; A1 = C1*R2+C2*R3+C2*R1+C3*R3+C3*R2; A2 = C2*C1*R2*R3+C2*C1*R1*R2+C3*C1*R2*R3+C3*C2*R2*R3+C3*C2*R1*R3+C3*C2*R1*R2; A3 = C3*C2*C1*R1*R2*R3; }; bass21RCNetwork2 = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 22e3; R2 = 6.2e3; C1 = 22e-9; C2 = 47e-9; B0 = 1.0; B1 = C1*R2+C2*R2; B2 = C2*C1*R1*R2; A0 = 1.0; A1 = C1*R2+C2*R2+C2*R1; A2 = C2*C1*R1*R2; }; bass21MysteryActiveFilter = analogThirdOrder(B0, B1, B2, B3, A0, A1, A2, A3) //could also be: fi.tf3slf(B3, B2, B1, B0, A3, A2, A1, A0) with { R1 = 10e3; R2 = 22e3; R3 = 22e3; R4 = 22e3; R5 = 10e3; C1 = 47e-9; C2 = 470e-12; C3 = 10e-9; B0 = R4; B1 = C1*R4*R5; B2 = 0.0; B3 = 0.0; A0 = R4+R1; A1 = C1*R4*R5+C1*R2*R4+C1*R1*R5+C1*R1*R4+C1*R1*R2+C2*R3*R4+C2*R2*R4+C2*R1*R4+C2*R1*R3+C2*R1*R2; A2 = C2*C1*R3*R4*R5+C2*C1*R2*R4*R5+C2*C1*R2*R3*R4+C2*C1*R1*R4*R5+C2*C1*R1*R3*R5+C2*C1*R1*R3*R4+C2*C1*R1*R2*R5+C2*C1*R1*R2*R3+C3*C2*R2*R3*R4+C3*C2*R1*R3*R4+C3*C2*R1*R2*R3; A3 = C3*C2*C1*R2*R3*R4*R5+C3*C2*C1*R1*R3*R4*R5+C3*C2*C1*R1*R2*R3*R5; }; bass21ActiveSimple1 = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 33e3; R2 = 39e3; C1 = 1e-9; C2 = 2.2e-9; B0 = 1.0; B1 = 0.0; B2 = 0.0; A0 = 1.0; A1 = C1*R2+C1*R1; A2 = C2*C1*R1*R2; }; bass21ActiveSimple2 = *(-1.0*R2/R1) /*note: LPF negligible, replaceable by volume boost and inversion*/ //analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 10e3; R2 = 22e3; C1 = 33e-12; B0 = -1.0*R2; B1 = 0.0; B2 = 0.0; A0 = R1; A1 = C1*R1*R2; A2 = 0.0; }; bass21EQ(bass_, treble_) = analogSixthOrder(B0, B1, B2, B3, B4, B5, B6, A0, A1, A2, A3, A4, A5, A6) with { //formula refers to control values inverted bass = 1.0-bass_; treble = 1.0-treble_; B0 = 0.0; B1 = (10000.0)*bass - (11000.0); B2 = ((4722366482869644988655.0/147573952589676412928.0)*(bass*bass)) - ((3149228148263694434375.0/147573952589676412928.0)*bass) - (598633738680022361533287.0/36893488147419103232000.0); B3 = 0.0 - ((1.0/100.0)*(bass*bass)*treble) + ((95513923305516444051222397770391.0/2028240960365167042394725128601600.0)*(bass*bass)) - ((1.0/100.0)*bass*(treble*treble)) + ((1.0/50.0)*bass*treble) - ((11855575473574492365904017309744059.0/253530120045645880299340641075200000.0)*bass) + ((11.0/1000.0)*(treble*treble)) - ((87.0/10000.0)*treble) - (14370594264427299590777634582379451.0/2535301200456458802993406410752000000.0); B4 = 0.0 - ((7486212072260646522045135498046875.0/340282366920938463463374607431768211456.0)*(bass*bass)*(treble*treble)) + ((4491727243356387913227081298828125.0/340282366920938463463374607431768211456.0)*(bass*bass)*treble) + ((43930290233957032614896735927734375.0/2722258935367507707706996859454145691648.0)*(bass*bass)) + ((7486212072260646522045135498046875.0/340282366920938463463374607431768211456.0)*bass*(treble*treble)) - ((4491727243356387913227081298828125.0/340282366920938463463374607431768211456.0)*bass*treble) - ((43930290233957032614896735927734375.0/2722258935367507707706996859454145691648.0)*bass) + ((1497242414452129304409027099609375.0/680564733841876926926749214863536422912.0)*(treble*treble)) - ((2096139380232981026172637939453125.0/1361129467683753853853498429727072845824.0)*treble) - (3988653792100472466945648193359375.0/5444517870735015415413993718908291383296.0); B5 = ((55263030661574758589267730712890625.0/11417981541647679048466287755595961091061972992.0)*bass*(bass - (1.0))*(0.0 - (1000.0)*(treble*treble) + (700.0)*treble + (333.0))); B6 = 0.0; A0 = (1120000.0) - (100000.0)*bass; A1 = ((827159382962765777100875.0/73786976294838206464.0)*bass) - ((97398808709186431407275.0/73786976294838206464.0)*(bass*bass)) + (22486138303994174387839511.0/3689348814741910323200.0); A2 = ((1.0/10.0)*(bass*bass)*treble) - ((554005154673064069875538171729.0/12379400392853802748991242240.0)*(bass*bass)) + ((1.0/10.0)*bass*(treble*treble)) - ((11.0/5.0)*bass*treble) + ((11172233007643856170213158767360603.0/198070406285660843983859875840000.0)*bass) - ((28.0/25.0)*(treble*treble)) + ((2097.0/1000.0)*treble) + (4803318945294176732167021742106863.0/495176015714152109959649689600000.0); A3 = ((395912635463280607188582045966881.0/324518553658426726783156020576256000.0)*(bass*bass)*(treble*treble)) - ((924536224793224579754221815612658771.0/83076749736557242056487941267521536000.0)*(bass*bass)*treble) - ((507040844370222621749497226472328135711.0/10384593717069655257060992658440192000000.0)*(bass*bass)) - ((931846978770041617107737440612658771.0/83076749736557242056487941267521536000.0)*bass*(treble*treble)) + ((877514784442333180710841126228898003.0/41538374868278621028243970633760768000.0)*bass*treble) + ((4083733035316798552790018918194514614443.0/83076749736557242056487941267521536000000.0)*bass) - ((3611720156421957836512892203189315491.0/1038459371706965525706099265844019200000.0)*(treble*treble)) + ((47940277510652695890303360485452680333.0/8307674973655724205648794126752153600000.0)*treble) + (1936978606034868499295094264265095385289.0/519229685853482762853049632922009600000000.0); A4 = ((38827074815011218430459499359130859375.0/1393796574908163946345982392040522594123776.0)*(bass*bass)*(treble*treble)) - ((51068199162681861845266819000244140625.0/1393796574908163946345982392040522594123776.0)*(bass*bass)*treble) - ((99107653864029446716585253626748046875.0/11150372599265311570767859136324180752990208.0)*(bass*bass)) - ((38827074815011218430459499359130859375.0/1393796574908163946345982392040522594123776.0)*bass*(treble*treble)) + ((51068199162681861845266819000244140625.0/1393796574908163946345982392040522594123776.0)*bass*treble) + ((99107653864029446716585253626748046875.0/11150372599265311570767859136324180752990208.0)*bass) - ((1585472873686109630191326141357421875.0/696898287454081973172991196020261297061888.0)*(treble*treble)) + ((16362191671670370027673244476318359375.0/5575186299632655785383929568162090376495104.0)*treble) + (54095420370500304200094670353834375.0/696898287454081973172991196020261297061888.0); A5 = ((1833247147700098857916891574859619140625.0/365375409332725729550921208179070754913983135744.0)*(bass*bass)*(treble*treble)) - ((9454388675080322685949504375457763671875.0/1461501637330902918203684832716283019655932542976.0)*(bass*bass)*treble) - ((500354302003399815320782081071474609375.0/2923003274661805836407369665432566039311865085952.0)*(bass*bass)) - ((1833247147700098857916891574859619140625.0/365375409332725729550921208179070754913983135744.0)*bass*(treble*treble)) + ((9454388675080322685949504375457763671875.0/1461501637330902918203684832716283019655932542976.0)*bass*treble) + ((500354302003399815320782081071474609375.0/2923003274661805836407369665432566039311865085952.0)*bass) - ((3183150566106706671416759490966796875.0/1461501637330902918203684832716283019655932542976.0)*(treble*treble)) + ((3183150566106706671416759490966796875.0/1461501637330902918203684832716283019655932542976.0)*treble) + (840351749452170561254024505615234375.0/11692013098647223345629478661730264157247460343808.0); A6 = 0.0 -((117489690137807889841496944427490234375.0/24519928653854221733733552434404946937899825954937634816.0)*bass*(bass - (1.0))*(0.0 - (1000.0)*(treble*treble) + (1000.0)*treble + (33.0))); }; //------------------------------------------------------------------------------ // Bilinear transforms //------------------------------------------------------------------------------ analogBiquad(B0, B1, B2, A0, A1, A2) = fi.tf22t(b0/a0, b1/a0, b2/a0, a1/a0, a2/a0) with { // bilinear transform (not prewarped) b0 = k*k*B2 + k*B1 + B0; b1 = k*k*-2.0*B2 + 2.0*B0; b2 = k*k*B2 - k*B1 + B0; a0 = k*k*A2 + k*A1 + A0; a1 = k*k*-2.0*A2 + 2.0*A0; a2 = k*k*A2 - k*A1 + A0; k = 2.0*ma.SR; }; analogThirdOrder(B0, B1, B2, B3, A0, A1, A2, A3) = fi.tf3(b0/a0, b1/a0, b2/a0, b3/a0, a1/a0, a2/a0, a3/a0) with { // bilinear transform (not prewarped) b0 = k*k*k*B3 + k*k*B2 + B1*k + B0; b1 = k*k*k*-3.0*B3 - k*k*B2 + B1*k + 3.0*B0; b2 = k*k*k*3.0*B3 - k*k*B2 - B1*k + 3.0*B0; b3 = k*k*k*-1.0*B3 + k*k*B2 - B1*k + B0; a0 = k*k*k*A3 + k*k*A2 + A1*k + A0; a1 = k*k*k*-3.0*A3 - k*k*A2 + A1*k + 3.0*A0; a2 = k*k*k*3.0*A3 - k*k*A2 - A1*k + 3.0*A0; a3 = k*k*k*-1.0*A3 + k*k*A2 - A1*k + A0; k = 2.0*ma.SR; }; analogSixthOrder(B0, B1, B2, B3, B4, B5, B6, A0, A1, A2, A3, A4, A5, A6) = fi.iir((b0/a0, b1/a0, b2/a0, b3/a0, b4/a0, b5/a0, b6/a0), (a1/a0, a2/a0, a3/a0, a4/a0, a5/a0, a6/a0)) with { // bilinear transform (not prewarped) b0 = B6*(k*k*k*k*k*k) + B5*(k*k*k*k*k) + B4*(k*k*k*k) + B3*(k*k*k) + B2*(k*k) + B1*k + B0; b1 = -6.0*B6*(k*k*k*k*k*k) - 4.0*B5*(k*k*k*k*k) - 2.0*B4*(k*k*k*k) + 2.0*B2*(k*k) + 4.0*B1*k + 6.0*B0; b2 = 15.0*B6*(k*k*k*k*k*k) + 5.0*B5*(k*k*k*k*k) - B4*(k*k*k*k) - 3.0*B3*(k*k*k) - B2*(k*k) + 5.0*B1*k + 15.0*B0; b3 = -20.0*B6*(k*k*k*k*k*k) + 4.0*B4*(k*k*k*k) - 4.0*B2*(k*k) + 20.0*B0; b4 = 15.0*B6*(k*k*k*k*k*k) - 5.0*B5*(k*k*k*k*k) - B4*(k*k*k*k) + 3.0*B3*(k*k*k) - B2*(k*k) - 5.0*B1*k + 15.0*B0; b5 = -6.0*B6*(k*k*k*k*k*k) + 4.0*B5*(k*k*k*k*k) - 2.0*B4*(k*k*k*k) + 2.0*B2*(k*k) - 4.0*B1*k + 6.0*B0; b6 = B6*(k*k*k*k*k*k) - B5*(k*k*k*k*k) + B4*(k*k*k*k) - B3*(k*k*k) + B2*(k*k) - B1*k + B0; a0 = A6*(k*k*k*k*k*k) + A5*(k*k*k*k*k) + A4*(k*k*k*k) + A3*(k*k*k) + A2*(k*k) + A1*k + A0; a1 = -6.0*A6*(k*k*k*k*k*k) - 4.0*A5*(k*k*k*k*k) - 2.0*A4*(k*k*k*k) + 2.0*A2*(k*k) + 4.0*A1*k + 6.0*A0; a2 = 15.0*A6*(k*k*k*k*k*k) + 5.0*A5*(k*k*k*k*k) - A4*(k*k*k*k) - 3.0*A3*(k*k*k) - A2*(k*k) + 5.0*A1*k + 15.0*A0; a3 = -20.0*A6*(k*k*k*k*k*k) + 4.0*A4*(k*k*k*k) - 4.0*A2*(k*k) + 20.0*A0; a4 = 15.0*A6*(k*k*k*k*k*k) - 5.0*A5*(k*k*k*k*k) - A4*(k*k*k*k) + 3.0*A3*(k*k*k) - A2*(k*k) - 5.0*A1*k + 15.0*A0; a5 = -6.0*A6*(k*k*k*k*k*k) + 4.0*A5*(k*k*k*k*k) - 2.0*A4*(k*k*k*k) + 2.0*A2*(k*k) - 4.0*A1*k + 6.0*A0; a6 = A6*(k*k*k*k*k*k) - A5*(k*k*k*k*k) + A4*(k*k*k*k) - A3*(k*k*k) + A2*(k*k) - A1*k + A0; k = 2.0*ma.SR; }; //------------------------------------------------------------------------------ // Transposed forms II //------------------------------------------------------------------------------ tf32t(b0,b1,b2,b3,a1,a2,a3) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1); }; }; tf42t(b0,b1,b2,b3,b4,a1,a2,a3,a4) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1)+s4; 's4 = b4*x-a4*(b0*x+s1); }; }; tf52t(b0,b1,b2,b3,b4,b5,a1,a2,a3,a4,a5) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1)+s4; 's4 = b4*x-a4*(b0*x+s1)+s5; 's5 = b5*x-a5*(b0*x+s1); }; }; tf62t(b0,b1,b2,b3,b4,b5,b6,a1,a2,a3,a4,a5,a6) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1)+s4; 's4 = b4*x-a4*(b0*x+s1)+s5; 's5 = b5*x-a5*(b0*x+s1)+s6; 's6 = b6*x-a6*(b0*x+s1); }; }; //------------------------------------------------------------------------------ // Filters //------------------------------------------------------------------------------ symmetric_highshelf(N,Lpi,fx) = fi.highshelf(N,Lpi,sfx) with { sfx = ba.if(Lpi>0, fx, fi.highshelf_other_freq(N, ma.neg(Lpi), fx)); }; //------------------------------------------------------------------------------ // Utility //------------------------------------------------------------------------------ // copysign function from C99 copysign = ffunction(float copysignf|copysign|copysignl(float,float),<math.h>,""); // linear smoother, flushable lfsmooth(tau, flush, tgt) = ((+:(_,tgt):select2(flush))~_)~((tgt-_)<:(abs,(/(tau*ma.SR):(select2(sc)~_):abs),_):(min,_):copysign) with { sc = (tgt!=tgt');//|(tau!=tau') }; // linear smoother lsmooth(tau) = lfsmooth(tau, 0);
https://raw.githubusercontent.com/jpcima/Bass21/e7dc3267719ab4a3c4ed3eb285a34d7f6bb9ff9d/sources/dsp/Bass21Faust.dsp
faust
NOTE: requires -double ------------------------------------------------------------------------------ Circuit ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Distortions ------------------------------------------------------------------------------ TODO the overdrive sections bass21Clip = atan; bass21Clip = ma.tanh; bass21Clip = ef.cubicnl(0.0, 0.0); ------------------------------------------------------------------------------ Subcircuits ------------------------------------------------------------------------------ NOTE: negligible RC high-pass fi.highpass(1, f) NOTE: negligible input buffer analogBiquad(B0, B1, B2, A0, A1, A2) could also be: fi.tf3slf(B3, B2, B1, B0, A3, A2, A1, A0) could also be: fi.tf3slf(B3, B2, B1, B0, A3, A2, A1, A0) note: LPF negligible, replaceable by volume boost and inversion analogBiquad(B0, B1, B2, A0, A1, A2) formula refers to control values inverted ------------------------------------------------------------------------------ Bilinear transforms ------------------------------------------------------------------------------ bilinear transform (not prewarped) bilinear transform (not prewarped) bilinear transform (not prewarped) ------------------------------------------------------------------------------ Transposed forms II ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Filters ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Utility ------------------------------------------------------------------------------ copysign function from C99 linear smoother, flushable |(tau!=tau') linear smoother
import("stdfaust.lib"); declare author "JPC"; declare license "AGPL-3.0-or-later"; process = bass21(pregain, level, blend, presence, drive, bass, treble) with { begin = checkbox("[0] begin"); pregain = hslider("[1] pregain", 0.5, 0.0, 1.0, 0.001) : si.smooth(pole); level = hslider("[2] level", 0.5, 0.0, 1.0, 0.001) : si.smooth(pole); blend = hslider("[3] blend", 0.5, 0.0, 1.0, 0.001) : si.smooth(pole); presence = hslider("[4] presence", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); drive = hslider("[5] drive", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); bass = hslider("[6] bass", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); treble = hslider("[7] treble", 0.5, 0.0, 1.0, 0.001) : si.polySmooth(begin, pole, 0); pole = ba.tau2pole(50e-3/6.91); }; bass21(pregain, level, blend, presence, drive, bass, treble) = *(pregain) : bass21Input <: ((_ : bass21RCNetwork1 : bass21Presence(presence) : bass21Clip : bass21Drive(drive) : bass21Clip : bass21MysteryActiveFilter : bass21RCNetwork2 : bass21ActiveSimple1 : bass21HPF : *(blend)), *(1.0-blend)) :> + : *(level) : bass21ActiveSimple2 : bass21Clip : bass21EQ(bass, treble) : bass21Clip : bass21HPF; bass21Clip(x) = y with { y = table(i0)+(ixf-float(i0))*(table(i1)-table(i0)); ixf = ((x-xmin)*(float(tsize-1)/(xmax-xmin))) : max(0.0) : min(tsize-1); i0 = int(ixf); i1 = (i0+1) : min(tsize-1); table = rdtable(tsize, ma.tanh((float(ba.time)/float(tsize-1))*(xmax-xmin)+xmin)); xmin = -4.0; xmax = 4.0; tsize = 128; }; with { f = 1.0/(2.0*ma.PI*R*C); R = 100e3; C = 2.2e-6; }; with { R1 = 10e3; R2 = 1e6; C1 = 22e-9; B0 = 0.0; B1 = C1*R2; B2 = 0.0; A0 = 1.0; A1 = C1*R2+C1*R1; A2 = 0.0; }; bass21Presence(param) = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 330e3; C1 = 220e-12; R2 = 3.3e3; C2 = 10e-9; Rp = 100e3*(1.0-param); B0 = 1.0; B1 = C2*(Rp+R2)+R1*C1+R1*C2; B2 = R1*C1*(Rp+R2)*C2; A0 = 1.0; A1 = C2*(Rp+R2)+R1*C1; A2 = R1*C1*(Rp+R2)*C2; }; bass21Drive(param) = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 330e3; C1 = 220e-12; R2 = 3.3e3; Rp = 100e3*(1.0-param); B0 = R1+R2+Rp; B1 = C1*R1*(R2+Rp); B2 = 0.0; A0 = R2+Rp; A1 = C1*R1*(R2+Rp); A2 = 0.0; }; bass21RCNetwork1 = analogThirdOrder(B0, B1, B2, B3, A0, A1, A2, A3) with { R1 = 100e3; R2 = 2.2e3; R3 = 22e3; C1 = 22e-9; C2 = 22e-9; C3 = 22e-9; B0 = 1.0; B1 = C1*R2+C2*R3+C3*R3+C3*R2; B2 = C2*C1*R2*R3+C3*C1*R2*R3+C3*C2*R2*R3; B3 = C3*C2*C1*R1*R2*R3; A0 = 1.0; A1 = C1*R2+C2*R3+C2*R1+C3*R3+C3*R2; A2 = C2*C1*R2*R3+C2*C1*R1*R2+C3*C1*R2*R3+C3*C2*R2*R3+C3*C2*R1*R3+C3*C2*R1*R2; A3 = C3*C2*C1*R1*R2*R3; }; bass21RCNetwork2 = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 22e3; R2 = 6.2e3; C1 = 22e-9; C2 = 47e-9; B0 = 1.0; B1 = C1*R2+C2*R2; B2 = C2*C1*R1*R2; A0 = 1.0; A1 = C1*R2+C2*R2+C2*R1; A2 = C2*C1*R1*R2; }; bass21MysteryActiveFilter = analogThirdOrder(B0, B1, B2, B3, A0, A1, A2, A3) with { R1 = 10e3; R2 = 22e3; R3 = 22e3; R4 = 22e3; R5 = 10e3; C1 = 47e-9; C2 = 470e-12; C3 = 10e-9; B0 = R4; B1 = C1*R4*R5; B2 = 0.0; B3 = 0.0; A0 = R4+R1; A1 = C1*R4*R5+C1*R2*R4+C1*R1*R5+C1*R1*R4+C1*R1*R2+C2*R3*R4+C2*R2*R4+C2*R1*R4+C2*R1*R3+C2*R1*R2; A2 = C2*C1*R3*R4*R5+C2*C1*R2*R4*R5+C2*C1*R2*R3*R4+C2*C1*R1*R4*R5+C2*C1*R1*R3*R5+C2*C1*R1*R3*R4+C2*C1*R1*R2*R5+C2*C1*R1*R2*R3+C3*C2*R2*R3*R4+C3*C2*R1*R3*R4+C3*C2*R1*R2*R3; A3 = C3*C2*C1*R2*R3*R4*R5+C3*C2*C1*R1*R3*R4*R5+C3*C2*C1*R1*R2*R3*R5; }; bass21ActiveSimple1 = analogBiquad(B0, B1, B2, A0, A1, A2) with { R1 = 33e3; R2 = 39e3; C1 = 1e-9; C2 = 2.2e-9; B0 = 1.0; B1 = 0.0; B2 = 0.0; A0 = 1.0; A1 = C1*R2+C1*R1; A2 = C2*C1*R1*R2; }; bass21ActiveSimple2 = *(-1.0*R2/R1) with { R1 = 10e3; R2 = 22e3; C1 = 33e-12; B0 = -1.0*R2; B1 = 0.0; B2 = 0.0; A0 = R1; A1 = C1*R1*R2; A2 = 0.0; }; bass21EQ(bass_, treble_) = analogSixthOrder(B0, B1, B2, B3, B4, B5, B6, A0, A1, A2, A3, A4, A5, A6) with { bass = 1.0-bass_; treble = 1.0-treble_; B0 = 0.0; B1 = (10000.0)*bass - (11000.0); B2 = ((4722366482869644988655.0/147573952589676412928.0)*(bass*bass)) - ((3149228148263694434375.0/147573952589676412928.0)*bass) - (598633738680022361533287.0/36893488147419103232000.0); B3 = 0.0 - ((1.0/100.0)*(bass*bass)*treble) + ((95513923305516444051222397770391.0/2028240960365167042394725128601600.0)*(bass*bass)) - ((1.0/100.0)*bass*(treble*treble)) + ((1.0/50.0)*bass*treble) - ((11855575473574492365904017309744059.0/253530120045645880299340641075200000.0)*bass) + ((11.0/1000.0)*(treble*treble)) - ((87.0/10000.0)*treble) - (14370594264427299590777634582379451.0/2535301200456458802993406410752000000.0); B4 = 0.0 - ((7486212072260646522045135498046875.0/340282366920938463463374607431768211456.0)*(bass*bass)*(treble*treble)) + ((4491727243356387913227081298828125.0/340282366920938463463374607431768211456.0)*(bass*bass)*treble) + ((43930290233957032614896735927734375.0/2722258935367507707706996859454145691648.0)*(bass*bass)) + ((7486212072260646522045135498046875.0/340282366920938463463374607431768211456.0)*bass*(treble*treble)) - ((4491727243356387913227081298828125.0/340282366920938463463374607431768211456.0)*bass*treble) - ((43930290233957032614896735927734375.0/2722258935367507707706996859454145691648.0)*bass) + ((1497242414452129304409027099609375.0/680564733841876926926749214863536422912.0)*(treble*treble)) - ((2096139380232981026172637939453125.0/1361129467683753853853498429727072845824.0)*treble) - (3988653792100472466945648193359375.0/5444517870735015415413993718908291383296.0); B5 = ((55263030661574758589267730712890625.0/11417981541647679048466287755595961091061972992.0)*bass*(bass - (1.0))*(0.0 - (1000.0)*(treble*treble) + (700.0)*treble + (333.0))); B6 = 0.0; A0 = (1120000.0) - (100000.0)*bass; A1 = ((827159382962765777100875.0/73786976294838206464.0)*bass) - ((97398808709186431407275.0/73786976294838206464.0)*(bass*bass)) + (22486138303994174387839511.0/3689348814741910323200.0); A2 = ((1.0/10.0)*(bass*bass)*treble) - ((554005154673064069875538171729.0/12379400392853802748991242240.0)*(bass*bass)) + ((1.0/10.0)*bass*(treble*treble)) - ((11.0/5.0)*bass*treble) + ((11172233007643856170213158767360603.0/198070406285660843983859875840000.0)*bass) - ((28.0/25.0)*(treble*treble)) + ((2097.0/1000.0)*treble) + (4803318945294176732167021742106863.0/495176015714152109959649689600000.0); A3 = ((395912635463280607188582045966881.0/324518553658426726783156020576256000.0)*(bass*bass)*(treble*treble)) - ((924536224793224579754221815612658771.0/83076749736557242056487941267521536000.0)*(bass*bass)*treble) - ((507040844370222621749497226472328135711.0/10384593717069655257060992658440192000000.0)*(bass*bass)) - ((931846978770041617107737440612658771.0/83076749736557242056487941267521536000.0)*bass*(treble*treble)) + ((877514784442333180710841126228898003.0/41538374868278621028243970633760768000.0)*bass*treble) + ((4083733035316798552790018918194514614443.0/83076749736557242056487941267521536000000.0)*bass) - ((3611720156421957836512892203189315491.0/1038459371706965525706099265844019200000.0)*(treble*treble)) + ((47940277510652695890303360485452680333.0/8307674973655724205648794126752153600000.0)*treble) + (1936978606034868499295094264265095385289.0/519229685853482762853049632922009600000000.0); A4 = ((38827074815011218430459499359130859375.0/1393796574908163946345982392040522594123776.0)*(bass*bass)*(treble*treble)) - ((51068199162681861845266819000244140625.0/1393796574908163946345982392040522594123776.0)*(bass*bass)*treble) - ((99107653864029446716585253626748046875.0/11150372599265311570767859136324180752990208.0)*(bass*bass)) - ((38827074815011218430459499359130859375.0/1393796574908163946345982392040522594123776.0)*bass*(treble*treble)) + ((51068199162681861845266819000244140625.0/1393796574908163946345982392040522594123776.0)*bass*treble) + ((99107653864029446716585253626748046875.0/11150372599265311570767859136324180752990208.0)*bass) - ((1585472873686109630191326141357421875.0/696898287454081973172991196020261297061888.0)*(treble*treble)) + ((16362191671670370027673244476318359375.0/5575186299632655785383929568162090376495104.0)*treble) + (54095420370500304200094670353834375.0/696898287454081973172991196020261297061888.0); A5 = ((1833247147700098857916891574859619140625.0/365375409332725729550921208179070754913983135744.0)*(bass*bass)*(treble*treble)) - ((9454388675080322685949504375457763671875.0/1461501637330902918203684832716283019655932542976.0)*(bass*bass)*treble) - ((500354302003399815320782081071474609375.0/2923003274661805836407369665432566039311865085952.0)*(bass*bass)) - ((1833247147700098857916891574859619140625.0/365375409332725729550921208179070754913983135744.0)*bass*(treble*treble)) + ((9454388675080322685949504375457763671875.0/1461501637330902918203684832716283019655932542976.0)*bass*treble) + ((500354302003399815320782081071474609375.0/2923003274661805836407369665432566039311865085952.0)*bass) - ((3183150566106706671416759490966796875.0/1461501637330902918203684832716283019655932542976.0)*(treble*treble)) + ((3183150566106706671416759490966796875.0/1461501637330902918203684832716283019655932542976.0)*treble) + (840351749452170561254024505615234375.0/11692013098647223345629478661730264157247460343808.0); A6 = 0.0 -((117489690137807889841496944427490234375.0/24519928653854221733733552434404946937899825954937634816.0)*bass*(bass - (1.0))*(0.0 - (1000.0)*(treble*treble) + (1000.0)*treble + (33.0))); }; analogBiquad(B0, B1, B2, A0, A1, A2) = fi.tf22t(b0/a0, b1/a0, b2/a0, a1/a0, a2/a0) with { b0 = k*k*B2 + k*B1 + B0; b1 = k*k*-2.0*B2 + 2.0*B0; b2 = k*k*B2 - k*B1 + B0; a0 = k*k*A2 + k*A1 + A0; a1 = k*k*-2.0*A2 + 2.0*A0; a2 = k*k*A2 - k*A1 + A0; k = 2.0*ma.SR; }; analogThirdOrder(B0, B1, B2, B3, A0, A1, A2, A3) = fi.tf3(b0/a0, b1/a0, b2/a0, b3/a0, a1/a0, a2/a0, a3/a0) with { b0 = k*k*k*B3 + k*k*B2 + B1*k + B0; b1 = k*k*k*-3.0*B3 - k*k*B2 + B1*k + 3.0*B0; b2 = k*k*k*3.0*B3 - k*k*B2 - B1*k + 3.0*B0; b3 = k*k*k*-1.0*B3 + k*k*B2 - B1*k + B0; a0 = k*k*k*A3 + k*k*A2 + A1*k + A0; a1 = k*k*k*-3.0*A3 - k*k*A2 + A1*k + 3.0*A0; a2 = k*k*k*3.0*A3 - k*k*A2 - A1*k + 3.0*A0; a3 = k*k*k*-1.0*A3 + k*k*A2 - A1*k + A0; k = 2.0*ma.SR; }; analogSixthOrder(B0, B1, B2, B3, B4, B5, B6, A0, A1, A2, A3, A4, A5, A6) = fi.iir((b0/a0, b1/a0, b2/a0, b3/a0, b4/a0, b5/a0, b6/a0), (a1/a0, a2/a0, a3/a0, a4/a0, a5/a0, a6/a0)) with { b0 = B6*(k*k*k*k*k*k) + B5*(k*k*k*k*k) + B4*(k*k*k*k) + B3*(k*k*k) + B2*(k*k) + B1*k + B0; b1 = -6.0*B6*(k*k*k*k*k*k) - 4.0*B5*(k*k*k*k*k) - 2.0*B4*(k*k*k*k) + 2.0*B2*(k*k) + 4.0*B1*k + 6.0*B0; b2 = 15.0*B6*(k*k*k*k*k*k) + 5.0*B5*(k*k*k*k*k) - B4*(k*k*k*k) - 3.0*B3*(k*k*k) - B2*(k*k) + 5.0*B1*k + 15.0*B0; b3 = -20.0*B6*(k*k*k*k*k*k) + 4.0*B4*(k*k*k*k) - 4.0*B2*(k*k) + 20.0*B0; b4 = 15.0*B6*(k*k*k*k*k*k) - 5.0*B5*(k*k*k*k*k) - B4*(k*k*k*k) + 3.0*B3*(k*k*k) - B2*(k*k) - 5.0*B1*k + 15.0*B0; b5 = -6.0*B6*(k*k*k*k*k*k) + 4.0*B5*(k*k*k*k*k) - 2.0*B4*(k*k*k*k) + 2.0*B2*(k*k) - 4.0*B1*k + 6.0*B0; b6 = B6*(k*k*k*k*k*k) - B5*(k*k*k*k*k) + B4*(k*k*k*k) - B3*(k*k*k) + B2*(k*k) - B1*k + B0; a0 = A6*(k*k*k*k*k*k) + A5*(k*k*k*k*k) + A4*(k*k*k*k) + A3*(k*k*k) + A2*(k*k) + A1*k + A0; a1 = -6.0*A6*(k*k*k*k*k*k) - 4.0*A5*(k*k*k*k*k) - 2.0*A4*(k*k*k*k) + 2.0*A2*(k*k) + 4.0*A1*k + 6.0*A0; a2 = 15.0*A6*(k*k*k*k*k*k) + 5.0*A5*(k*k*k*k*k) - A4*(k*k*k*k) - 3.0*A3*(k*k*k) - A2*(k*k) + 5.0*A1*k + 15.0*A0; a3 = -20.0*A6*(k*k*k*k*k*k) + 4.0*A4*(k*k*k*k) - 4.0*A2*(k*k) + 20.0*A0; a4 = 15.0*A6*(k*k*k*k*k*k) - 5.0*A5*(k*k*k*k*k) - A4*(k*k*k*k) + 3.0*A3*(k*k*k) - A2*(k*k) - 5.0*A1*k + 15.0*A0; a5 = -6.0*A6*(k*k*k*k*k*k) + 4.0*A5*(k*k*k*k*k) - 2.0*A4*(k*k*k*k) + 2.0*A2*(k*k) - 4.0*A1*k + 6.0*A0; a6 = A6*(k*k*k*k*k*k) - A5*(k*k*k*k*k) + A4*(k*k*k*k) - A3*(k*k*k) + A2*(k*k) - A1*k + A0; k = 2.0*ma.SR; }; tf32t(b0,b1,b2,b3,a1,a2,a3) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1); }; }; tf42t(b0,b1,b2,b3,b4,a1,a2,a3,a4) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1)+s4; 's4 = b4*x-a4*(b0*x+s1); }; }; tf52t(b0,b1,b2,b3,b4,b5,a1,a2,a3,a4,a5) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1)+s4; 's4 = b4*x-a4*(b0*x+s1)+s5; 's5 = b5*x-a5*(b0*x+s1); }; }; tf62t(b0,b1,b2,b3,b4,b5,b6,a1,a2,a3,a4,a5,a6) = calc with { calc(x) = b0*x+s1' letrec { 's1 = b1*x-a1*(b0*x+s1)+s2; 's2 = b2*x-a2*(b0*x+s1)+s3; 's3 = b3*x-a3*(b0*x+s1)+s4; 's4 = b4*x-a4*(b0*x+s1)+s5; 's5 = b5*x-a5*(b0*x+s1)+s6; 's6 = b6*x-a6*(b0*x+s1); }; }; symmetric_highshelf(N,Lpi,fx) = fi.highshelf(N,Lpi,sfx) with { sfx = ba.if(Lpi>0, fx, fi.highshelf_other_freq(N, ma.neg(Lpi), fx)); }; copysign = ffunction(float copysignf|copysign|copysignl(float,float),<math.h>,""); lfsmooth(tau, flush, tgt) = ((+:(_,tgt):select2(flush))~_)~((tgt-_)<:(abs,(/(tau*ma.SR):(select2(sc)~_):abs),_):(min,_):copysign) with { }; lsmooth(tau) = lfsmooth(tau, 0);
2ea8e7480c4f2c5051b8dee9acc909e89038ee66fc9b9eea268b39c16e070b03
JoaoSvidzinski/granulateur-matriciel
jgrain7.dsp
declare compilation_options "-single -scal"; declare library_path "jgrain7"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/noises.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "Jgrain 7"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; declare version "30052017"; process = (_,(hslider("h:Grain/v:Input/inp 0 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 1 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 2 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 3 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 4 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 5 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 6 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : (_,_,_,_,_,_,_,_,_,_,_,_,_,_<:_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_ : (+ : _,1 : * : \(x8).(((x8,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x8,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 0", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x19).(((x19,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x19,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 1", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x20).(((x20,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x20,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 2", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x21).(((x21,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x21,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 3", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x22).(((x22,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x22,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 4", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x23).(((x23,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x23,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 5", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x24).(((x24,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x24,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 6", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *))~((_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 0", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 1", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 2", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 3", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 4", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 5", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 6", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : _,_,_,_,_,_,_<:((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 0") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 1") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 2") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 3") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 4") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 5") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 6") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 7") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 8") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 9") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 10") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 11") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 12") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 13") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 14") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 15") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 16") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 17") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 18") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 19") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 20") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 21") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 22") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 23") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 24") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 25") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 26") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 27") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 28") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 29") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 30") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 31") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 32") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 33") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 34") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 35") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 36") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 37") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 38") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 39") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 40") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 41") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 42") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 43") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 44") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 45") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 46") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 47") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 48") : *):>_)) : (_,(hslider("h:Grain/v:Output/out 0 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 1 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 2 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 3 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 4 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 5 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 6 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *);
https://raw.githubusercontent.com/JoaoSvidzinski/granulateur-matriciel/b02da0189f5bae4d16c74f6fe65c04786452c792/max/jgrain7%7E.mxo/jgrain7.dsp
faust
declare compilation_options "-single -scal"; declare library_path "jgrain7"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/noises.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "Jgrain 7"; declare noises_lib_name "Faust Noise Generator Library"; declare noises_lib_version "0.0"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; declare version "30052017"; process = (_,(hslider("h:Grain/v:Input/inp 0 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 1 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 2 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 3 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 4 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 5 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Input/inp 6 [5]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : (_,_,_,_,_,_,_,_,_,_,_,_,_,_<:_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,_,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,!,_ : (+ : _,1 : * : \(x8).(((x8,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x8,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 0", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 0", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 0", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x19).(((x19,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x19,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 1", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 1", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 1", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x20).(((x20,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x20,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 2", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 2", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 2", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x21).(((x21,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x21,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 3", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 3", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 3", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x22).(((x22,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x22,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 4", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 4", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 4", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x23).(((x23,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x23,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 5", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 5", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 5", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *),(+ : _,1 : * : \(x24).(((x24,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int : int),(262144,1 : -) : &) : @),(1,((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : -) : *),((x24,(((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x13).(x13,(x13 : floor) : -))~_ : _,(1 : float) : * : \(x14).(x14,(x14 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : int),1 : + : int),(262144,1 : -) : &) : @),((((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *)),(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : +),hslider("h:Grain/v:Grain_Delay/del 6", 0.0f, 0.0f, 10000.0f, 0.10000000000000001f) : * : _,((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x17).(x17,(x17 : floor) : -))~_ : _,(1 : float) : * : \(x18).(x18,(x18 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : floor) : -) : *) : +) : _,(((_,12345 : +)~(_,1103515245 : *),2147483647.0f : / : _,1 : + : _,0.5f : *),hslider("h:Grain/v:Grain_Rarefaction/rar 6", 0.5f, 0.0f, 1.0f, 0.0001f) : < : _,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : * : +~(_,(1,((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),0.001f : >),((((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x3).(x3,(x3 : floor) : -))~_ : _,(1 : float) : * : \(x4).(x4,(x4 : floor) : -)),1 : @),0.001f : <=) : *) : -) : *) : _,(192000,(((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(192000 : float) : / : sin) : *),(((1000,hslider("h:Grain/v:Grain_Size/size 6", 50.0f, 0.0f, 1000.0f, 0.01f) : /),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x7).(x7,(x7 : floor) : -))~_ : _,(1 : float) : *),192000 : * : int) : rdtable) : *) : *))~((_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 0", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 1", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 2", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 3", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 4", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 5", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Grain_FeedBackext/fdx 6", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *) : _,_,_,_,_,_,_<:((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 0") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 1") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 2") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 3") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 4") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 5") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 6") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 7") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 8") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 9") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 10") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 11") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 12") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 13") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 14") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 15") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 16") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 17") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 18") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 19") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 20") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 21") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 22") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 23") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 24") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 25") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 26") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 27") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 28") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 29") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 30") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 31") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 32") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 33") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 34") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 35") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 36") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 37") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 38") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 39") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 40") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 41") : *):>_),((_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 0-->/r 42") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 1-->/r 43") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 2-->/r 44") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 3-->/r 45") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 4-->/r 46") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 5-->/r 47") : *),(_,checkbox("h:Lines/h:Reinjection_Matrix/v:Grain 6-->/r 48") : *):>_)) : (_,(hslider("h:Grain/v:Output/out 0 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 1 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 2 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 3 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 4 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 5 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *),(_,(hslider("h:Grain/v:Output/out 6 [6]", 1.0f, 0.0f, 1.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : *);
19780f88290968f85da04f991fb6628a31987e026018ded3b18bb83e6a28c1f4
JoaoSvidzinski/lorenz-dream
flanger7B.dsp
declare compilation_options "-single -scal"; declare library_path "flanger7B"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "flanger7B"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; process = \(x5).(((x5,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x5,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x16).(((x16,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x16,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x17).(((x17,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x17,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x18).(((x18,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x18,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x19).(((x19,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x19,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x20).(((x20,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x20,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x21).(((x21,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x21,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +);
https://raw.githubusercontent.com/JoaoSvidzinski/lorenz-dream/9d6014145d8101e92c34418f81c9be210650cf05/Patch_concert_2019/Dep/Flanger/flanger7B.dsp
faust
declare compilation_options "-single -scal"; declare library_path "flanger7B"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/stdfaust.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/delays.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/oscillators.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/signals.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/maths.lib"; declare library_path "/Users/joaosvidzinski/.FaustLive-CurrentSession-2.0/Libs/basics.lib"; declare basics_lib_name "Faust Basic Element Library"; declare basics_lib_version "0.0"; declare delays_lib_name "Faust Delay Library"; declare delays_lib_version "0.0"; declare maths_lib_author "GRAME"; declare maths_lib_copyright "GRAME"; declare maths_lib_license "LGPL with exception"; declare maths_lib_name "Faust Math Library"; declare maths_lib_version "2.0"; declare name "flanger7B"; declare oscillators_lib_name "Faust Oscillator Library"; declare oscillators_lib_version "0.0"; declare signals_lib_name "Faust Signal Routing Library"; declare signals_lib_version "0.0"; process = \(x5).(((x5,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x5,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq0", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth0", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x16).(((x16,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x16,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq1", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth1", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x17).(((x17,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x17,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq2", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth2", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x18).(((x18,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x18,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq3", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth3", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x19).(((x19,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x19,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq4", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth4", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x20).(((x20,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x20,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq5", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth5", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +),\(x21).(((x21,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int : int),(1048576,1 : -) : &) : @),(1,((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : -) : *),((x21,(((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x11).(x11,(x11 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x10).(x10,(x10 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : int),1 : + : int),(1048576,1 : -) : &) : @),((((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : *),(((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable),((((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : *),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x15).(x15,(x15 : floor) : -))~_ : _,(65536 : float) : * : floor) : -),((((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),(((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int),1 : +) : rdtable),(((1,16 : <<),1 : +),((((_,1 : +)~_,1 : - : float),(2.0f,3.1415926535897931f : *) : *),(65536 : float) : / : sin),((vslider("flfreq6", 0.050000000000000003f, 0.10000000000000001f, 10.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)),(192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min : float) : / : (+ : \(x14).(x14,(x14 : floor) : -))~_ : _,(65536 : float) : * : int) : rdtable) : -) : *) : + : _,1 : + : _,0.5f : * : _,(vslider("fldepth6", 500.0f, 1.0f, 3000.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : * : _,(vslider("h:flanger/floffset", 5.0f, 2.0f, 100.0f, 0.01f) : _,(1.0f,0.999f : -) : * : +~(_,0.999f : *)) : +),((192000.0f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min),1000.0f : /) : * : floor) : -) : *) : +);
2bb39eea33d6745388695db4123bcd3bf070b6d4a391b299b46ef3f7695c4e50
sadko4u/tamgamp.lv2
mesa_dc3_lead.dsp
/* * This is simulation of Mesa/Boogie DC3 preamplifier (lead channel) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "mesa_dc3_lead"; declare name "mesa_dc3_lead"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : c01_stage1clip with { fs = float(ma.SR); b0 = fs*(fs*(-3.39648147814414e-13*fs - 1.41446620976163e-10) - 6.56277819866868e-9); b1 = fs*(fs*(1.01894444344324e-12*fs + 1.41446620976163e-10) - 6.56277819866868e-9); b2 = fs*(fs*(-1.01894444344324e-12*fs + 1.41446620976163e-10) + 6.56277819866868e-9); b3 = fs*(fs*(3.39648147814414e-13*fs - 1.41446620976163e-10) + 6.56277819866868e-9); a0 = fs*(fs*(8.89942320144513e-15*fs + 6.82850398703363e-12) + 1.29352204274063e-9) + 2.7061602658254e-8; a1 = fs*(fs*(-2.66982696043354e-14*fs - 6.82850398703363e-12) + 1.29352204274063e-9) + 8.11848079747621e-8; a2 = fs*(fs*(2.66982696043354e-14*fs - 6.82850398703363e-12) - 1.29352204274063e-9) + 8.11848079747621e-8; a3 = fs*(fs*(-8.89942320144513e-15*fs + 6.82850398703363e-12) - 1.29352204274063e-9) + 2.7061602658254e-8; }; c01_stage1clip = _<: ba.if(signbit(_), c01_stage1_neg_clip, c01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c01_stage1_clip = ffunction(float c01_stage1clip(float), "generated/stage/mesa_dc3_lead/c01_stage1_table.h", ""); c01_stage1_neg_clip = ffunction(float c01_stage1_negclip(float), "generated/stage/mesa_dc3_lead/c01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : c02_stage2clip with { fs = float(ma.SR); b0 = fs*(fs*(fs*(-1.38696009917964e-19*fs - 7.07691453407809e-16) - 8.17458405579397e-13) - 1.98990640737372e-10); b1 = fs*(fs*(fs*(4.16088029753892e-19*fs + 7.07691453407809e-16) - 8.17458405579397e-13) - 5.96971922212115e-10); b2 = fs*(fs*(fs*(-2.77392019835928e-19*fs + 1.41538290681562e-15) + 1.63491681115879e-12) - 3.97981281474744e-10); b3 = fs*(fs*(fs*(-2.77392019835928e-19*fs - 1.41538290681562e-15) + 1.63491681115879e-12) + 3.97981281474744e-10); b4 = fs*(fs*(fs*(4.16088029753892e-19*fs - 7.07691453407809e-16) - 8.17458405579397e-13) + 5.96971922212115e-10); b5 = fs*(fs*(fs*(-1.38696009917964e-19*fs + 7.07691453407809e-16) - 8.17458405579397e-13) + 1.98990640737372e-10); a0 = fs*(fs*(fs*(fs*(3.34293501026707e-24*fs + 2.64768858761465e-20) + 6.78047575088276e-17) + 6.80456501843159e-14) + 2.3514292335315e-11) + 3.96245678087155e-10; a1 = fs*(fs*(fs*(fs*(-1.67146750513354e-23*fs - 7.94306576284395e-20) - 6.78047575088276e-17) + 6.80456501843159e-14) + 7.0542877005945e-11) + 1.98122839043578e-9; a2 = fs*(fs*(fs*(fs*(3.34293501026707e-23*fs + 5.2953771752293e-20) - 1.35609515017655e-16) - 1.36091300368632e-13) + 4.702858467063e-11) + 3.96245678087155e-9; a3 = fs*(fs*(fs*(fs*(-3.34293501026707e-23*fs + 5.2953771752293e-20) + 1.35609515017655e-16) - 1.36091300368632e-13) - 4.702858467063e-11) + 3.96245678087155e-9; a4 = fs*(fs*(fs*(fs*(1.67146750513354e-23*fs - 7.94306576284395e-20) + 6.78047575088276e-17) + 6.80456501843159e-14) - 7.0542877005945e-11) + 1.98122839043578e-9; a5 = fs*(fs*(fs*(fs*(-3.34293501026707e-24*fs + 2.64768858761465e-20) - 6.78047575088276e-17) + 6.80456501843159e-14) - 2.3514292335315e-11) + 3.96245678087155e-10; }; c02_stage2clip = _<: ba.if(signbit(_), c02_stage2_neg_clip, c02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c02_stage2_clip = ffunction(float c02_stage2clip(float), "generated/stage/mesa_dc3_lead/c02_stage2_table.h", ""); c02_stage2_neg_clip = ffunction(float c02_stage2_negclip(float), "generated/stage/mesa_dc3_lead/c02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c03_stage3clip with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = fs*gain*(-2.3819226818044e-8*fs - 5.40118521951115e-6); b1 = 4.76384536360881e-8*pow(fs,2)*gain; b2 = fs*gain*(-2.3819226818044e-8*fs + 5.40118521951115e-6); a0 = fs*(4.29738746630271e-10*fs + 2.05792195263156e-7) + 3.9023912239995e-6; a1 = -8.59477493260542e-10*pow(fs,2) + 7.80478244799901e-6; a2 = fs*(4.29738746630271e-10*fs - 2.05792195263156e-7) + 3.9023912239995e-6; }; c03_stage3clip = _<: ba.if(signbit(_), c03_stage3_neg_clip, c03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c03_stage3_clip = ffunction(float c03_stage3clip(float), "generated/stage/mesa_dc3_lead/c03_stage3_table.h", ""); c03_stage3_neg_clip = ffunction(float c03_stage3_negclip(float), "generated/stage/mesa_dc3_lead/c03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : c04_stage4clip with { fs = float(ma.SR); b0 = -0.000835687299633219*fs - 0.278562433211075; b1 = 0.000835687299633219*fs - 0.278562433211075; a0 = 2.05613764909663e-5*fs + 0.0130539284336177; a1 = -2.05613764909663e-5*fs + 0.0130539284336177; }; c04_stage4clip = _<: ba.if(signbit(_), c04_stage4_neg_clip, c04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c04_stage4_clip = ffunction(float c04_stage4clip(float), "generated/stage/mesa_dc3_lead/c04_stage4_table.h", ""); c04_stage4_neg_clip = ffunction(float c04_stage4_negclip(float), "generated/stage/mesa_dc3_lead/c04_stage4_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); b0 = master*(bass*fs*(fs*(4.20314834832866e-17*fs + 3.22459821904024e-13) + 4.77080423573361e-10) + fs*(fs*(1.05078708708217e-18*fs + 8.0614955476006e-15) + 1.1927010589334e-11)) + middle*(pow(fs,2)*master*middle*(-3.86318782015502e-18*fs - 1.1927010589334e-14) + master*(bass*pow(fs,2)*(1.54527512806201e-16*fs + 4.77080423573361e-13) + fs*(fs*(3.86318782015502e-18*fs + 1.48360375623423e-14) + 1.16361078920332e-11))) + treble*(-9.54160847146722e-18*pow(fs,3)*master*middle + master*(3.81664338858689e-16*bass*pow(fs,3) + fs*(fs*(1.21369259757063e-17*fs + 1.98744722795927e-14) + 2.9090269730083e-12))); b1 = master*(bass*fs*(-8.40629669665732e-17*pow(fs,2) + 9.54160847146722e-10) + fs*(-2.10157417416433e-18*pow(fs,2) + 2.3854021178668e-11)) + middle*(7.72637564031004e-18*pow(fs,3)*master*middle + master*(-3.09055025612402e-16*bass*pow(fs,3) + fs*(-7.72637564031004e-18*pow(fs,2) + 2.32722157840664e-11))) + treble*(1.90832169429344e-17*pow(fs,3)*master*middle + master*(-7.63328677717377e-16*bass*pow(fs,3) + fs*(-2.42738519514126e-17*pow(fs,2) + 5.8180539460166e-12))); b2 = -3.97489445591854e-14*pow(fs,2)*master*treble + master*(-6.44919643808048e-13*bass*pow(fs,2) - 1.61229910952012e-14*pow(fs,2)) + middle*(2.3854021178668e-14*pow(fs,2)*master*middle + master*(-9.54160847146722e-13*bass*pow(fs,2) - 2.96720751246846e-14*pow(fs,2))); b3 = master*(bass*fs*(8.40629669665732e-17*pow(fs,2) - 9.54160847146722e-10) + fs*(2.10157417416433e-18*pow(fs,2) - 2.3854021178668e-11)) + middle*(-7.72637564031004e-18*pow(fs,3)*master*middle + master*(3.09055025612402e-16*bass*pow(fs,3) + fs*(7.72637564031004e-18*pow(fs,2) - 2.32722157840664e-11))) + treble*(-1.90832169429344e-17*pow(fs,3)*master*middle + master*(7.63328677717377e-16*bass*pow(fs,3) + fs*(2.42738519514126e-17*pow(fs,2) - 5.8180539460166e-12))); b4 = master*(bass*fs*(fs*(-4.20314834832866e-17*fs + 3.22459821904024e-13) - 4.77080423573361e-10) + fs*(fs*(-1.05078708708217e-18*fs + 8.0614955476006e-15) - 1.1927010589334e-11)) + middle*(pow(fs,2)*master*middle*(3.86318782015502e-18*fs - 1.1927010589334e-14) + master*(bass*pow(fs,2)*(-1.54527512806201e-16*fs + 4.77080423573361e-13) + fs*(fs*(-3.86318782015502e-18*fs + 1.48360375623423e-14) - 1.16361078920332e-11))) + treble*(9.54160847146722e-18*pow(fs,3)*master*middle + master*(-3.81664338858689e-16*bass*pow(fs,3) + fs*(fs*(-1.21369259757063e-17*fs + 1.98744722795927e-14) - 2.9090269730083e-12))); a0 = bass*(fs*(fs*(5.21411574331566e-15*fs + 2.37021932428928e-11) + 9.84531088744928e-9) + 5.8180539460166e-7) + fs*(fs*(1.6149670363376e-16*fs + 9.55623738630908e-13) + 1.23501576528278e-9) + master*(bass*fs*(fs*(fs*(2.60705787165783e-19*fs + 1.18510966214464e-15) + 4.92265544372464e-13) + 2.9090269730083e-11) + fs*(fs*(fs*(8.07483518168802e-21*fs + 4.77811869315454e-17) + 6.1750788264139e-14) + 7.70892147847199e-12) + master*(bass*fs*(fs*(fs*(-6.90889903268356e-20*fs - 3.10986619522479e-16) - 1.17536325817427e-13) - 5.8180539460166e-12) + fs*(fs*(fs*(-2.14247555884914e-21*fs - 1.26155842555098e-17) - 1.61235147200563e-14) - 2.00722861137573e-12))) + middle*(bass*fs*(fs*(2.33141057724777e-15*fs + 7.77873812582419e-12) + 5.8180539460166e-10) + fs*(fs*(-5.62140372264124e-17*fs - 2.28620429808722e-13) + 1.5417842956944e-10) + master*(bass*pow(fs,2)*(fs*(1.16570528862389e-19*fs + 3.88936906291209e-16) + 2.9090269730083e-14) + pow(fs,2)*(fs*(-2.81070186132062e-21*fs - 1.14310214904361e-17) + 7.70892147847199e-15) + master*(bass*pow(fs,2)*(fs*(-2.94952062847257e-20*fs - 9.68705982011763e-17) - 5.8180539460166e-15) + pow(fs,2)*(fs*(7.89277198316611e-22*fs + 3.21942015102828e-18) - 2.00722861137573e-15))) + middle*(fs*(fs*(-5.82852644311943e-17*fs - 1.94468453145605e-13) - 1.45451348650415e-11) + master*(pow(fs,2)*master*(fs*(7.37380157118143e-22*fs + 2.42176495502941e-18) + 1.45451348650415e-16) + pow(fs,2)*(fs*(-2.91426322155971e-21*fs - 9.72342265728024e-18) - 7.27256743252075e-16)))) + treble*(bass*fs*(fs*(5.03666602885078e-15*fs + 2.11265174887755e-11) + 5.67260259736618e-9) + fs*(fs*(1.58358119524258e-16*fs + 9.06359715926249e-13) + 1.17190151607639e-9) + master*(bass*pow(fs,2)*(fs*(2.51833301442539e-19*fs + 1.05632587443877e-15) + 2.83630129868309e-13) + fs*(fs*(fs*(7.91790597621291e-21*fs + 4.53179857963125e-17) + 5.85950758038196e-14) + 7.27256743252074e-12) + master*(bass*pow(fs,2)*(fs*(-5.03666602885078e-20*fs - 2.11265174887755e-16) - 5.67260259736618e-14) + fs*(fs*(fs*(-1.58358119524258e-21*fs - 9.06359715926249e-18) - 1.17190151607639e-14) - 1.45451348650415e-12))) + middle*(bass*pow(fs,2)*(9.77433062930788e-16*fs + 5.67260259736618e-12) + fs*(fs*(-9.48342793200705e-17*fs - 2.98902521476603e-13) + 1.45451348650415e-10) + master*(bass*pow(fs,3)*(4.88716531465394e-20*fs + 2.83630129868309e-16) + pow(fs,2)*(fs*(-4.74171396600353e-21*fs - 1.49451260738301e-17) + 7.27256743252075e-15) + master*(bass*pow(fs,3)*(-9.77433062930788e-21*fs - 5.67260259736618e-17) + pow(fs,2)*(fs*(9.48342793200705e-22*fs + 2.98902521476603e-18) - 1.45451348650415e-15))) + middle*(pow(fs,2)*(-2.44358265732697e-17*fs - 1.41815064934155e-13) + master*(pow(fs,3)*master*(2.44358265732697e-22*fs + 1.41815064934155e-18) + pow(fs,3)*(-1.22179132866349e-21*fs - 7.09075324670773e-18)))) + treble*(bass*pow(fs,2)*(-5.16643190406274e-15*fs - 1.45451348650415e-12) + fs*(fs*(-1.61602266404557e-16*fs - 2.84793740657512e-13) - 3.63628371626037e-11) + master*(bass*pow(fs,3)*(-2.58321595203137e-19*fs - 7.27256743252074e-17) + pow(fs,2)*(fs*(-8.08011332022785e-21*fs - 1.42396870328756e-17) - 1.81814185813019e-15) + master*(bass*pow(fs,3)*(5.16643190406274e-20*fs + 1.45451348650415e-17) + pow(fs,2)*(fs*(1.61602266404557e-21*fs + 2.84793740657512e-18) + 3.63628371626037e-16))) + middle*(-1.45451348650415e-15*bass*pow(fs,3) + pow(fs,2)*(8.29072687307365e-17*fs - 3.63628371626037e-14) + master*(-7.27256743252075e-20*bass*pow(fs,4) + pow(fs,3)*(4.14536343653682e-21*fs - 1.81814185813019e-18) + master*(1.45451348650415e-20*bass*pow(fs,4) + pow(fs,3)*(-8.29072687307365e-22*fs + 3.63628371626037e-19))) + middle*(3.63628371626037e-17*pow(fs,3) + master*(-3.63628371626037e-22*pow(fs,4)*master + 1.81814185813019e-21*pow(fs,4))))) + 1.45451348650415e-7) + 1.5417842956944e-7; a1 = bass*(fs*(-1.04282314866313e-14*pow(fs,2) + 1.96906217748986e-8) + 2.32722157840664e-6) + fs*(-3.22993407267521e-16*pow(fs,2) + 2.47003153056556e-9) + master*(bass*fs*(pow(fs,2)*(-1.04282314866313e-18*fs - 2.37021932428928e-15) + 5.8180539460166e-11) + fs*(pow(fs,2)*(-3.22993407267521e-20*fs - 9.55623738630908e-17) + 1.5417842956944e-11) + master*(bass*fs*(pow(fs,2)*(2.76355961307342e-19*fs + 6.21973239044958e-16) - 1.16361078920332e-11) + fs*(pow(fs,2)*(8.56990223539657e-21*fs + 2.52311685110196e-17) - 4.01445722275145e-12))) + middle*(bass*fs*(-4.66282115449554e-15*pow(fs,2) + 1.16361078920332e-9) + fs*(1.12428074452825e-16*pow(fs,2) + 3.0835685913888e-10) + master*(bass*pow(fs,3)*(-4.66282115449554e-19*fs - 7.77873812582419e-16) + pow(fs,3)*(1.12428074452825e-20*fs + 2.28620429808722e-17) + master*(bass*pow(fs,3)*(1.17980825138903e-19*fs + 1.93741196402353e-16) + pow(fs,3)*(-3.15710879326645e-21*fs - 6.43884030205657e-18))) + middle*(fs*(1.16570528862389e-16*pow(fs,2) - 2.9090269730083e-11) + master*(pow(fs,3)*master*(-2.94952062847257e-21*fs - 4.84352991005882e-18) + pow(fs,3)*(1.16570528862389e-20*fs + 1.94468453145605e-17)))) + treble*(bass*fs*(-1.00733320577016e-14*pow(fs,2) + 1.13452051947324e-8) + fs*(-3.16716239048516e-16*pow(fs,2) + 2.34380303215279e-9) + master*(bass*pow(fs,3)*(-1.00733320577016e-18*fs - 2.11265174887755e-15) + fs*(pow(fs,2)*(-3.16716239048516e-20*fs - 9.06359715926249e-17) + 1.45451348650415e-11) + master*(bass*pow(fs,3)*(2.01466641154031e-19*fs + 4.22530349775509e-16) + fs*(pow(fs,2)*(6.33432478097032e-21*fs + 1.8127194318525e-17) - 2.9090269730083e-12))) + middle*(-1.95486612586158e-15*bass*pow(fs,3) + fs*(1.89668558640141e-16*pow(fs,2) + 2.9090269730083e-10) + master*(bass*pow(fs,3)*(-1.95486612586158e-19*fs - 5.67260259736618e-16) + pow(fs,3)*(1.89668558640141e-20*fs + 2.98902521476603e-17) + master*(bass*pow(fs,3)*(3.90973225172315e-20*fs + 1.13452051947324e-16) + pow(fs,3)*(-3.79337117280282e-21*fs - 5.97805042953205e-18))) + middle*(4.88716531465394e-17*pow(fs,3) + master*(pow(fs,3)*master*(-9.77433062930788e-22*fs - 2.83630129868309e-18) + pow(fs,3)*(4.88716531465394e-21*fs + 1.41815064934155e-17)))) + treble*(1.03328638081255e-14*bass*pow(fs,3) + fs*(3.23204532809114e-16*pow(fs,2) - 7.27256743252075e-11) + master*(bass*pow(fs,3)*(1.03328638081255e-18*fs + 1.45451348650415e-16) + pow(fs,3)*(3.23204532809114e-20*fs + 2.84793740657512e-17) + master*(bass*pow(fs,3)*(-2.06657276162509e-19*fs - 2.9090269730083e-17) + pow(fs,3)*(-6.46409065618228e-21*fs - 5.69587481315025e-18))) + middle*(2.9090269730083e-15*bass*pow(fs,3) - 1.65814537461473e-16*pow(fs,3) + master*(2.9090269730083e-19*bass*pow(fs,4) + pow(fs,3)*(-1.65814537461473e-20*fs + 3.63628371626037e-18) + master*(-5.8180539460166e-20*bass*pow(fs,4) + pow(fs,3)*(3.31629074922946e-21*fs - 7.27256743252074e-19))) + middle*(-7.27256743252074e-17*pow(fs,3) + master*(1.45451348650415e-21*pow(fs,4)*master - 7.27256743252075e-21*pow(fs,4))))) + 5.8180539460166e-7) + 6.16713718277759e-7; a2 = bass*(-4.74043864857856e-11*pow(fs,2) + 3.49083236760996e-6) - 1.91124747726182e-12*pow(fs,2) + master*(bass*pow(fs,2)*(1.5642347229947e-18*pow(fs,2) - 9.84531088744928e-13) + pow(fs,2)*(4.84490110901281e-20*pow(fs,2) - 1.23501576528278e-13) + master*(bass*pow(fs,2)*(-4.14533941961014e-19*pow(fs,2) + 2.35072651634855e-13) + pow(fs,2)*(-1.28548533530949e-20*pow(fs,2) + 3.22470294401127e-14))) + middle*(-1.55574762516484e-11*bass*pow(fs,2) + 4.57240859617444e-13*pow(fs,2) + master*(bass*pow(fs,2)*(6.99423173174331e-19*pow(fs,2) - 5.8180539460166e-14) + pow(fs,2)*(-1.68642111679237e-20*pow(fs,2) - 1.5417842956944e-14) + master*(bass*pow(fs,2)*(-1.76971237708354e-19*pow(fs,2) + 1.16361078920332e-14) + pow(fs,2)*(4.73566318989967e-21*pow(fs,2) + 4.01445722275145e-15))) + middle*(3.88936906291209e-13*pow(fs,2) + master*(pow(fs,2)*master*(4.42428094270886e-21*pow(fs,2) - 2.9090269730083e-16) + pow(fs,2)*(-1.74855793293583e-20*pow(fs,2) + 1.45451348650415e-15)))) + treble*(-4.22530349775509e-11*bass*pow(fs,2) - 1.8127194318525e-12*pow(fs,2) + master*(bass*pow(fs,2)*(1.51099980865523e-18*pow(fs,2) - 5.67260259736618e-13) + pow(fs,2)*(4.75074358572774e-20*pow(fs,2) - 1.17190151607639e-13) + master*(bass*pow(fs,2)*(-3.02199961731047e-19*pow(fs,2) + 1.13452051947324e-13) + pow(fs,2)*(-9.50148717145549e-21*pow(fs,2) + 2.34380303215279e-14))) + middle*(-1.13452051947324e-11*bass*pow(fs,2) + 5.97805042953205e-13*pow(fs,2) + master*(2.93229918879236e-19*bass*pow(fs,4) + pow(fs,2)*(-2.84502837960212e-20*pow(fs,2) - 1.45451348650415e-14) + master*(-5.86459837758473e-20*bass*pow(fs,4) + pow(fs,2)*(5.69005675920423e-21*pow(fs,2) + 2.9090269730083e-15))) + middle*(2.83630129868309e-13*pow(fs,2) + master*(1.46614959439618e-21*pow(fs,4)*master - 7.33074797198091e-21*pow(fs,4)))) + treble*(2.9090269730083e-12*bass*pow(fs,2) + 5.69587481315025e-13*pow(fs,2) + master*(-1.54992957121882e-18*bass*pow(fs,4) + pow(fs,2)*(-4.84806799213671e-20*pow(fs,2) + 3.63628371626037e-15) + master*(3.09985914243764e-19*bass*pow(fs,4) + pow(fs,2)*(9.69613598427342e-21*pow(fs,2) - 7.27256743252075e-16))) + middle*(7.27256743252074e-14*pow(fs,2) + master*middle*(-2.18177022975622e-21*pow(fs,4)*master + 1.09088511487811e-20*pow(fs,4)) + master*(-4.36354045951245e-19*bass*pow(fs,4) + 2.48721806192209e-20*pow(fs,4) + master*(8.72708091902489e-20*bass*pow(fs,4) - 4.97443612384419e-21*pow(fs,4))))) + 8.72708091902489e-7) + 9.25070577416639e-7; a3 = bass*(fs*(1.04282314866313e-14*pow(fs,2) - 1.96906217748986e-8) + 2.32722157840664e-6) + fs*(3.22993407267521e-16*pow(fs,2) - 2.47003153056556e-9) + master*(bass*fs*(pow(fs,2)*(-1.04282314866313e-18*fs + 2.37021932428928e-15) - 5.8180539460166e-11) + fs*(pow(fs,2)*(-3.22993407267521e-20*fs + 9.55623738630908e-17) - 1.5417842956944e-11) + master*(bass*fs*(pow(fs,2)*(2.76355961307342e-19*fs - 6.21973239044958e-16) + 1.16361078920332e-11) + fs*(pow(fs,2)*(8.56990223539657e-21*fs - 2.52311685110196e-17) + 4.01445722275145e-12))) + middle*(bass*fs*(4.66282115449554e-15*pow(fs,2) - 1.16361078920332e-9) + fs*(-1.12428074452825e-16*pow(fs,2) - 3.0835685913888e-10) + master*(bass*pow(fs,3)*(-4.66282115449554e-19*fs + 7.77873812582419e-16) + pow(fs,3)*(1.12428074452825e-20*fs - 2.28620429808722e-17) + master*(bass*pow(fs,3)*(1.17980825138903e-19*fs - 1.93741196402353e-16) + pow(fs,3)*(-3.15710879326645e-21*fs + 6.43884030205657e-18))) + middle*(fs*(-1.16570528862389e-16*pow(fs,2) + 2.9090269730083e-11) + master*(pow(fs,3)*master*(-2.94952062847257e-21*fs + 4.84352991005882e-18) + pow(fs,3)*(1.16570528862389e-20*fs - 1.94468453145605e-17)))) + treble*(bass*fs*(1.00733320577016e-14*pow(fs,2) - 1.13452051947324e-8) + fs*(3.16716239048516e-16*pow(fs,2) - 2.34380303215279e-9) + master*(bass*pow(fs,3)*(-1.00733320577016e-18*fs + 2.11265174887755e-15) + fs*(pow(fs,2)*(-3.16716239048516e-20*fs + 9.06359715926249e-17) - 1.45451348650415e-11) + master*(bass*pow(fs,3)*(2.01466641154031e-19*fs - 4.22530349775509e-16) + fs*(pow(fs,2)*(6.33432478097032e-21*fs - 1.8127194318525e-17) + 2.9090269730083e-12))) + middle*(1.95486612586158e-15*bass*pow(fs,3) + fs*(-1.89668558640141e-16*pow(fs,2) - 2.9090269730083e-10) + master*(bass*pow(fs,3)*(-1.95486612586158e-19*fs + 5.67260259736618e-16) + pow(fs,3)*(1.89668558640141e-20*fs - 2.98902521476603e-17) + master*(bass*pow(fs,3)*(3.90973225172315e-20*fs - 1.13452051947324e-16) + pow(fs,3)*(-3.79337117280282e-21*fs + 5.97805042953205e-18))) + middle*(-4.88716531465394e-17*pow(fs,3) + master*(pow(fs,3)*master*(-9.77433062930788e-22*fs + 2.83630129868309e-18) + pow(fs,3)*(4.88716531465394e-21*fs - 1.41815064934155e-17)))) + treble*(-1.03328638081255e-14*bass*pow(fs,3) + fs*(-3.23204532809114e-16*pow(fs,2) + 7.27256743252075e-11) + master*(bass*pow(fs,3)*(1.03328638081255e-18*fs - 1.45451348650415e-16) + pow(fs,3)*(3.23204532809114e-20*fs - 2.84793740657512e-17) + master*(bass*pow(fs,3)*(-2.06657276162509e-19*fs + 2.9090269730083e-17) + pow(fs,3)*(-6.46409065618228e-21*fs + 5.69587481315025e-18))) + middle*(-2.9090269730083e-15*bass*pow(fs,3) + 1.65814537461473e-16*pow(fs,3) + master*(2.9090269730083e-19*bass*pow(fs,4) + pow(fs,3)*(-1.65814537461473e-20*fs - 3.63628371626037e-18) + master*(-5.8180539460166e-20*bass*pow(fs,4) + pow(fs,3)*(3.31629074922946e-21*fs + 7.27256743252074e-19))) + middle*(7.27256743252074e-17*pow(fs,3) + master*(1.45451348650415e-21*pow(fs,4)*master - 7.27256743252075e-21*pow(fs,4))))) + 5.8180539460166e-7) + 6.16713718277759e-7; a4 = bass*(fs*(fs*(-5.21411574331566e-15*fs + 2.37021932428928e-11) - 9.84531088744928e-9) + 5.8180539460166e-7) + fs*(fs*(-1.6149670363376e-16*fs + 9.55623738630908e-13) - 1.23501576528278e-9) + master*(bass*fs*(fs*(fs*(2.60705787165783e-19*fs - 1.18510966214464e-15) + 4.92265544372464e-13) - 2.9090269730083e-11) + fs*(fs*(fs*(8.07483518168802e-21*fs - 4.77811869315454e-17) + 6.1750788264139e-14) - 7.70892147847199e-12) + master*(bass*fs*(fs*(fs*(-6.90889903268356e-20*fs + 3.10986619522479e-16) - 1.17536325817427e-13) + 5.8180539460166e-12) + fs*(fs*(fs*(-2.14247555884914e-21*fs + 1.26155842555098e-17) - 1.61235147200563e-14) + 2.00722861137573e-12))) + middle*(bass*fs*(fs*(-2.33141057724777e-15*fs + 7.77873812582419e-12) - 5.8180539460166e-10) + fs*(fs*(5.62140372264124e-17*fs - 2.28620429808722e-13) - 1.5417842956944e-10) + master*(bass*pow(fs,2)*(fs*(1.16570528862389e-19*fs - 3.88936906291209e-16) + 2.9090269730083e-14) + pow(fs,2)*(fs*(-2.81070186132062e-21*fs + 1.14310214904361e-17) + 7.70892147847199e-15) + master*(bass*pow(fs,2)*(fs*(-2.94952062847257e-20*fs + 9.68705982011763e-17) - 5.8180539460166e-15) + pow(fs,2)*(fs*(7.89277198316611e-22*fs - 3.21942015102828e-18) - 2.00722861137573e-15))) + middle*(fs*(fs*(5.82852644311943e-17*fs - 1.94468453145605e-13) + 1.45451348650415e-11) + master*(pow(fs,2)*master*(fs*(7.37380157118143e-22*fs - 2.42176495502941e-18) + 1.45451348650415e-16) + pow(fs,2)*(fs*(-2.91426322155971e-21*fs + 9.72342265728024e-18) - 7.27256743252075e-16)))) + treble*(bass*fs*(fs*(-5.03666602885078e-15*fs + 2.11265174887755e-11) - 5.67260259736618e-9) + fs*(fs*(-1.58358119524258e-16*fs + 9.06359715926249e-13) - 1.17190151607639e-9) + master*(bass*pow(fs,2)*(fs*(2.51833301442539e-19*fs - 1.05632587443877e-15) + 2.83630129868309e-13) + fs*(fs*(fs*(7.91790597621291e-21*fs - 4.53179857963125e-17) + 5.85950758038196e-14) - 7.27256743252074e-12) + master*(bass*pow(fs,2)*(fs*(-5.03666602885078e-20*fs + 2.11265174887755e-16) - 5.67260259736618e-14) + fs*(fs*(fs*(-1.58358119524258e-21*fs + 9.06359715926249e-18) - 1.17190151607639e-14) + 1.45451348650415e-12))) + middle*(bass*pow(fs,2)*(-9.77433062930788e-16*fs + 5.67260259736618e-12) + fs*(fs*(9.48342793200705e-17*fs - 2.98902521476603e-13) - 1.45451348650415e-10) + master*(bass*pow(fs,3)*(4.88716531465394e-20*fs - 2.83630129868309e-16) + pow(fs,2)*(fs*(-4.74171396600353e-21*fs + 1.49451260738301e-17) + 7.27256743252075e-15) + master*(bass*pow(fs,3)*(-9.77433062930788e-21*fs + 5.67260259736618e-17) + pow(fs,2)*(fs*(9.48342793200705e-22*fs - 2.98902521476603e-18) - 1.45451348650415e-15))) + middle*(pow(fs,2)*(2.44358265732697e-17*fs - 1.41815064934155e-13) + master*(pow(fs,3)*master*(2.44358265732697e-22*fs - 1.41815064934155e-18) + pow(fs,3)*(-1.22179132866349e-21*fs + 7.09075324670773e-18)))) + treble*(bass*pow(fs,2)*(5.16643190406274e-15*fs - 1.45451348650415e-12) + fs*(fs*(1.61602266404557e-16*fs - 2.84793740657512e-13) + 3.63628371626037e-11) + master*(bass*pow(fs,3)*(-2.58321595203137e-19*fs + 7.27256743252074e-17) + pow(fs,2)*(fs*(-8.08011332022785e-21*fs + 1.42396870328756e-17) - 1.81814185813019e-15) + master*(bass*pow(fs,3)*(5.16643190406274e-20*fs - 1.45451348650415e-17) + pow(fs,2)*(fs*(1.61602266404557e-21*fs - 2.84793740657512e-18) + 3.63628371626037e-16))) + middle*(1.45451348650415e-15*bass*pow(fs,3) + pow(fs,2)*(-8.29072687307365e-17*fs - 3.63628371626037e-14) + master*(-7.27256743252075e-20*bass*pow(fs,4) + pow(fs,3)*(4.14536343653682e-21*fs + 1.81814185813019e-18) + master*(1.45451348650415e-20*bass*pow(fs,4) + pow(fs,3)*(-8.29072687307365e-22*fs - 3.63628371626037e-19))) + middle*(-3.63628371626037e-17*pow(fs,3) + master*(-3.63628371626037e-22*pow(fs,4)*master + 1.81814185813019e-21*pow(fs,4))))) + 1.45451348650415e-7) + 1.5417842956944e-7; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c06_stage5clip with { fs = float(ma.SR); b0 = (fs*(4.43030830836957e-10*fs + 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs - 4.72566219559423e-7)); b1 = (-8.86061661673914e-10*pow(fs,2) + 2.83539731735652e-9*pow(fs,2)); b2 = (fs*(4.43030830836957e-10*fs - 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs + 4.72566219559423e-7)); a0 = fs*(4.60626343739698e-10*fs + 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs - 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs - 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; a1 = -9.21252687479396e-10*pow(fs,2) + (6.38538513058588e-11*pow(fs,2) + (1.32763030240861e-10*pow(fs,2) + 3.27403958923153e-20) - 7.08953770134946e-6) + 2.26865206443179e-5; a2 = fs*(4.60626343739698e-10*fs - 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs + 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs + 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; }; c06_stage5clip = _<: ba.if(signbit(_), c06_stage5_neg_clip, c06_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c06_stage5_clip = ffunction(float c06_stage5clip(float), "generated/stage/mesa_dc3_lead/c06_stage5_table.h", ""); c06_stage5_neg_clip = ffunction(float c06_stage5_negclip(float), "generated/stage/mesa_dc3_lead/c06_stage5_neg_table.h", ""); }; process = *(pregain) : // *(0.01) : *(0.05) : p1 : *(0.13) : // *(0.5) : p2 : *(0.9) : // *(1.6) : p3 : *(0.62) : // *(1.5) : p4 : p5 : *(3.28) : // *(2.5) : p6 *(4.36) : // *(2.1) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/mesa_dc3_lead.dsp
faust
* This is simulation of Mesa/Boogie DC3 preamplifier (lead channel) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *(0.01) : *(0.5) : *(1.6) : *(1.5) : *(2.5) : *(2.1) :
declare id "mesa_dc3_lead"; declare name "mesa_dc3_lead"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0),(a1/a0,a2/a0,a3/a0)) : c01_stage1clip with { fs = float(ma.SR); b0 = fs*(fs*(-3.39648147814414e-13*fs - 1.41446620976163e-10) - 6.56277819866868e-9); b1 = fs*(fs*(1.01894444344324e-12*fs + 1.41446620976163e-10) - 6.56277819866868e-9); b2 = fs*(fs*(-1.01894444344324e-12*fs + 1.41446620976163e-10) + 6.56277819866868e-9); b3 = fs*(fs*(3.39648147814414e-13*fs - 1.41446620976163e-10) + 6.56277819866868e-9); a0 = fs*(fs*(8.89942320144513e-15*fs + 6.82850398703363e-12) + 1.29352204274063e-9) + 2.7061602658254e-8; a1 = fs*(fs*(-2.66982696043354e-14*fs - 6.82850398703363e-12) + 1.29352204274063e-9) + 8.11848079747621e-8; a2 = fs*(fs*(2.66982696043354e-14*fs - 6.82850398703363e-12) - 1.29352204274063e-9) + 8.11848079747621e-8; a3 = fs*(fs*(-8.89942320144513e-15*fs + 6.82850398703363e-12) - 1.29352204274063e-9) + 2.7061602658254e-8; }; c01_stage1clip = _<: ba.if(signbit(_), c01_stage1_neg_clip, c01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c01_stage1_clip = ffunction(float c01_stage1clip(float), "generated/stage/mesa_dc3_lead/c01_stage1_table.h", ""); c01_stage1_neg_clip = ffunction(float c01_stage1_negclip(float), "generated/stage/mesa_dc3_lead/c01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : c02_stage2clip with { fs = float(ma.SR); b0 = fs*(fs*(fs*(-1.38696009917964e-19*fs - 7.07691453407809e-16) - 8.17458405579397e-13) - 1.98990640737372e-10); b1 = fs*(fs*(fs*(4.16088029753892e-19*fs + 7.07691453407809e-16) - 8.17458405579397e-13) - 5.96971922212115e-10); b2 = fs*(fs*(fs*(-2.77392019835928e-19*fs + 1.41538290681562e-15) + 1.63491681115879e-12) - 3.97981281474744e-10); b3 = fs*(fs*(fs*(-2.77392019835928e-19*fs - 1.41538290681562e-15) + 1.63491681115879e-12) + 3.97981281474744e-10); b4 = fs*(fs*(fs*(4.16088029753892e-19*fs - 7.07691453407809e-16) - 8.17458405579397e-13) + 5.96971922212115e-10); b5 = fs*(fs*(fs*(-1.38696009917964e-19*fs + 7.07691453407809e-16) - 8.17458405579397e-13) + 1.98990640737372e-10); a0 = fs*(fs*(fs*(fs*(3.34293501026707e-24*fs + 2.64768858761465e-20) + 6.78047575088276e-17) + 6.80456501843159e-14) + 2.3514292335315e-11) + 3.96245678087155e-10; a1 = fs*(fs*(fs*(fs*(-1.67146750513354e-23*fs - 7.94306576284395e-20) - 6.78047575088276e-17) + 6.80456501843159e-14) + 7.0542877005945e-11) + 1.98122839043578e-9; a2 = fs*(fs*(fs*(fs*(3.34293501026707e-23*fs + 5.2953771752293e-20) - 1.35609515017655e-16) - 1.36091300368632e-13) + 4.702858467063e-11) + 3.96245678087155e-9; a3 = fs*(fs*(fs*(fs*(-3.34293501026707e-23*fs + 5.2953771752293e-20) + 1.35609515017655e-16) - 1.36091300368632e-13) - 4.702858467063e-11) + 3.96245678087155e-9; a4 = fs*(fs*(fs*(fs*(1.67146750513354e-23*fs - 7.94306576284395e-20) + 6.78047575088276e-17) + 6.80456501843159e-14) - 7.0542877005945e-11) + 1.98122839043578e-9; a5 = fs*(fs*(fs*(fs*(-3.34293501026707e-24*fs + 2.64768858761465e-20) - 6.78047575088276e-17) + 6.80456501843159e-14) - 2.3514292335315e-11) + 3.96245678087155e-10; }; c02_stage2clip = _<: ba.if(signbit(_), c02_stage2_neg_clip, c02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c02_stage2_clip = ffunction(float c02_stage2clip(float), "generated/stage/mesa_dc3_lead/c02_stage2_table.h", ""); c02_stage2_neg_clip = ffunction(float c02_stage2_negclip(float), "generated/stage/mesa_dc3_lead/c02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c03_stage3clip with { fs = float(ma.SR); LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = fs*gain*(-2.3819226818044e-8*fs - 5.40118521951115e-6); b1 = 4.76384536360881e-8*pow(fs,2)*gain; b2 = fs*gain*(-2.3819226818044e-8*fs + 5.40118521951115e-6); a0 = fs*(4.29738746630271e-10*fs + 2.05792195263156e-7) + 3.9023912239995e-6; a1 = -8.59477493260542e-10*pow(fs,2) + 7.80478244799901e-6; a2 = fs*(4.29738746630271e-10*fs - 2.05792195263156e-7) + 3.9023912239995e-6; }; c03_stage3clip = _<: ba.if(signbit(_), c03_stage3_neg_clip, c03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c03_stage3_clip = ffunction(float c03_stage3clip(float), "generated/stage/mesa_dc3_lead/c03_stage3_table.h", ""); c03_stage3_neg_clip = ffunction(float c03_stage3_negclip(float), "generated/stage/mesa_dc3_lead/c03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : c04_stage4clip with { fs = float(ma.SR); b0 = -0.000835687299633219*fs - 0.278562433211075; b1 = 0.000835687299633219*fs - 0.278562433211075; a0 = 2.05613764909663e-5*fs + 0.0130539284336177; a1 = -2.05613764909663e-5*fs + 0.0130539284336177; }; c04_stage4clip = _<: ba.if(signbit(_), c04_stage4_neg_clip, c04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c04_stage4_clip = ffunction(float c04_stage4clip(float), "generated/stage/mesa_dc3_lead/c04_stage4_table.h", ""); c04_stage4_neg_clip = ffunction(float c04_stage4_negclip(float), "generated/stage/mesa_dc3_lead/c04_stage4_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); b0 = master*(bass*fs*(fs*(4.20314834832866e-17*fs + 3.22459821904024e-13) + 4.77080423573361e-10) + fs*(fs*(1.05078708708217e-18*fs + 8.0614955476006e-15) + 1.1927010589334e-11)) + middle*(pow(fs,2)*master*middle*(-3.86318782015502e-18*fs - 1.1927010589334e-14) + master*(bass*pow(fs,2)*(1.54527512806201e-16*fs + 4.77080423573361e-13) + fs*(fs*(3.86318782015502e-18*fs + 1.48360375623423e-14) + 1.16361078920332e-11))) + treble*(-9.54160847146722e-18*pow(fs,3)*master*middle + master*(3.81664338858689e-16*bass*pow(fs,3) + fs*(fs*(1.21369259757063e-17*fs + 1.98744722795927e-14) + 2.9090269730083e-12))); b1 = master*(bass*fs*(-8.40629669665732e-17*pow(fs,2) + 9.54160847146722e-10) + fs*(-2.10157417416433e-18*pow(fs,2) + 2.3854021178668e-11)) + middle*(7.72637564031004e-18*pow(fs,3)*master*middle + master*(-3.09055025612402e-16*bass*pow(fs,3) + fs*(-7.72637564031004e-18*pow(fs,2) + 2.32722157840664e-11))) + treble*(1.90832169429344e-17*pow(fs,3)*master*middle + master*(-7.63328677717377e-16*bass*pow(fs,3) + fs*(-2.42738519514126e-17*pow(fs,2) + 5.8180539460166e-12))); b2 = -3.97489445591854e-14*pow(fs,2)*master*treble + master*(-6.44919643808048e-13*bass*pow(fs,2) - 1.61229910952012e-14*pow(fs,2)) + middle*(2.3854021178668e-14*pow(fs,2)*master*middle + master*(-9.54160847146722e-13*bass*pow(fs,2) - 2.96720751246846e-14*pow(fs,2))); b3 = master*(bass*fs*(8.40629669665732e-17*pow(fs,2) - 9.54160847146722e-10) + fs*(2.10157417416433e-18*pow(fs,2) - 2.3854021178668e-11)) + middle*(-7.72637564031004e-18*pow(fs,3)*master*middle + master*(3.09055025612402e-16*bass*pow(fs,3) + fs*(7.72637564031004e-18*pow(fs,2) - 2.32722157840664e-11))) + treble*(-1.90832169429344e-17*pow(fs,3)*master*middle + master*(7.63328677717377e-16*bass*pow(fs,3) + fs*(2.42738519514126e-17*pow(fs,2) - 5.8180539460166e-12))); b4 = master*(bass*fs*(fs*(-4.20314834832866e-17*fs + 3.22459821904024e-13) - 4.77080423573361e-10) + fs*(fs*(-1.05078708708217e-18*fs + 8.0614955476006e-15) - 1.1927010589334e-11)) + middle*(pow(fs,2)*master*middle*(3.86318782015502e-18*fs - 1.1927010589334e-14) + master*(bass*pow(fs,2)*(-1.54527512806201e-16*fs + 4.77080423573361e-13) + fs*(fs*(-3.86318782015502e-18*fs + 1.48360375623423e-14) - 1.16361078920332e-11))) + treble*(9.54160847146722e-18*pow(fs,3)*master*middle + master*(-3.81664338858689e-16*bass*pow(fs,3) + fs*(fs*(-1.21369259757063e-17*fs + 1.98744722795927e-14) - 2.9090269730083e-12))); a0 = bass*(fs*(fs*(5.21411574331566e-15*fs + 2.37021932428928e-11) + 9.84531088744928e-9) + 5.8180539460166e-7) + fs*(fs*(1.6149670363376e-16*fs + 9.55623738630908e-13) + 1.23501576528278e-9) + master*(bass*fs*(fs*(fs*(2.60705787165783e-19*fs + 1.18510966214464e-15) + 4.92265544372464e-13) + 2.9090269730083e-11) + fs*(fs*(fs*(8.07483518168802e-21*fs + 4.77811869315454e-17) + 6.1750788264139e-14) + 7.70892147847199e-12) + master*(bass*fs*(fs*(fs*(-6.90889903268356e-20*fs - 3.10986619522479e-16) - 1.17536325817427e-13) - 5.8180539460166e-12) + fs*(fs*(fs*(-2.14247555884914e-21*fs - 1.26155842555098e-17) - 1.61235147200563e-14) - 2.00722861137573e-12))) + middle*(bass*fs*(fs*(2.33141057724777e-15*fs + 7.77873812582419e-12) + 5.8180539460166e-10) + fs*(fs*(-5.62140372264124e-17*fs - 2.28620429808722e-13) + 1.5417842956944e-10) + master*(bass*pow(fs,2)*(fs*(1.16570528862389e-19*fs + 3.88936906291209e-16) + 2.9090269730083e-14) + pow(fs,2)*(fs*(-2.81070186132062e-21*fs - 1.14310214904361e-17) + 7.70892147847199e-15) + master*(bass*pow(fs,2)*(fs*(-2.94952062847257e-20*fs - 9.68705982011763e-17) - 5.8180539460166e-15) + pow(fs,2)*(fs*(7.89277198316611e-22*fs + 3.21942015102828e-18) - 2.00722861137573e-15))) + middle*(fs*(fs*(-5.82852644311943e-17*fs - 1.94468453145605e-13) - 1.45451348650415e-11) + master*(pow(fs,2)*master*(fs*(7.37380157118143e-22*fs + 2.42176495502941e-18) + 1.45451348650415e-16) + pow(fs,2)*(fs*(-2.91426322155971e-21*fs - 9.72342265728024e-18) - 7.27256743252075e-16)))) + treble*(bass*fs*(fs*(5.03666602885078e-15*fs + 2.11265174887755e-11) + 5.67260259736618e-9) + fs*(fs*(1.58358119524258e-16*fs + 9.06359715926249e-13) + 1.17190151607639e-9) + master*(bass*pow(fs,2)*(fs*(2.51833301442539e-19*fs + 1.05632587443877e-15) + 2.83630129868309e-13) + fs*(fs*(fs*(7.91790597621291e-21*fs + 4.53179857963125e-17) + 5.85950758038196e-14) + 7.27256743252074e-12) + master*(bass*pow(fs,2)*(fs*(-5.03666602885078e-20*fs - 2.11265174887755e-16) - 5.67260259736618e-14) + fs*(fs*(fs*(-1.58358119524258e-21*fs - 9.06359715926249e-18) - 1.17190151607639e-14) - 1.45451348650415e-12))) + middle*(bass*pow(fs,2)*(9.77433062930788e-16*fs + 5.67260259736618e-12) + fs*(fs*(-9.48342793200705e-17*fs - 2.98902521476603e-13) + 1.45451348650415e-10) + master*(bass*pow(fs,3)*(4.88716531465394e-20*fs + 2.83630129868309e-16) + pow(fs,2)*(fs*(-4.74171396600353e-21*fs - 1.49451260738301e-17) + 7.27256743252075e-15) + master*(bass*pow(fs,3)*(-9.77433062930788e-21*fs - 5.67260259736618e-17) + pow(fs,2)*(fs*(9.48342793200705e-22*fs + 2.98902521476603e-18) - 1.45451348650415e-15))) + middle*(pow(fs,2)*(-2.44358265732697e-17*fs - 1.41815064934155e-13) + master*(pow(fs,3)*master*(2.44358265732697e-22*fs + 1.41815064934155e-18) + pow(fs,3)*(-1.22179132866349e-21*fs - 7.09075324670773e-18)))) + treble*(bass*pow(fs,2)*(-5.16643190406274e-15*fs - 1.45451348650415e-12) + fs*(fs*(-1.61602266404557e-16*fs - 2.84793740657512e-13) - 3.63628371626037e-11) + master*(bass*pow(fs,3)*(-2.58321595203137e-19*fs - 7.27256743252074e-17) + pow(fs,2)*(fs*(-8.08011332022785e-21*fs - 1.42396870328756e-17) - 1.81814185813019e-15) + master*(bass*pow(fs,3)*(5.16643190406274e-20*fs + 1.45451348650415e-17) + pow(fs,2)*(fs*(1.61602266404557e-21*fs + 2.84793740657512e-18) + 3.63628371626037e-16))) + middle*(-1.45451348650415e-15*bass*pow(fs,3) + pow(fs,2)*(8.29072687307365e-17*fs - 3.63628371626037e-14) + master*(-7.27256743252075e-20*bass*pow(fs,4) + pow(fs,3)*(4.14536343653682e-21*fs - 1.81814185813019e-18) + master*(1.45451348650415e-20*bass*pow(fs,4) + pow(fs,3)*(-8.29072687307365e-22*fs + 3.63628371626037e-19))) + middle*(3.63628371626037e-17*pow(fs,3) + master*(-3.63628371626037e-22*pow(fs,4)*master + 1.81814185813019e-21*pow(fs,4))))) + 1.45451348650415e-7) + 1.5417842956944e-7; a1 = bass*(fs*(-1.04282314866313e-14*pow(fs,2) + 1.96906217748986e-8) + 2.32722157840664e-6) + fs*(-3.22993407267521e-16*pow(fs,2) + 2.47003153056556e-9) + master*(bass*fs*(pow(fs,2)*(-1.04282314866313e-18*fs - 2.37021932428928e-15) + 5.8180539460166e-11) + fs*(pow(fs,2)*(-3.22993407267521e-20*fs - 9.55623738630908e-17) + 1.5417842956944e-11) + master*(bass*fs*(pow(fs,2)*(2.76355961307342e-19*fs + 6.21973239044958e-16) - 1.16361078920332e-11) + fs*(pow(fs,2)*(8.56990223539657e-21*fs + 2.52311685110196e-17) - 4.01445722275145e-12))) + middle*(bass*fs*(-4.66282115449554e-15*pow(fs,2) + 1.16361078920332e-9) + fs*(1.12428074452825e-16*pow(fs,2) + 3.0835685913888e-10) + master*(bass*pow(fs,3)*(-4.66282115449554e-19*fs - 7.77873812582419e-16) + pow(fs,3)*(1.12428074452825e-20*fs + 2.28620429808722e-17) + master*(bass*pow(fs,3)*(1.17980825138903e-19*fs + 1.93741196402353e-16) + pow(fs,3)*(-3.15710879326645e-21*fs - 6.43884030205657e-18))) + middle*(fs*(1.16570528862389e-16*pow(fs,2) - 2.9090269730083e-11) + master*(pow(fs,3)*master*(-2.94952062847257e-21*fs - 4.84352991005882e-18) + pow(fs,3)*(1.16570528862389e-20*fs + 1.94468453145605e-17)))) + treble*(bass*fs*(-1.00733320577016e-14*pow(fs,2) + 1.13452051947324e-8) + fs*(-3.16716239048516e-16*pow(fs,2) + 2.34380303215279e-9) + master*(bass*pow(fs,3)*(-1.00733320577016e-18*fs - 2.11265174887755e-15) + fs*(pow(fs,2)*(-3.16716239048516e-20*fs - 9.06359715926249e-17) + 1.45451348650415e-11) + master*(bass*pow(fs,3)*(2.01466641154031e-19*fs + 4.22530349775509e-16) + fs*(pow(fs,2)*(6.33432478097032e-21*fs + 1.8127194318525e-17) - 2.9090269730083e-12))) + middle*(-1.95486612586158e-15*bass*pow(fs,3) + fs*(1.89668558640141e-16*pow(fs,2) + 2.9090269730083e-10) + master*(bass*pow(fs,3)*(-1.95486612586158e-19*fs - 5.67260259736618e-16) + pow(fs,3)*(1.89668558640141e-20*fs + 2.98902521476603e-17) + master*(bass*pow(fs,3)*(3.90973225172315e-20*fs + 1.13452051947324e-16) + pow(fs,3)*(-3.79337117280282e-21*fs - 5.97805042953205e-18))) + middle*(4.88716531465394e-17*pow(fs,3) + master*(pow(fs,3)*master*(-9.77433062930788e-22*fs - 2.83630129868309e-18) + pow(fs,3)*(4.88716531465394e-21*fs + 1.41815064934155e-17)))) + treble*(1.03328638081255e-14*bass*pow(fs,3) + fs*(3.23204532809114e-16*pow(fs,2) - 7.27256743252075e-11) + master*(bass*pow(fs,3)*(1.03328638081255e-18*fs + 1.45451348650415e-16) + pow(fs,3)*(3.23204532809114e-20*fs + 2.84793740657512e-17) + master*(bass*pow(fs,3)*(-2.06657276162509e-19*fs - 2.9090269730083e-17) + pow(fs,3)*(-6.46409065618228e-21*fs - 5.69587481315025e-18))) + middle*(2.9090269730083e-15*bass*pow(fs,3) - 1.65814537461473e-16*pow(fs,3) + master*(2.9090269730083e-19*bass*pow(fs,4) + pow(fs,3)*(-1.65814537461473e-20*fs + 3.63628371626037e-18) + master*(-5.8180539460166e-20*bass*pow(fs,4) + pow(fs,3)*(3.31629074922946e-21*fs - 7.27256743252074e-19))) + middle*(-7.27256743252074e-17*pow(fs,3) + master*(1.45451348650415e-21*pow(fs,4)*master - 7.27256743252075e-21*pow(fs,4))))) + 5.8180539460166e-7) + 6.16713718277759e-7; a2 = bass*(-4.74043864857856e-11*pow(fs,2) + 3.49083236760996e-6) - 1.91124747726182e-12*pow(fs,2) + master*(bass*pow(fs,2)*(1.5642347229947e-18*pow(fs,2) - 9.84531088744928e-13) + pow(fs,2)*(4.84490110901281e-20*pow(fs,2) - 1.23501576528278e-13) + master*(bass*pow(fs,2)*(-4.14533941961014e-19*pow(fs,2) + 2.35072651634855e-13) + pow(fs,2)*(-1.28548533530949e-20*pow(fs,2) + 3.22470294401127e-14))) + middle*(-1.55574762516484e-11*bass*pow(fs,2) + 4.57240859617444e-13*pow(fs,2) + master*(bass*pow(fs,2)*(6.99423173174331e-19*pow(fs,2) - 5.8180539460166e-14) + pow(fs,2)*(-1.68642111679237e-20*pow(fs,2) - 1.5417842956944e-14) + master*(bass*pow(fs,2)*(-1.76971237708354e-19*pow(fs,2) + 1.16361078920332e-14) + pow(fs,2)*(4.73566318989967e-21*pow(fs,2) + 4.01445722275145e-15))) + middle*(3.88936906291209e-13*pow(fs,2) + master*(pow(fs,2)*master*(4.42428094270886e-21*pow(fs,2) - 2.9090269730083e-16) + pow(fs,2)*(-1.74855793293583e-20*pow(fs,2) + 1.45451348650415e-15)))) + treble*(-4.22530349775509e-11*bass*pow(fs,2) - 1.8127194318525e-12*pow(fs,2) + master*(bass*pow(fs,2)*(1.51099980865523e-18*pow(fs,2) - 5.67260259736618e-13) + pow(fs,2)*(4.75074358572774e-20*pow(fs,2) - 1.17190151607639e-13) + master*(bass*pow(fs,2)*(-3.02199961731047e-19*pow(fs,2) + 1.13452051947324e-13) + pow(fs,2)*(-9.50148717145549e-21*pow(fs,2) + 2.34380303215279e-14))) + middle*(-1.13452051947324e-11*bass*pow(fs,2) + 5.97805042953205e-13*pow(fs,2) + master*(2.93229918879236e-19*bass*pow(fs,4) + pow(fs,2)*(-2.84502837960212e-20*pow(fs,2) - 1.45451348650415e-14) + master*(-5.86459837758473e-20*bass*pow(fs,4) + pow(fs,2)*(5.69005675920423e-21*pow(fs,2) + 2.9090269730083e-15))) + middle*(2.83630129868309e-13*pow(fs,2) + master*(1.46614959439618e-21*pow(fs,4)*master - 7.33074797198091e-21*pow(fs,4)))) + treble*(2.9090269730083e-12*bass*pow(fs,2) + 5.69587481315025e-13*pow(fs,2) + master*(-1.54992957121882e-18*bass*pow(fs,4) + pow(fs,2)*(-4.84806799213671e-20*pow(fs,2) + 3.63628371626037e-15) + master*(3.09985914243764e-19*bass*pow(fs,4) + pow(fs,2)*(9.69613598427342e-21*pow(fs,2) - 7.27256743252075e-16))) + middle*(7.27256743252074e-14*pow(fs,2) + master*middle*(-2.18177022975622e-21*pow(fs,4)*master + 1.09088511487811e-20*pow(fs,4)) + master*(-4.36354045951245e-19*bass*pow(fs,4) + 2.48721806192209e-20*pow(fs,4) + master*(8.72708091902489e-20*bass*pow(fs,4) - 4.97443612384419e-21*pow(fs,4))))) + 8.72708091902489e-7) + 9.25070577416639e-7; a3 = bass*(fs*(1.04282314866313e-14*pow(fs,2) - 1.96906217748986e-8) + 2.32722157840664e-6) + fs*(3.22993407267521e-16*pow(fs,2) - 2.47003153056556e-9) + master*(bass*fs*(pow(fs,2)*(-1.04282314866313e-18*fs + 2.37021932428928e-15) - 5.8180539460166e-11) + fs*(pow(fs,2)*(-3.22993407267521e-20*fs + 9.55623738630908e-17) - 1.5417842956944e-11) + master*(bass*fs*(pow(fs,2)*(2.76355961307342e-19*fs - 6.21973239044958e-16) + 1.16361078920332e-11) + fs*(pow(fs,2)*(8.56990223539657e-21*fs - 2.52311685110196e-17) + 4.01445722275145e-12))) + middle*(bass*fs*(4.66282115449554e-15*pow(fs,2) - 1.16361078920332e-9) + fs*(-1.12428074452825e-16*pow(fs,2) - 3.0835685913888e-10) + master*(bass*pow(fs,3)*(-4.66282115449554e-19*fs + 7.77873812582419e-16) + pow(fs,3)*(1.12428074452825e-20*fs - 2.28620429808722e-17) + master*(bass*pow(fs,3)*(1.17980825138903e-19*fs - 1.93741196402353e-16) + pow(fs,3)*(-3.15710879326645e-21*fs + 6.43884030205657e-18))) + middle*(fs*(-1.16570528862389e-16*pow(fs,2) + 2.9090269730083e-11) + master*(pow(fs,3)*master*(-2.94952062847257e-21*fs + 4.84352991005882e-18) + pow(fs,3)*(1.16570528862389e-20*fs - 1.94468453145605e-17)))) + treble*(bass*fs*(1.00733320577016e-14*pow(fs,2) - 1.13452051947324e-8) + fs*(3.16716239048516e-16*pow(fs,2) - 2.34380303215279e-9) + master*(bass*pow(fs,3)*(-1.00733320577016e-18*fs + 2.11265174887755e-15) + fs*(pow(fs,2)*(-3.16716239048516e-20*fs + 9.06359715926249e-17) - 1.45451348650415e-11) + master*(bass*pow(fs,3)*(2.01466641154031e-19*fs - 4.22530349775509e-16) + fs*(pow(fs,2)*(6.33432478097032e-21*fs - 1.8127194318525e-17) + 2.9090269730083e-12))) + middle*(1.95486612586158e-15*bass*pow(fs,3) + fs*(-1.89668558640141e-16*pow(fs,2) - 2.9090269730083e-10) + master*(bass*pow(fs,3)*(-1.95486612586158e-19*fs + 5.67260259736618e-16) + pow(fs,3)*(1.89668558640141e-20*fs - 2.98902521476603e-17) + master*(bass*pow(fs,3)*(3.90973225172315e-20*fs - 1.13452051947324e-16) + pow(fs,3)*(-3.79337117280282e-21*fs + 5.97805042953205e-18))) + middle*(-4.88716531465394e-17*pow(fs,3) + master*(pow(fs,3)*master*(-9.77433062930788e-22*fs + 2.83630129868309e-18) + pow(fs,3)*(4.88716531465394e-21*fs - 1.41815064934155e-17)))) + treble*(-1.03328638081255e-14*bass*pow(fs,3) + fs*(-3.23204532809114e-16*pow(fs,2) + 7.27256743252075e-11) + master*(bass*pow(fs,3)*(1.03328638081255e-18*fs - 1.45451348650415e-16) + pow(fs,3)*(3.23204532809114e-20*fs - 2.84793740657512e-17) + master*(bass*pow(fs,3)*(-2.06657276162509e-19*fs + 2.9090269730083e-17) + pow(fs,3)*(-6.46409065618228e-21*fs + 5.69587481315025e-18))) + middle*(-2.9090269730083e-15*bass*pow(fs,3) + 1.65814537461473e-16*pow(fs,3) + master*(2.9090269730083e-19*bass*pow(fs,4) + pow(fs,3)*(-1.65814537461473e-20*fs - 3.63628371626037e-18) + master*(-5.8180539460166e-20*bass*pow(fs,4) + pow(fs,3)*(3.31629074922946e-21*fs + 7.27256743252074e-19))) + middle*(7.27256743252074e-17*pow(fs,3) + master*(1.45451348650415e-21*pow(fs,4)*master - 7.27256743252075e-21*pow(fs,4))))) + 5.8180539460166e-7) + 6.16713718277759e-7; a4 = bass*(fs*(fs*(-5.21411574331566e-15*fs + 2.37021932428928e-11) - 9.84531088744928e-9) + 5.8180539460166e-7) + fs*(fs*(-1.6149670363376e-16*fs + 9.55623738630908e-13) - 1.23501576528278e-9) + master*(bass*fs*(fs*(fs*(2.60705787165783e-19*fs - 1.18510966214464e-15) + 4.92265544372464e-13) - 2.9090269730083e-11) + fs*(fs*(fs*(8.07483518168802e-21*fs - 4.77811869315454e-17) + 6.1750788264139e-14) - 7.70892147847199e-12) + master*(bass*fs*(fs*(fs*(-6.90889903268356e-20*fs + 3.10986619522479e-16) - 1.17536325817427e-13) + 5.8180539460166e-12) + fs*(fs*(fs*(-2.14247555884914e-21*fs + 1.26155842555098e-17) - 1.61235147200563e-14) + 2.00722861137573e-12))) + middle*(bass*fs*(fs*(-2.33141057724777e-15*fs + 7.77873812582419e-12) - 5.8180539460166e-10) + fs*(fs*(5.62140372264124e-17*fs - 2.28620429808722e-13) - 1.5417842956944e-10) + master*(bass*pow(fs,2)*(fs*(1.16570528862389e-19*fs - 3.88936906291209e-16) + 2.9090269730083e-14) + pow(fs,2)*(fs*(-2.81070186132062e-21*fs + 1.14310214904361e-17) + 7.70892147847199e-15) + master*(bass*pow(fs,2)*(fs*(-2.94952062847257e-20*fs + 9.68705982011763e-17) - 5.8180539460166e-15) + pow(fs,2)*(fs*(7.89277198316611e-22*fs - 3.21942015102828e-18) - 2.00722861137573e-15))) + middle*(fs*(fs*(5.82852644311943e-17*fs - 1.94468453145605e-13) + 1.45451348650415e-11) + master*(pow(fs,2)*master*(fs*(7.37380157118143e-22*fs - 2.42176495502941e-18) + 1.45451348650415e-16) + pow(fs,2)*(fs*(-2.91426322155971e-21*fs + 9.72342265728024e-18) - 7.27256743252075e-16)))) + treble*(bass*fs*(fs*(-5.03666602885078e-15*fs + 2.11265174887755e-11) - 5.67260259736618e-9) + fs*(fs*(-1.58358119524258e-16*fs + 9.06359715926249e-13) - 1.17190151607639e-9) + master*(bass*pow(fs,2)*(fs*(2.51833301442539e-19*fs - 1.05632587443877e-15) + 2.83630129868309e-13) + fs*(fs*(fs*(7.91790597621291e-21*fs - 4.53179857963125e-17) + 5.85950758038196e-14) - 7.27256743252074e-12) + master*(bass*pow(fs,2)*(fs*(-5.03666602885078e-20*fs + 2.11265174887755e-16) - 5.67260259736618e-14) + fs*(fs*(fs*(-1.58358119524258e-21*fs + 9.06359715926249e-18) - 1.17190151607639e-14) + 1.45451348650415e-12))) + middle*(bass*pow(fs,2)*(-9.77433062930788e-16*fs + 5.67260259736618e-12) + fs*(fs*(9.48342793200705e-17*fs - 2.98902521476603e-13) - 1.45451348650415e-10) + master*(bass*pow(fs,3)*(4.88716531465394e-20*fs - 2.83630129868309e-16) + pow(fs,2)*(fs*(-4.74171396600353e-21*fs + 1.49451260738301e-17) + 7.27256743252075e-15) + master*(bass*pow(fs,3)*(-9.77433062930788e-21*fs + 5.67260259736618e-17) + pow(fs,2)*(fs*(9.48342793200705e-22*fs - 2.98902521476603e-18) - 1.45451348650415e-15))) + middle*(pow(fs,2)*(2.44358265732697e-17*fs - 1.41815064934155e-13) + master*(pow(fs,3)*master*(2.44358265732697e-22*fs - 1.41815064934155e-18) + pow(fs,3)*(-1.22179132866349e-21*fs + 7.09075324670773e-18)))) + treble*(bass*pow(fs,2)*(5.16643190406274e-15*fs - 1.45451348650415e-12) + fs*(fs*(1.61602266404557e-16*fs - 2.84793740657512e-13) + 3.63628371626037e-11) + master*(bass*pow(fs,3)*(-2.58321595203137e-19*fs + 7.27256743252074e-17) + pow(fs,2)*(fs*(-8.08011332022785e-21*fs + 1.42396870328756e-17) - 1.81814185813019e-15) + master*(bass*pow(fs,3)*(5.16643190406274e-20*fs - 1.45451348650415e-17) + pow(fs,2)*(fs*(1.61602266404557e-21*fs - 2.84793740657512e-18) + 3.63628371626037e-16))) + middle*(1.45451348650415e-15*bass*pow(fs,3) + pow(fs,2)*(-8.29072687307365e-17*fs - 3.63628371626037e-14) + master*(-7.27256743252075e-20*bass*pow(fs,4) + pow(fs,3)*(4.14536343653682e-21*fs + 1.81814185813019e-18) + master*(1.45451348650415e-20*bass*pow(fs,4) + pow(fs,3)*(-8.29072687307365e-22*fs - 3.63628371626037e-19))) + middle*(-3.63628371626037e-17*pow(fs,3) + master*(-3.63628371626037e-22*pow(fs,4)*master + 1.81814185813019e-21*pow(fs,4))))) + 1.45451348650415e-7) + 1.5417842956944e-7; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : c06_stage5clip with { fs = float(ma.SR); b0 = (fs*(4.43030830836957e-10*fs + 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs - 4.72566219559423e-7)); b1 = (-8.86061661673914e-10*pow(fs,2) + 2.83539731735652e-9*pow(fs,2)); b2 = (fs*(4.43030830836957e-10*fs - 1.4767694361232e-7) + fs*(-1.41769865867826e-9*fs + 4.72566219559423e-7)); a0 = fs*(4.60626343739698e-10*fs + 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs - 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs - 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; a1 = -9.21252687479396e-10*pow(fs,2) + (6.38538513058588e-11*pow(fs,2) + (1.32763030240861e-10*pow(fs,2) + 3.27403958923153e-20) - 7.08953770134946e-6) + 2.26865206443179e-5; a2 = fs*(4.60626343739698e-10*fs - 3.15389151463859e-7) + (fs*(-3.19269256529294e-11*fs + 4.23302139386303e-8) + (fs*(-6.63815151204305e-11*fs + 3.33208271963413e-8) + 1.63701979461576e-20) - 3.54476885067473e-6) + 1.1343260322159e-5; }; c06_stage5clip = _<: ba.if(signbit(_), c06_stage5_neg_clip, c06_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); c06_stage5_clip = ffunction(float c06_stage5clip(float), "generated/stage/mesa_dc3_lead/c06_stage5_table.h", ""); c06_stage5_neg_clip = ffunction(float c06_stage5_negclip(float), "generated/stage/mesa_dc3_lead/c06_stage5_neg_table.h", ""); }; process = *(pregain) : *(0.05) : p1 : *(0.13) : p2 : *(0.9) : p3 : *(0.62) : p4 : p5 : *(3.28) : p6 *(4.36) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
084b31bd5a85d0e7ddc63c9271774c0257e673b153ff97259017fe7c7f8dffe0
sadko4u/tamgamp.lv2
mesa_dual_rect_red.dsp
/* * This is simulation of Mesa Dual Rectifier preamplifier (red channel, more gain) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "mesa_dual_rect_red"; declare name "mesa_dual_rect_red"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs - 5.89531552466728e-14) - 2.36970197236252e-11) - 3.0525726492396e-9)); b1 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs + 5.89531552466728e-14) - 2.36970197236252e-11) - 9.1577179477188e-9)); b2 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs - 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs + 1.17906310493346e-13) + 4.73940394472505e-11) - 6.1051452984792e-9)); b3 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs + 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs - 1.17906310493346e-13) + 4.73940394472505e-11) + 6.1051452984792e-9)); b4 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs - 5.89531552466728e-14) - 2.36970197236252e-11) + 9.1577179477188e-9)); b5 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs + 5.89531552466728e-14) - 2.36970197236252e-11) + 3.0525726492396e-9)); a0 = fs*(fs*(fs*(2.77018846582032e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) + 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-36*fs - 6.47844436758614e-19) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-36*fs + 6.20142552100412e-19) + 3.72391306054362e-16) + 3.48645631966802e-14) - 3.34246646073902e-12)) + 1.67123323036951e-9; a1 = fs*(fs*(fs*(-8.31056539746097e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) + 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(9.95059808088511e-36*fs + 1.94353331027584e-18) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-9.95059808088511e-36*fs - 1.86042765630124e-18) - 3.72391306054362e-16) + 3.48645631966802e-14) - 1.00273993822171e-11)) + 8.35616615184755e-9; a2 = fs*(fs*(fs*(5.54037693164065e-20*fs - 1.10816840615726e-15) - 1.00268158126056e-12) + 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-35*fs - 1.29568887351723e-18) + 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-35*fs + 1.24028510420082e-18) - 7.44782612108724e-16) - 6.97291263933603e-14) - 6.68493292147804e-12)) + 1.67123323036951e-8; a3 = fs*(fs*(fs*(5.54037693164065e-20*fs + 1.10816840615726e-15) - 1.00268158126056e-12) - 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-35*fs - 1.29568887351723e-18) - 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-35*fs + 1.24028510420082e-18) + 7.44782612108724e-16) - 6.97291263933603e-14) + 6.68493292147804e-12)) + 1.67123323036951e-8; a4 = fs*(fs*(fs*(-8.31056539746097e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) - 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-9.95059808088511e-36*fs + 1.94353331027584e-18) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(9.95059808088511e-36*fs - 1.86042765630124e-18) + 3.72391306054362e-16) + 3.48645631966802e-14) + 1.00273993822171e-11)) + 8.35616615184755e-9; a5 = fs*(fs*(fs*(2.77018846582032e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) - 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-36*fs - 6.47844436758614e-19) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-36*fs + 6.20142552100412e-19) - 3.72391306054362e-16) + 3.48645631966802e-14) + 3.34246646073902e-12)) + 1.67123323036951e-9; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/mesa_dual_rect_red/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/mesa_dual_rect_red/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { fs = float(ma.SR); b0 = -0.000655304158661071*fs - 0.18202893296141; b1 = -0.364057865922819; b2 = 0.000655304158661071*fs - 0.18202893296141; a0 = fs*(2.03405658623965e-10*fs + 1.09382323078101e-5) + 0.0063182117555006; a1 = -4.0681131724793e-10*pow(fs,2) + 0.0126364235110012; a2 = fs*(2.03405658623965e-10*fs - 1.09382323078101e-5) + 0.0063182117555006; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/mesa_dual_rect_red/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/mesa_dual_rect_red/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.146261721859089; b1 = -0.146261721859089; a0 = 1.88103770813187e-5*fs + 0.0971019000967005; a1 = -1.88103770813187e-5*fs + 0.0971019000967005; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/mesa_dual_rect_red/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/mesa_dual_rect_red/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s04_stage4clip with { fs = float(ma.SR); b0 = -0.00149525527902205*fs - 0.415348688617234; b1 = 0.00149525527902205*fs - 0.415348688617234; a0 = 2.06413022257424e-5*fs + 0.00921749316436716; a1 = -2.06413022257424e-5*fs + 0.00921749316436716; }; s04_stage4clip = _<: ba.if(signbit(_), s04_stage4_neg_clip, s04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage4_clip = ffunction(float s04_stage4clip(float), "generated/stage/mesa_dual_rect_red/s04_stage4_table.h", ""); s04_stage4_neg_clip = ffunction(float s04_stage4_negclip(float), "generated/stage/mesa_dual_rect_red/s04_stage4_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); presence = 0.8; b0 = bass*(pow(fs,2)*master*middle*(fs*(3.30051659809705e-20*fs + 3.34529484863571e-16) + 6.40078398818915e-13) + fs*master*(fs*(3.82282057153329e-17*fs + 3.74097967699649e-13) + 6.40078398818915e-10)) + fs*master*(fs*(9.55705142883322e-19*fs + 9.35244919249122e-15) + 1.60019599704729e-11) + middle*(pow(fs,2)*master*middle*(fs*(-8.25129149524264e-22*fs - 8.36323712158926e-18) - 1.60019599704729e-14) + fs*master*(fs*(fs*(8.25129149524264e-22*fs + 9.05779027775447e-18) + 2.33065297055437e-14) + 1.54757833370144e-11)) + presence*(bass*(pow(fs,3)*master*middle*(3.75058704329211e-20*fs + 9.60117598228372e-17) + pow(fs,2)*master*(4.34411428583328e-17*fs + 9.60117598228372e-14)) + pow(fs,2)*master*(1.08602857145832e-18*fs + 2.40029399557093e-15) + middle*(pow(fs,3)*master*middle*(-9.37646760823027e-22*fs - 2.40029399557093e-18) + pow(fs,2)*master*(fs*(9.37646760823027e-22*fs + 3.18955894575866e-18) + 2.32136750055216e-15)) + treble*(5.93527242541174e-20*bass*pow(fs,4)*master - 1.48381810635294e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(fs*(1.48381810635294e-21*fs + 2.96763621270587e-18) + 7.89264950187733e-16))) + treble*(bass*pow(fs,3)*master*(5.22303973436233e-20*fs + 3.95684828360783e-16) + pow(fs,3)*master*middle*(-1.30575993359058e-21*fs - 9.89212070901957e-18) + fs*master*(fs*(fs*(1.30575993359058e-21*fs + 1.25036405762007e-17) + 2.04787945742043e-14) + 5.26176633458489e-12)); b1 = bass*(pow(fs,3)*master*middle*(-1.32020663923882e-19*fs - 6.69058969727141e-16) + fs*master*(-7.64564114306658e-17*pow(fs,2) + 1.28015679763783e-9)) + fs*master*(-1.91141028576664e-18*pow(fs,2) + 3.20039199409457e-11) + middle*(pow(fs,3)*master*middle*(3.30051659809705e-21*fs + 1.67264742431785e-17) + fs*master*(pow(fs,2)*(-3.30051659809705e-21*fs - 1.81155805555089e-17) + 3.09515666740288e-11)) + presence*(bass*(pow(fs,3)*master*middle*(-1.50023481731684e-19*fs - 1.92023519645674e-16) - 8.68822857166656e-17*pow(fs,3)*master) - 2.17205714291664e-18*pow(fs,3)*master + middle*(pow(fs,3)*master*middle*(3.75058704329211e-21*fs + 4.80058799114186e-18) + pow(fs,3)*master*(-3.75058704329211e-21*fs - 6.37911789151733e-18)) + treble*(-2.3741089701647e-19*bass*pow(fs,4)*master + 5.93527242541174e-21*pow(fs,4)*master*middle + pow(fs,3)*master*(-5.93527242541174e-21*fs - 5.93527242541174e-18))) + treble*(bass*pow(fs,3)*master*(-2.08921589374493e-19*fs - 7.91369656721565e-16) + pow(fs,3)*master*middle*(5.22303973436233e-21*fs + 1.97842414180391e-17) + fs*master*(pow(fs,2)*(-5.22303973436233e-21*fs - 2.50072811524015e-17) + 1.05235326691698e-11)); b2 = bass*(pow(fs,2)*master*middle*(1.98030995885823e-19*pow(fs,2) - 1.28015679763783e-12) - 7.48195935399298e-13*pow(fs,2)*master) - 1.87048983849824e-14*pow(fs,2)*master + middle*(pow(fs,2)*master*middle*(-4.95077489714558e-21*pow(fs,2) + 3.20039199409457e-14) + pow(fs,2)*master*(4.95077489714558e-21*pow(fs,2) - 4.66130594110873e-14)) + presence*(bass*(2.25035222597526e-19*pow(fs,4)*master*middle - 1.92023519645674e-13*pow(fs,2)*master) - 4.80058799114186e-15*pow(fs,2)*master + middle*(-5.62588056493816e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(5.62588056493816e-21*pow(fs,2) - 4.64273500110431e-15)) + treble*(3.56116345524704e-19*bass*pow(fs,4)*master - 8.90290863811761e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(8.90290863811761e-21*pow(fs,2) - 1.57852990037547e-15))) + treble*(3.1338238406174e-19*bass*pow(fs,4)*master - 7.8345596015435e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(7.8345596015435e-21*pow(fs,2) - 4.09575891484087e-14)); b3 = bass*(pow(fs,3)*master*middle*(-1.32020663923882e-19*fs + 6.69058969727141e-16) + fs*master*(7.64564114306658e-17*pow(fs,2) - 1.28015679763783e-9)) + fs*master*(1.91141028576664e-18*pow(fs,2) - 3.20039199409457e-11) + middle*(pow(fs,3)*master*middle*(3.30051659809705e-21*fs - 1.67264742431785e-17) + fs*master*(pow(fs,2)*(-3.30051659809705e-21*fs + 1.81155805555089e-17) - 3.09515666740288e-11)) + presence*(bass*(pow(fs,3)*master*middle*(-1.50023481731684e-19*fs + 1.92023519645674e-16) + 8.68822857166656e-17*pow(fs,3)*master) + 2.17205714291664e-18*pow(fs,3)*master + middle*(pow(fs,3)*master*middle*(3.75058704329211e-21*fs - 4.80058799114186e-18) + pow(fs,3)*master*(-3.75058704329211e-21*fs + 6.37911789151733e-18)) + treble*(-2.3741089701647e-19*bass*pow(fs,4)*master + 5.93527242541174e-21*pow(fs,4)*master*middle + pow(fs,3)*master*(-5.93527242541174e-21*fs + 5.93527242541174e-18))) + treble*(bass*pow(fs,3)*master*(-2.08921589374493e-19*fs + 7.91369656721565e-16) + pow(fs,3)*master*middle*(5.22303973436233e-21*fs - 1.97842414180391e-17) + fs*master*(pow(fs,2)*(-5.22303973436233e-21*fs + 2.50072811524015e-17) - 1.05235326691698e-11)); b4 = bass*(pow(fs,2)*master*middle*(fs*(3.30051659809705e-20*fs - 3.34529484863571e-16) + 6.40078398818915e-13) + fs*master*(fs*(-3.82282057153329e-17*fs + 3.74097967699649e-13) - 6.40078398818915e-10)) + fs*master*(fs*(-9.55705142883322e-19*fs + 9.35244919249122e-15) - 1.60019599704729e-11) + middle*(pow(fs,2)*master*middle*(fs*(-8.25129149524264e-22*fs + 8.36323712158926e-18) - 1.60019599704729e-14) + fs*master*(fs*(fs*(8.25129149524264e-22*fs - 9.05779027775447e-18) + 2.33065297055437e-14) - 1.54757833370144e-11)) + presence*(bass*(pow(fs,3)*master*middle*(3.75058704329211e-20*fs - 9.60117598228372e-17) + pow(fs,2)*master*(-4.34411428583328e-17*fs + 9.60117598228372e-14)) + pow(fs,2)*master*(-1.08602857145832e-18*fs + 2.40029399557093e-15) + middle*(pow(fs,3)*master*middle*(-9.37646760823027e-22*fs + 2.40029399557093e-18) + pow(fs,2)*master*(fs*(9.37646760823027e-22*fs - 3.18955894575866e-18) + 2.32136750055216e-15)) + treble*(5.93527242541174e-20*bass*pow(fs,4)*master - 1.48381810635294e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(fs*(1.48381810635294e-21*fs - 2.96763621270587e-18) + 7.89264950187733e-16))) + treble*(bass*pow(fs,3)*master*(5.22303973436233e-20*fs - 3.95684828360783e-16) + pow(fs,3)*master*middle*(-1.30575993359058e-21*fs + 9.89212070901957e-18) + fs*master*(fs*(fs*(1.30575993359058e-21*fs - 1.25036405762007e-17) + 2.04787945742043e-14) - 5.26176633458489e-12)); a0 = bass*(fs*middle*(fs*(fs*(9.36636501686785e-20*fs + 5.550940631707e-16) + 7.69332141249659e-13) + 1.54757833370144e-11) + fs*(fs*(fs*(5.22303973436233e-20*fs + 7.08848818168071e-16) + 1.94674088009371e-12) + 7.98426613923246e-10) + 1.54757833370144e-8) + fs*(fs*(fs*(1.30575993359058e-21*fs + 2.03327403213829e-17) + 7.68282573623741e-14) + 8.54541804303259e-11) + middle*(fs*middle*(fs*(fs*(-2.34159125421696e-21*fs - 1.38773515792675e-17) - 1.92333035312415e-14) - 3.86894583425359e-13) + fs*(fs*(fs*(1.03583132062638e-21*fs + 8.39313633499656e-19) - 2.55659940727471e-15) + 1.58626779204397e-11)) + presence*(bass*(pow(fs,2)*middle*(fs*(3.8989688539274e-20*fs + 1.01165195674063e-16) + 2.32136750055216e-15) + fs*(fs*(fs*(5.93527242541174e-20*fs + 2.2097561511256e-16) + 1.05529366575101e-13) + 2.32136750055216e-12)) + fs*(fs*(fs*(1.48381810635294e-21*fs + 8.49202659051988e-18) + 1.21558409166413e-14) + 2.37940168806596e-12) + middle*(pow(fs,2)*middle*(fs*(-9.7474221348185e-22*fs - 2.52912989185157e-18) - 5.80341875138039e-17) + pow(fs,2)*(fs*(-5.09075892871085e-22*fs - 1.04577605899874e-18) + 2.37940168806596e-15)) + treble*(bass*(pow(fs,3)*middle*(6.4088313955244e-21*fs + 2.24244100553338e-17) + pow(fs,2)*(fs*(1.48381810635294e-20*fs + 4.85667222995519e-17) + 2.24244100553338e-14)) + fs*(fs*(fs*(3.70954526588234e-22*fs + 1.95607711066527e-18) + 2.9400119394493e-15) + 5.80341875138039e-13) + middle*(pow(fs,3)*middle*(-1.6022078488811e-22*fs - 5.60610251383346e-19) + pow(fs,2)*(fs*(-2.10733741700124e-22*fs - 3.33116236329232e-19) + 5.80341875138039e-16)) + treble*(bass*(-7.89264950187733e-21*pow(fs,4)*middle + pow(fs,3)*(-1.48381810635294e-20*fs - 7.89264950187733e-18)) + pow(fs,2)*(fs*(-3.70954526588234e-22*fs - 9.39225290723401e-19) - 1.97316237546933e-16) + middle*(1.97316237546933e-22*pow(fs,4)*middle + pow(fs,3)*(1.736382890413e-22*fs - 1.97316237546933e-19))))) + treble*(bass*(pow(fs,2)*middle*(fs*(2.61993027449037e-19*fs + 9.59435425698876e-16) + 1.49496067035559e-13) + fs*(fs*(fs*(6.0658484187708e-19*fs + 2.08432881469588e-15) + 1.24048803172573e-12) + 1.49496067035559e-10)) + fs*(fs*(fs*(1.5164621046927e-20*fs + 8.24374624612509e-17) + 1.33228202155789e-13) + 4.33244554519717e-11) + middle*(pow(fs,2)*middle*(fs*(-6.54982568622593e-21*fs - 2.39858856424719e-17) - 3.73740167588897e-15) + fs*(fs*(fs*(-8.61479536070106e-21*fs - 1.50226833524732e-17) + 2.15036009467815e-14) + 3.86894583425359e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.22651511636745e-19*fs - 5.26176633458489e-17) + pow(fs,2)*(fs*(-6.0658484187708e-19*fs - 4.21572718726941e-16) - 5.26176633458489e-14)) + fs*(fs*(fs*(-1.5164621046927e-20*fs - 4.08685600620275e-17) - 1.43277897290746e-14) - 1.31544158364622e-12) + middle*(pow(fs,3)*middle*(8.06628779091864e-21*fs + 1.31544158364622e-18) + pow(fs,2)*(fs*(7.09833325600836e-21*fs - 6.90869919730996e-18) - 1.31544158364622e-15))) + 3.86894583425359e-9) + 1.58626779204397e-8; a1 = bass*(fs*middle*(pow(fs,2)*(-3.74654600674714e-19*fs - 1.1101881263414e-15) + 3.09515666740288e-11) + fs*(pow(fs,2)*(-2.08921589374493e-19*fs - 1.41769763633614e-15) + 1.59685322784649e-9) + 6.19031333480575e-8) + fs*(pow(fs,2)*(-5.22303973436233e-21*fs - 4.06654806427659e-17) + 1.70908360860652e-10) + middle*(fs*middle*(pow(fs,2)*(9.36636501686785e-21*fs + 2.7754703158535e-17) - 7.73789166850719e-13) + fs*(pow(fs,2)*(-4.14332528250552e-21*fs - 1.67862726699931e-18) + 3.17253558408795e-11)) + presence*(bass*(pow(fs,3)*middle*(-1.55958754157096e-19*fs - 2.02330391348126e-16) + fs*(pow(fs,2)*(-2.3741089701647e-19*fs - 4.41951230225121e-16) + 4.64273500110431e-12)) + fs*(pow(fs,2)*(-5.93527242541174e-21*fs - 1.69840531810398e-17) + 4.75880337613192e-12) + middle*(pow(fs,3)*middle*(3.8989688539274e-21*fs + 5.05825978370315e-18) + pow(fs,3)*(2.03630357148434e-21*fs + 2.09155211799747e-18)) + treble*(bass*(pow(fs,3)*middle*(-2.56353255820976e-20*fs - 4.48488201106677e-17) + pow(fs,3)*(-5.93527242541174e-20*fs - 9.71334445991038e-17)) + fs*(pow(fs,2)*(-1.48381810635294e-21*fs - 3.91215422133053e-18) + 1.16068375027608e-12) + middle*(pow(fs,3)*middle*(6.4088313955244e-22*fs + 1.12122050276669e-18) + pow(fs,3)*(8.42934966800495e-22*fs + 6.66232472658464e-19)) + treble*(bass*(3.15705980075093e-20*pow(fs,4)*middle + pow(fs,3)*(5.93527242541174e-20*fs + 1.57852990037547e-17)) + pow(fs,3)*(1.48381810635294e-21*fs + 1.8784505814468e-18) + middle*(-7.89264950187733e-22*pow(fs,4)*middle + pow(fs,3)*(-6.94553156165202e-22*fs + 3.94632475093867e-19))))) + treble*(bass*(pow(fs,3)*middle*(-1.04797210979615e-18*fs - 1.91887085139775e-15) + fs*(pow(fs,2)*(-2.42633936750832e-18*fs - 4.16865762939176e-15) + 2.98992134071118e-10)) + fs*(pow(fs,2)*(-6.0658484187708e-20*fs - 1.64874924922502e-16) + 8.66489109039434e-11) + middle*(pow(fs,3)*middle*(2.61993027449037e-20*fs + 4.79717712849438e-17) + fs*(pow(fs,2)*(3.44591814428042e-20*fs + 3.00453667049463e-17) + 7.73789166850719e-12)) + treble*(bass*(pow(fs,3)*middle*(1.29060604654698e-18*fs + 1.05235326691698e-16) + pow(fs,3)*(2.42633936750832e-18*fs + 8.43145437453882e-16)) + fs*(pow(fs,2)*(6.0658484187708e-20*fs + 8.1737120124055e-17) - 2.63088316729244e-12) + middle*(pow(fs,3)*middle*(-3.22651511636745e-20*fs - 2.63088316729244e-18) + pow(fs,3)*(-2.83933330240335e-20*fs + 1.38173983946199e-17))) + 1.54757833370144e-8) + 6.3450711681759e-8; a2 = bass*(pow(fs,2)*middle*(5.61981901012071e-19*pow(fs,2) - 1.53866428249932e-12) + pow(fs,2)*(3.1338238406174e-19*pow(fs,2) - 3.89348176018742e-12) + 9.28547000220863e-8) + pow(fs,2)*(7.8345596015435e-21*pow(fs,2) - 1.53656514724748e-13) + middle*(pow(fs,2)*middle*(-1.40495475253018e-20*pow(fs,2) + 3.84666070624829e-14) + pow(fs,2)*(6.21498792375828e-21*pow(fs,2) + 5.11319881454942e-15)) + presence*(bass*(pow(fs,2)*middle*(2.33938131235644e-19*pow(fs,2) - 4.64273500110431e-15) + pow(fs,2)*(3.56116345524704e-19*pow(fs,2) - 2.11058733150202e-13)) + pow(fs,2)*(8.90290863811761e-21*pow(fs,2) - 2.43116818332827e-14) + middle*(pow(fs,2)*middle*(-5.8484532808911e-21*pow(fs,2) + 1.16068375027608e-16) + pow(fs,2)*(-3.05445535722651e-21*pow(fs,2) - 4.75880337613192e-15)) + treble*(bass*(3.84529883731464e-20*pow(fs,4)*middle + pow(fs,2)*(8.90290863811761e-20*pow(fs,2) - 4.48488201106677e-14)) + pow(fs,2)*(2.2257271595294e-21*pow(fs,2) - 5.8800238788986e-15) + middle*(-9.6132470932866e-22*pow(fs,4)*middle + pow(fs,2)*(-1.26440245020074e-21*pow(fs,2) - 1.16068375027608e-15)) + treble*(bass*(-4.7355897011264e-20*pow(fs,4)*middle - 8.90290863811761e-20*pow(fs,4)) + pow(fs,2)*(-2.2257271595294e-21*pow(fs,2) + 3.94632475093867e-16) + middle*(1.1838974252816e-21*pow(fs,4)*middle + 1.0418297342478e-21*pow(fs,4))))) + treble*(bass*(pow(fs,2)*middle*(1.57195816469422e-18*pow(fs,2) - 2.98992134071118e-13) + pow(fs,2)*(3.63950905126248e-18*pow(fs,2) - 2.48097606345145e-12)) + pow(fs,2)*(9.0987726281562e-20*pow(fs,2) - 2.66456404311578e-13) + middle*(pow(fs,2)*middle*(-3.92989541173556e-20*pow(fs,2) + 7.47480335177794e-15) + pow(fs,2)*(-5.16887721642064e-20*pow(fs,2) - 4.3007201893563e-14)) + treble*(bass*(-1.93590906982047e-18*pow(fs,4)*middle + pow(fs,2)*(-3.63950905126248e-18*pow(fs,2) + 1.05235326691698e-13)) + pow(fs,2)*(-9.0987726281562e-20*pow(fs,2) + 2.86555794581493e-14) + middle*(4.83977267455118e-20*pow(fs,4)*middle + pow(fs,2)*(4.25899995360502e-20*pow(fs,2) + 2.63088316729244e-15))) + 2.32136750055216e-8) + 9.51760675226384e-8; a3 = bass*(fs*middle*(pow(fs,2)*(-3.74654600674714e-19*fs + 1.1101881263414e-15) - 3.09515666740288e-11) + fs*(pow(fs,2)*(-2.08921589374493e-19*fs + 1.41769763633614e-15) - 1.59685322784649e-9) + 6.19031333480575e-8) + fs*(pow(fs,2)*(-5.22303973436233e-21*fs + 4.06654806427659e-17) - 1.70908360860652e-10) + middle*(fs*middle*(pow(fs,2)*(9.36636501686785e-21*fs - 2.7754703158535e-17) + 7.73789166850719e-13) + fs*(pow(fs,2)*(-4.14332528250552e-21*fs + 1.67862726699931e-18) - 3.17253558408795e-11)) + presence*(bass*(pow(fs,3)*middle*(-1.55958754157096e-19*fs + 2.02330391348126e-16) + fs*(pow(fs,2)*(-2.3741089701647e-19*fs + 4.41951230225121e-16) - 4.64273500110431e-12)) + fs*(pow(fs,2)*(-5.93527242541174e-21*fs + 1.69840531810398e-17) - 4.75880337613192e-12) + middle*(pow(fs,3)*middle*(3.8989688539274e-21*fs - 5.05825978370315e-18) + pow(fs,3)*(2.03630357148434e-21*fs - 2.09155211799747e-18)) + treble*(bass*(pow(fs,3)*middle*(-2.56353255820976e-20*fs + 4.48488201106677e-17) + pow(fs,3)*(-5.93527242541174e-20*fs + 9.71334445991038e-17)) + fs*(pow(fs,2)*(-1.48381810635294e-21*fs + 3.91215422133053e-18) - 1.16068375027608e-12) + middle*(pow(fs,3)*middle*(6.4088313955244e-22*fs - 1.12122050276669e-18) + pow(fs,3)*(8.42934966800495e-22*fs - 6.66232472658464e-19)) + treble*(bass*(3.15705980075093e-20*pow(fs,4)*middle + pow(fs,3)*(5.93527242541174e-20*fs - 1.57852990037547e-17)) + pow(fs,3)*(1.48381810635294e-21*fs - 1.8784505814468e-18) + middle*(-7.89264950187733e-22*pow(fs,4)*middle + pow(fs,3)*(-6.94553156165202e-22*fs - 3.94632475093867e-19))))) + treble*(bass*(pow(fs,3)*middle*(-1.04797210979615e-18*fs + 1.91887085139775e-15) + fs*(pow(fs,2)*(-2.42633936750832e-18*fs + 4.16865762939176e-15) - 2.98992134071118e-10)) + fs*(pow(fs,2)*(-6.0658484187708e-20*fs + 1.64874924922502e-16) - 8.66489109039434e-11) + middle*(pow(fs,3)*middle*(2.61993027449037e-20*fs - 4.79717712849438e-17) + fs*(pow(fs,2)*(3.44591814428042e-20*fs - 3.00453667049463e-17) - 7.73789166850719e-12)) + treble*(bass*(pow(fs,3)*middle*(1.29060604654698e-18*fs - 1.05235326691698e-16) + pow(fs,3)*(2.42633936750832e-18*fs - 8.43145437453882e-16)) + fs*(pow(fs,2)*(6.0658484187708e-20*fs - 8.1737120124055e-17) + 2.63088316729244e-12) + middle*(pow(fs,3)*middle*(-3.22651511636745e-20*fs + 2.63088316729244e-18) + pow(fs,3)*(-2.83933330240335e-20*fs - 1.38173983946199e-17))) + 1.54757833370144e-8) + 6.3450711681759e-8; a4 = bass*(fs*middle*(fs*(fs*(9.36636501686785e-20*fs - 5.550940631707e-16) + 7.69332141249659e-13) - 1.54757833370144e-11) + fs*(fs*(fs*(5.22303973436233e-20*fs - 7.08848818168071e-16) + 1.94674088009371e-12) - 7.98426613923246e-10) + 1.54757833370144e-8) + fs*(fs*(fs*(1.30575993359058e-21*fs - 2.03327403213829e-17) + 7.68282573623741e-14) - 8.54541804303259e-11) + middle*(fs*middle*(fs*(fs*(-2.34159125421696e-21*fs + 1.38773515792675e-17) - 1.92333035312415e-14) + 3.86894583425359e-13) + fs*(fs*(fs*(1.03583132062638e-21*fs - 8.39313633499656e-19) - 2.55659940727471e-15) - 1.58626779204397e-11)) + presence*(bass*(pow(fs,2)*middle*(fs*(3.8989688539274e-20*fs - 1.01165195674063e-16) + 2.32136750055216e-15) + fs*(fs*(fs*(5.93527242541174e-20*fs - 2.2097561511256e-16) + 1.05529366575101e-13) - 2.32136750055216e-12)) + fs*(fs*(fs*(1.48381810635294e-21*fs - 8.49202659051988e-18) + 1.21558409166413e-14) - 2.37940168806596e-12) + middle*(pow(fs,2)*middle*(fs*(-9.7474221348185e-22*fs + 2.52912989185157e-18) - 5.80341875138039e-17) + pow(fs,2)*(fs*(-5.09075892871085e-22*fs + 1.04577605899874e-18) + 2.37940168806596e-15)) + treble*(bass*(pow(fs,3)*middle*(6.4088313955244e-21*fs - 2.24244100553338e-17) + pow(fs,2)*(fs*(1.48381810635294e-20*fs - 4.85667222995519e-17) + 2.24244100553338e-14)) + fs*(fs*(fs*(3.70954526588234e-22*fs - 1.95607711066527e-18) + 2.9400119394493e-15) - 5.80341875138039e-13) + middle*(pow(fs,3)*middle*(-1.6022078488811e-22*fs + 5.60610251383346e-19) + pow(fs,2)*(fs*(-2.10733741700124e-22*fs + 3.33116236329232e-19) + 5.80341875138039e-16)) + treble*(bass*(-7.89264950187733e-21*pow(fs,4)*middle + pow(fs,3)*(-1.48381810635294e-20*fs + 7.89264950187733e-18)) + pow(fs,2)*(fs*(-3.70954526588234e-22*fs + 9.39225290723401e-19) - 1.97316237546933e-16) + middle*(1.97316237546933e-22*pow(fs,4)*middle + pow(fs,3)*(1.736382890413e-22*fs + 1.97316237546933e-19))))) + treble*(bass*(pow(fs,2)*middle*(fs*(2.61993027449037e-19*fs - 9.59435425698876e-16) + 1.49496067035559e-13) + fs*(fs*(fs*(6.0658484187708e-19*fs - 2.08432881469588e-15) + 1.24048803172573e-12) - 1.49496067035559e-10)) + fs*(fs*(fs*(1.5164621046927e-20*fs - 8.24374624612509e-17) + 1.33228202155789e-13) - 4.33244554519717e-11) + middle*(pow(fs,2)*middle*(fs*(-6.54982568622593e-21*fs + 2.39858856424719e-17) - 3.73740167588897e-15) + fs*(fs*(fs*(-8.61479536070106e-21*fs + 1.50226833524732e-17) + 2.15036009467815e-14) - 3.86894583425359e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.22651511636745e-19*fs + 5.26176633458489e-17) + pow(fs,2)*(fs*(-6.0658484187708e-19*fs + 4.21572718726941e-16) - 5.26176633458489e-14)) + fs*(fs*(fs*(-1.5164621046927e-20*fs + 4.08685600620275e-17) - 1.43277897290746e-14) + 1.31544158364622e-12) + middle*(pow(fs,3)*middle*(8.06628779091864e-21*fs - 1.31544158364622e-18) + pow(fs,2)*(fs*(7.09833325600836e-21*fs + 6.90869919730996e-18) - 1.31544158364622e-15))) + 3.86894583425359e-9) + 1.58626779204397e-8; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s06_stage5clip with { fs = float(ma.SR); b0 = 2.82461475968336e-10*pow(fs,2); b1 = -5.64922951936672e-10*pow(fs,2); b2 = 2.82461475968336e-10*pow(fs,2); a0 = fs*(4.33570405894608e-10*fs + 2.19519582346283e-8) + 9.08235621017275e-8; a1 = -8.67140811789215e-10*pow(fs,2) + 1.81647124203455e-7; a2 = fs*(4.33570405894608e-10*fs - 2.19519582346283e-8) + 9.08235621017275e-8; }; s06_stage5clip = _<: ba.if(signbit(_), s06_stage5_neg_clip, s06_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage5_clip = ffunction(float s06_stage5clip(float), "generated/stage/mesa_dual_rect_red/s06_stage5_table.h", ""); s06_stage5_neg_clip = ffunction(float s06_stage5_negclip(float), "generated/stage/mesa_dual_rect_red/s06_stage5_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s07_stage6clip with { fs = float(ma.SR); b0 = -0.00119749787393626*fs - 0.123708458051269; b1 = 0.00119749787393626*fs - 0.123708458051269; a0 = 2.07375662139675e-5*fs + 0.00459682172955979; a1 = -2.07375662139675e-5*fs + 0.00459682172955979; }; s07_stage6clip = _<: ba.if(signbit(_), s07_stage6_neg_clip, s07_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s07_stage6_clip = ffunction(float s07_stage6clip(float), "generated/stage/mesa_dual_rect_red/s07_stage6_table.h", ""); s07_stage6_neg_clip = ffunction(float s07_stage6_negclip(float), "generated/stage/mesa_dual_rect_red/s07_stage6_neg_table.h", ""); }; process = *(pregain) : *(0.02) : p1 : *(0.7) : p2 : *(1.05) : p3 : *(3.2) : p4 : p5 : *(20.0) : p6 : *(8.0) : p7 : *(0.02) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/ampsim/mesa_dual_rect_red.dsp
faust
* This is simulation of Mesa Dual Rectifier preamplifier (red channel, more gain) * * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
declare id "mesa_dual_rect_red"; declare name "mesa_dual_rect_red"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); p1 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0,b5/a0),(a1/a0,a2/a0,a3/a0,a4/a0,a5/a0)) : s01_stage1clip with { LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); fs = float(ma.SR); gain = ampctrl.gain : LogPot(3.0) : si.smooth(0.999); b0 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs - 5.89531552466728e-14) - 2.36970197236252e-11) - 3.0525726492396e-9)); b1 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs + 5.89531552466728e-14) - 2.36970197236252e-11) - 9.1577179477188e-9)); b2 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs - 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs + 1.17906310493346e-13) + 4.73940394472505e-11) - 6.1051452984792e-9)); b3 = gain*(pow(fs,2)*gain*(fs*(9.50776255855229e-17*fs + 7.03674977005842e-14) - 1.22102905969584e-11) + fs*(fs*(fs*(-9.50776255855229e-17*fs - 1.17906310493346e-13) + 4.73940394472505e-11) + 6.1051452984792e-9)); b4 = gain*(pow(fs,2)*gain*(fs*(-1.42616438378284e-16*fs + 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(1.42616438378284e-16*fs - 5.89531552466728e-14) - 2.36970197236252e-11) + 9.1577179477188e-9)); b5 = gain*(pow(fs,2)*gain*(fs*(4.75388127927614e-17*fs - 3.51837488502921e-14) + 6.1051452984792e-12) + fs*(fs*(fs*(-4.75388127927614e-17*fs + 5.89531552466728e-14) - 2.36970197236252e-11) + 3.0525726492396e-9)); a0 = fs*(fs*(fs*(2.77018846582032e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) + 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-36*fs - 6.47844436758614e-19) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-36*fs + 6.20142552100412e-19) + 3.72391306054362e-16) + 3.48645631966802e-14) - 3.34246646073902e-12)) + 1.67123323036951e-9; a1 = fs*(fs*(fs*(-8.31056539746097e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) + 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(9.95059808088511e-36*fs + 1.94353331027584e-18) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-9.95059808088511e-36*fs - 1.86042765630124e-18) - 3.72391306054362e-16) + 3.48645631966802e-14) - 1.00273993822171e-11)) + 8.35616615184755e-9; a2 = fs*(fs*(fs*(5.54037693164065e-20*fs - 1.10816840615726e-15) - 1.00268158126056e-12) + 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-1.99011961617702e-35*fs - 1.29568887351723e-18) + 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(1.99011961617702e-35*fs + 1.24028510420082e-18) - 7.44782612108724e-16) - 6.97291263933603e-14) - 6.68493292147804e-12)) + 1.67123323036951e-8; a3 = fs*(fs*(fs*(5.54037693164065e-20*fs + 1.10816840615726e-15) - 1.00268158126056e-12) - 2.3921768658392e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-35*fs - 1.29568887351723e-18) - 1.17740469684916e-15) + 2.67397316859122e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-35*fs + 1.24028510420082e-18) + 7.44782612108724e-16) - 6.97291263933603e-14) + 6.68493292147804e-12)) + 1.67123323036951e-8; a4 = fs*(fs*(fs*(-8.31056539746097e-20*fs + 5.54084203078628e-16) + 5.01340790630281e-13) - 3.5882652987588e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(-9.95059808088511e-36*fs + 1.94353331027584e-18) - 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(9.95059808088511e-36*fs - 1.86042765630124e-18) + 3.72391306054362e-16) + 3.48645631966802e-14) + 1.00273993822171e-11)) + 8.35616615184755e-9; a5 = fs*(fs*(fs*(2.77018846582032e-20*fs - 5.54084203078628e-16) + 5.01340790630281e-13) - 1.1960884329196e-10) + gain*(pow(fs,2)*gain*(fs*(fs*(1.99011961617702e-36*fs - 6.47844436758614e-19) + 5.88702348424581e-16) - 1.33698658429561e-13) + fs*(fs*(fs*(fs*(-1.99011961617702e-36*fs + 6.20142552100412e-19) - 3.72391306054362e-16) + 3.48645631966802e-14) + 3.34246646073902e-12)) + 1.67123323036951e-9; }; s01_stage1clip = _<: ba.if(signbit(_), s01_stage1_neg_clip, s01_stage1_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s01_stage1_clip = ffunction(float s01_stage1clip(float), "generated/stage/mesa_dual_rect_red/s01_stage1_table.h", ""); s01_stage1_neg_clip = ffunction(float s01_stage1_negclip(float), "generated/stage/mesa_dual_rect_red/s01_stage1_neg_table.h", ""); }; p2 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s02_stage2clip with { fs = float(ma.SR); b0 = -0.000655304158661071*fs - 0.18202893296141; b1 = -0.364057865922819; b2 = 0.000655304158661071*fs - 0.18202893296141; a0 = fs*(2.03405658623965e-10*fs + 1.09382323078101e-5) + 0.0063182117555006; a1 = -4.0681131724793e-10*pow(fs,2) + 0.0126364235110012; a2 = fs*(2.03405658623965e-10*fs - 1.09382323078101e-5) + 0.0063182117555006; }; s02_stage2clip = _<: ba.if(signbit(_), s02_stage2_neg_clip, s02_stage2_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s02_stage2_clip = ffunction(float s02_stage2clip(float), "generated/stage/mesa_dual_rect_red/s02_stage2_table.h", ""); s02_stage2_neg_clip = ffunction(float s02_stage2_negclip(float), "generated/stage/mesa_dual_rect_red/s02_stage2_neg_table.h", ""); }; p3 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s03_stage3clip with { fs = float(ma.SR); b0 = -0.146261721859089; b1 = -0.146261721859089; a0 = 1.88103770813187e-5*fs + 0.0971019000967005; a1 = -1.88103770813187e-5*fs + 0.0971019000967005; }; s03_stage3clip = _<: ba.if(signbit(_), s03_stage3_neg_clip, s03_stage3_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s03_stage3_clip = ffunction(float s03_stage3clip(float), "generated/stage/mesa_dual_rect_red/s03_stage3_table.h", ""); s03_stage3_neg_clip = ffunction(float s03_stage3_negclip(float), "generated/stage/mesa_dual_rect_red/s03_stage3_neg_table.h", ""); }; p4 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s04_stage4clip with { fs = float(ma.SR); b0 = -0.00149525527902205*fs - 0.415348688617234; b1 = 0.00149525527902205*fs - 0.415348688617234; a0 = 2.06413022257424e-5*fs + 0.00921749316436716; a1 = -2.06413022257424e-5*fs + 0.00921749316436716; }; s04_stage4clip = _<: ba.if(signbit(_), s04_stage4_neg_clip, s04_stage4_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s04_stage4_clip = ffunction(float s04_stage4clip(float), "generated/stage/mesa_dual_rect_red/s04_stage4_table.h", ""); s04_stage4_neg_clip = ffunction(float s04_stage4_negclip(float), "generated/stage/mesa_dual_rect_red/s04_stage4_neg_table.h", ""); }; p5 = fi.iir((b0/a0,b1/a0,b2/a0,b3/a0,b4/a0),(a1/a0,a2/a0,a3/a0,a4/a0)) with { fs = float(ma.SR); bass = ampctrl.bass : si.smooth(0.999); middle = ampctrl.middle : si.smooth(0.999); treble = ampctrl.treble : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); presence = 0.8; b0 = bass*(pow(fs,2)*master*middle*(fs*(3.30051659809705e-20*fs + 3.34529484863571e-16) + 6.40078398818915e-13) + fs*master*(fs*(3.82282057153329e-17*fs + 3.74097967699649e-13) + 6.40078398818915e-10)) + fs*master*(fs*(9.55705142883322e-19*fs + 9.35244919249122e-15) + 1.60019599704729e-11) + middle*(pow(fs,2)*master*middle*(fs*(-8.25129149524264e-22*fs - 8.36323712158926e-18) - 1.60019599704729e-14) + fs*master*(fs*(fs*(8.25129149524264e-22*fs + 9.05779027775447e-18) + 2.33065297055437e-14) + 1.54757833370144e-11)) + presence*(bass*(pow(fs,3)*master*middle*(3.75058704329211e-20*fs + 9.60117598228372e-17) + pow(fs,2)*master*(4.34411428583328e-17*fs + 9.60117598228372e-14)) + pow(fs,2)*master*(1.08602857145832e-18*fs + 2.40029399557093e-15) + middle*(pow(fs,3)*master*middle*(-9.37646760823027e-22*fs - 2.40029399557093e-18) + pow(fs,2)*master*(fs*(9.37646760823027e-22*fs + 3.18955894575866e-18) + 2.32136750055216e-15)) + treble*(5.93527242541174e-20*bass*pow(fs,4)*master - 1.48381810635294e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(fs*(1.48381810635294e-21*fs + 2.96763621270587e-18) + 7.89264950187733e-16))) + treble*(bass*pow(fs,3)*master*(5.22303973436233e-20*fs + 3.95684828360783e-16) + pow(fs,3)*master*middle*(-1.30575993359058e-21*fs - 9.89212070901957e-18) + fs*master*(fs*(fs*(1.30575993359058e-21*fs + 1.25036405762007e-17) + 2.04787945742043e-14) + 5.26176633458489e-12)); b1 = bass*(pow(fs,3)*master*middle*(-1.32020663923882e-19*fs - 6.69058969727141e-16) + fs*master*(-7.64564114306658e-17*pow(fs,2) + 1.28015679763783e-9)) + fs*master*(-1.91141028576664e-18*pow(fs,2) + 3.20039199409457e-11) + middle*(pow(fs,3)*master*middle*(3.30051659809705e-21*fs + 1.67264742431785e-17) + fs*master*(pow(fs,2)*(-3.30051659809705e-21*fs - 1.81155805555089e-17) + 3.09515666740288e-11)) + presence*(bass*(pow(fs,3)*master*middle*(-1.50023481731684e-19*fs - 1.92023519645674e-16) - 8.68822857166656e-17*pow(fs,3)*master) - 2.17205714291664e-18*pow(fs,3)*master + middle*(pow(fs,3)*master*middle*(3.75058704329211e-21*fs + 4.80058799114186e-18) + pow(fs,3)*master*(-3.75058704329211e-21*fs - 6.37911789151733e-18)) + treble*(-2.3741089701647e-19*bass*pow(fs,4)*master + 5.93527242541174e-21*pow(fs,4)*master*middle + pow(fs,3)*master*(-5.93527242541174e-21*fs - 5.93527242541174e-18))) + treble*(bass*pow(fs,3)*master*(-2.08921589374493e-19*fs - 7.91369656721565e-16) + pow(fs,3)*master*middle*(5.22303973436233e-21*fs + 1.97842414180391e-17) + fs*master*(pow(fs,2)*(-5.22303973436233e-21*fs - 2.50072811524015e-17) + 1.05235326691698e-11)); b2 = bass*(pow(fs,2)*master*middle*(1.98030995885823e-19*pow(fs,2) - 1.28015679763783e-12) - 7.48195935399298e-13*pow(fs,2)*master) - 1.87048983849824e-14*pow(fs,2)*master + middle*(pow(fs,2)*master*middle*(-4.95077489714558e-21*pow(fs,2) + 3.20039199409457e-14) + pow(fs,2)*master*(4.95077489714558e-21*pow(fs,2) - 4.66130594110873e-14)) + presence*(bass*(2.25035222597526e-19*pow(fs,4)*master*middle - 1.92023519645674e-13*pow(fs,2)*master) - 4.80058799114186e-15*pow(fs,2)*master + middle*(-5.62588056493816e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(5.62588056493816e-21*pow(fs,2) - 4.64273500110431e-15)) + treble*(3.56116345524704e-19*bass*pow(fs,4)*master - 8.90290863811761e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(8.90290863811761e-21*pow(fs,2) - 1.57852990037547e-15))) + treble*(3.1338238406174e-19*bass*pow(fs,4)*master - 7.8345596015435e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(7.8345596015435e-21*pow(fs,2) - 4.09575891484087e-14)); b3 = bass*(pow(fs,3)*master*middle*(-1.32020663923882e-19*fs + 6.69058969727141e-16) + fs*master*(7.64564114306658e-17*pow(fs,2) - 1.28015679763783e-9)) + fs*master*(1.91141028576664e-18*pow(fs,2) - 3.20039199409457e-11) + middle*(pow(fs,3)*master*middle*(3.30051659809705e-21*fs - 1.67264742431785e-17) + fs*master*(pow(fs,2)*(-3.30051659809705e-21*fs + 1.81155805555089e-17) - 3.09515666740288e-11)) + presence*(bass*(pow(fs,3)*master*middle*(-1.50023481731684e-19*fs + 1.92023519645674e-16) + 8.68822857166656e-17*pow(fs,3)*master) + 2.17205714291664e-18*pow(fs,3)*master + middle*(pow(fs,3)*master*middle*(3.75058704329211e-21*fs - 4.80058799114186e-18) + pow(fs,3)*master*(-3.75058704329211e-21*fs + 6.37911789151733e-18)) + treble*(-2.3741089701647e-19*bass*pow(fs,4)*master + 5.93527242541174e-21*pow(fs,4)*master*middle + pow(fs,3)*master*(-5.93527242541174e-21*fs + 5.93527242541174e-18))) + treble*(bass*pow(fs,3)*master*(-2.08921589374493e-19*fs + 7.91369656721565e-16) + pow(fs,3)*master*middle*(5.22303973436233e-21*fs - 1.97842414180391e-17) + fs*master*(pow(fs,2)*(-5.22303973436233e-21*fs + 2.50072811524015e-17) - 1.05235326691698e-11)); b4 = bass*(pow(fs,2)*master*middle*(fs*(3.30051659809705e-20*fs - 3.34529484863571e-16) + 6.40078398818915e-13) + fs*master*(fs*(-3.82282057153329e-17*fs + 3.74097967699649e-13) - 6.40078398818915e-10)) + fs*master*(fs*(-9.55705142883322e-19*fs + 9.35244919249122e-15) - 1.60019599704729e-11) + middle*(pow(fs,2)*master*middle*(fs*(-8.25129149524264e-22*fs + 8.36323712158926e-18) - 1.60019599704729e-14) + fs*master*(fs*(fs*(8.25129149524264e-22*fs - 9.05779027775447e-18) + 2.33065297055437e-14) - 1.54757833370144e-11)) + presence*(bass*(pow(fs,3)*master*middle*(3.75058704329211e-20*fs - 9.60117598228372e-17) + pow(fs,2)*master*(-4.34411428583328e-17*fs + 9.60117598228372e-14)) + pow(fs,2)*master*(-1.08602857145832e-18*fs + 2.40029399557093e-15) + middle*(pow(fs,3)*master*middle*(-9.37646760823027e-22*fs + 2.40029399557093e-18) + pow(fs,2)*master*(fs*(9.37646760823027e-22*fs - 3.18955894575866e-18) + 2.32136750055216e-15)) + treble*(5.93527242541174e-20*bass*pow(fs,4)*master - 1.48381810635294e-21*pow(fs,4)*master*middle + pow(fs,2)*master*(fs*(1.48381810635294e-21*fs - 2.96763621270587e-18) + 7.89264950187733e-16))) + treble*(bass*pow(fs,3)*master*(5.22303973436233e-20*fs - 3.95684828360783e-16) + pow(fs,3)*master*middle*(-1.30575993359058e-21*fs + 9.89212070901957e-18) + fs*master*(fs*(fs*(1.30575993359058e-21*fs - 1.25036405762007e-17) + 2.04787945742043e-14) - 5.26176633458489e-12)); a0 = bass*(fs*middle*(fs*(fs*(9.36636501686785e-20*fs + 5.550940631707e-16) + 7.69332141249659e-13) + 1.54757833370144e-11) + fs*(fs*(fs*(5.22303973436233e-20*fs + 7.08848818168071e-16) + 1.94674088009371e-12) + 7.98426613923246e-10) + 1.54757833370144e-8) + fs*(fs*(fs*(1.30575993359058e-21*fs + 2.03327403213829e-17) + 7.68282573623741e-14) + 8.54541804303259e-11) + middle*(fs*middle*(fs*(fs*(-2.34159125421696e-21*fs - 1.38773515792675e-17) - 1.92333035312415e-14) - 3.86894583425359e-13) + fs*(fs*(fs*(1.03583132062638e-21*fs + 8.39313633499656e-19) - 2.55659940727471e-15) + 1.58626779204397e-11)) + presence*(bass*(pow(fs,2)*middle*(fs*(3.8989688539274e-20*fs + 1.01165195674063e-16) + 2.32136750055216e-15) + fs*(fs*(fs*(5.93527242541174e-20*fs + 2.2097561511256e-16) + 1.05529366575101e-13) + 2.32136750055216e-12)) + fs*(fs*(fs*(1.48381810635294e-21*fs + 8.49202659051988e-18) + 1.21558409166413e-14) + 2.37940168806596e-12) + middle*(pow(fs,2)*middle*(fs*(-9.7474221348185e-22*fs - 2.52912989185157e-18) - 5.80341875138039e-17) + pow(fs,2)*(fs*(-5.09075892871085e-22*fs - 1.04577605899874e-18) + 2.37940168806596e-15)) + treble*(bass*(pow(fs,3)*middle*(6.4088313955244e-21*fs + 2.24244100553338e-17) + pow(fs,2)*(fs*(1.48381810635294e-20*fs + 4.85667222995519e-17) + 2.24244100553338e-14)) + fs*(fs*(fs*(3.70954526588234e-22*fs + 1.95607711066527e-18) + 2.9400119394493e-15) + 5.80341875138039e-13) + middle*(pow(fs,3)*middle*(-1.6022078488811e-22*fs - 5.60610251383346e-19) + pow(fs,2)*(fs*(-2.10733741700124e-22*fs - 3.33116236329232e-19) + 5.80341875138039e-16)) + treble*(bass*(-7.89264950187733e-21*pow(fs,4)*middle + pow(fs,3)*(-1.48381810635294e-20*fs - 7.89264950187733e-18)) + pow(fs,2)*(fs*(-3.70954526588234e-22*fs - 9.39225290723401e-19) - 1.97316237546933e-16) + middle*(1.97316237546933e-22*pow(fs,4)*middle + pow(fs,3)*(1.736382890413e-22*fs - 1.97316237546933e-19))))) + treble*(bass*(pow(fs,2)*middle*(fs*(2.61993027449037e-19*fs + 9.59435425698876e-16) + 1.49496067035559e-13) + fs*(fs*(fs*(6.0658484187708e-19*fs + 2.08432881469588e-15) + 1.24048803172573e-12) + 1.49496067035559e-10)) + fs*(fs*(fs*(1.5164621046927e-20*fs + 8.24374624612509e-17) + 1.33228202155789e-13) + 4.33244554519717e-11) + middle*(pow(fs,2)*middle*(fs*(-6.54982568622593e-21*fs - 2.39858856424719e-17) - 3.73740167588897e-15) + fs*(fs*(fs*(-8.61479536070106e-21*fs - 1.50226833524732e-17) + 2.15036009467815e-14) + 3.86894583425359e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.22651511636745e-19*fs - 5.26176633458489e-17) + pow(fs,2)*(fs*(-6.0658484187708e-19*fs - 4.21572718726941e-16) - 5.26176633458489e-14)) + fs*(fs*(fs*(-1.5164621046927e-20*fs - 4.08685600620275e-17) - 1.43277897290746e-14) - 1.31544158364622e-12) + middle*(pow(fs,3)*middle*(8.06628779091864e-21*fs + 1.31544158364622e-18) + pow(fs,2)*(fs*(7.09833325600836e-21*fs - 6.90869919730996e-18) - 1.31544158364622e-15))) + 3.86894583425359e-9) + 1.58626779204397e-8; a1 = bass*(fs*middle*(pow(fs,2)*(-3.74654600674714e-19*fs - 1.1101881263414e-15) + 3.09515666740288e-11) + fs*(pow(fs,2)*(-2.08921589374493e-19*fs - 1.41769763633614e-15) + 1.59685322784649e-9) + 6.19031333480575e-8) + fs*(pow(fs,2)*(-5.22303973436233e-21*fs - 4.06654806427659e-17) + 1.70908360860652e-10) + middle*(fs*middle*(pow(fs,2)*(9.36636501686785e-21*fs + 2.7754703158535e-17) - 7.73789166850719e-13) + fs*(pow(fs,2)*(-4.14332528250552e-21*fs - 1.67862726699931e-18) + 3.17253558408795e-11)) + presence*(bass*(pow(fs,3)*middle*(-1.55958754157096e-19*fs - 2.02330391348126e-16) + fs*(pow(fs,2)*(-2.3741089701647e-19*fs - 4.41951230225121e-16) + 4.64273500110431e-12)) + fs*(pow(fs,2)*(-5.93527242541174e-21*fs - 1.69840531810398e-17) + 4.75880337613192e-12) + middle*(pow(fs,3)*middle*(3.8989688539274e-21*fs + 5.05825978370315e-18) + pow(fs,3)*(2.03630357148434e-21*fs + 2.09155211799747e-18)) + treble*(bass*(pow(fs,3)*middle*(-2.56353255820976e-20*fs - 4.48488201106677e-17) + pow(fs,3)*(-5.93527242541174e-20*fs - 9.71334445991038e-17)) + fs*(pow(fs,2)*(-1.48381810635294e-21*fs - 3.91215422133053e-18) + 1.16068375027608e-12) + middle*(pow(fs,3)*middle*(6.4088313955244e-22*fs + 1.12122050276669e-18) + pow(fs,3)*(8.42934966800495e-22*fs + 6.66232472658464e-19)) + treble*(bass*(3.15705980075093e-20*pow(fs,4)*middle + pow(fs,3)*(5.93527242541174e-20*fs + 1.57852990037547e-17)) + pow(fs,3)*(1.48381810635294e-21*fs + 1.8784505814468e-18) + middle*(-7.89264950187733e-22*pow(fs,4)*middle + pow(fs,3)*(-6.94553156165202e-22*fs + 3.94632475093867e-19))))) + treble*(bass*(pow(fs,3)*middle*(-1.04797210979615e-18*fs - 1.91887085139775e-15) + fs*(pow(fs,2)*(-2.42633936750832e-18*fs - 4.16865762939176e-15) + 2.98992134071118e-10)) + fs*(pow(fs,2)*(-6.0658484187708e-20*fs - 1.64874924922502e-16) + 8.66489109039434e-11) + middle*(pow(fs,3)*middle*(2.61993027449037e-20*fs + 4.79717712849438e-17) + fs*(pow(fs,2)*(3.44591814428042e-20*fs + 3.00453667049463e-17) + 7.73789166850719e-12)) + treble*(bass*(pow(fs,3)*middle*(1.29060604654698e-18*fs + 1.05235326691698e-16) + pow(fs,3)*(2.42633936750832e-18*fs + 8.43145437453882e-16)) + fs*(pow(fs,2)*(6.0658484187708e-20*fs + 8.1737120124055e-17) - 2.63088316729244e-12) + middle*(pow(fs,3)*middle*(-3.22651511636745e-20*fs - 2.63088316729244e-18) + pow(fs,3)*(-2.83933330240335e-20*fs + 1.38173983946199e-17))) + 1.54757833370144e-8) + 6.3450711681759e-8; a2 = bass*(pow(fs,2)*middle*(5.61981901012071e-19*pow(fs,2) - 1.53866428249932e-12) + pow(fs,2)*(3.1338238406174e-19*pow(fs,2) - 3.89348176018742e-12) + 9.28547000220863e-8) + pow(fs,2)*(7.8345596015435e-21*pow(fs,2) - 1.53656514724748e-13) + middle*(pow(fs,2)*middle*(-1.40495475253018e-20*pow(fs,2) + 3.84666070624829e-14) + pow(fs,2)*(6.21498792375828e-21*pow(fs,2) + 5.11319881454942e-15)) + presence*(bass*(pow(fs,2)*middle*(2.33938131235644e-19*pow(fs,2) - 4.64273500110431e-15) + pow(fs,2)*(3.56116345524704e-19*pow(fs,2) - 2.11058733150202e-13)) + pow(fs,2)*(8.90290863811761e-21*pow(fs,2) - 2.43116818332827e-14) + middle*(pow(fs,2)*middle*(-5.8484532808911e-21*pow(fs,2) + 1.16068375027608e-16) + pow(fs,2)*(-3.05445535722651e-21*pow(fs,2) - 4.75880337613192e-15)) + treble*(bass*(3.84529883731464e-20*pow(fs,4)*middle + pow(fs,2)*(8.90290863811761e-20*pow(fs,2) - 4.48488201106677e-14)) + pow(fs,2)*(2.2257271595294e-21*pow(fs,2) - 5.8800238788986e-15) + middle*(-9.6132470932866e-22*pow(fs,4)*middle + pow(fs,2)*(-1.26440245020074e-21*pow(fs,2) - 1.16068375027608e-15)) + treble*(bass*(-4.7355897011264e-20*pow(fs,4)*middle - 8.90290863811761e-20*pow(fs,4)) + pow(fs,2)*(-2.2257271595294e-21*pow(fs,2) + 3.94632475093867e-16) + middle*(1.1838974252816e-21*pow(fs,4)*middle + 1.0418297342478e-21*pow(fs,4))))) + treble*(bass*(pow(fs,2)*middle*(1.57195816469422e-18*pow(fs,2) - 2.98992134071118e-13) + pow(fs,2)*(3.63950905126248e-18*pow(fs,2) - 2.48097606345145e-12)) + pow(fs,2)*(9.0987726281562e-20*pow(fs,2) - 2.66456404311578e-13) + middle*(pow(fs,2)*middle*(-3.92989541173556e-20*pow(fs,2) + 7.47480335177794e-15) + pow(fs,2)*(-5.16887721642064e-20*pow(fs,2) - 4.3007201893563e-14)) + treble*(bass*(-1.93590906982047e-18*pow(fs,4)*middle + pow(fs,2)*(-3.63950905126248e-18*pow(fs,2) + 1.05235326691698e-13)) + pow(fs,2)*(-9.0987726281562e-20*pow(fs,2) + 2.86555794581493e-14) + middle*(4.83977267455118e-20*pow(fs,4)*middle + pow(fs,2)*(4.25899995360502e-20*pow(fs,2) + 2.63088316729244e-15))) + 2.32136750055216e-8) + 9.51760675226384e-8; a3 = bass*(fs*middle*(pow(fs,2)*(-3.74654600674714e-19*fs + 1.1101881263414e-15) - 3.09515666740288e-11) + fs*(pow(fs,2)*(-2.08921589374493e-19*fs + 1.41769763633614e-15) - 1.59685322784649e-9) + 6.19031333480575e-8) + fs*(pow(fs,2)*(-5.22303973436233e-21*fs + 4.06654806427659e-17) - 1.70908360860652e-10) + middle*(fs*middle*(pow(fs,2)*(9.36636501686785e-21*fs - 2.7754703158535e-17) + 7.73789166850719e-13) + fs*(pow(fs,2)*(-4.14332528250552e-21*fs + 1.67862726699931e-18) - 3.17253558408795e-11)) + presence*(bass*(pow(fs,3)*middle*(-1.55958754157096e-19*fs + 2.02330391348126e-16) + fs*(pow(fs,2)*(-2.3741089701647e-19*fs + 4.41951230225121e-16) - 4.64273500110431e-12)) + fs*(pow(fs,2)*(-5.93527242541174e-21*fs + 1.69840531810398e-17) - 4.75880337613192e-12) + middle*(pow(fs,3)*middle*(3.8989688539274e-21*fs - 5.05825978370315e-18) + pow(fs,3)*(2.03630357148434e-21*fs - 2.09155211799747e-18)) + treble*(bass*(pow(fs,3)*middle*(-2.56353255820976e-20*fs + 4.48488201106677e-17) + pow(fs,3)*(-5.93527242541174e-20*fs + 9.71334445991038e-17)) + fs*(pow(fs,2)*(-1.48381810635294e-21*fs + 3.91215422133053e-18) - 1.16068375027608e-12) + middle*(pow(fs,3)*middle*(6.4088313955244e-22*fs - 1.12122050276669e-18) + pow(fs,3)*(8.42934966800495e-22*fs - 6.66232472658464e-19)) + treble*(bass*(3.15705980075093e-20*pow(fs,4)*middle + pow(fs,3)*(5.93527242541174e-20*fs - 1.57852990037547e-17)) + pow(fs,3)*(1.48381810635294e-21*fs - 1.8784505814468e-18) + middle*(-7.89264950187733e-22*pow(fs,4)*middle + pow(fs,3)*(-6.94553156165202e-22*fs - 3.94632475093867e-19))))) + treble*(bass*(pow(fs,3)*middle*(-1.04797210979615e-18*fs + 1.91887085139775e-15) + fs*(pow(fs,2)*(-2.42633936750832e-18*fs + 4.16865762939176e-15) - 2.98992134071118e-10)) + fs*(pow(fs,2)*(-6.0658484187708e-20*fs + 1.64874924922502e-16) - 8.66489109039434e-11) + middle*(pow(fs,3)*middle*(2.61993027449037e-20*fs - 4.79717712849438e-17) + fs*(pow(fs,2)*(3.44591814428042e-20*fs - 3.00453667049463e-17) - 7.73789166850719e-12)) + treble*(bass*(pow(fs,3)*middle*(1.29060604654698e-18*fs - 1.05235326691698e-16) + pow(fs,3)*(2.42633936750832e-18*fs - 8.43145437453882e-16)) + fs*(pow(fs,2)*(6.0658484187708e-20*fs - 8.1737120124055e-17) + 2.63088316729244e-12) + middle*(pow(fs,3)*middle*(-3.22651511636745e-20*fs + 2.63088316729244e-18) + pow(fs,3)*(-2.83933330240335e-20*fs - 1.38173983946199e-17))) + 1.54757833370144e-8) + 6.3450711681759e-8; a4 = bass*(fs*middle*(fs*(fs*(9.36636501686785e-20*fs - 5.550940631707e-16) + 7.69332141249659e-13) - 1.54757833370144e-11) + fs*(fs*(fs*(5.22303973436233e-20*fs - 7.08848818168071e-16) + 1.94674088009371e-12) - 7.98426613923246e-10) + 1.54757833370144e-8) + fs*(fs*(fs*(1.30575993359058e-21*fs - 2.03327403213829e-17) + 7.68282573623741e-14) - 8.54541804303259e-11) + middle*(fs*middle*(fs*(fs*(-2.34159125421696e-21*fs + 1.38773515792675e-17) - 1.92333035312415e-14) + 3.86894583425359e-13) + fs*(fs*(fs*(1.03583132062638e-21*fs - 8.39313633499656e-19) - 2.55659940727471e-15) - 1.58626779204397e-11)) + presence*(bass*(pow(fs,2)*middle*(fs*(3.8989688539274e-20*fs - 1.01165195674063e-16) + 2.32136750055216e-15) + fs*(fs*(fs*(5.93527242541174e-20*fs - 2.2097561511256e-16) + 1.05529366575101e-13) - 2.32136750055216e-12)) + fs*(fs*(fs*(1.48381810635294e-21*fs - 8.49202659051988e-18) + 1.21558409166413e-14) - 2.37940168806596e-12) + middle*(pow(fs,2)*middle*(fs*(-9.7474221348185e-22*fs + 2.52912989185157e-18) - 5.80341875138039e-17) + pow(fs,2)*(fs*(-5.09075892871085e-22*fs + 1.04577605899874e-18) + 2.37940168806596e-15)) + treble*(bass*(pow(fs,3)*middle*(6.4088313955244e-21*fs - 2.24244100553338e-17) + pow(fs,2)*(fs*(1.48381810635294e-20*fs - 4.85667222995519e-17) + 2.24244100553338e-14)) + fs*(fs*(fs*(3.70954526588234e-22*fs - 1.95607711066527e-18) + 2.9400119394493e-15) - 5.80341875138039e-13) + middle*(pow(fs,3)*middle*(-1.6022078488811e-22*fs + 5.60610251383346e-19) + pow(fs,2)*(fs*(-2.10733741700124e-22*fs + 3.33116236329232e-19) + 5.80341875138039e-16)) + treble*(bass*(-7.89264950187733e-21*pow(fs,4)*middle + pow(fs,3)*(-1.48381810635294e-20*fs + 7.89264950187733e-18)) + pow(fs,2)*(fs*(-3.70954526588234e-22*fs + 9.39225290723401e-19) - 1.97316237546933e-16) + middle*(1.97316237546933e-22*pow(fs,4)*middle + pow(fs,3)*(1.736382890413e-22*fs + 1.97316237546933e-19))))) + treble*(bass*(pow(fs,2)*middle*(fs*(2.61993027449037e-19*fs - 9.59435425698876e-16) + 1.49496067035559e-13) + fs*(fs*(fs*(6.0658484187708e-19*fs - 2.08432881469588e-15) + 1.24048803172573e-12) - 1.49496067035559e-10)) + fs*(fs*(fs*(1.5164621046927e-20*fs - 8.24374624612509e-17) + 1.33228202155789e-13) - 4.33244554519717e-11) + middle*(pow(fs,2)*middle*(fs*(-6.54982568622593e-21*fs + 2.39858856424719e-17) - 3.73740167588897e-15) + fs*(fs*(fs*(-8.61479536070106e-21*fs + 1.50226833524732e-17) + 2.15036009467815e-14) - 3.86894583425359e-12)) + treble*(bass*(pow(fs,3)*middle*(-3.22651511636745e-19*fs + 5.26176633458489e-17) + pow(fs,2)*(fs*(-6.0658484187708e-19*fs + 4.21572718726941e-16) - 5.26176633458489e-14)) + fs*(fs*(fs*(-1.5164621046927e-20*fs + 4.08685600620275e-17) - 1.43277897290746e-14) + 1.31544158364622e-12) + middle*(pow(fs,3)*middle*(8.06628779091864e-21*fs - 1.31544158364622e-18) + pow(fs,2)*(fs*(7.09833325600836e-21*fs + 6.90869919730996e-18) - 1.31544158364622e-15))) + 3.86894583425359e-9) + 1.58626779204397e-8; }; p6 = fi.iir((b0/a0,b1/a0,b2/a0),(a1/a0,a2/a0)) : s06_stage5clip with { fs = float(ma.SR); b0 = 2.82461475968336e-10*pow(fs,2); b1 = -5.64922951936672e-10*pow(fs,2); b2 = 2.82461475968336e-10*pow(fs,2); a0 = fs*(4.33570405894608e-10*fs + 2.19519582346283e-8) + 9.08235621017275e-8; a1 = -8.67140811789215e-10*pow(fs,2) + 1.81647124203455e-7; a2 = fs*(4.33570405894608e-10*fs - 2.19519582346283e-8) + 9.08235621017275e-8; }; s06_stage5clip = _<: ba.if(signbit(_), s06_stage5_neg_clip, s06_stage5_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s06_stage5_clip = ffunction(float s06_stage5clip(float), "generated/stage/mesa_dual_rect_red/s06_stage5_table.h", ""); s06_stage5_neg_clip = ffunction(float s06_stage5_negclip(float), "generated/stage/mesa_dual_rect_red/s06_stage5_neg_table.h", ""); }; p7 = fi.iir((b0/a0,b1/a0),(a1/a0)) : s07_stage6clip with { fs = float(ma.SR); b0 = -0.00119749787393626*fs - 0.123708458051269; b1 = 0.00119749787393626*fs - 0.123708458051269; a0 = 2.07375662139675e-5*fs + 0.00459682172955979; a1 = -2.07375662139675e-5*fs + 0.00459682172955979; }; s07_stage6clip = _<: ba.if(signbit(_), s07_stage6_neg_clip, s07_stage6_clip) :>_ with { signbit = ffunction(int signbit(float), "math.h", ""); s07_stage6_clip = ffunction(float s07_stage6clip(float), "generated/stage/mesa_dual_rect_red/s07_stage6_table.h", ""); s07_stage6_neg_clip = ffunction(float s07_stage6_negclip(float), "generated/stage/mesa_dual_rect_red/s07_stage6_neg_table.h", ""); }; process = *(pregain) : *(0.02) : p1 : *(0.7) : p2 : *(1.05) : p3 : *(3.2) : p4 : p5 : *(20.0) : p6 : *(8.0) : p7 : *(0.02) : *(postgain) with { pregain = ampctrl.pregain; postgain = ampctrl.postgain; tune1 = ampctrl.tune1; tune2 = ampctrl.tune2; tune3 = ampctrl.tune3; tune4 = ampctrl.tune4; tune5 = ampctrl.tune5; tune6 = ampctrl.tune6; tune7 = ampctrl.tune7; tune8 = ampctrl.tune8; tune9 = ampctrl.tune9; tune10 = ampctrl.tune10; };
2a2356b848b5013d38e26614a6403a97dc26b35445d5c6a0d6c74be471fdc66b
magnetophon/faustExperiments
N_band_Compressor_N_chan.dsp
declare name "N_band_Compressor_N_chan"; declare version "0.1"; declare author "Bart Brouns"; declare license "AGPLv3"; import("stdfaust.lib"); // import("/home/bart/source/faustlibraries/stdfaust.lib"); process = DCblock(2) : MSencode(MSon) : Eight_band_Compressor_N_chan(2) : MSdecode(MSon) ; DCblock(N) = par(i, N, ba.bypass1(fb==0,fi.dcblockerat(fb))); MSon = checkbox("MS on"); fb = hslider("dc block", 20, 0, 50, 0.1); Eight_band_Compressor_N_chan(N) = inputGain : crossover : compressors : mixer : outputGain with { inputGain = par(i, N, _*inGain); crossover = ( (crossoverFreqs<:par(i, Nr_crossoverFreqs, _<:si.bus(N))) ,si.bus(N) ) <: ro.interleave(N,Nr_bands) : par(i, N, fi.crossover8LR4) : ro.interleave(Nr_bands,N); compressors = (strength_array , thresh_array , att_array , rel_array , knee_array , link_array, ro.interleave(N,Nr_bands)) : ro.interleave(Nr_bands,6+N) : par(i, Nr_bands, compressor(meter(i+1),N,prePost)) ; mixer = si.bus(N*Nr_bands):>si.bus(N); outputGain = par(i, N, _*outGain); compressor(meter,N,prePost,strength,thresh,att,rel,knee,link) = co.FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,meter,N); meter(i) = // _<:(_, (max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; _<:(_, (ba.linear2db:max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; inGain = CG(hslider("[1]input gain", 0, -30, 30, 0.1)):ba.db2linear; crossoverFreqs = BT(hslider("[1]freq", 60, 20, 20000, 1),hslider("[1]freq", 8000, 20, 20000, 1)):LogArray(Nr_crossoverFreqs); strength_array = BTli(hslider("[2]strength", 1, 0, 8, 0.1),hslider("[2]strength", 1, 0, 8, 0.1)); thresh_array = BTli(hslider("[3]thresh", -24, -60, 0, 0.1),hslider("[3]thresh", -24, -60, 0, 0.1)); att_array = BTlo(hslider("[4]att", 13, 0, 100, 0.1)*0.001,hslider("[4]att", 0.1, 0, 100, 0.1)*0.001); rel_array = BTlo(hslider("[5]rel", 130, 1, 1000, 1)*0.001,hslider("[5]rel", 26, 1, 1000, 1)*0.001); knee_array = BTli(hslider("[6]knee", 0, 0, 30, 0.1),hslider("[6]knee", 30, 0, 30, 0.1)); link_array = BTli(hslider("[7]link", 1, 0, 1, 0.1),hslider("[7]link", 0.2, 0, 1, 0.1)); outGain = CG(hslider("[3]output gain", 0, -30, 30, 0.1)):ba.db2linear; // make a linear array of values, from bottom to top LinArray(N,bottom,top) = par(i,N, ((top-bottom)*(i/(N-1)))+bottom); // make a log array of values, from bottom to top LogArray(N,bottom,top) = par(i,N, pow((pow((t/b),1/(N-1))),i)*b) with { b = bottom:max(ma.EPSILON); t = top:max(ma.EPSILON); }; CG(x) = vgroup("[1]controlls", x); MG(x) = hgroup("[2]gain reduction", x); // make a bottom and a top version of a parameter BT(b,t) = CG(hgroup("[2]", vgroup("[1]bottom", b),vgroup("[2]top", t))); BTlo(b,t) = BT(b,t):LogArray(Nr_bands); BTli(b,t) = BT(b,t):LinArray(Nr_bands); Nr_bands = 8; Nr_crossoverFreqs = Nr_bands-1; prePost = 1; maxGR = -30; }; MSencode(on,l,r) = select2(on , l , ((l+r)/sqrt(2))) , select2(on , r , ((l-r)/sqrt(2))); MSdecode(on,m,s) = select2(on , m , ((m+s)/sqrt(2))) , select2(on , s , ((m-s)/sqrt(2)));
https://raw.githubusercontent.com/magnetophon/faustExperiments/9c771b084ae2247767a7c080b93f6605210ce368/N_band_Compressor_N_chan.dsp
faust
import("/home/bart/source/faustlibraries/stdfaust.lib"); _<:(_, (max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; make a linear array of values, from bottom to top make a log array of values, from bottom to top make a bottom and a top version of a parameter
declare name "N_band_Compressor_N_chan"; declare version "0.1"; declare author "Bart Brouns"; declare license "AGPLv3"; import("stdfaust.lib"); process = DCblock(2) : MSencode(MSon) : Eight_band_Compressor_N_chan(2) : MSdecode(MSon) ; DCblock(N) = par(i, N, ba.bypass1(fb==0,fi.dcblockerat(fb))); MSon = checkbox("MS on"); fb = hslider("dc block", 20, 0, 50, 0.1); Eight_band_Compressor_N_chan(N) = inputGain : crossover : compressors : mixer : outputGain with { inputGain = par(i, N, _*inGain); crossover = ( (crossoverFreqs<:par(i, Nr_crossoverFreqs, _<:si.bus(N))) ,si.bus(N) ) <: ro.interleave(N,Nr_bands) : par(i, N, fi.crossover8LR4) : ro.interleave(Nr_bands,N); compressors = (strength_array , thresh_array , att_array , rel_array , knee_array , link_array, ro.interleave(N,Nr_bands)) : ro.interleave(Nr_bands,6+N) : par(i, Nr_bands, compressor(meter(i+1),N,prePost)) ; mixer = si.bus(N*Nr_bands):>si.bus(N); outputGain = par(i, N, _*outGain); compressor(meter,N,prePost,strength,thresh,att,rel,knee,link) = co.FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,meter,N); meter(i) = _<:(_, (ba.linear2db:max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; inGain = CG(hslider("[1]input gain", 0, -30, 30, 0.1)):ba.db2linear; crossoverFreqs = BT(hslider("[1]freq", 60, 20, 20000, 1),hslider("[1]freq", 8000, 20, 20000, 1)):LogArray(Nr_crossoverFreqs); strength_array = BTli(hslider("[2]strength", 1, 0, 8, 0.1),hslider("[2]strength", 1, 0, 8, 0.1)); thresh_array = BTli(hslider("[3]thresh", -24, -60, 0, 0.1),hslider("[3]thresh", -24, -60, 0, 0.1)); att_array = BTlo(hslider("[4]att", 13, 0, 100, 0.1)*0.001,hslider("[4]att", 0.1, 0, 100, 0.1)*0.001); rel_array = BTlo(hslider("[5]rel", 130, 1, 1000, 1)*0.001,hslider("[5]rel", 26, 1, 1000, 1)*0.001); knee_array = BTli(hslider("[6]knee", 0, 0, 30, 0.1),hslider("[6]knee", 30, 0, 30, 0.1)); link_array = BTli(hslider("[7]link", 1, 0, 1, 0.1),hslider("[7]link", 0.2, 0, 1, 0.1)); outGain = CG(hslider("[3]output gain", 0, -30, 30, 0.1)):ba.db2linear; LinArray(N,bottom,top) = par(i,N, ((top-bottom)*(i/(N-1)))+bottom); LogArray(N,bottom,top) = par(i,N, pow((pow((t/b),1/(N-1))),i)*b) with { b = bottom:max(ma.EPSILON); t = top:max(ma.EPSILON); }; CG(x) = vgroup("[1]controlls", x); MG(x) = hgroup("[2]gain reduction", x); BT(b,t) = CG(hgroup("[2]", vgroup("[1]bottom", b),vgroup("[2]top", t))); BTlo(b,t) = BT(b,t):LogArray(Nr_bands); BTli(b,t) = BT(b,t):LinArray(Nr_bands); Nr_bands = 8; Nr_crossoverFreqs = Nr_bands-1; prePost = 1; maxGR = -30; }; MSencode(on,l,r) = select2(on , l , ((l+r)/sqrt(2))) , select2(on , r , ((l-r)/sqrt(2))); MSdecode(on,m,s) = select2(on , m , ((m+s)/sqrt(2))) , select2(on , s , ((m-s)/sqrt(2)));
59f2eb03c1d4d8b95d59a100998bbc1e1df8b5b9d5c7363d28489596bb28ffe7
dariosanfilippo/modified_thomas
modified_thomas.dsp
// ============================================================================= // Modified Thomas complex generator // ============================================================================= // // Complex sound generator based on modified Thomas equations. // The model is structurally-stable through hyperbolic tangent function // saturators and allows for parameters in unstable ranges to explore // different dynamics. Furthermore, this model includes DC-blockers in the // feedback paths to counterbalance a tendency towards fixed-point attractors // – thus enhancing complex behaviours – and obtain signals suitable for audio. // Besides the original parameters in the model, this system includes a // saturating threshold determining the positive and negative bounds in the // equations, while the output peaks are within the [-1.0; 1.0] range. // // The system can be triggered by an impulse or by a constant of arbitrary // values for deterministic and reproducable behaviours. Alternatively, // the oscillator can be fed with external inputs to be used as a nonlinear // distortion unit. // // ============================================================================= import("stdfaust.lib"); declare name "Modified Thomas complex generator"; declare author "Dario Sanfilippo"; declare copyright "Copyright (C) 2021 Dario Sanfilippo <[email protected]>"; declare version "1.1"; declare license "GPL v3.0 license"; thomas(l, b, dt, x_0, y_0, z_0) = x_level(out * (x / l)) , y_level(out * (y / l)) , z_level(out * (z / l)) letrec { 'x = fi.highpass(1, 10, tanh(l, (x_0 + x + (sin(y) - b * x) * dt))); 'y = fi.highpass(1, 10, tanh(l, (y_0 + y + (sin(z) - b * y) * dt))); 'z = fi.highpass(1, 10, tanh(l, (z_0 + z + (sin(x) - b * z) * dt))); }; // tanh() saturator with adjustable saturating threshold tanh(l, x) = l * ma.tanh(x / l); // smoothing function for click-free parameter variations using // a one-pole low-pass with a 20-Hz cut-off frequency. smooth(x) = fi.pole(pole, x * (1.0 - pole)) with { pole = exp(-2.0 * ma.PI * 20.0 / ma.SR); }; // GUI parameters x_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[0]x[style:dB]", -60, 0))); y_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[1]y[style:dB]", -60, 0))); z_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[2]z[style:dB]", -60, 0))); global_group(x) = vgroup("[0]Global", x); levels_group(x) = hgroup("[1]Levels (dB)", x); b = global_group(hslider("[4]b[scale:exp]", 3, 0, 20, .000001) : smooth); dt = global_group( hslider("[5]dt (time delta)[scale:exp]", 0.1, 0.000001, 1, .000001) : smooth); input(x) = global_group(nentry("[3]Input value", 1, 0, 10, .000001) <: _ * impulse + _ * checkbox("[1]Constant inputs") + x * checkbox("[0]External inputs")); impulse = button("[2]Impulse inputs") : ba.impulsify; limit = global_group( hslider("[6]Saturation limit[scale:exp]", 4, 1, 1024, .000001) : smooth); out = global_group(hslider("[7]Output scaling[scale:exp]", 0, 0, 1, .000001) : smooth); process(x1, x2, x3) = thomas(limit, b, dt, input(x1), input(x2), input(x3));
https://raw.githubusercontent.com/dariosanfilippo/modified_thomas/84add8df39dc58a6748d974cf475cffb2a643d2b/modified_thomas.dsp
faust
============================================================================= Modified Thomas complex generator ============================================================================= Complex sound generator based on modified Thomas equations. The model is structurally-stable through hyperbolic tangent function saturators and allows for parameters in unstable ranges to explore different dynamics. Furthermore, this model includes DC-blockers in the feedback paths to counterbalance a tendency towards fixed-point attractors – thus enhancing complex behaviours – and obtain signals suitable for audio. Besides the original parameters in the model, this system includes a saturating threshold determining the positive and negative bounds in the equations, while the output peaks are within the [-1.0; 1.0] range. The system can be triggered by an impulse or by a constant of arbitrary values for deterministic and reproducable behaviours. Alternatively, the oscillator can be fed with external inputs to be used as a nonlinear distortion unit. ============================================================================= tanh() saturator with adjustable saturating threshold smoothing function for click-free parameter variations using a one-pole low-pass with a 20-Hz cut-off frequency. GUI parameters
import("stdfaust.lib"); declare name "Modified Thomas complex generator"; declare author "Dario Sanfilippo"; declare copyright "Copyright (C) 2021 Dario Sanfilippo <[email protected]>"; declare version "1.1"; declare license "GPL v3.0 license"; thomas(l, b, dt, x_0, y_0, z_0) = x_level(out * (x / l)) , y_level(out * (y / l)) , z_level(out * (z / l)) letrec { 'x = fi.highpass(1, 10, tanh(l, (x_0 + x + (sin(y) - b * x) * dt))); 'y = fi.highpass(1, 10, tanh(l, (y_0 + y + (sin(z) - b * y) * dt))); 'z = fi.highpass(1, 10, tanh(l, (z_0 + z + (sin(x) - b * z) * dt))); }; tanh(l, x) = l * ma.tanh(x / l); smooth(x) = fi.pole(pole, x * (1.0 - pole)) with { pole = exp(-2.0 * ma.PI * 20.0 / ma.SR); }; x_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[0]x[style:dB]", -60, 0))); y_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[1]y[style:dB]", -60, 0))); z_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[2]z[style:dB]", -60, 0))); global_group(x) = vgroup("[0]Global", x); levels_group(x) = hgroup("[1]Levels (dB)", x); b = global_group(hslider("[4]b[scale:exp]", 3, 0, 20, .000001) : smooth); dt = global_group( hslider("[5]dt (time delta)[scale:exp]", 0.1, 0.000001, 1, .000001) : smooth); input(x) = global_group(nentry("[3]Input value", 1, 0, 10, .000001) <: _ * impulse + _ * checkbox("[1]Constant inputs") + x * checkbox("[0]External inputs")); impulse = button("[2]Impulse inputs") : ba.impulsify; limit = global_group( hslider("[6]Saturation limit[scale:exp]", 4, 1, 1024, .000001) : smooth); out = global_group(hslider("[7]Output scaling[scale:exp]", 0, 0, 1, .000001) : smooth); process(x1, x2, x3) = thomas(limit, b, dt, input(x1), input(x2), input(x3));
f46f730c9a6f29a09e522e6008a71e17424360632e0a374e78e2d5ac43d05208
alexcoy257/lrnet
channelStrip.dsp
declare name "compressor"; declare version "0.1"; declare author "Julius Smith, ed. Alex Coy"; declare license "MIT Style STK-4.2"; declare description "Compressor demo application, adapted from the Faust Library's dm.compressor_demo in demos.lib"; declare documentation "https://faustlibraries.grame.fr/libs/compressors/#cocompressor_mono"; import("stdfaust.lib"); //----------------------------`(dm.)compressor_mono_demo`------------------------- // Mono Compressor // // #### Usage // // ``` // _ : compressor_mono_demo : _; // ``` //------------------------------------------------------------ compressor_demo = ba.bypass1(cbp,compressor_mono_demo) with { comp_group(x) = vgroup("COMPRESSOR [tooltip: References: https://faustlibraries.grame.fr/libs/compressors/ http://en.wikipedia.org/wiki/Dynamic_range_compression]", x); meter_group(x) = comp_group(hgroup("[0]", x)); knob_group(x) = comp_group(hgroup("[1]", x)); cbp = meter_group(checkbox("[0] Bypass [tooltip: When this is checked, the compressor has no effect]")); gainview = co.compression_gain_mono(ratio,threshold,attack,release) : ba.linear2db : meter_group(hbargraph("[1] Compressor Gain [unit:dB] [tooltip: Compressor gain in dB]",-50,+10)); displaygain = _ <: _,abs : _,gainview : attach; compressor_stereo_demo = displaygain(co.compressor_stereo(ratio,threshold,attack,release)) : *(makeupgain), *(makeupgain); compressor_mono_demo = displaygain(co.compressor_mono(ratio,threshold,attack,release)) : *(makeupgain); ctl_group(x) = knob_group(hgroup("[3] Compression Control", x)); ratio = ctl_group(hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 2, 1, 20, 0.1)); threshold = ctl_group(hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -24, -100, 10, 0.1)); env_group(x) = knob_group(hgroup("[4] Compression Response", x)); attack = env_group(hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 15, 1, 1000, 0.1)) : *(0.001) : max(1/ma.SR); release = env_group(hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 40, 1, 1000, 0.1)) : *(0.001) : max(1/ma.SR); makeupgain = comp_group(hslider("[5] MakeUpGain [unit:dB] [tooltip: The compressed-signal output level is increased by this amount (in dB) to make up for the level lost due to compression]", 2, -96, 96, 0.1)) : ba.db2linear; }; group_gain = *(vslider("[0] Group Gain [unit:dB]",0, -96, 10, 0.1) : ba.db2linear); indiv_gain = *(vslider("[0] Individual Gain [unit:dB]",0, -96, 10, 0.1) : ba.db2linear); mute = *(checkbox("Mute the signal that goes to other players")); process = _ : compressor_demo <: _ , (group_gain : indiv_gain : mute : _);
https://raw.githubusercontent.com/alexcoy257/lrnet/161c1d16c6b8ed816bb74fd5583a6985d1c22592/src/lrmixer/channelStrip.dsp
faust
----------------------------`(dm.)compressor_mono_demo`------------------------- Mono Compressor #### Usage ``` _ : compressor_mono_demo : _; ``` ------------------------------------------------------------ faustlibraries.grame.fr/libs/compressors/ en.wikipedia.org/wiki/Dynamic_range_compression]", x);
declare name "compressor"; declare version "0.1"; declare author "Julius Smith, ed. Alex Coy"; declare license "MIT Style STK-4.2"; declare description "Compressor demo application, adapted from the Faust Library's dm.compressor_demo in demos.lib"; declare documentation "https://faustlibraries.grame.fr/libs/compressors/#cocompressor_mono"; import("stdfaust.lib"); compressor_demo = ba.bypass1(cbp,compressor_mono_demo) with { comp_group(x) = vgroup("COMPRESSOR [tooltip: References: meter_group(x) = comp_group(hgroup("[0]", x)); knob_group(x) = comp_group(hgroup("[1]", x)); cbp = meter_group(checkbox("[0] Bypass [tooltip: When this is checked, the compressor has no effect]")); gainview = co.compression_gain_mono(ratio,threshold,attack,release) : ba.linear2db : meter_group(hbargraph("[1] Compressor Gain [unit:dB] [tooltip: Compressor gain in dB]",-50,+10)); displaygain = _ <: _,abs : _,gainview : attach; compressor_stereo_demo = displaygain(co.compressor_stereo(ratio,threshold,attack,release)) : *(makeupgain), *(makeupgain); compressor_mono_demo = displaygain(co.compressor_mono(ratio,threshold,attack,release)) : *(makeupgain); ctl_group(x) = knob_group(hgroup("[3] Compression Control", x)); ratio = ctl_group(hslider("[0] Ratio [style:knob] [tooltip: A compression Ratio of N means that for each N dB increase in input signal level above Threshold, the output level goes up 1 dB]", 2, 1, 20, 0.1)); threshold = ctl_group(hslider("[1] Threshold [unit:dB] [style:knob] [tooltip: When the signal level exceeds the Threshold (in dB), its level is compressed according to the Ratio]", -24, -100, 10, 0.1)); env_group(x) = knob_group(hgroup("[4] Compression Response", x)); attack = env_group(hslider("[1] Attack [unit:ms] [style:knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new lower target level (the compression `kicking in')]", 15, 1, 1000, 0.1)) : *(0.001) : max(1/ma.SR); release = env_group(hslider("[2] Release [unit:ms] [style: knob] [scale:log] [tooltip: Time constant in ms (1/e smoothing time) for the compression gain to approach (exponentially) a new higher target level (the compression 'releasing')]", 40, 1, 1000, 0.1)) : *(0.001) : max(1/ma.SR); makeupgain = comp_group(hslider("[5] MakeUpGain [unit:dB] [tooltip: The compressed-signal output level is increased by this amount (in dB) to make up for the level lost due to compression]", 2, -96, 96, 0.1)) : ba.db2linear; }; group_gain = *(vslider("[0] Group Gain [unit:dB]",0, -96, 10, 0.1) : ba.db2linear); indiv_gain = *(vslider("[0] Individual Gain [unit:dB]",0, -96, 10, 0.1) : ba.db2linear); mute = *(checkbox("Mute the signal that goes to other players")); process = _ : compressor_demo <: _ , (group_gain : indiv_gain : mute : _);
cc8b75f3a4ae99443994f3b8cd8268946312ca208276726ffb47e446c93e0256
dariosanfilippo/modified_chua
modified_chua.dsp
// ============================================================================= // Modified Chua complex generator // ============================================================================= // // Complex sound generator based on modified Chua equations. // The model is structurally-stable through hyperbolic tangent function // saturators and allows for parameters in unstable ranges to explore // different dynamics. Furthermore, this model includes DC-blockers in the // feedback paths to counterbalance a tendency towards fixed-point attractors // – thus enhancing complex behaviours – and obtain signals suitable for audio. // Besides the original parameters in the model, this system includes a // saturating threshold determining the positive and negative bounds in the // equations, while the output peaks are within the [-1.0; 1.0] range. // // The system can be triggered by an impulse or by a constant of arbitrary // values for deterministic and reproducable behaviours. Alternatively, // the oscillator can be fed with external inputs to be used as a nonlinear // distortion unit. // // ============================================================================= import("stdfaust.lib"); declare name "Modified Chua complex generator"; declare author "Dario Sanfilippo"; declare copyright "Copyright (C) 2021 Dario Sanfilippo <[email protected]>"; declare version "1.1"; declare license "GPL v3.0 license"; chua(l, a, b, alpha, k, beta, yps, dt, x_0, y_0, z_0) = x_level(out * (x / l)) , y_level(out * (y / l)) , z_level(out * (z / l)) letrec { 'x = fi.highpass(1, 10, tanh(l, (x_0 + x + (k * alpha * (y - x - f(x))) * dt))); 'y = fi.highpass(1, 10, tanh(l, (y_0 + y + (k * (x - y + z)) * dt))); 'z = fi.highpass(1, 10, tanh(l, (z_0 + z + (-k * (beta * y + yps * z)) * dt))); } with { f(x) = b * x + .5 * (a - b) * (abs(x + 1) - abs(x - 1)); }; // smoothing function for click-free parameter variations using // a one-pole low-pass with a 20-Hz cut-off frequency. smooth(x) = fi.pole(pole, x * (1.0 - pole)) with { pole = exp(-2.0 * ma.PI * 20.0 / ma.SR); }; // tanh() saturator with adjustable saturating threshold tanh(l, x) = l * ma.tanh(x / l); // GUI parameters x_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[00]x[style:dB]", -60, 0))); y_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[01]y[style:dB]", -60, 0))); z_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[02]z[style:dB]", -60, 0))); global_group(x) = vgroup("[0]Global", x); levels_group(x) = hgroup("[1]Levels (dB)", x); a = global_group(hslider("[04]a[scale:exp]", 1, 0, 20, .000001) : smooth); b = global_group(hslider("[05]b[scale:exp]", 3, 0, 20, .000001) : smooth); alpha = global_group(hslider("[06]alpha[scale:exp]", 2, 0, 20, .000001) : smooth); k = global_group(hslider("[07]k[scale:exp]", 1, 0, 20, .000001) : smooth); beta = global_group(hslider("[08]beta[scale:exp]", 5, 0, 20, .000001) : smooth); yps = global_group(hslider("[09]yps[scale:exp]", 1, 0, 20, .000001) : smooth); dt = global_group( hslider("[10]dt (integration step)[scale:exp]", 0.1, 0.000001, 1, .000001) : smooth); input(x) = global_group(nentry("[03]Input value", 1, 0, 10, .000001) <: _ * impulse + _ * checkbox("[01]Constant inputs") + x * checkbox("[00]External inputs")); impulse = button("[02]Impulse inputs") : ba.impulsify; limit = global_group( hslider("[11]Saturation limit[scale:exp]", 4, 1, 1024, .000001) : smooth); out = global_group(hslider("[12]Output scaling[scale:exp]", 0, 0, 1, .000001) : smooth); process(x1, x2, x3) = chua(limit, a, b, alpha, k, beta, yps, dt, input(x1), input(x2), input(x3));
https://raw.githubusercontent.com/dariosanfilippo/modified_chua/0f886aa822c32d89287786311e64b4d7fa22de66/modified_chua.dsp
faust
============================================================================= Modified Chua complex generator ============================================================================= Complex sound generator based on modified Chua equations. The model is structurally-stable through hyperbolic tangent function saturators and allows for parameters in unstable ranges to explore different dynamics. Furthermore, this model includes DC-blockers in the feedback paths to counterbalance a tendency towards fixed-point attractors – thus enhancing complex behaviours – and obtain signals suitable for audio. Besides the original parameters in the model, this system includes a saturating threshold determining the positive and negative bounds in the equations, while the output peaks are within the [-1.0; 1.0] range. The system can be triggered by an impulse or by a constant of arbitrary values for deterministic and reproducable behaviours. Alternatively, the oscillator can be fed with external inputs to be used as a nonlinear distortion unit. ============================================================================= smoothing function for click-free parameter variations using a one-pole low-pass with a 20-Hz cut-off frequency. tanh() saturator with adjustable saturating threshold GUI parameters
import("stdfaust.lib"); declare name "Modified Chua complex generator"; declare author "Dario Sanfilippo"; declare copyright "Copyright (C) 2021 Dario Sanfilippo <[email protected]>"; declare version "1.1"; declare license "GPL v3.0 license"; chua(l, a, b, alpha, k, beta, yps, dt, x_0, y_0, z_0) = x_level(out * (x / l)) , y_level(out * (y / l)) , z_level(out * (z / l)) letrec { 'x = fi.highpass(1, 10, tanh(l, (x_0 + x + (k * alpha * (y - x - f(x))) * dt))); 'y = fi.highpass(1, 10, tanh(l, (y_0 + y + (k * (x - y + z)) * dt))); 'z = fi.highpass(1, 10, tanh(l, (z_0 + z + (-k * (beta * y + yps * z)) * dt))); } with { f(x) = b * x + .5 * (a - b) * (abs(x + 1) - abs(x - 1)); }; smooth(x) = fi.pole(pole, x * (1.0 - pole)) with { pole = exp(-2.0 * ma.PI * 20.0 / ma.SR); }; tanh(l, x) = l * ma.tanh(x / l); x_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[00]x[style:dB]", -60, 0))); y_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[01]y[style:dB]", -60, 0))); z_level(x) = attach(x , abs(x) : ba.linear2db : levels_group(hbargraph("[02]z[style:dB]", -60, 0))); global_group(x) = vgroup("[0]Global", x); levels_group(x) = hgroup("[1]Levels (dB)", x); a = global_group(hslider("[04]a[scale:exp]", 1, 0, 20, .000001) : smooth); b = global_group(hslider("[05]b[scale:exp]", 3, 0, 20, .000001) : smooth); alpha = global_group(hslider("[06]alpha[scale:exp]", 2, 0, 20, .000001) : smooth); k = global_group(hslider("[07]k[scale:exp]", 1, 0, 20, .000001) : smooth); beta = global_group(hslider("[08]beta[scale:exp]", 5, 0, 20, .000001) : smooth); yps = global_group(hslider("[09]yps[scale:exp]", 1, 0, 20, .000001) : smooth); dt = global_group( hslider("[10]dt (integration step)[scale:exp]", 0.1, 0.000001, 1, .000001) : smooth); input(x) = global_group(nentry("[03]Input value", 1, 0, 10, .000001) <: _ * impulse + _ * checkbox("[01]Constant inputs") + x * checkbox("[00]External inputs")); impulse = button("[02]Impulse inputs") : ba.impulsify; limit = global_group( hslider("[11]Saturation limit[scale:exp]", 4, 1, 1024, .000001) : smooth); out = global_group(hslider("[12]Output scaling[scale:exp]", 0, 0, 1, .000001) : smooth); process(x1, x2, x3) = chua(limit, a, b, alpha, k, beta, yps, dt, input(x1), input(x2), input(x3));
5a7b496d06d7bc318f38d139e45aee95300d969fa5ff98327de2ea8d933bc588
magnetophon/faustExperiments
8bandCompander.dsp
declare name "Eight_band_Compander_N_chan"; declare version "0.1"; declare author "Bart Brouns"; declare license "AGPLv3"; // import("stdfaust.lib"); import("/home/bart/source/faustlibraries/stdfaust.lib"); process = // DCblock(2) // : MSencode(MSon) // : Eight_band_Compander_N_chan(2) // : MSdecode(MSon) ; DCblock(N) = par(i, N, ba.bypass1(fb==0,fi.dcblockerat(fb))); MSon = checkbox("MS on"); fb = hslider("dc block", 20, 0, 50, 0.1); Eight_band_Compander_N_chan(N) = // expanders // scPlusInputsMono inputGain : crossover : expanders : compressors : mixer : outputGain with { inputGain = par(i, N, _*inGain); crossover = ( (crossoverFreqs<:par(i, Nr_crossoverFreqs, _<:si.bus(N))) ,si.bus(N) ) <: ro.interleave(N,Nr_bands) : par(i, N, fi.crossover8LR4) : ro.interleave(Nr_bands,N); expanders = EX( (strength_array, thresh_array, range_array, att_array, hold_array, rel_array, knee_array , link_array, (ro.interleave(N,Nr_bands) :scPlusInputs )) : ro.interleave(Nr_bands,9+N) : par(i, Nr_bands, expander(meter(i+1),N,prePost,_,1)) ) ; scPlusInputsMono = si.bus(Nr_bands) <: ( (scMix_array // disgard the lowest two and the highest band, mix the rest, take the abs, div by Nr_bands, split them out: , ((!,!,!,!,_,_,_,!) :> abs / hslider("div", 3, 1, 5, 0.1) <: si.bus(Nr_bands)) // , (si.bus(Nr_bands) :> abs / Nr_bands <: si.bus(Nr_bands)) , par(i, Nr_bands, abs) ) :ro.interleave(Nr_bands,3) : par(i, Nr_bands, it.interpolate_linear) ),si.bus(Nr_bands) ; scPlusInputs = par(i, N, scPlusInputsMono) :(ro.crossNM(Nr_bands*2,Nr_bands),si.bus(Nr_bands)) :((ro.interleave(Nr_bands,2):par(i, Nr_bands, max) ),si.bus(2*Nr_bands)) ; compressors = CO( (strength_array , thresh_array , att_array , rel_array , knee_array , link_array, ro.interleave(N,Nr_bands)) : ro.interleave(Nr_bands,6+N) : par(i, Nr_bands, compressor(meter(i+1),N,prePost))); mixer = si.bus(N*Nr_bands):>si.bus(N); outputGain = par(i, N, _*outGain); expander(meter,N,prePost,SCfunction,SCswitch,strength,thresh,range,att,hold,rel,knee,link,SCsignal) = co.expanderSC_N_chan(strength,thresh,range,att,hold,rel,knee,prePost,link,meter,maxHold,N,SCfunction,SCswitch,SCsignal) with { maxHold = maxSR*1; maxSR = 192000; }; compressor(meter,N,prePost,strength,thresh,att,rel,knee,link) = co.FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,ba.linear2db:meter:ba.db2linear,N); // co.FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,meter,N); meter(i) = _<:(_, (max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; // _<:(_, (ba.linear2db:max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; inGain = CG(hslider("[1]input gain", 0, -30, 30, 0.1)):ba.db2linear; crossoverFreqs = BT(hslider("[1]freq", 60, 20, 20000, 1),hslider("[1]freq", 8000, 20, 20000, 1)):LogArray(Nr_crossoverFreqs); strength_array = BTli(hslider("[2]strength", 1, 0, 8, 0.1),hslider("[2]strength", 1, 0, 8, 0.1)); thresh_array = BTli(hslider("[3]thresh", -24, -60, 0, 0.1),hslider("[3]thresh", -24, -60, 0, 0.1)); range_array = BTli(hslider("[4]range", -24, -60, 0, 0.1),hslider("[4]range", -24, -60, 0, 0.1)); att_array = BTlo(hslider("[5]att", 13, 0, 100, 0.1)*0.001,hslider("[5]att", 0.1, 0, 100, 0.1)*0.001); hold_array = BTlo(hslider("[6]hold", 130, 1, 1000, 1)*0.001,hslider("[6]hold", 26, 1, 1000, 1)*0.001); rel_array = BTlo(hslider("[7]rel", 130, 1, 1000, 1)*0.001,hslider("[7]rel", 26, 1, 1000, 1)*0.001); knee_array = BTli(hslider("[8]knee", 0, 0, 30, 0.1),hslider("[8]knee", 30, 0, 30, 0.1)); link_array = par(i, Nr_bands, 0); // link_array = BTli(hslider("[9]link", 1, 0, 1, 0.1),hslider("[9]link", 0.2, 0, 1, 0.1)); scMix_array = BTli(hslider("[9]SC mix", 1, 0, 1, 0.1)*-1+1,hslider("[9]SC mix", 0.2, 0, 1, 0.1)*-1+1); outGain = CG(hslider("[3]output gain", 0, -30, 30, 0.1)):ba.db2linear; // make a linear array of values, from bottom to top LinArray(N,bottom,top) = par(i,N, ((top-bottom)*(i/(N-1)))+bottom); // make a log array of values, from bottom to top LogArray(N,bottom,top) = par(i,N, pow((pow((t/b),1/(N-1))),i)*b) with { b = bottom:max(ma.EPSILON); t = top:max(ma.EPSILON); }; EX(x) = tgroup("MBcompander", vgroup("[1]expander", x)); CO(x) = tgroup("MBcompander", vgroup("[2]compressor", x)); CG(x) = vgroup("[2]controlls", x); MG(x) = hgroup("[2]gain reduction", x); // make a bottom and a top version of a parameter BT(b,t) = CG(hgroup("[3]", vgroup("[1]bottom", b),vgroup("[2]top", t))); BTlo(b,t) = BT(b,t):LogArray(Nr_bands); BTli(b,t) = BT(b,t):LinArray(Nr_bands); Nr_bands = 8; Nr_crossoverFreqs = Nr_bands-1; prePost = 1; maxGR = -30; }; MSencode(on,l,r) = select2(on , l , ((l+r)/sqrt(2))) , select2(on , r , ((l-r)/sqrt(2))); MSdecode(on,m,s) = select2(on , m , ((m+s)/sqrt(2))) , select2(on , s , ((m-s)/sqrt(2)));
https://raw.githubusercontent.com/magnetophon/faustExperiments/e4fd48df103d79e80a8bc5c41afd5eb99712b2b9/8bandCompander.dsp
faust
import("stdfaust.lib"); DCblock(2) : MSencode(MSon) : : MSdecode(MSon) expanders scPlusInputsMono disgard the lowest two and the highest band, mix the rest, take the abs, div by Nr_bands, split them out: , (si.bus(Nr_bands) :> abs / Nr_bands <: si.bus(Nr_bands)) co.FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,meter,N); _<:(_, (ba.linear2db:max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; link_array = BTli(hslider("[9]link", 1, 0, 1, 0.1),hslider("[9]link", 0.2, 0, 1, 0.1)); make a linear array of values, from bottom to top make a log array of values, from bottom to top make a bottom and a top version of a parameter
declare name "Eight_band_Compander_N_chan"; declare version "0.1"; declare author "Bart Brouns"; declare license "AGPLv3"; import("/home/bart/source/faustlibraries/stdfaust.lib"); process = Eight_band_Compander_N_chan(2) ; DCblock(N) = par(i, N, ba.bypass1(fb==0,fi.dcblockerat(fb))); MSon = checkbox("MS on"); fb = hslider("dc block", 20, 0, 50, 0.1); Eight_band_Compander_N_chan(N) = inputGain : crossover : expanders : compressors : mixer : outputGain with { inputGain = par(i, N, _*inGain); crossover = ( (crossoverFreqs<:par(i, Nr_crossoverFreqs, _<:si.bus(N))) ,si.bus(N) ) <: ro.interleave(N,Nr_bands) : par(i, N, fi.crossover8LR4) : ro.interleave(Nr_bands,N); expanders = EX( (strength_array, thresh_array, range_array, att_array, hold_array, rel_array, knee_array , link_array, (ro.interleave(N,Nr_bands) :scPlusInputs )) : ro.interleave(Nr_bands,9+N) : par(i, Nr_bands, expander(meter(i+1),N,prePost,_,1)) ) ; scPlusInputsMono = si.bus(Nr_bands) <: ( (scMix_array , ((!,!,!,!,_,_,_,!) :> abs / hslider("div", 3, 1, 5, 0.1) <: si.bus(Nr_bands)) , par(i, Nr_bands, abs) ) :ro.interleave(Nr_bands,3) : par(i, Nr_bands, it.interpolate_linear) ),si.bus(Nr_bands) ; scPlusInputs = par(i, N, scPlusInputsMono) :(ro.crossNM(Nr_bands*2,Nr_bands),si.bus(Nr_bands)) :((ro.interleave(Nr_bands,2):par(i, Nr_bands, max) ),si.bus(2*Nr_bands)) ; compressors = CO( (strength_array , thresh_array , att_array , rel_array , knee_array , link_array, ro.interleave(N,Nr_bands)) : ro.interleave(Nr_bands,6+N) : par(i, Nr_bands, compressor(meter(i+1),N,prePost))); mixer = si.bus(N*Nr_bands):>si.bus(N); outputGain = par(i, N, _*outGain); expander(meter,N,prePost,SCfunction,SCswitch,strength,thresh,range,att,hold,rel,knee,link,SCsignal) = co.expanderSC_N_chan(strength,thresh,range,att,hold,rel,knee,prePost,link,meter,maxHold,N,SCfunction,SCswitch,SCsignal) with { maxHold = maxSR*1; maxSR = 192000; }; compressor(meter,N,prePost,strength,thresh,att,rel,knee,link) = co.FFcompressor_N_chan(strength,thresh,att,rel,knee,prePost,link,ba.linear2db:meter:ba.db2linear,N); meter(i) = _<:(_, (max(-40):min(0):MG(vbargraph("[%i][unit:dB]%i[tooltip: gain reduction in dB]", -40, 0)))):attach; inGain = CG(hslider("[1]input gain", 0, -30, 30, 0.1)):ba.db2linear; crossoverFreqs = BT(hslider("[1]freq", 60, 20, 20000, 1),hslider("[1]freq", 8000, 20, 20000, 1)):LogArray(Nr_crossoverFreqs); strength_array = BTli(hslider("[2]strength", 1, 0, 8, 0.1),hslider("[2]strength", 1, 0, 8, 0.1)); thresh_array = BTli(hslider("[3]thresh", -24, -60, 0, 0.1),hslider("[3]thresh", -24, -60, 0, 0.1)); range_array = BTli(hslider("[4]range", -24, -60, 0, 0.1),hslider("[4]range", -24, -60, 0, 0.1)); att_array = BTlo(hslider("[5]att", 13, 0, 100, 0.1)*0.001,hslider("[5]att", 0.1, 0, 100, 0.1)*0.001); hold_array = BTlo(hslider("[6]hold", 130, 1, 1000, 1)*0.001,hslider("[6]hold", 26, 1, 1000, 1)*0.001); rel_array = BTlo(hslider("[7]rel", 130, 1, 1000, 1)*0.001,hslider("[7]rel", 26, 1, 1000, 1)*0.001); knee_array = BTli(hslider("[8]knee", 0, 0, 30, 0.1),hslider("[8]knee", 30, 0, 30, 0.1)); link_array = par(i, Nr_bands, 0); scMix_array = BTli(hslider("[9]SC mix", 1, 0, 1, 0.1)*-1+1,hslider("[9]SC mix", 0.2, 0, 1, 0.1)*-1+1); outGain = CG(hslider("[3]output gain", 0, -30, 30, 0.1)):ba.db2linear; LinArray(N,bottom,top) = par(i,N, ((top-bottom)*(i/(N-1)))+bottom); LogArray(N,bottom,top) = par(i,N, pow((pow((t/b),1/(N-1))),i)*b) with { b = bottom:max(ma.EPSILON); t = top:max(ma.EPSILON); }; EX(x) = tgroup("MBcompander", vgroup("[1]expander", x)); CO(x) = tgroup("MBcompander", vgroup("[2]compressor", x)); CG(x) = vgroup("[2]controlls", x); MG(x) = hgroup("[2]gain reduction", x); BT(b,t) = CG(hgroup("[3]", vgroup("[1]bottom", b),vgroup("[2]top", t))); BTlo(b,t) = BT(b,t):LogArray(Nr_bands); BTli(b,t) = BT(b,t):LinArray(Nr_bands); Nr_bands = 8; Nr_crossoverFreqs = Nr_bands-1; prePost = 1; maxGR = -30; }; MSencode(on,l,r) = select2(on , l , ((l+r)/sqrt(2))) , select2(on , r , ((l-r)/sqrt(2))); MSdecode(on,m,s) = select2(on , m , ((m+s)/sqrt(2))) , select2(on , s , ((m-s)/sqrt(2)));
c459e294cf62bb9b4fdfa733b7751f369d54742ca2ef739403e167e520508304
olilarkin/pMixFaustNodes
WeirdPhaser.dsp
declare name "Weird Phaser"; declare description "Stereo Phaser based on SSB Modulation"; declare author "Oli Larkin ([email protected])"; declare copyright "Oliver Larkin"; declare version "0.1"; declare licence "GPL"; import("FrequencyShifter.lib"); import("stdfaust.lib"); lutsize = 1 << 9; sintable = float(ba.time)*(2.0*ma.PI)/float(lutsize) : sin; mix = 0.5; maxfeedback = 0.7; rate = hslider("Rate [unit:hz] [OWL:PARAMETER_A]", 0, 0., 1, 0.001); rateScalar = hslider("Rate Scalar [OWL:PARAMETER_B]", 1., 1., 40., 0.001); offset = hslider("L-R Offset [OWL:PARAMETER_C]", 0., 0., 1., 0.001) * 0.5; fbk = hslider("Feedback [OWL:PARAMETER_D]", 0., 0, 1., 0.01) : *(maxfeedback) : si.smooth(ba.tau2pole(0.005)); ssbfreqshift(x, offset) = (+ : negative) ~ (*(fbk) : clip(-1, 1)) with { negative(x) = real(x)*cosv - imag(x)*sinv; positive(x) = real(x)*cosv + imag(x)*sinv; real(x) = hilbert(x) : _ , !; imag(x) = hilbert(x) : ! , _; phasor = fmod(((rate*rateScalar)/float(ma.SR) : (+ : ma.decimal) ~ _)+offset, 1.); sinv = quadlookup(phasor) : _ , !; cosv = quadlookup(phasor) : ! , _; hilbert = hilbertef; clip(lo,hi) = min(hi) : max(lo); quadlookup(phase)=ss1+d*(ss2-ss1), sc1+d*(sc2-sc1) with { sini = int(phase * lutsize); d = ma.decimal(phase * lutsize); cosi = int(fmod((phase * lutsize)+(lutsize*0.25), lutsize)); ss1 = rdtable(lutsize+1, sintable, sini); ss2 = rdtable(lutsize+1, sintable, sini+1); sc1 = rdtable(lutsize+1, sintable, cosi); sc2 = rdtable(lutsize+1, sintable, cosi+1); }; }; process(l,r) = l,r <: *(1-mix), *(1-mix), ssbfreqshift(l, 0.)*mix, ssbfreqshift(r, offset)*mix :> _,_;
https://raw.githubusercontent.com/olilarkin/pMixFaustNodes/20da57783b03841f023a7edd4a3215ab3155218e/WeirdPhaser.dsp
faust
declare name "Weird Phaser"; declare description "Stereo Phaser based on SSB Modulation"; declare author "Oli Larkin ([email protected])"; declare copyright "Oliver Larkin"; declare version "0.1"; declare licence "GPL"; import("FrequencyShifter.lib"); import("stdfaust.lib"); lutsize = 1 << 9; sintable = float(ba.time)*(2.0*ma.PI)/float(lutsize) : sin; mix = 0.5; maxfeedback = 0.7; rate = hslider("Rate [unit:hz] [OWL:PARAMETER_A]", 0, 0., 1, 0.001); rateScalar = hslider("Rate Scalar [OWL:PARAMETER_B]", 1., 1., 40., 0.001); offset = hslider("L-R Offset [OWL:PARAMETER_C]", 0., 0., 1., 0.001) * 0.5; fbk = hslider("Feedback [OWL:PARAMETER_D]", 0., 0, 1., 0.01) : *(maxfeedback) : si.smooth(ba.tau2pole(0.005)); ssbfreqshift(x, offset) = (+ : negative) ~ (*(fbk) : clip(-1, 1)) with { negative(x) = real(x)*cosv - imag(x)*sinv; positive(x) = real(x)*cosv + imag(x)*sinv; real(x) = hilbert(x) : _ , !; imag(x) = hilbert(x) : ! , _; phasor = fmod(((rate*rateScalar)/float(ma.SR) : (+ : ma.decimal) ~ _)+offset, 1.); sinv = quadlookup(phasor) : _ , !; cosv = quadlookup(phasor) : ! , _; hilbert = hilbertef; clip(lo,hi) = min(hi) : max(lo); quadlookup(phase)=ss1+d*(ss2-ss1), sc1+d*(sc2-sc1) with { sini = int(phase * lutsize); d = ma.decimal(phase * lutsize); cosi = int(fmod((phase * lutsize)+(lutsize*0.25), lutsize)); ss1 = rdtable(lutsize+1, sintable, sini); ss2 = rdtable(lutsize+1, sintable, sini+1); sc1 = rdtable(lutsize+1, sintable, cosi); sc2 = rdtable(lutsize+1, sintable, cosi+1); }; }; process(l,r) = l,r <: *(1-mix), *(1-mix), ssbfreqshift(l, 0.)*mix, ssbfreqshift(r, offset)*mix :> _,_;
1f710659138b9a83a771147cf51fa2f3a35da2940ee34002c2d7e55ebd6c87c1
SMERM/BN-Tedesco
karplus_filtrato.dsp
declare name "Karplus_filtrato"; declare version "1.1"; declare author "DT"; declare license "BSD"; //----------------------------------------------------------- // Karplus-Strong synhtesis based on the GRAME example //----------------------------------------------------------- import("stdfaust.lib"); import("music.lib"); // Eccitatore //-------- upfront(x) = (x-x') > 0.0; decay(n,x) = x - (x>0.0)/n; release(n) = + ~ decay(n); trigger(n) = upfront : release(n) : >(0.0); size = hslider("excitation (samples)", 256, 2, 1024, 1); // Risuonatore //----------------- dur = hslider("duration (samples)", 256, 2, 1024, 1); att = hslider("attenuation", 0.1, 0, 1, 0.01); average(x) = (x+x')/2; resonator(d, a) = (+ : delay(4096, d-1.5)) ~ (average : *(1.0-a)) ; process = noise * hslider("Volume", 0.5, 0, 1, 0.01) : vgroup("Eccitatore", *(button("play"): trigger(size))) : vgroup("Risuonatore", resonator(dur, att)) :dm.filterbank_demo<: attach(_,abs : ba.linear2db : hbargraph("Level[style:dB]",-60,0));
https://raw.githubusercontent.com/SMERM/BN-Tedesco/2a77e1707f7e64c512dd40d58d29c0db8092463d/COME-02/Lezioni_in_Compresenza/20200324/karplus_filtrato.dsp
faust
----------------------------------------------------------- Karplus-Strong synhtesis based on the GRAME example ----------------------------------------------------------- Eccitatore -------- Risuonatore -----------------
declare name "Karplus_filtrato"; declare version "1.1"; declare author "DT"; declare license "BSD"; import("stdfaust.lib"); import("music.lib"); upfront(x) = (x-x') > 0.0; decay(n,x) = x - (x>0.0)/n; release(n) = + ~ decay(n); trigger(n) = upfront : release(n) : >(0.0); size = hslider("excitation (samples)", 256, 2, 1024, 1); dur = hslider("duration (samples)", 256, 2, 1024, 1); att = hslider("attenuation", 0.1, 0, 1, 0.01); average(x) = (x+x')/2; resonator(d, a) = (+ : delay(4096, d-1.5)) ~ (average : *(1.0-a)) ; process = noise * hslider("Volume", 0.5, 0, 1, 0.01) : vgroup("Eccitatore", *(button("play"): trigger(size))) : vgroup("Risuonatore", resonator(dur, att)) :dm.filterbank_demo<: attach(_,abs : ba.linear2db : hbargraph("Level[style:dB]",-60,0));
ee4650202d4dd936474d88c44dc490b86c1d24a1a6b72a4972e5b961dcf904e2
SMERM/BN-Tedesco
Karplus-Strong_Midi_Poly.dsp
declare name "Karplus-Strong_Midi_Poly"; declare version "1.0"; declare author "DT"; declare license "BSD"; declare options "[osc:on]"; //MIDI e OSC implementation declare options "[midi:on][nvoices:6]"; //----------------------------------------------------------- // Karplus-Strong synhtesis based on the GRAME example //----------------------------------------------------------- import("stdfaust.lib"); import("music.lib"); // Eccitatore //-------- upfront(x) = (x-x') > 0.0; decay(n,x) = x - (x>0.0)/n; release(n) = + ~ decay(n); trigger(n) = upfront : release(n) : >(0.0); size = hslider("excitation (samples)", 256, 2, 1024, 1); // Risuonatore //----------------- dur = hslider("duration (samples)", 256, 2, 1024, 1); att = hslider("attenuation", 0.1, 0, 1, 0.01); average(x) = (x+x')/2; resonator(d, a) = (+ : delay(4096, d-1.5)) ~ (average : *(1.0-a)) ; process = noise * hslider("Volume", 0.5, 0, 1, 0.01) : vgroup("Eccitatore", *(button("play"): trigger(size))) : vgroup("Risuonatore", resonator(dur, att)) :dm.filterbank_demo<: attach(_,abs : ba.linear2db : hbargraph("Level[style:dB]",-60,0));
https://raw.githubusercontent.com/SMERM/BN-Tedesco/2a77e1707f7e64c512dd40d58d29c0db8092463d/COME-02/Lezioni_in_Compresenza/20200407/Karplus-Strong_Midi_Poly.dsp
faust
MIDI e OSC implementation ----------------------------------------------------------- Karplus-Strong synhtesis based on the GRAME example ----------------------------------------------------------- Eccitatore -------- Risuonatore -----------------
declare name "Karplus-Strong_Midi_Poly"; declare version "1.0"; declare author "DT"; declare license "BSD"; declare options "[midi:on][nvoices:6]"; import("stdfaust.lib"); import("music.lib"); upfront(x) = (x-x') > 0.0; decay(n,x) = x - (x>0.0)/n; release(n) = + ~ decay(n); trigger(n) = upfront : release(n) : >(0.0); size = hslider("excitation (samples)", 256, 2, 1024, 1); dur = hslider("duration (samples)", 256, 2, 1024, 1); att = hslider("attenuation", 0.1, 0, 1, 0.01); average(x) = (x+x')/2; resonator(d, a) = (+ : delay(4096, d-1.5)) ~ (average : *(1.0-a)) ; process = noise * hslider("Volume", 0.5, 0, 1, 0.01) : vgroup("Eccitatore", *(button("play"): trigger(size))) : vgroup("Risuonatore", resonator(dur, att)) :dm.filterbank_demo<: attach(_,abs : ba.linear2db : hbargraph("Level[style:dB]",-60,0));
b3b7dadd7baed5f597d9eb24211602ba06779446b844e0f033b7bc853c0d899e
grame-cncm/smartfaust
sfTrashRing.dsp
declare name "sfTrashRing"; declare version "0.4"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); //-------------------- MAIN ------------------------------- process = ringmod_drywet:*(gain):*(volume)*(out) with { gain = hslider ("v:sfTrashRing parameter(s)/gain[acc:2 1 -10 0 10][color:255 255 0][hidden:1]",0.2,0,1,0.001):fi.lowpass(1,1):max(0):min(1); volume = vslider ("h:sfTrashRing/Volume",1,0,2,0.001):si.smooth(0.998):max(0):min(2); out = checkbox ("h:sfTrashRing/ON/OFF"):si.smooth(0.998); }; //----------------------------------------------------------- ///////////////////// // RING MODULATOR /// ringmod = os.oscs(freq),_:* with { freq = hslider ( "v:sfTrashRing parameter(s)/freq [acc:0 0 -10 0 10][color:255 0 0][hidden:1]",1000,0,2000,1):si.smooth(0.998); }; dry_wet(x,y) = (1-c)*x + c*y with { c = hslider("v:sfTrashRing parameter(s)/dry_wet [acc:1 0 -10 0 10][color:255 255 0][hidden:1] ",50,0,100,0.01):*(0.01):fi.lowpass(1,1):max(0):min(1); }; ringmod_drywet = _<: _ , ringmod: dry_wet;
https://raw.githubusercontent.com/grame-cncm/smartfaust/0a9c93ea7eda9899e1401402901848f221366c99/src/sfTrashRing/sfTrashRing.dsp
faust
-------------------- MAIN ------------------------------- ----------------------------------------------------------- /////////////////// RING MODULATOR ///
declare name "sfTrashRing"; declare version "0.4"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); process = ringmod_drywet:*(gain):*(volume)*(out) with { gain = hslider ("v:sfTrashRing parameter(s)/gain[acc:2 1 -10 0 10][color:255 255 0][hidden:1]",0.2,0,1,0.001):fi.lowpass(1,1):max(0):min(1); volume = vslider ("h:sfTrashRing/Volume",1,0,2,0.001):si.smooth(0.998):max(0):min(2); out = checkbox ("h:sfTrashRing/ON/OFF"):si.smooth(0.998); }; ringmod = os.oscs(freq),_:* with { freq = hslider ( "v:sfTrashRing parameter(s)/freq [acc:0 0 -10 0 10][color:255 0 0][hidden:1]",1000,0,2000,1):si.smooth(0.998); }; dry_wet(x,y) = (1-c)*x + c*y with { c = hslider("v:sfTrashRing parameter(s)/dry_wet [acc:1 0 -10 0 10][color:255 255 0][hidden:1] ",50,0,100,0.01):*(0.01):fi.lowpass(1,1):max(0):min(1); }; ringmod_drywet = _<: _ , ringmod: dry_wet;
fd9bfd7d87ba40fcc1219589fbc005a79400ef538d9f91a701b3447f5797c435
grame-cncm/smartfaust
grain_pitch_shifter2_v0.2.dsp
declare name "sfPitchShifter"; declare version "1.02"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); //-------------------- MAIN ------------------------------- process = pitchshifter; // from FAUST example and adapted by Christophe Lebreton //---------------------------- // very simple real time pitch shifter //---------------------------- transpose (w, x, s, sig) = de.fdelay1s(d,sig)*ma.fmin(d/x,1) + de.fdelay1s(d+w,sig)*(1-ma.fmin(d/x,1)) with { i = 1 - pow(2, s/12); d = i : (+ : +(w) : fmod(_,w)) ~ _; }; pitchshifter = transpose(w,x,s) with { //w = hslider("window [units (ms)]", 75, 10, 1000, 1)*SR*0.001; w = (75)*ma.SR*(0.001); //x = hslider("xfade [units (ms)]", 10, 1, 500, 1)*SR*0.001 : smooth (0.99); x = w * 0.5; s = (hslider("v:sfGrain parameter(s)/shift [units (cents)] [acc:0 0 -10 0 10][color: 255 0 0 ][hidden:1] ", 0, -600, 200, 0.1))*0.01 :fi.lowpass(1,1); }; dry_wet(x,y) = (1-c)*x + c*y with { c = hslider("v:sfGrain parameter(s)/dry_wet [acc:2 0 -10 0 10][color: 0 255 0 ][hidden:1] ",100,0,100,0.01):*(0.01):fi.lowpass(1,1); }; pitchshifter_drywet = _<: _ , pitchshifter: dry_wet;
https://raw.githubusercontent.com/grame-cncm/smartfaust/0a9c93ea7eda9899e1401402901848f221366c99/src/sfGrain/grain_pitch_shifter2_v0.2.dsp
faust
-------------------- MAIN ------------------------------- from FAUST example and adapted by Christophe Lebreton ---------------------------- very simple real time pitch shifter ---------------------------- w = hslider("window [units (ms)]", 75, 10, 1000, 1)*SR*0.001; x = hslider("xfade [units (ms)]", 10, 1, 500, 1)*SR*0.001 : smooth (0.99);
declare name "sfPitchShifter"; declare version "1.02"; declare author "Christophe Lebreton"; declare license "BSD"; declare copyright "SmartFaust - GRAME(c)2013-2018"; import("stdfaust.lib"); process = pitchshifter; transpose (w, x, s, sig) = de.fdelay1s(d,sig)*ma.fmin(d/x,1) + de.fdelay1s(d+w,sig)*(1-ma.fmin(d/x,1)) with { i = 1 - pow(2, s/12); d = i : (+ : +(w) : fmod(_,w)) ~ _; }; pitchshifter = transpose(w,x,s) with { w = (75)*ma.SR*(0.001); x = w * 0.5; s = (hslider("v:sfGrain parameter(s)/shift [units (cents)] [acc:0 0 -10 0 10][color: 255 0 0 ][hidden:1] ", 0, -600, 200, 0.1))*0.01 :fi.lowpass(1,1); }; dry_wet(x,y) = (1-c)*x + c*y with { c = hslider("v:sfGrain parameter(s)/dry_wet [acc:2 0 -10 0 10][color: 0 255 0 ][hidden:1] ",100,0,100,0.01):*(0.01):fi.lowpass(1,1); }; pitchshifter_drywet = _<: _ , pitchshifter: dry_wet;
947bfa33d4f8568eafb4c8c5e8db7184e9bffb76f016cbe44ea085c1521bc988
friskgit/snares
disperse_filtered_sound.dsp
// -*- compile-command: "cd .. && make jack src=src/disperse_filtered_sound.dsp && cd -"; -*- declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); //---------------`takes a filtered sound and disperses it` -------------------------- // // Take the output of a filterbank and alter the routing of the channels. Takes the impulse as its first input // // Parameter 'bands' is set at compile time. // // 18 Juli 2019 Henrik Frisk [email protected] //--------------------------------------------------- bands = 8; channels = 2; t = 0; // Extract the impulse trigger(x) = t; // Control the output channel // distribute = process(x) = par(i, bands, ba.selectoutn(bands, i));
https://raw.githubusercontent.com/friskgit/snares/bb43ea5e706a0ead6d65dd176a5c492b2f5d8f74/faust/snare/src/disperse_filtered_sound.dsp
faust
-*- compile-command: "cd .. && make jack src=src/disperse_filtered_sound.dsp && cd -"; -*- ---------------`takes a filtered sound and disperses it` -------------------------- Take the output of a filterbank and alter the routing of the channels. Takes the impulse as its first input Parameter 'bands' is set at compile time. 18 Juli 2019 Henrik Frisk [email protected] --------------------------------------------------- Extract the impulse Control the output channel distribute =
declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); bands = 8; channels = 2; t = 0; trigger(x) = t; process(x) = par(i, bands, ba.selectoutn(bands, i));
bca234c23ef32c7411bac1f03588369b89fdc5b55345d01836adf24fb2365562
steveb/gula-plugins
pequed.dsp
declare name "Pequed"; declare author "GULA"; declare copyright "Steve Baker (2022)"; declare version "1.0.0"; declare license "GPLv3"; declare description "Midrange parametic EQ with high and low values interpolated based on the peak amplitude of the input"; import("stdfaust.lib"); import("gula.lib"); freq_hi = hslider("[01]freq_hi[name:Freq Hi][tooltip:frequency (Hz)]", 900, 100, 2400, 10); gain_hi = hslider("[02]gain_hi[name:Gain Hi][unit:dB]", 0, -40, 40, 0.1); freq_lo = hslider("[03]freq_lo[name:Freq Lo][tooltip:frequency (Hz)]", 900, 100, 2400, 10); gain_lo = hslider("[04]gain_lo[name:Gain Lo][unit:dB]", 0, -40, 40, 0.1); q_mult = 0.2; q_a = gain_lo : abs * q_mult, 0.1 : max; q_b = gain_hi : abs * q_mult, 0.1 : max; attack = hslider("[05]attack[unit:s][name: Attack]", 0.01, 0, 0.5, 0.01); release = hslider("[06]release[unit:s][name: Release]", 0.5, 0, 2, 0.01); peak_decay = release * 10; process = _ <: gula_ab_amp(attack, release, peak_decay) , _ : gula_ab_filter(freq_lo, gain_lo, q_a, freq_hi, gain_hi, q_b) : _;
https://raw.githubusercontent.com/steveb/gula-plugins/65b328f6d025171149d485c8aed83eaa377db60e/src/pequed.dsp
faust
declare name "Pequed"; declare author "GULA"; declare copyright "Steve Baker (2022)"; declare version "1.0.0"; declare license "GPLv3"; declare description "Midrange parametic EQ with high and low values interpolated based on the peak amplitude of the input"; import("stdfaust.lib"); import("gula.lib"); freq_hi = hslider("[01]freq_hi[name:Freq Hi][tooltip:frequency (Hz)]", 900, 100, 2400, 10); gain_hi = hslider("[02]gain_hi[name:Gain Hi][unit:dB]", 0, -40, 40, 0.1); freq_lo = hslider("[03]freq_lo[name:Freq Lo][tooltip:frequency (Hz)]", 900, 100, 2400, 10); gain_lo = hslider("[04]gain_lo[name:Gain Lo][unit:dB]", 0, -40, 40, 0.1); q_mult = 0.2; q_a = gain_lo : abs * q_mult, 0.1 : max; q_b = gain_hi : abs * q_mult, 0.1 : max; attack = hslider("[05]attack[unit:s][name: Attack]", 0.01, 0, 0.5, 0.01); release = hslider("[06]release[unit:s][name: Release]", 0.5, 0, 2, 0.01); peak_decay = release * 10; process = _ <: gula_ab_amp(attack, release, peak_decay) , _ : gula_ab_filter(freq_lo, gain_lo, q_a, freq_hi, gain_hi, q_b) : _;
729c552555fed07a4c517fb1098d8505b2158cc9581725e90919698793239abe
mzuther/Screamer
screamer.dsp
/* ---------------------------------------------------------------------------- Screamer ======== Mathematical distortion and signal mangling Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Thank you for using free software! ---------------------------------------------------------------------------- */ declare name "Screamer"; declare version "1.4.0"; declare copyright "(c) 2003-2020 Martin Zuther"; declare license "GPL v3 or later"; import("stdfaust.lib"); mz = component("mzuther.dsp"); mathematical_overdrive = component("mathematical_overdrive.dsp").overdrive; clip_distortion = component("clip_distortion.dsp").distortion; modulo_distortion = component("modulo_distortion.dsp").distortion; fractional_downsampler = component("fractional_downsampler.dsp").downsampler; main_group(x) = hgroup("", x); ovrd_group(x) = main_group(vgroup("[1] Mathematical overdrive", x)); clip_group(x) = main_group(vgroup("[2] Clip distortion", x)); mdst_group(x) = main_group(vgroup("[3] Modulo distortion", x)); dwns_group(x) = main_group(vgroup("[4] Fractional downsampler", x)); ovrd_threshold = ovrd_group(hslider( "[1] Threshold (0 disables) [style:slider][unit:dB]" , 0.0 , -40.0 , 0.0 , 1.0)); ovrd_drive = ovrd_group(hslider( "[2] Drive [style:slider][unit:exp]" , 10.0 , 1.0 , 100.0 , 1.0)); ovrd_gain = ovrd_group(hslider( "[3] Output gain [style:slider][unit:dB]" , 0.0 , -6.0 , 6.0 , 1.0)); clip_threshold = clip_group(hslider( "[1] Threshold (0 disables) [style:slider][unit:dB]" , 0.0 , -40.0 , 0.0 , 1.0)); clip_drive = clip_group(hslider( "[2] Drive [style:slider][unit:exp]" , 10.0 , 0.0 , 100.0 , 1.0)); clip_crucify = clip_group(checkbox( "[3] Crucify")); mdst_modulo = mdst_group(hslider( "[1] Modulo (1 disables)" , 1 , 1 , 1e4 , 1)); dwns_factor = dwns_group(hslider( "[1] Factor (0.99 disables) [style:slider][unit:x]" , 0.99 , 0.99 , 32.0 , 0.01)); dwns_lfo_freq = dwns_group(hslider( "[2] LFO frequency [style:slider][unit:Hz]" , 0.0 , 0.0 , 10.0 , 0.01)); dwns_lfo_mod = dwns_group(hslider( "[3] LFO modulation [style:slider][unit:%]" , 0.0 , 0.0 , 100.0 , 1.0)); process = mz.stereo( mathematical_overdrive(ovrd_threshold , ovrd_drive , ovrd_gain) : clip_distortion(clip_threshold, clip_drive , clip_crucify) : modulo_distortion(mdst_modulo) : fractional_downsampler(dwns_factor , dwns_lfo_freq , dwns_lfo_mod) );
https://raw.githubusercontent.com/mzuther/Screamer/46ec0f5d49ecf9af455a791ee2b813c5e9de1a66/modules/screamer.dsp
faust
---------------------------------------------------------------------------- Screamer ======== Mathematical distortion and signal mangling Copyright (c) 2003-2020 Martin Zuther (http://www.mzuther.de/) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Thank you for using free software! ----------------------------------------------------------------------------
declare name "Screamer"; declare version "1.4.0"; declare copyright "(c) 2003-2020 Martin Zuther"; declare license "GPL v3 or later"; import("stdfaust.lib"); mz = component("mzuther.dsp"); mathematical_overdrive = component("mathematical_overdrive.dsp").overdrive; clip_distortion = component("clip_distortion.dsp").distortion; modulo_distortion = component("modulo_distortion.dsp").distortion; fractional_downsampler = component("fractional_downsampler.dsp").downsampler; main_group(x) = hgroup("", x); ovrd_group(x) = main_group(vgroup("[1] Mathematical overdrive", x)); clip_group(x) = main_group(vgroup("[2] Clip distortion", x)); mdst_group(x) = main_group(vgroup("[3] Modulo distortion", x)); dwns_group(x) = main_group(vgroup("[4] Fractional downsampler", x)); ovrd_threshold = ovrd_group(hslider( "[1] Threshold (0 disables) [style:slider][unit:dB]" , 0.0 , -40.0 , 0.0 , 1.0)); ovrd_drive = ovrd_group(hslider( "[2] Drive [style:slider][unit:exp]" , 10.0 , 1.0 , 100.0 , 1.0)); ovrd_gain = ovrd_group(hslider( "[3] Output gain [style:slider][unit:dB]" , 0.0 , -6.0 , 6.0 , 1.0)); clip_threshold = clip_group(hslider( "[1] Threshold (0 disables) [style:slider][unit:dB]" , 0.0 , -40.0 , 0.0 , 1.0)); clip_drive = clip_group(hslider( "[2] Drive [style:slider][unit:exp]" , 10.0 , 0.0 , 100.0 , 1.0)); clip_crucify = clip_group(checkbox( "[3] Crucify")); mdst_modulo = mdst_group(hslider( "[1] Modulo (1 disables)" , 1 , 1 , 1e4 , 1)); dwns_factor = dwns_group(hslider( "[1] Factor (0.99 disables) [style:slider][unit:x]" , 0.99 , 0.99 , 32.0 , 0.01)); dwns_lfo_freq = dwns_group(hslider( "[2] LFO frequency [style:slider][unit:Hz]" , 0.0 , 0.0 , 10.0 , 0.01)); dwns_lfo_mod = dwns_group(hslider( "[3] LFO modulation [style:slider][unit:%]" , 0.0 , 0.0 , 100.0 , 1.0)); process = mz.stereo( mathematical_overdrive(ovrd_threshold , ovrd_drive , ovrd_gain) : clip_distortion(clip_threshold, clip_drive , clip_crucify) : modulo_distortion(mdst_modulo) : fractional_downsampler(dwns_factor , dwns_lfo_freq , dwns_lfo_mod) );
31922741e683997b4fd05f4357a067b92f63fa1930c64bcf59f89c691a95555d
evinism/audimon
sonify.dsp
declare name "volumecontrol"; declare version "1.0"; declare author "Franz Heinzmann"; declare license "BSD"; declare options "[osc:on]"; import("stdfaust.lib"); stereo(func) = _,_ : func(_),func(_) : _,_; volumeM = *(vslider("volume", 0, -70, +4, 0.1) : ba.db2linear : si.smoo); volume = stereo(volumeM); /* Process has several inputs: 1: CPU usage (0 to 1) */ positive_only(sig) = select2(sig >= 0, 0, sig); derivative = _ <: _, @(1) : _ - _ : positive_only : an.abs_envelope_rect(0.2) : _; power(sig, num) = prod(i, num, sig); // Status tone! base_freq = 110; lo_freq(cpu) = base_freq * (1 + cpu); hi_freq(cpu) = base_freq * (1 + 3 * cpu); status_tone( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = ( os.osc(lo_freq(cpu_load)) / 2 + os.osc(hi_freq(cpu_load)) ) * (derivative(cpu_load) * 10 * 960 + cpu_load * 0.1) <: _, _; neg_respecting_square = _ <: _ * _ * _; randompan(sig) = no.noise : (neg_respecting_square(_) / 2) + 0.5 <: _ * sig, (1 - _) * sig; packet_sounder( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = incoming_packet_stream * 0.05, outgoing_packet_stream * 0.05: _ , _ ; // panning signal expected -1 to 1 inclusive pan_by_6db(sig, panning) = sig <: _ * (panning + 1) / 2, _ * (-panning + 1) / 2; pan_by_3db(sig, panning) = sig <: _ * cos(ma.PI * (panning + 1) / 4), _ * sin(ma.PI * (panning + 1) / 4); pan_by = pan_by_3db; panned_process( freq, process_stream, process_pan ) = sy.combString(freq, 0.1, process_stream) * 0.2 : pan_by(_, process_pan); process_sounder( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = panned_process(hi_freq(cpu_load) * 2, pos_process_stream, pos_process_pan), panned_process(hi_freq(cpu_load), neg_process_stream, neg_process_pan) :> _, _; memory_pressure_aleter( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = os.lf_squarewavepos((2 / (1.2 - power(mem_load, 10)))) : _ * 0.5 + 1 : hi_freq(cpu_load) * _ : os.square : _ * power(mem_load, 25) * 0.05 <: _, _; process = _, _, _, _, _, _, _, _ <: process_sounder :> _ * 0.25, _ * 0.25 : volume : _,_;
https://raw.githubusercontent.com/evinism/audimon/ceb854fa619efb2140bc48ddf0320633583b3431/daemon/dsp/sonify.dsp
faust
Process has several inputs: 1: CPU usage (0 to 1) Status tone! panning signal expected -1 to 1 inclusive
declare name "volumecontrol"; declare version "1.0"; declare author "Franz Heinzmann"; declare license "BSD"; declare options "[osc:on]"; import("stdfaust.lib"); stereo(func) = _,_ : func(_),func(_) : _,_; volumeM = *(vslider("volume", 0, -70, +4, 0.1) : ba.db2linear : si.smoo); volume = stereo(volumeM); positive_only(sig) = select2(sig >= 0, 0, sig); derivative = _ <: _, @(1) : _ - _ : positive_only : an.abs_envelope_rect(0.2) : _; power(sig, num) = prod(i, num, sig); base_freq = 110; lo_freq(cpu) = base_freq * (1 + cpu); hi_freq(cpu) = base_freq * (1 + 3 * cpu); status_tone( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = ( os.osc(lo_freq(cpu_load)) / 2 + os.osc(hi_freq(cpu_load)) ) * (derivative(cpu_load) * 10 * 960 + cpu_load * 0.1) <: _, _; neg_respecting_square = _ <: _ * _ * _; randompan(sig) = no.noise : (neg_respecting_square(_) / 2) + 0.5 <: _ * sig, (1 - _) * sig; packet_sounder( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = incoming_packet_stream * 0.05, outgoing_packet_stream * 0.05: _ , _ ; pan_by_6db(sig, panning) = sig <: _ * (panning + 1) / 2, _ * (-panning + 1) / 2; pan_by_3db(sig, panning) = sig <: _ * cos(ma.PI * (panning + 1) / 4), _ * sin(ma.PI * (panning + 1) / 4); pan_by = pan_by_3db; panned_process( freq, process_stream, process_pan ) = sy.combString(freq, 0.1, process_stream) * 0.2 : pan_by(_, process_pan); process_sounder( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = panned_process(hi_freq(cpu_load) * 2, pos_process_stream, pos_process_pan), panned_process(hi_freq(cpu_load), neg_process_stream, neg_process_pan) :> _, _; memory_pressure_aleter( cpu_load, mem_load, incoming_packet_stream, outgoing_packet_stream, pos_process_stream, pos_process_pan, neg_process_stream, neg_process_pan ) = os.lf_squarewavepos((2 / (1.2 - power(mem_load, 10)))) : _ * 0.5 + 1 : hi_freq(cpu_load) * _ : os.square : _ * power(mem_load, 25) * 0.05 <: _, _; process = _, _, _, _, _, _, _, _ <: process_sounder :> _ * 0.25, _ * 0.25 : volume : _,_;
4e35edb7f5ab0fecc7b880a2df43804910865985824f25ccb9b4e09f1061ce0f
sekisushai/ambitools
hoa_converter_acn_n3d_to_acn_sn3d.dsp
declare name "HOA Converter : ACN N3D to ACN SN3D"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2016"; import("stdfaust.lib"); import("gui.lib"); //Description : this tool converts HOA signals defined with a convention 1 to HOA signals defined with convention 2. Proposed conventions are ACN N3D, ACN SN3D, FuMa. For ACN to FuMa, the ordering change is as in [1] //[1] https://en.wikipedia.org/wiki/Ambisonic_data_exchange_formats // Input ACN: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // Output FuMa: 0 3 1 2 6 7 5 8 4 12 13 11 14 10 15 9 : W XYZ RSTUV KLMNOPQ // Input FuMa: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 : W XYZ RSTUV KLMNOPQ // Output ACN: 0 2 3 1 6 8 4 5 7 15 13 11 9 10 12 14 // Maximum required order (M = 3 for FuMa). M = 10; // Number of inputs ins = (M+1)^2; outs = ins; // ACN_N3D Input conversion(1,2) = par(m,M+1,par(n,2*m+1,_*(1/sqrt(2*m+1)))); // ACN_N3D to ACN_SN3D process = si.bus(ins):hgroup("[1]ACN N3D",par(i,M+1,meterm(i))):conversion(1,2):hgroup("[2]ACN SN3D",par(i,M+1,meterm(i)));
https://raw.githubusercontent.com/sekisushai/ambitools/2d21b7cc7cfe9bc35d91d51ec05bf9250372f0ce/Faust/src/hoa_converter_acn_n3d_to_acn_sn3d.dsp
faust
Description : this tool converts HOA signals defined with a convention 1 to HOA signals defined with convention 2. Proposed conventions are ACN N3D, ACN SN3D, FuMa. For ACN to FuMa, the ordering change is as in [1] [1] https://en.wikipedia.org/wiki/Ambisonic_data_exchange_formats Input ACN: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Output FuMa: 0 3 1 2 6 7 5 8 4 12 13 11 14 10 15 9 : W XYZ RSTUV KLMNOPQ Input FuMa: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 : W XYZ RSTUV KLMNOPQ Output ACN: 0 2 3 1 6 8 4 5 7 15 13 11 9 10 12 14 Maximum required order (M = 3 for FuMa). Number of inputs ACN_N3D Input ACN_N3D to ACN_SN3D
declare name "HOA Converter : ACN N3D to ACN SN3D"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2016"; import("stdfaust.lib"); import("gui.lib"); M = 10; ins = (M+1)^2; outs = ins; process = si.bus(ins):hgroup("[1]ACN N3D",par(i,M+1,meterm(i))):conversion(1,2):hgroup("[2]ACN SN3D",par(i,M+1,meterm(i)));
e1c1ce178b89581c7acb08db876380bbe301ca8caeb2037e48ac2867fbff76ad
sekisushai/ambitools
hoa_converter_acn_sn3d_to_acn_n3d.dsp
declare name "HOA Converter : ACN SN3D to ACN N3D"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2016"; import("stdfaust.lib"); import("gui.lib"); //Description : this tool converts HOA signals defined with a convention 1 to HOA signals defined with convention 2. Proposed conventions are ACN N3D, ACN SN3D, FuMa. For ACN to FuMa, the ordering change is as in [1] //[1] https://en.wikipedia.org/wiki/Ambisonic_data_exchange_formats // Input ACN: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // Output FuMa: 0 3 1 2 6 7 5 8 4 12 13 11 14 10 15 9 : W XYZ RSTUV KLMNOPQ // Input FuMa: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 : W XYZ RSTUV KLMNOPQ // Output ACN: 0 2 3 1 6 8 4 5 7 15 13 11 9 10 12 14 // Maximum required order (M = 3 for FuMa). M = 10; // Number of inputs ins = (M+1)^2; outs = ins; // ACN_SN3D Input conversion(2,1) = par(m,M+1,par(n,2*m+1,_*sqrt(2*m+1))); // ACN_SN3D to ACN_N3D process = si.bus(ins):hgroup("[1]ACN SN3D",par(i,M+1,meterm(i))):conversion(2,1):hgroup("[2]ACN N3D",par(i,M+1,meterm(i)));
https://raw.githubusercontent.com/sekisushai/ambitools/2d21b7cc7cfe9bc35d91d51ec05bf9250372f0ce/Faust/src/hoa_converter_acn_sn3d_to_acn_n3d.dsp
faust
Description : this tool converts HOA signals defined with a convention 1 to HOA signals defined with convention 2. Proposed conventions are ACN N3D, ACN SN3D, FuMa. For ACN to FuMa, the ordering change is as in [1] [1] https://en.wikipedia.org/wiki/Ambisonic_data_exchange_formats Input ACN: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Output FuMa: 0 3 1 2 6 7 5 8 4 12 13 11 14 10 15 9 : W XYZ RSTUV KLMNOPQ Input FuMa: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 : W XYZ RSTUV KLMNOPQ Output ACN: 0 2 3 1 6 8 4 5 7 15 13 11 9 10 12 14 Maximum required order (M = 3 for FuMa). Number of inputs ACN_SN3D Input ACN_SN3D to ACN_N3D
declare name "HOA Converter : ACN SN3D to ACN N3D"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2016"; import("stdfaust.lib"); import("gui.lib"); M = 10; ins = (M+1)^2; outs = ins; process = si.bus(ins):hgroup("[1]ACN SN3D",par(i,M+1,meterm(i))):conversion(2,1):hgroup("[2]ACN N3D",par(i,M+1,meterm(i)));
bd3835f592f43df89d28474b0bffa51d602471ff4def8f6f7c85ca67a09044a3
sekisushai/ambitools
hoa_mic_encoder_lebedev06.dsp
declare name "MemsBedev HOA Encoder"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2014"; // Description: This tool does the Discrete Spherical Fourier Transform (DSFT) [1] of signal from a rigid spherical microphone with 50-node Lebedev grid geometry [1]. // CAUTION: This tool does only the DSFT, to obtain the Ambisonics components you should filter the signals with corresponding radial filters [1]. // Inputs: 26 // Outputs: (M+1)^2 // References: // [1] P. Lecomte, P.-A. Gauthier, C. Langrenne, A. Garcia, and A. Berry, “On the use of a Lebedev grid for Ambisonics,” in Audio Engineering Society Convention 139, 2015. import("stdfaust.lib"); import("lebedev.lib"); import("ymn.lib"); import("gui.lib"); // Maximum order M=1 for 6-node Lebedev grid [1]. M = 1; ins = 6; outs = (M+1)^2; vol = hslider("[1]Gain[unit:dB][style:knob]", 0, -10, 50, 0.1) : ba.db2linear : si.smooth(0.999); // Vector of weighted spherical harmonics : spherical harmonics times the speaker weight for weighed quadrature rules [1]. row(i) = par(j,ins,yacn(i,azimuth(j),elevation(j))*(weight1(j))); process = hgroup("[0]Inputs",par(i,ins,id(i,0)))<:par(i,outs,buswg(row(i)):>_):hgroup("[1]Outputs",par(i,outs,*(vol)):par(i,M+1,metermute(i)));
https://raw.githubusercontent.com/sekisushai/ambitools/2d21b7cc7cfe9bc35d91d51ec05bf9250372f0ce/Faust/src/hoa_mic_encoder_lebedev06.dsp
faust
Description: This tool does the Discrete Spherical Fourier Transform (DSFT) [1] of signal from a rigid spherical microphone with 50-node Lebedev grid geometry [1]. CAUTION: This tool does only the DSFT, to obtain the Ambisonics components you should filter the signals with corresponding radial filters [1]. Inputs: 26 Outputs: (M+1)^2 References: [1] P. Lecomte, P.-A. Gauthier, C. Langrenne, A. Garcia, and A. Berry, “On the use of a Lebedev grid for Ambisonics,” in Audio Engineering Society Convention 139, 2015. Maximum order M=1 for 6-node Lebedev grid [1]. Vector of weighted spherical harmonics : spherical harmonics times the speaker weight for weighed quadrature rules [1].
declare name "MemsBedev HOA Encoder"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2014"; import("stdfaust.lib"); import("lebedev.lib"); import("ymn.lib"); import("gui.lib"); M = 1; ins = 6; outs = (M+1)^2; vol = hslider("[1]Gain[unit:dB][style:knob]", 0, -10, 50, 0.1) : ba.db2linear : si.smooth(0.999); row(i) = par(j,ins,yacn(i,azimuth(j),elevation(j))*(weight1(j))); process = hgroup("[0]Inputs",par(i,ins,id(i,0)))<:par(i,outs,buswg(row(i)):>_):hgroup("[1]Outputs",par(i,outs,*(vol)):par(i,M+1,metermute(i)));
b9df948e8c81911521e3d4facf6fd5b1aee7f73af25328ef83afc3e1bf3a12f2
sekisushai/ambitools
hoa_mic_encoder_lebedev26.dsp
declare name "MemsBedev HOA Encoder"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2014"; // Description: This tool does the Discrete Spherical Fourier Transform (DSFT) [1] of signal from a rigid spherical microphone with 50-node Lebedev grid geometry [1]. // CAUTION: This tool does only the DSFT, to obtain the Ambisonics components you should filter the signals with corresponding radial filters [1]. // Inputs: 26 // Outputs: (M+1)^2 // References: // [1] P. Lecomte, P.-A. Gauthier, C. Langrenne, A. Garcia, and A. Berry, “On the use of a Lebedev grid for Ambisonics,” in Audio Engineering Society Convention 139, 2015. import("stdfaust.lib"); import("lebedev.lib"); import("ymn.lib"); import("gui.lib"); // Maximum order M=3 for 26-node Lebedev grid [1]. M = 3; ins = 26; outs = (M+1)^2; vol = hslider("[1]Gain[unit:dB][style:knob]", 0, -10, 50, 0.1) : ba.db2linear : si.smooth(0.999); // Vector of weighted spherical harmonics : spherical harmonics times the speaker weight for weighed quadrature rules [1]. row(i) = par(j,ins,yacn(i,azimuth(j),elevation(j))*(weight3(j))); process = hgroup("[0]Inputs",par(i,ins,id(i,0)))<:par(i,outs,buswg(row(i)):>_):hgroup("[1]Outputs",par(i,outs,*(vol)):par(i,M+1,metermute(i)));
https://raw.githubusercontent.com/sekisushai/ambitools/2d21b7cc7cfe9bc35d91d51ec05bf9250372f0ce/Faust/src/hoa_mic_encoder_lebedev26.dsp
faust
Description: This tool does the Discrete Spherical Fourier Transform (DSFT) [1] of signal from a rigid spherical microphone with 50-node Lebedev grid geometry [1]. CAUTION: This tool does only the DSFT, to obtain the Ambisonics components you should filter the signals with corresponding radial filters [1]. Inputs: 26 Outputs: (M+1)^2 References: [1] P. Lecomte, P.-A. Gauthier, C. Langrenne, A. Garcia, and A. Berry, “On the use of a Lebedev grid for Ambisonics,” in Audio Engineering Society Convention 139, 2015. Maximum order M=3 for 26-node Lebedev grid [1]. Vector of weighted spherical harmonics : spherical harmonics times the speaker weight for weighed quadrature rules [1].
declare name "MemsBedev HOA Encoder"; declare version "1.0"; declare author "Pierre Lecomte"; declare license "GPL"; declare copyright "(c) Pierre Lecomte 2014"; import("stdfaust.lib"); import("lebedev.lib"); import("ymn.lib"); import("gui.lib"); M = 3; ins = 26; outs = (M+1)^2; vol = hslider("[1]Gain[unit:dB][style:knob]", 0, -10, 50, 0.1) : ba.db2linear : si.smooth(0.999); row(i) = par(j,ins,yacn(i,azimuth(j),elevation(j))*(weight3(j))); process = hgroup("[0]Inputs",par(i,ins,id(i,0)))<:par(i,outs,buswg(row(i)):>_):hgroup("[1]Outputs",par(i,outs,*(vol)):par(i,M+1,metermute(i)));
b14cb09a5817d0b02bacc164fbdd693f2e2cb0509cda5229a57b9a0e929e91fc
jpburstrom/bubblebass
pitchTracker4.dsp
declare name "GR Pitch Tracker 4"; declare description "4-channel GR-300 style pitch tracker"; declare author "Johannes Burström ([email protected])"; declare copyright "Johannes Burström"; declare version "0.1"; declare licence "GPL"; import("stdfaust.lib"); freqA = hslider("ffreq1 [unit:hz]", 32.7, 5.0, 20000., 0.001); freqB = hslider("ffreq2 [unit:hz]", 32.7, 5.0, 20000., 0.001); freqC = hslider("ffreq3 [unit:hz]", 32.7, 5.0, 20000., 0.001); freqD = hslider("ffreq4 [unit:hz]", 32.7, 5.0, 20000., 0.001); pitchTracker(x, freq) = output with { maxFreq = 640; /* rq = 1; halfbw = 0.1 * freq * 0.5; fl = freq - halfbw; fu = freq + halfbw; */ //Rectify signal rectify = (_ * 1e+02) >= 0; //Inverse triggers - zero when square is 1, -1 triggers = fi.tf21(1, -1, 0, 0, 0) <: _ != -1, _ != 1; //Make a saw from a stream of 1's plus reset 0 (integrate the 1's) trig2saw = _, 1 : fi.pole; //make saws from the two triggers above, add inverted triggers makeSaws = trig2saw, trig2saw, 1 - _, 1 - _; //Input: pair of saw waves, output: denominator //Latch first signal with second trigger and vice versa. This gives the halfway value of the saw wave. //Add the two saws and we get an approximate amount of samples for a waveform period denom = route(4, 4, (1, 2), (4, 1), (2, 4), (3, 3)) : ba.latch, ba.latch: + : max(ma.SR / maxFreq, _ - 3); //Scale the raw saw to the current denominator value, which should make the waveform roughly in the -1->1 range //below maxFreq (above maxFreq, the amplitude will start diminishing) outputSaw = fi.dcblocker((_/_) * 2); //Divide samplerate with denom to get the frequency outputPitch = !, max(ma.SR/_, 0); //Add it up output = x : fi.lowpass(1, freq) : rectify <: triggers <: makeSaws <: _, !, !, !, denom <: outputSaw, outputPitch; }; process(a, b, c, d) = pitchTracker(a, freqA), pitchTracker(b, freqB), pitchTracker(c, freqC), pitchTracker(d, freqD);
https://raw.githubusercontent.com/jpburstrom/bubblebass/2e4fa3e49eceeed5a9dff2431d345acea6b29a8e/faust/pitchTracker4.dsp
faust
rq = 1; halfbw = 0.1 * freq * 0.5; fl = freq - halfbw; fu = freq + halfbw; Rectify signal Inverse triggers - zero when square is 1, -1 Make a saw from a stream of 1's plus reset 0 (integrate the 1's) make saws from the two triggers above, add inverted triggers Input: pair of saw waves, output: denominator Latch first signal with second trigger and vice versa. This gives the halfway value of the saw wave. Add the two saws and we get an approximate amount of samples for a waveform period Scale the raw saw to the current denominator value, which should make the waveform roughly in the -1->1 range below maxFreq (above maxFreq, the amplitude will start diminishing) Divide samplerate with denom to get the frequency Add it up
declare name "GR Pitch Tracker 4"; declare description "4-channel GR-300 style pitch tracker"; declare author "Johannes Burström ([email protected])"; declare copyright "Johannes Burström"; declare version "0.1"; declare licence "GPL"; import("stdfaust.lib"); freqA = hslider("ffreq1 [unit:hz]", 32.7, 5.0, 20000., 0.001); freqB = hslider("ffreq2 [unit:hz]", 32.7, 5.0, 20000., 0.001); freqC = hslider("ffreq3 [unit:hz]", 32.7, 5.0, 20000., 0.001); freqD = hslider("ffreq4 [unit:hz]", 32.7, 5.0, 20000., 0.001); pitchTracker(x, freq) = output with { maxFreq = 640; rectify = (_ * 1e+02) >= 0; triggers = fi.tf21(1, -1, 0, 0, 0) <: _ != -1, _ != 1; trig2saw = _, 1 : fi.pole; makeSaws = trig2saw, trig2saw, 1 - _, 1 - _; denom = route(4, 4, (1, 2), (4, 1), (2, 4), (3, 3)) : ba.latch, ba.latch: + : max(ma.SR / maxFreq, _ - 3); outputSaw = fi.dcblocker((_/_) * 2); outputPitch = !, max(ma.SR/_, 0); output = x : fi.lowpass(1, freq) : rectify <: triggers <: makeSaws <: _, !, !, !, denom <: outputSaw, outputPitch; }; process(a, b, c, d) = pitchTracker(a, freqA), pitchTracker(b, freqB), pitchTracker(c, freqC), pitchTracker(d, freqD);
7781fb2ba21eb81f1b2f13eb7f653fba4f547858a085d40822acda60c7a62ec1
darkoverlordofdata/amp-sim-faust
flanger.dsp
declare name "amp-sim"; declare version "0.1"; declare author "darkoverlordofdata"; declare description "Amplifier demo application."; declare license "MIT"; declare copyright "(c)DarkOverlordOfData 2021"; import("stdfaust.lib"); import("../layout2.dsp"); flanger_mono(dmax,curdel,depth,fb,invert,lfoshape) = _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) : + : *(1/(1+depth)); // ideal for dc and reinforced sinusoids (in-phase summed signals) process = ba.bypass1(fbp,flanger_mono_gui); // Kill the groups to save vertical space: meter_group(x) = flsg(x); ctl_group(x) = flkg(x); del_group(x) = flkg(x); lvl_group(x) = flkf(x); flangeview = lfo(freq); flanger_mono_gui = attach(flangeview) : flanger_mono(dmax,curdel,depth,fb,invert,lfoshape); sinlfo(freq) = (1 + os.oscrs(freq))/2; trilfo(freq) = 1.0-abs(os.saw1(freq)); lfo(f) = (lfoshape * trilfo(f)) + ((1-lfoshape) * sinlfo(f)); dmax = 2048; odflange = 44; // ~1 ms at 44.1 kHz = min delay dflange = ((dmax-1)-odflange)*del_group(vslider("[1] Delay [midi:ctrl 50][style:knob]", 0.22, 0, 1, 1)); freq = ctl_group(vslider("[1] Rate [midi:ctrl 51] [unit:Hz] [style:knob]", 0.5, 0, 10, 0.01)) : si.smooth(ba.tau2pole(freqT60/6.91)); freqT60 = 0.15661; depth = ctl_group(vslider("[3] Depth [midi:ctrl 52] [style:knob]", .75, 0, 1, 0.001)) : si.smooth(ba.tau2pole(depthT60/6.91)); depthT60 = 0.15661; fb = ctl_group(vslider("[5] Feedback [midi:ctrl 53] [style:knob]", 0, -0.995, 0.99, 0.001)) : si.smooth(ba.tau2pole(fbT60/6.91)); fbT60 = 0.15661; lfoshape = ctl_group(vslider("[7] Waveshape [midi:ctrl 54] [style:knob]", 0, 0, 1, 0.001)); curdel = odflange+dflange*lfo(freq); fbp = 1-int(flsg(vslider("[0] Enable [midi:ctrl 102][style:knob]",0,0,1,1))); invert = flsg(vslider("[1] Invert [midi:ctrl 49][style:knob]",0,0,1,1):int);
https://raw.githubusercontent.com/darkoverlordofdata/amp-sim-faust/df478c01ed3763795c11779faa47a4b9d0f6de37/src/guitar/flanger.dsp
faust
ideal for dc and reinforced sinusoids (in-phase summed signals) Kill the groups to save vertical space: ~1 ms at 44.1 kHz = min delay
declare name "amp-sim"; declare version "0.1"; declare author "darkoverlordofdata"; declare description "Amplifier demo application."; declare license "MIT"; declare copyright "(c)DarkOverlordOfData 2021"; import("stdfaust.lib"); import("../layout2.dsp"); flanger_mono(dmax,curdel,depth,fb,invert,lfoshape) = _ <: _, (-:de.fdelay(dmax,curdel)) ~ *(fb) : _, *(select2(invert,depth,0-depth)) process = ba.bypass1(fbp,flanger_mono_gui); meter_group(x) = flsg(x); ctl_group(x) = flkg(x); del_group(x) = flkg(x); lvl_group(x) = flkf(x); flangeview = lfo(freq); flanger_mono_gui = attach(flangeview) : flanger_mono(dmax,curdel,depth,fb,invert,lfoshape); sinlfo(freq) = (1 + os.oscrs(freq))/2; trilfo(freq) = 1.0-abs(os.saw1(freq)); lfo(f) = (lfoshape * trilfo(f)) + ((1-lfoshape) * sinlfo(f)); dmax = 2048; dflange = ((dmax-1)-odflange)*del_group(vslider("[1] Delay [midi:ctrl 50][style:knob]", 0.22, 0, 1, 1)); freq = ctl_group(vslider("[1] Rate [midi:ctrl 51] [unit:Hz] [style:knob]", 0.5, 0, 10, 0.01)) : si.smooth(ba.tau2pole(freqT60/6.91)); freqT60 = 0.15661; depth = ctl_group(vslider("[3] Depth [midi:ctrl 52] [style:knob]", .75, 0, 1, 0.001)) : si.smooth(ba.tau2pole(depthT60/6.91)); depthT60 = 0.15661; fb = ctl_group(vslider("[5] Feedback [midi:ctrl 53] [style:knob]", 0, -0.995, 0.99, 0.001)) : si.smooth(ba.tau2pole(fbT60/6.91)); fbT60 = 0.15661; lfoshape = ctl_group(vslider("[7] Waveshape [midi:ctrl 54] [style:knob]", 0, 0, 1, 0.001)); curdel = odflange+dflange*lfo(freq); fbp = 1-int(flsg(vslider("[0] Enable [midi:ctrl 102][style:knob]",0,0,1,1))); invert = flsg(vslider("[1] Invert [midi:ctrl 49][style:knob]",0,0,1,1):int);
862495897252fd3e57e9713b3d5633654f4042983ec65cbc155e022ee17940ef
s-e-a-m/faust-libraries
XY90pan_plot.dsp
declare name "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; import("stdfaust.lib"); import("../../seam.lib"); //radsweep = (os.lf_trianglepos(1)*90)-45 : deg2rad; radsweep = (os.lf_trianglepos(1)*360)-180 : deg2rad; //process = os.osc(700),radsweep : xy90 <: _,_,nsum,ndif; process = 1,radsweep : xy90 <: _,_,nsum;
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/plots/dsp/XY90pan_plot.dsp
faust
radsweep = (os.lf_trianglepos(1)*90)-45 : deg2rad; process = os.osc(700),radsweep : xy90 <: _,_,nsum,ndif;
declare name "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; import("stdfaust.lib"); import("../../seam.lib"); radsweep = (os.lf_trianglepos(1)*360)-180 : deg2rad; process = 1,radsweep : xy90 <: _,_,nsum;
6e17dcc76e6a2dbef93117d04a4e5d496d0be89724f26b386625e1c854006b47
s-e-a-m/faust-libraries
lrcpan.dsp
declare name "MICHAEL GERZON LRC PANNING"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MICHAEL GERZON LRC PANNING"; declare options "[midi:on]"; import("stdfaust.lib"); import("../../seam.lib"); pot = hslider("[01] LRCPOT", 0, -45, 45, 0.1) : /(90.0) : si.smoo; // y and z are dead channels to create VST routing consistency lrcpan(x,y,z) = l,r,c with{ plr = (pot) + (0.5); l = x*((1 - (plr)) * (pot) * (-2.0)); c = x*(cos(pot * ma.PI)); r = x*((plr) * (pot) * (2.0)); }; process = lrcpan;
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/vst/lrcpan.dsp
faust
y and z are dead channels to create VST routing consistency
declare name "MICHAEL GERZON LRC PANNING"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MICHAEL GERZON LRC PANNING"; declare options "[midi:on]"; import("stdfaust.lib"); import("../../seam.lib"); pot = hslider("[01] LRCPOT", 0, -45, 45, 0.1) : /(90.0) : si.smoo; lrcpan(x,y,z) = l,r,c with{ plr = (pot) + (0.5); l = x*((1 - (plr)) * (pot) * (-2.0)); c = x*(cos(pot * ma.PI)); r = x*((plr) * (pot) * (2.0)); }; process = lrcpan;
53891b943aba4a985c5f6ece09a669492509afa9cf22ab88fda3bc7b90d0c5ad
s-e-a-m/faust-libraries
lrc-demo.dsp
declare name "MICHAEL GERZON LRC PANNING"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MICHAEL GERZON LCR PANNING"; declare options "[midi:on]"; import("stdfaust.lib"); import("../../seam.lib"); meters(x) = vgroup("[2] METERS", x); signal = os.osc(1000); sinpot = os.osc(0.01)*(45) <: attach(_/(90), hbargraph("[01] DIRECTION DEGREES",-45,45)); process = signal, sinpot : lrcpan : meters(shmeter), meters(shmeter), meters(shmeter);
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/app/lrc-demo.dsp
faust
declare name "MICHAEL GERZON LRC PANNING"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MICHAEL GERZON LCR PANNING"; declare options "[midi:on]"; import("stdfaust.lib"); import("../../seam.lib"); meters(x) = vgroup("[2] METERS", x); signal = os.osc(1000); sinpot = os.osc(0.01)*(45) <: attach(_/(90), hbargraph("[01] DIRECTION DEGREES",-45,45)); process = signal, sinpot : lrcpan : meters(shmeter), meters(shmeter), meters(shmeter);
cd4075a4e699638f49f30d3f64708843baee7d95a282c9af046e30101187180c
tomara-x/magi
butt.dsp
//trans rights declare name "butt"; declare author "amy universe"; declare version "0.03"; declare license "WTFPL"; import("stdfaust.lib"); import("physmodels.lib"); //touch butt, hear cute noises N = 20; rnd = no.multinoise(N) : par(i,N,ba.sAndH(button("BUTT") : ba.impulsify)); butt(r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20,excitation) = endChain(chain( fluteHead : stringSegment(0.1,r1) : in(excitation) : violinBowedString(r11,r12,r13,r14) : violinBow(r3,r4) : out : stringSegment(0.1,r20) : violinBow(r9,r10) : brassLips(0.1,r17,r18) : violinBody : in(excitation) : fluteEmbouchure(r15) : nylonString(0.1,r19,excitation) : violinBowedString(r5,r6,r7,r8) : stringSegment(0.1,r2) : in(excitation) : openTube(0.1,r16) : fluteHead)); process = rnd,_ : butt : fi.dcblocker : aa.clip(-1,1) <: _,_;
https://raw.githubusercontent.com/tomara-x/magi/ae45f8295472c848c90a72cfeeb788c79b53b51e/effect/butt.dsp
faust
trans rights touch butt, hear cute noises
declare name "butt"; declare author "amy universe"; declare version "0.03"; declare license "WTFPL"; import("stdfaust.lib"); import("physmodels.lib"); N = 20; rnd = no.multinoise(N) : par(i,N,ba.sAndH(button("BUTT") : ba.impulsify)); butt(r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20,excitation) = endChain(chain( fluteHead : stringSegment(0.1,r1) : in(excitation) : violinBowedString(r11,r12,r13,r14) : violinBow(r3,r4) : out : stringSegment(0.1,r20) : violinBow(r9,r10) : brassLips(0.1,r17,r18) : violinBody : in(excitation) : fluteEmbouchure(r15) : nylonString(0.1,r19,excitation) : violinBowedString(r5,r6,r7,r8) : stringSegment(0.1,r2) : in(excitation) : openTube(0.1,r16) : fluteHead)); process = rnd,_ : butt : fi.dcblocker : aa.clip(-1,1) <: _,_;
b5a49c38a2ad0d0814b236e21df9c4190339cd88e2b5d1bbdc39bf9d09f1c277
s-e-a-m/faust-libraries
mspanlr.dsp
declare name "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; import("stdfaust.lib"); //import("../../seam.lib"); deg2rad = *(ma.PI/180); nsum = 0.5*(_+_); ndif = 0.5*(_-_); sdmx = _,_ <: nsum, ndif; mspan(x) = m, s with{ pot = vslider("[01] Azimuth [style:knob]", 0, -180, 180, 0.1) : deg2rad : si.smoo; m = (0.5 * x) + (0.5 * (x * cos(pot))); s = x *(sin(-pot)); }; mspan_lr = mspan : sdmx; process = _,! : mspan_lr;
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/vst/mspanlr.dsp
faust
import("../../seam.lib");
declare name "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; import("stdfaust.lib"); deg2rad = *(ma.PI/180); nsum = 0.5*(_+_); ndif = 0.5*(_-_); sdmx = _,_ <: nsum, ndif; mspan(x) = m, s with{ pot = vslider("[01] Azimuth [style:knob]", 0, -180, 180, 0.1) : deg2rad : si.smoo; m = (0.5 * x) + (0.5 * (x * cos(pot))); s = x *(sin(-pot)); }; mspan_lr = mspan : sdmx; process = _,! : mspan_lr;
4dc66bd8567f84b94f23a8c0291398b3499464c88102d12c8adc0d98c22a3c0c
s-e-a-m/faust-libraries
bfmt2m.dsp
declare name "MICHAEL GERZON MONO TO BFORMAT ENCODER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MICHAEL GERZON MONO TO BFORMAT ENCODER"; import("stdfaust.lib"); import("../../seam.lib"); bfmt2m(W,X,Y,Z) = m with{ encoder(x) = hgroup("BFMT MONO-DECODER", x); azi = encoder(vslider("[01] Azimuth [style:knob]", 0, 0, 360, 0.1) : deg2rad : si.smoo); p = encoder(vslider("[02] Polar [style:knob]", 0.5, 0, 1, 0.01) : si.smoo); m = p *(0.707*(W))+((1-p) *((X*cos(azi))+(Y*sin(azi)))); }; process = bfmt2m;
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/examples/vst/bfmt2m.dsp
faust
declare name "MICHAEL GERZON MONO TO BFORMAT ENCODER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MICHAEL GERZON MONO TO BFORMAT ENCODER"; import("stdfaust.lib"); import("../../seam.lib"); bfmt2m(W,X,Y,Z) = m with{ encoder(x) = hgroup("BFMT MONO-DECODER", x); azi = encoder(vslider("[01] Azimuth [style:knob]", 0, 0, 360, 0.1) : deg2rad : si.smoo); p = encoder(vslider("[02] Polar [style:knob]", 0.5, 0, 1, 0.01) : si.smoo); m = p *(0.707*(W))+((1-p) *((X*cos(azi))+(Y*sin(azi)))); }; process = bfmt2m;
69a8a1deeb35bedd582bda07fbf8cb7ebd7643630e9753b77855c0c6c62430dc
jcelerier/guitarixlib
dcblocker.dsp
declare id "dcblocker"; declare name "dcblocker"; declare shortname "dcblocker"; declare category "Tone Control"; declare version "0.01"; declare author "brummer"; declare license "BSD"; declare copyright "(c)brummer 2020"; import("stdfaust.lib"); process = fi.dcblockerat(1.0);
https://raw.githubusercontent.com/jcelerier/guitarixlib/9c2947507cd13b82554020e669a85244e867d584/guitarix/dcblocker.dsp
faust
declare id "dcblocker"; declare name "dcblocker"; declare shortname "dcblocker"; declare category "Tone Control"; declare version "0.01"; declare author "brummer"; declare license "BSD"; declare copyright "(c)brummer 2020"; import("stdfaust.lib"); process = fi.dcblockerat(1.0);
581a2becf9c72ff3e0462858ebb563f59e8b19ccb8226ac248ce38a64dbb3d0e
friskgit/snares
snare.dsp
// -*- compile-command: "cd .. && make jack src=src/snare.dsp && cd -"; -*- declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); //---------------`Snare drum synth` -------------------------- // A take at a snare drum synth // // A single hit snare drum synth controllable with midi. Each hit is distribute over `channels` speakers. // It has its own trigger // // Where: // * midi note 67-89 // * stiffness 0-0.55 (mapped to note as in note 67 -> 0)§ // * midi velocity is mapped to pressure // // A useful parameter setting is: // // 30 Juni 2018 Henrik Frisk [email protected] //--------------------------------------------------- // Main impulse for generating one hit. imp = button("gate"); // GUI snaregroup(x) = vgroup("snare", x); // Main envelope env = en.ar(attack, rel, imp) * amp with { attack = snaregroup(hslider("attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = snaregroup(hslider("rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); amp = snaregroup(hslider("vol", 0.5, 0, 1, 0.0001)); }; // Noise generation and filter snare(n) = no.multinoise(8) : par(i, 8, _ * env * 0.1); filt = fi.resonbp(frq, q, gain) with { frq = snaregroup(hslider("freq", 200, 50, 5000, 0.1)); q = snaregroup(hslider("q", 1, 0.01, 10, 0.01)); gain = snaregroup(hslider("gain", 0, 0, 2, 0.00001)); }; process = snare;
https://raw.githubusercontent.com/friskgit/snares/bb43ea5e706a0ead6d65dd176a5c492b2f5d8f74/faust/snare/src/extras/snare.dsp
faust
-*- compile-command: "cd .. && make jack src=src/snare.dsp && cd -"; -*- ---------------`Snare drum synth` -------------------------- A take at a snare drum synth A single hit snare drum synth controllable with midi. Each hit is distribute over `channels` speakers. It has its own trigger Where: * midi note 67-89 * stiffness 0-0.55 (mapped to note as in note 67 -> 0)§ * midi velocity is mapped to pressure A useful parameter setting is: 30 Juni 2018 Henrik Frisk [email protected] --------------------------------------------------- Main impulse for generating one hit. GUI Main envelope Noise generation and filter
declare version " 0.1 "; declare author " Henrik Frisk " ; declare author " henrikfr "; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); imp = button("gate"); snaregroup(x) = vgroup("snare", x); env = en.ar(attack, rel, imp) * amp with { attack = snaregroup(hslider("attack", 0.00000001, 0, 0.1, 0.000000001) : si.smooth(0.1)); rel = snaregroup(hslider("rel", 0.1, 0.0000001, 0.5, 0.0000001) : si.smooth(0.2)); amp = snaregroup(hslider("vol", 0.5, 0, 1, 0.0001)); }; snare(n) = no.multinoise(8) : par(i, 8, _ * env * 0.1); filt = fi.resonbp(frq, q, gain) with { frq = snaregroup(hslider("freq", 200, 50, 5000, 0.1)); q = snaregroup(hslider("q", 1, 0.01, 10, 0.01)); gain = snaregroup(hslider("gain", 0, 0, 2, 0.00001)); }; process = snare;
9d7cdf8cd910648c2a85275c7defc6c9b50d1a94b20debbbd31098b91fbe187f
SMERM/BN-Tedesco
distorsione.dsp
//cubicnl(drive,offset) = *(pregain) : +(offset) : clip(-1,1) : cubic //with { // pregain = pow(10.0,2*drive); // clip(lo,hi) = min(hi) : max(lo); // cubic(x) = x - x*x*x/3; // postgain = max(1.0,1.0/pregain); //}; //---------------------------`(dm.)cubicnl_demo`-------------------------- // Distortion demo application. // // #### Usage: // // ``` // _ : cubicnl_demo : _; // ``` //------------------------------------------------------------ //cubicnl_demo = ba.bypass1(bp, ef.cubicnl_nodc(drive:si.smoo,offset:si.smoo)) //with{ // cnl_group(x) = vgroup("CUBIC NONLINEARITY cubicnl [tooltip: Reference: // https://ccrma.stanford.edu/~jos/pasp/Cubic_Soft_Clipper.html]", x); // bp = cnl_group(checkbox("[0] Bypass [tooltip: When this is checked, the // nonlinearity has no effect]")); // drive = cnl_group(hslider("[1] Drive [tooltip: Amount of distortion]", // 0, 0, 1, 0.01)); // offset = cnl_group(hslider("[2] Offset [tooltip: Brings in even harmonics]", // 0, 0, 1, 0.01)); //}; // cubicnl_nodc(drive,offset) = cubicnl(drive,offset) : dcblocker; //cubicnl_demo = bypass1(bp, // cubicnl_nodc(drive:smooth(0.999),offset:smooth(0.999))) //with { // cnl_group(x) = vgroup("CUBIC NONLINEARITY cubicnl // [tooltip: Reference: // https://ccrma.stanford.edu/~jos/pasp/Cubic_Soft_Clipper.html]", x); // [tooltip: When this is checked, the nonlinearity has no effect]")); // drive = cnl_group(hslider("[1] Drive // [tooltip: Amount of distortion]", // 0, 0, 1, 0.01)); // offset = cnl_group(hslider("[2] Offset // [tooltip: Brings in even harmonics]", // 0, 0, 1, 0.01)); //}; declare name "distortion"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Distortion demo application."; import("stdfaust.lib"); process = dm.cubicnl_demo;
https://raw.githubusercontent.com/SMERM/BN-Tedesco/2a77e1707f7e64c512dd40d58d29c0db8092463d/COME-02/Lezioni_in_Compresenza/20200505/distorsione.dsp
faust
cubicnl(drive,offset) = *(pregain) : +(offset) : clip(-1,1) : cubic with { pregain = pow(10.0,2*drive); clip(lo,hi) = min(hi) : max(lo); cubic(x) = x - x*x*x/3; postgain = max(1.0,1.0/pregain); }; ---------------------------`(dm.)cubicnl_demo`-------------------------- Distortion demo application. #### Usage: ``` _ : cubicnl_demo : _; ``` ------------------------------------------------------------ cubicnl_demo = ba.bypass1(bp, ef.cubicnl_nodc(drive:si.smoo,offset:si.smoo)) with{ cnl_group(x) = vgroup("CUBIC NONLINEARITY cubicnl [tooltip: Reference: https://ccrma.stanford.edu/~jos/pasp/Cubic_Soft_Clipper.html]", x); bp = cnl_group(checkbox("[0] Bypass [tooltip: When this is checked, the nonlinearity has no effect]")); drive = cnl_group(hslider("[1] Drive [tooltip: Amount of distortion]", 0, 0, 1, 0.01)); offset = cnl_group(hslider("[2] Offset [tooltip: Brings in even harmonics]", 0, 0, 1, 0.01)); }; cubicnl_nodc(drive,offset) = cubicnl(drive,offset) : dcblocker; cubicnl_demo = bypass1(bp, cubicnl_nodc(drive:smooth(0.999),offset:smooth(0.999))) with { cnl_group(x) = vgroup("CUBIC NONLINEARITY cubicnl [tooltip: Reference: https://ccrma.stanford.edu/~jos/pasp/Cubic_Soft_Clipper.html]", x); [tooltip: When this is checked, the nonlinearity has no effect]")); drive = cnl_group(hslider("[1] Drive [tooltip: Amount of distortion]", 0, 0, 1, 0.01)); offset = cnl_group(hslider("[2] Offset [tooltip: Brings in even harmonics]", 0, 0, 1, 0.01)); };
declare name "distortion"; declare version "0.0"; declare author "JOS, revised by RM"; declare description "Distortion demo application."; import("stdfaust.lib"); process = dm.cubicnl_demo;
780e3a3106ebbf1dbc315ab255dc62fb64051d3d1e30d43de5bbc7390bdd62b0
trummerschlunk/master_me
ebur128.dsp
// -*-Faust-*- // ISC License // Copyright (c) 2022 Jakob Dübel // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY // AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR // OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR // PERFORMANCE OF THIS SOFTWARE. declare name "ITU-R BS.1770-4 prefilter"; declare version "1.0"; declare author "Jakob Dübel"; declare license "ISC"; // A filter very close to "Recommendation ITU-R BS.1770-4" // (https://www.itu.int/rec/R-REC-BS.1770). "Close to", because the // document, page 4-5, states filter coefficients for a specific // sample rate of 48kHz. Here, we construct the biquads for arbitrary // samplerates. import("stdfaust.lib"); freq2k(f_c) = tan((ma.PI * f_c)/ma.SR); stage1 = fi.tf22t(b0,b1,b2,a1,a2) with { f_c = 1681.7632251028442; // Hertz gain = 3.9997778685513232; // Decibel K = freq2k(f_c); V_0 = pow(10, (gain/20.0)); denominator = 1.0 + sqrt(2.0)*K + K^2; b0 = (V_0 + sqrt((2.0*V_0))*K + K^2) / denominator; b1 = 2.0*(K^2 - V_0) / denominator; b2 = (V_0 - sqrt(2.0*V_0)*K + K^2) / denominator; a1 = 2*(K^2 - 1) / denominator; a2 = (1 - sqrt(2.0)*K + K^2) / denominator; }; stage2 = fi.tf22t(b0,b1,b2,a1,a2) with { f_c = 38.135470876002174; // Hertz Q = 0.5003270373223665; K = freq2k(f_c); denominator = (K^2) * Q + K + Q; b0 = Q / denominator; b1 = -2*Q / denominator; b2 = b0; a1 = (2*Q * (K^2 - 1)) / denominator; a2 = ((K^2) * Q - K + Q) / denominator; }; prefilter = stage1 : stage2; // Normalize such that 997Hz has unity gain 1.0. Otherwise a sinewave // of ~1000Hz would gain 0.66dB. This is additional to the // ITU-recommendation biquads! 997Hz is the closest prime number to // 1000Hz. normalize997 = *(0.9273671710547968); ebur128 = prefilter : normalize997;
https://raw.githubusercontent.com/trummerschlunk/master_me/2fdae59b72464af35477a0e99b2f85ea73686303/lib/ebur128.dsp
faust
-*-Faust-*- ISC License Copyright (c) 2022 Jakob Dübel Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. A filter very close to "Recommendation ITU-R BS.1770-4" (https://www.itu.int/rec/R-REC-BS.1770). "Close to", because the document, page 4-5, states filter coefficients for a specific sample rate of 48kHz. Here, we construct the biquads for arbitrary samplerates. Hertz Decibel Hertz Normalize such that 997Hz has unity gain 1.0. Otherwise a sinewave of ~1000Hz would gain 0.66dB. This is additional to the ITU-recommendation biquads! 997Hz is the closest prime number to 1000Hz.
declare name "ITU-R BS.1770-4 prefilter"; declare version "1.0"; declare author "Jakob Dübel"; declare license "ISC"; import("stdfaust.lib"); freq2k(f_c) = tan((ma.PI * f_c)/ma.SR); stage1 = fi.tf22t(b0,b1,b2,a1,a2) with { K = freq2k(f_c); V_0 = pow(10, (gain/20.0)); denominator = 1.0 + sqrt(2.0)*K + K^2; b0 = (V_0 + sqrt((2.0*V_0))*K + K^2) / denominator; b1 = 2.0*(K^2 - V_0) / denominator; b2 = (V_0 - sqrt(2.0*V_0)*K + K^2) / denominator; a1 = 2*(K^2 - 1) / denominator; a2 = (1 - sqrt(2.0)*K + K^2) / denominator; }; stage2 = fi.tf22t(b0,b1,b2,a1,a2) with { Q = 0.5003270373223665; K = freq2k(f_c); denominator = (K^2) * Q + K + Q; b0 = Q / denominator; b1 = -2*Q / denominator; b2 = b0; a1 = (2*Q * (K^2 - 1)) / denominator; a2 = ((K^2) * Q - K + Q) / denominator; }; prefilter = stage1 : stage2; normalize997 = *(0.9273671710547968); ebur128 = prefilter : normalize997;
e16813af257313d142d8c1cf66e12b47bbe23def4733a34f7b886f9cb6251ae7
s-e-a-m/faust-libraries
lrcpan_plot.dsp
declare name "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; import("stdfaust.lib"); import("../../seam.lib"); pisweep = (os.lf_trianglepos(1)*360)-180; pot = pisweep : deg2rad ;//vslider("[01] Azimuth [style:knob]", 0, -180, 180, 0.1) : deg2rad : si.smoo; lrcpan(x,pot) = l,r,c with{ plr = (pot) + (0.5); l = x*((1 - (plr)) * (pot) * (-2.0)); c = x*(cos(pot * ma.PI)); r = x*((plr) * (pot) * (2.0)); }; mspan(x,rad) = m,s with{ m = (0.5*x)+(0.5*(x*cos(rad))); s = x*(sin(-rad)); }; center(x,rad) = (0.5*x)+(0.5*(x*cos(rad))); process = 1, pot <: mspan_lr,center ;
https://raw.githubusercontent.com/s-e-a-m/faust-libraries/9120cccb9335f42407062eb4bf149188d8018b07/plots/dsp/lrcpan_plot.dsp
faust
vslider("[01] Azimuth [style:knob]", 0, -180, 180, 0.1) : deg2rad : si.smoo;
declare name "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; declare version "001"; declare author "Giuseppe Silvi"; declare license "GNU-GPL-v3"; declare copyright "(c)SEAM 2019"; declare description "MID SIDE PANNER - LEFT RIGHT LOUDSPEAKER"; import("stdfaust.lib"); import("../../seam.lib"); pisweep = (os.lf_trianglepos(1)*360)-180; lrcpan(x,pot) = l,r,c with{ plr = (pot) + (0.5); l = x*((1 - (plr)) * (pot) * (-2.0)); c = x*(cos(pot * ma.PI)); r = x*((plr) * (pot) * (2.0)); }; mspan(x,rad) = m,s with{ m = (0.5*x)+(0.5*(x*cos(rad))); s = x*(sin(-rad)); }; center(x,rad) = (0.5*x)+(0.5*(x*cos(rad))); process = 1, pot <: mspan_lr,center ;
9d213e42b33397a9eb552acf589954aaf440a503807d1c5b90f536037540c5d9
sadko4u/tamgamp.lv2
pre_6c16.dsp
/* * Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "6C16"; // in amp tube ba.selector declare name "6C16"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(pregain): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) ; stage2 = *(pregain) : fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) ; }; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); postgain = ampctrl.postgain * 0.06310 : si.smooth(0.999); // -24 dB correction };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/gxsim/pre_6c16.dsp
faust
* Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 -24 dB correction
declare name "6C16"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_6C16_68k,86.0,2700.0,2.921806) : *(pregain): fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,132.0,1500.0,2.097743) ; stage2 = *(pregain) : fi.lowpass(1,6531.0) : tubestage(TB_6C16_250k,194.0,820.0,1.378742) ; }; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); };
d221c1fd69a7fe272fd8f0093e7e4a94fc251d42a7eddb91a75127d6c088d466
sadko4u/tamgamp.lv2
pre_12at7.dsp
/* * Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "12AT7"; // in amp tube ba.selector declare name "12AT7"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 */ tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(pregain) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) ; stage2 = *(pregain) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) ; } ; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); postgain = ampctrl.postgain * 0.06310 : si.smooth(0.999); // -24 dB correction };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/gxsim/pre_12at7.dsp
faust
* Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 * 12AT7 -24 dB correction
declare name "12AT7"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_12AT7_68k,86.0,2700.0,2.617753) : *(pregain) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,132.0,1500.0,1.887332) ; stage2 = *(pregain) : fi.lowpass(1,6531.0) : tubestage(TB_12AT7_250k,194.0,820.0,1.256962) ; } ; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); };
90c4901915c34ee3fc160b692491cb6af44ac7b557e114359ed89bd1734ec25f
sadko4u/tamgamp.lv2
pre_12ax7.dsp
/* * Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "12ax7"; // in amp tube ba.selector declare name "12ax7"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_12AX7_68k, 86.0, 2700.0, 1.581656) : *(pregain): fi.lowpass(1, 6531.0) : tubestage(TB_12AX7_250k, 132.0, 1500.0, 1.204285) ; stage2 = *(pregain) : fi.lowpass(1, 6531.0) : tubestage(TB_12AX7_250k, 194.0, 820.0, 0.840703) ; }; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); postgain = ampctrl.postgain * 0.06310 : si.smooth(0.999); // -24 dB correction };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/gxsim/pre_12ax7.dsp
faust
* Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 -24 dB correction
declare name "12ax7"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_12AX7_68k, 86.0, 2700.0, 1.581656) : *(pregain): fi.lowpass(1, 6531.0) : tubestage(TB_12AX7_250k, 132.0, 1500.0, 1.204285) ; stage2 = *(pregain) : fi.lowpass(1, 6531.0) : tubestage(TB_12AX7_250k, 194.0, 820.0, 0.840703) ; }; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); };
e6dc11b4c61d2fbbf90876fd7f89bcfb0ce69510fbf505250cebede8d5f668aa
sadko4u/tamgamp.lv2
pre_12au7.dsp
/* * Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "12AU7"; // in amp tube ba.selector declare name "12AU7"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(pregain * 2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) ; stage2 = *(pregain * 2.0) : fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) ; } ; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); postgain = ampctrl.postgain * 0.06310 : si.smooth(0.999); // -24 dB correction };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/gxsim/pre_12au7.dsp
faust
* Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 -24 dB correction
declare name "12AU7"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage(TB_12AU7_68k,86.0,2700.0,3.718962) : *(pregain * 2.0): fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,132.0,1500.0,2.314844) ; stage2 = *(pregain * 2.0) : fi.lowpass(1,6531.0) : tubestage(TB_12AU7_250k,194.0,820.0,1.356567) ; } ; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); };
7d2809bf1d8171a92367c750c11c16daef592705b52477804a0f6fad11e56b87
tomara-x/magi
tiny-amaranth.dsp
//trans rights declare name "tiny amaranth"; declare author "amy universe"; declare version "0.00"; declare license "WTFPL"; import("stdfaust.lib"); N = 16; //number of steps semi(ta,mx,my,mz) = t(ta) +x(ta)*mx +y(ta)*my +z(ta)*mz with { t(n) = par(j,N, nentry("h:[0]seq/v:[5]t val/[%2j] t %2j",0,-24,24,0.1)) : ba.selectn(N,n); x(n) = par(j,N, nentry("h:[0]seq/v:[6]x mod/[%2j] x %2j",0,-24,24,0.1)) : ba.selectn(N,n); y(n) = par(j,N, nentry("h:[0]seq/v:[7]y mod/[%2j] y %2j",0,-24,24,0.1)) : ba.selectn(N,n); z(n) = par(j,N, nentry("h:[0]seq/v:[8]z mod/[%2j] z %2j",0,-24,24,0.1)) : ba.selectn(N,n); }; process = semi(ta,mx,my,mz) : %(maxrange) : +(minrange) : ba.semi2ratio : *(rootf*2^oct) <: _,qu.quantize(rootf,qu.ionian),qu.quantize(rootf,qu.eolian) : ba.selectn(3,key) : _ with { trig = ba.beat(hslider("h:[0]seq/v:controls/[2]bpm",120,0,600000,0.001)*4); ta = ba.counter(trig)%hslider("h:[0]seq/v:controls/[1]active steps",N,1,N,1); mx = hslider("h:[0]seq/v:controls/v:[3]mult/[0]x",1,0,64,1); my = hslider("h:[0]seq/v:controls/v:[3]mult/[1]y",1,0,64,1); mz = hslider("h:[0]seq/v:controls/v:[3]mult/[2]z",1,0,64,1); minrange = hslider("h:[0]seq/v:controls/v:[d]range/[0]min (psych!)", 0, 0, 128, 0.1); maxrange = hslider("h:[0]seq/v:controls/v:[d]range/[1]max", 36, 1, 128, 0.1); midc = 220*2^(3/12); rootf = midc * 2^(nentry("h:[0]seq/v:controls/h:[0]key/[2]root note", 0,0,11.5,0.1)/12); oct = hslider("h:[0]seq/v:controls/v:[d]range/[2]octave", 0,-8,8,1); key = hslider("h:[0]seq/v:controls/h:[0]key/[1]quantization [style:menu{'none':0;'major':1;'minor':2}]",0,0,2,1); };
https://raw.githubusercontent.com/tomara-x/magi/5105966cd806edb2613eabcd0525fcc80ebbd6c7/practice/tiny-amaranth.dsp
faust
trans rights number of steps
declare name "tiny amaranth"; declare author "amy universe"; declare version "0.00"; declare license "WTFPL"; import("stdfaust.lib"); semi(ta,mx,my,mz) = t(ta) +x(ta)*mx +y(ta)*my +z(ta)*mz with { t(n) = par(j,N, nentry("h:[0]seq/v:[5]t val/[%2j] t %2j",0,-24,24,0.1)) : ba.selectn(N,n); x(n) = par(j,N, nentry("h:[0]seq/v:[6]x mod/[%2j] x %2j",0,-24,24,0.1)) : ba.selectn(N,n); y(n) = par(j,N, nentry("h:[0]seq/v:[7]y mod/[%2j] y %2j",0,-24,24,0.1)) : ba.selectn(N,n); z(n) = par(j,N, nentry("h:[0]seq/v:[8]z mod/[%2j] z %2j",0,-24,24,0.1)) : ba.selectn(N,n); }; process = semi(ta,mx,my,mz) : %(maxrange) : +(minrange) : ba.semi2ratio : *(rootf*2^oct) <: _,qu.quantize(rootf,qu.ionian),qu.quantize(rootf,qu.eolian) : ba.selectn(3,key) : _ with { trig = ba.beat(hslider("h:[0]seq/v:controls/[2]bpm",120,0,600000,0.001)*4); ta = ba.counter(trig)%hslider("h:[0]seq/v:controls/[1]active steps",N,1,N,1); mx = hslider("h:[0]seq/v:controls/v:[3]mult/[0]x",1,0,64,1); my = hslider("h:[0]seq/v:controls/v:[3]mult/[1]y",1,0,64,1); mz = hslider("h:[0]seq/v:controls/v:[3]mult/[2]z",1,0,64,1); minrange = hslider("h:[0]seq/v:controls/v:[d]range/[0]min (psych!)", 0, 0, 128, 0.1); maxrange = hslider("h:[0]seq/v:controls/v:[d]range/[1]max", 36, 1, 128, 0.1); midc = 220*2^(3/12); rootf = midc * 2^(nentry("h:[0]seq/v:controls/h:[0]key/[2]root note", 0,0,11.5,0.1)/12); oct = hslider("h:[0]seq/v:controls/v:[d]range/[2]octave", 0,-8,8,1); key = hslider("h:[0]seq/v:controls/h:[0]key/[1]quantization [style:menu{'none':0;'major':1;'minor':2}]",0,0,2,1); };
2016c2122cfbb10bc160e9e34e35cda523745cb358ad02e8aa119fa395f0a054
JoaoSvidzinski/lorenz-dream
jgrain3.dsp
declare name "Jgrain 7"; declare version "1.0"; import("stdfaust.lib"); //--------------------------------------------------------------------------------------// //GENERAL MATRIX// //--------------------------------------------------------------------------------------// //matrix of N x M toggles// toggle(c, in) = checkbox("h:Lines/h:Reinjection_Matrix/v:Grain%2c-->/r%3in"); Mixer(N,out) = par(in, N, *(toggle(in, in+out*N)) ) :> _ ; Matrix(N,M) = par(in, N, _) <: par(out, M, Mixer(N, out)); //--------------------------------------------------------------------------------------// sinuso = os.sinwaveform(tablesize) <: *; //sinuso = sinus * sinus; mili = ma.SR / 1000.0; maxdelay = 262144; tablesize = 192000; //--------------------------------------------------------------------------------------// //Grain parametres - from 0 to 1// size(ind) = hslider("h:Grain/v:Grain_Size/size%2ind", 50, 0, 1000, 0.01); del(ind) = hslider("h:Grain/v:Grain_Delay/del%2ind", 0, 0, 5000, 0.1); rar(ind) = hslider("h:Grain/v:Grain_Rarefaction/rar%2ind", 0.5, 0, 1, 0.0001); //Feedback externe - from 0 to 1// fdx(ind) = hslider("h:Grain/v:Grain_FeedBackext/fdx%2ind", 1, 0, 1, 0.01) : si.smoo; //Input gains - from 0 to 1// inp(ind) = hslider("h:Grain/v:Input/inp%2ind [5]", 1, 0, 1, 0.01) : si.smoo; //OUTPUT GAINS - from 0 to 1// out(ind) = hslider("h:Grain/v:Output/out%2ind [6]", 1, 0, 1, 0.01) : si.smoo; //--------------------------------------------------------------------------------------// //FEEDBACK REINJECTION MATRICES N x N //--------------------------------------------------------------------------------------// fdMatrix(N) = Matrix(N, N); //--------------------------------------------------------------------------------------// grain(size, del, rar) = grainS with { freq = 1000 / size; Phasor = os.phasor(1, freq); index = Phasor * tablesize; env = rdtable(tablesize, sinuso, int(index)); No = no.noise : +(1) : *(0.5); no_trigger = (No < rar); No2 = no.noise : +(1); delayInSamples = *(No2,del) : *(mili); adjustedPhasor = Phasor : ma.decimal; th_trigger = (adjustedPhasor > 0.001) * (adjustedPhasor@1 <= 0.001); trig_grain = no_trigger : ba.sAndH(th_trigger); trig_delay = delayInSamples : ba.sAndH(th_trigger); envG = trig_grain: *(_,env); grainS = *(_,1) : de.fdelay(maxdelay, trig_delay) : *(envG); }; //--------------------------------------------------------------------------------------// inputSort(n) = si.bus(2*n) <: par(i, n, (ba.selector(i, 2*n), ba.selector(i+n, 2*n))); //--------------------------------------------------------------------------------------// grainBlock(n) = par(i, n, (+ : grain(size(i), del(i), rar(i)))); fdBlock(n) = par(i, n, *(fdx(i))); fdToMatrixBlock(n) = fdBlock(n) : fdMatrix(n); inputBlock(n) = par(i, n, *(inp(i))); outputBlock(n) = par(i, n, *(out(i))); //--------------------------------------------------------------------------------------// grainG(n) = (inputSort(n) : grainBlock(n)) ~ (fdToMatrixBlock(n)); jgrain(n) = inputBlock(n) : grainG(n) : outputBlock(n); //--------------------------------------------------------------------------------------// process = jgrain(3);
https://raw.githubusercontent.com/JoaoSvidzinski/lorenz-dream/9d6014145d8101e92c34418f81c9be210650cf05/Patch_concert_2019/Dep/Jgrain/jgrain3.dsp
faust
--------------------------------------------------------------------------------------// GENERAL MATRIX// --------------------------------------------------------------------------------------// matrix of N x M toggles// --------------------------------------------------------------------------------------// sinuso = sinus * sinus; --------------------------------------------------------------------------------------// Grain parametres - from 0 to 1// Feedback externe - from 0 to 1// Input gains - from 0 to 1// OUTPUT GAINS - from 0 to 1// --------------------------------------------------------------------------------------// FEEDBACK REINJECTION MATRICES N x N --------------------------------------------------------------------------------------// --------------------------------------------------------------------------------------// --------------------------------------------------------------------------------------// --------------------------------------------------------------------------------------// --------------------------------------------------------------------------------------// --------------------------------------------------------------------------------------//
declare name "Jgrain 7"; declare version "1.0"; import("stdfaust.lib"); toggle(c, in) = checkbox("h:Lines/h:Reinjection_Matrix/v:Grain%2c-->/r%3in"); Mixer(N,out) = par(in, N, *(toggle(in, in+out*N)) ) :> _ ; Matrix(N,M) = par(in, N, _) <: par(out, M, Mixer(N, out)); sinuso = os.sinwaveform(tablesize) <: *; mili = ma.SR / 1000.0; maxdelay = 262144; tablesize = 192000; size(ind) = hslider("h:Grain/v:Grain_Size/size%2ind", 50, 0, 1000, 0.01); del(ind) = hslider("h:Grain/v:Grain_Delay/del%2ind", 0, 0, 5000, 0.1); rar(ind) = hslider("h:Grain/v:Grain_Rarefaction/rar%2ind", 0.5, 0, 1, 0.0001); fdx(ind) = hslider("h:Grain/v:Grain_FeedBackext/fdx%2ind", 1, 0, 1, 0.01) : si.smoo; inp(ind) = hslider("h:Grain/v:Input/inp%2ind [5]", 1, 0, 1, 0.01) : si.smoo; out(ind) = hslider("h:Grain/v:Output/out%2ind [6]", 1, 0, 1, 0.01) : si.smoo; fdMatrix(N) = Matrix(N, N); grain(size, del, rar) = grainS with { freq = 1000 / size; Phasor = os.phasor(1, freq); index = Phasor * tablesize; env = rdtable(tablesize, sinuso, int(index)); No = no.noise : +(1) : *(0.5); no_trigger = (No < rar); No2 = no.noise : +(1); delayInSamples = *(No2,del) : *(mili); adjustedPhasor = Phasor : ma.decimal; th_trigger = (adjustedPhasor > 0.001) * (adjustedPhasor@1 <= 0.001); trig_grain = no_trigger : ba.sAndH(th_trigger); trig_delay = delayInSamples : ba.sAndH(th_trigger); envG = trig_grain: *(_,env); grainS = *(_,1) : de.fdelay(maxdelay, trig_delay) : *(envG); }; inputSort(n) = si.bus(2*n) <: par(i, n, (ba.selector(i, 2*n), ba.selector(i+n, 2*n))); grainBlock(n) = par(i, n, (+ : grain(size(i), del(i), rar(i)))); fdBlock(n) = par(i, n, *(fdx(i))); fdToMatrixBlock(n) = fdBlock(n) : fdMatrix(n); inputBlock(n) = par(i, n, *(inp(i))); outputBlock(n) = par(i, n, *(out(i))); grainG(n) = (inputSort(n) : grainBlock(n)) ~ (fdToMatrixBlock(n)); jgrain(n) = inputBlock(n) : grainG(n) : outputBlock(n); process = jgrain(3);
5aa0bd23478cc8e262d723355a59358892b47a8fa060ab1f0a14afd599ffbfd4
mengqimusic/Wingie1
Wingie.dsp
declare name "Wingie"; declare version "1.8"; declare author "Meng Qi"; declare license "GPL"; declare copyright "(c)Meng Qi 2020"; declare date "2020-09-30"; declare editDate "2021-03-13"; //----------------------------------------------- // Wingie //----------------------------------------------- import("stdfaust.lib"); nHarmonics = 9; decay = hslider("decay", 5, 0.1, 10, 0.01) : si.smoo; input_gain = hslider("input_gain", 0.25, 0, 3, 0.01) : ba.lin2LogGain : si.smoo; input_gain_factor = hslider("input_gain_factor", 1,0,2,0.01) : ba.lin2LogGain; output_gain = 1 : ba.lin2LogGain; left_threshold = hslider("left_threshold", 0.1, 0, 1, 0.01); right_threshold = hslider("right_threshold", 0.1, 0, 1, 0.01); amp_follower_decay = 0.025; resonator_input_gain = hslider("resonator_input_gain", 0.1, 0, 1, 0.01) : ba.lin2LogGain; resonator_output_gain = hslider("resonator_output_gain", 0.4, 0, 1, 0.01) : ba.lin2LogGain; //hp_cutoff = hslider("hp_cutoff", 85, 35, 500, 0.1); bar_factor = 0.44444; mix = hslider("mix", 1, 0, 1, 0.01) : si.smoo; vol_wet = mix; vol_dry = (1 - mix); note0 = hslider("note0", 36, 12, 96, 1); note1 = hslider("note1", 36, 12, 96, 1); route0 = hslider("route0", 0, 0, 4, 1); route1 = hslider("route1", 0, 0, 4, 1); env_mode_change = 1 - en.ar(0.002, 0.5, button("mode_changed")); env_mute(t) = 1 - en.asr(0.25, 1., 0.25, t); bar_ratios(freq, n) = freq * bar_factor * pow((n + 1) + 0.5, 2); int_ratios(freq, n) = freq * (n + 1); //odd_ratios(freq, n) = freq * (2 * n + 1); //cymbal_808(n) = 130.812792, 193.957204, 235.501256, 333.053319, 344.076511, 392.438376, 509.742979, 581.871611, 706.503769, 999.16, 1032.222378, 1529.218338: ba.selectn(12, n); // chromatic serge(n) = 62, 115, 218, 411, 777, 1500, 2800, 5200, 11000 : ba.selectn(nHarmonics, n); poly(n) = a, a * 2, a * 3, b, b * 2, b * 3, c, c * 2, c * 3 : ba.selectn(nHarmonics, n) with { a = vslider("poly_note_0", 36, 24, 96, 1) : ba.midikey2hz; b = vslider("poly_note_1", 36, 24, 96, 1) : ba.midikey2hz; c = vslider("poly_note_2", 36, 24, 96, 1) : ba.midikey2hz; }; //bianzhong(n) = 212.3, 424.6, 530.8, 636.9, 1061.6, 1167.7, 2017.0, 2335.5, 2653.9, 3693 : ba.selectn(10, n); //cymbal_808(n) = 205.3, 304.4, 369.6, 522.7, 540, 615.9, 800, 913.2, 1108.8, 1568.1 : ba.selectn(10, n); // original //circular_membrane_ratios(n) = 1, 1.59, 2.14, 2.30, 2.65, 2.92, 3.16, 3.50, 3.60, 3.65 : ba.selectn(10, n); note_ratio(note) = pow(2., note / 12); f(note, n, s) = bar_ratios(ba.midikey2hz(note), n), int_ratios(ba.midikey2hz(note), n), //odd_ratios(ba.midikey2hz(note), n), //cymbal_808(n) * note_ratio(note - 48), serge(n), poly(n) : ba.selectn(4, s); r(note, index, source) = pm.modeFilter(a, b, ba.lin2LogGain(c)) with { a = min(f(note, index, source), 16000); b = env_mode_change * decay + 0.05; c = env_mute(button("mute_%index")); }; process = _,_ : fi.dcblocker, fi.dcblocker : (_ * input_gain_factor), (_ * input_gain_factor) : (_ <: attach(_, _ : an.amp_follower(amp_follower_decay) : _ > left_threshold : hbargraph("left_trig", 0, 1))), (_ <: attach(_, _ : an.amp_follower(amp_follower_decay) : _ > right_threshold : hbargraph("right_trig", 0, 1))) : (_ * input_gain * env_mode_change), (_ * input_gain * env_mode_change) <: (_ * resonator_input_gain : _ * vol_wet : fi.lowpass(1, 4000) <: hgroup("left", sum(i, nHarmonics, r(note0, i, route0))) : _ * resonator_output_gain), (_ * resonator_input_gain : _ * vol_wet : fi.lowpass(1, 4000) <: hgroup("right", sum(i, nHarmonics, r(note1, i, route1))) : _ * resonator_output_gain), (_ * vol_dry), (_ * vol_dry) //:> co.limiter_1176_R4_mono, co.limiter_1176_R4_mono :> ef.cubicnl(0.01, 0), ef.cubicnl(0.01, 0) : (_ * output_gain), (_ * output_gain) ;
https://raw.githubusercontent.com/mengqimusic/Wingie1/1f8e1a223a3d61804173196c5fae8764ff4b0996/Wingie.dsp
faust
----------------------------------------------- Wingie ----------------------------------------------- hp_cutoff = hslider("hp_cutoff", 85, 35, 500, 0.1); odd_ratios(freq, n) = freq * (2 * n + 1); cymbal_808(n) = 130.812792, 193.957204, 235.501256, 333.053319, 344.076511, 392.438376, 509.742979, 581.871611, 706.503769, 999.16, 1032.222378, 1529.218338: ba.selectn(12, n); // chromatic bianzhong(n) = 212.3, 424.6, 530.8, 636.9, 1061.6, 1167.7, 2017.0, 2335.5, 2653.9, 3693 : ba.selectn(10, n); cymbal_808(n) = 205.3, 304.4, 369.6, 522.7, 540, 615.9, 800, 913.2, 1108.8, 1568.1 : ba.selectn(10, n); // original circular_membrane_ratios(n) = 1, 1.59, 2.14, 2.30, 2.65, 2.92, 3.16, 3.50, 3.60, 3.65 : ba.selectn(10, n); odd_ratios(ba.midikey2hz(note), n), cymbal_808(n) * note_ratio(note - 48), :> co.limiter_1176_R4_mono, co.limiter_1176_R4_mono
declare name "Wingie"; declare version "1.8"; declare author "Meng Qi"; declare license "GPL"; declare copyright "(c)Meng Qi 2020"; declare date "2020-09-30"; declare editDate "2021-03-13"; import("stdfaust.lib"); nHarmonics = 9; decay = hslider("decay", 5, 0.1, 10, 0.01) : si.smoo; input_gain = hslider("input_gain", 0.25, 0, 3, 0.01) : ba.lin2LogGain : si.smoo; input_gain_factor = hslider("input_gain_factor", 1,0,2,0.01) : ba.lin2LogGain; output_gain = 1 : ba.lin2LogGain; left_threshold = hslider("left_threshold", 0.1, 0, 1, 0.01); right_threshold = hslider("right_threshold", 0.1, 0, 1, 0.01); amp_follower_decay = 0.025; resonator_input_gain = hslider("resonator_input_gain", 0.1, 0, 1, 0.01) : ba.lin2LogGain; resonator_output_gain = hslider("resonator_output_gain", 0.4, 0, 1, 0.01) : ba.lin2LogGain; bar_factor = 0.44444; mix = hslider("mix", 1, 0, 1, 0.01) : si.smoo; vol_wet = mix; vol_dry = (1 - mix); note0 = hslider("note0", 36, 12, 96, 1); note1 = hslider("note1", 36, 12, 96, 1); route0 = hslider("route0", 0, 0, 4, 1); route1 = hslider("route1", 0, 0, 4, 1); env_mode_change = 1 - en.ar(0.002, 0.5, button("mode_changed")); env_mute(t) = 1 - en.asr(0.25, 1., 0.25, t); bar_ratios(freq, n) = freq * bar_factor * pow((n + 1) + 0.5, 2); int_ratios(freq, n) = freq * (n + 1); serge(n) = 62, 115, 218, 411, 777, 1500, 2800, 5200, 11000 : ba.selectn(nHarmonics, n); poly(n) = a, a * 2, a * 3, b, b * 2, b * 3, c, c * 2, c * 3 : ba.selectn(nHarmonics, n) with { a = vslider("poly_note_0", 36, 24, 96, 1) : ba.midikey2hz; b = vslider("poly_note_1", 36, 24, 96, 1) : ba.midikey2hz; c = vslider("poly_note_2", 36, 24, 96, 1) : ba.midikey2hz; }; note_ratio(note) = pow(2., note / 12); f(note, n, s) = bar_ratios(ba.midikey2hz(note), n), int_ratios(ba.midikey2hz(note), n), serge(n), poly(n) : ba.selectn(4, s); r(note, index, source) = pm.modeFilter(a, b, ba.lin2LogGain(c)) with { a = min(f(note, index, source), 16000); b = env_mode_change * decay + 0.05; c = env_mute(button("mute_%index")); }; process = _,_ : fi.dcblocker, fi.dcblocker : (_ * input_gain_factor), (_ * input_gain_factor) : (_ <: attach(_, _ : an.amp_follower(amp_follower_decay) : _ > left_threshold : hbargraph("left_trig", 0, 1))), (_ <: attach(_, _ : an.amp_follower(amp_follower_decay) : _ > right_threshold : hbargraph("right_trig", 0, 1))) : (_ * input_gain * env_mode_change), (_ * input_gain * env_mode_change) <: (_ * resonator_input_gain : _ * vol_wet : fi.lowpass(1, 4000) <: hgroup("left", sum(i, nHarmonics, r(note0, i, route0))) : _ * resonator_output_gain), (_ * resonator_input_gain : _ * vol_wet : fi.lowpass(1, 4000) <: hgroup("right", sum(i, nHarmonics, r(note1, i, route1))) : _ * resonator_output_gain), (_ * vol_dry), (_ * vol_dry) :> ef.cubicnl(0.01, 0), ef.cubicnl(0.01, 0) : (_ * output_gain), (_ * output_gain) ;
b2329ba9917716d039ea5a04ba4d5cae26c7124112d480281d2506f5410d4513
sadko4u/tamgamp.lv2
pre_6dj8.dsp
/* * Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "6DJ8"; // in amp tube ba.selector declare name "6DJ8"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(pregain) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) ; stage2 = *(pregain) : fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ) :> _ ; } ; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); postgain = ampctrl.postgain * 0.06310 : si.smooth(0.999); // -24 dB correction };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/gxsim/pre_6dj8.dsp
faust
* Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 -24 dB correction
declare name "6DJ8"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); tubeax(pregain) = stage1 : stage2 with { stage1 = tubestage130_20(TB_6DJ8_68k,86.0,2700.0,1.863946) : *(pregain) : fi.lowpass(1,6531.0) : tubestage130_20(TB_6DJ8_250k,132.0,1500.0,1.271609) ; stage2 = *(pregain) : fi.lowpass(1,6531.0) <: ( tubestage130_20(TB_6DJ8_68k,194.0,820.0,0.799031), tubestage130_20(TB_6DJ8_250k,194.0,820.0,0.797043) ) :> _ ; } ; process = component("amp_dist.dsp").dist(gain) : tubeax(pregain) : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); };
96cb69cfac0a6990d2c969b137835229bbed0fab47b98b7550cc3fba82bd1865
rmichon/multiKeyboard
frog.dsp
//################################### frog.dsp ##################################### // A simple smart phone abstract instrument than can be controlled using the touch // screen and the accelerometers of the device. // // ## `SmartKeyboard` Use Strategy // // The idea here is to use the `SmartKeyboard` interface as an X/Y control pad by just // creating one keyboard with on key and by retrieving the X and Y position on that single // key using the `x` and `y` standard parameters. Keyboard mode is deactivated so that // the color of the pad doesn't change when it is pressed. // // ## Compilation Instructions // // This Faust code will compile fine with any of the standard Faust targets. However // it was specifically designed to be used with `faust2smartkeyb`. For best results, // we recommend to use the following parameters to compile it: // // ``` // faust2smartkeyb [-ios/-android] frog.dsp // ``` // // ## Version/Licence // // Version 0.0, Feb. 2017 // Copyright Romain Michon CCRMA (Stanford University)/GRAME 2017 // MIT Licence: https://opensource.org/licenses/MIT //######################################################################################## declare name "frog"; import("stdfaust.lib"); //========================= Smart Keyboard Configuration ================================= // (1 keyboards with 1 key configured as a pad. //======================================================================================== declare interface "SmartKeyboard{ 'Number of Keyboards':'1', 'Keyboard 0 - Number of Keys':'1', 'keyb0_keybMode':'0', 'Keyboard 0 - Piano Keyboard':'0', 'Keyboard 0 - Static Mode':'1' }"; //================================ Instrument Parameters ================================= // Creates the connection between the synth and the mobile device //======================================================================================== // SmartKeyboard X parameter x = hslider("x",0,0,1,0.01); // SmartKeyboard Y parameter y = hslider("y",0,0,1,0.01); // SmartKeyboard gate parameter gate = button("gate"); // the cutoff frequency of the filter is controlled with the x axis of the accelerometer cutoff = hslider("cutoff[acc: 0 0 -10 0 10]",2500,50,5000,0.01); //=================================== Parameters Mapping ================================= //======================================================================================== maxFreq = 100; minFreq = 1; freq = x*(maxFreq-minFreq) + minFreq : si.polySmooth(gate,0.999,2); maxQ = 40; minQ = 1; q = (1-y)*(maxQ-minQ) + minQ : si.smoo; filterCutoff = cutoff : si.smoo; //============================================ DSP ======================================= //======================================================================================== process = sy.dubDub(freq,filterCutoff,q,gate);
https://raw.githubusercontent.com/rmichon/multiKeyboard/7d04f591fac974a91e4b322c3cb757b8cbb50443/faust/examples/frog.dsp
faust
################################### frog.dsp ##################################### A simple smart phone abstract instrument than can be controlled using the touch screen and the accelerometers of the device. ## `SmartKeyboard` Use Strategy The idea here is to use the `SmartKeyboard` interface as an X/Y control pad by just creating one keyboard with on key and by retrieving the X and Y position on that single key using the `x` and `y` standard parameters. Keyboard mode is deactivated so that the color of the pad doesn't change when it is pressed. ## Compilation Instructions This Faust code will compile fine with any of the standard Faust targets. However it was specifically designed to be used with `faust2smartkeyb`. For best results, we recommend to use the following parameters to compile it: ``` faust2smartkeyb [-ios/-android] frog.dsp ``` ## Version/Licence Version 0.0, Feb. 2017 Copyright Romain Michon CCRMA (Stanford University)/GRAME 2017 MIT Licence: https://opensource.org/licenses/MIT ######################################################################################## ========================= Smart Keyboard Configuration ================================= (1 keyboards with 1 key configured as a pad. ======================================================================================== ================================ Instrument Parameters ================================= Creates the connection between the synth and the mobile device ======================================================================================== SmartKeyboard X parameter SmartKeyboard Y parameter SmartKeyboard gate parameter the cutoff frequency of the filter is controlled with the x axis of the accelerometer =================================== Parameters Mapping ================================= ======================================================================================== ============================================ DSP ======================================= ========================================================================================
declare name "frog"; import("stdfaust.lib"); declare interface "SmartKeyboard{ 'Number of Keyboards':'1', 'Keyboard 0 - Number of Keys':'1', 'keyb0_keybMode':'0', 'Keyboard 0 - Piano Keyboard':'0', 'Keyboard 0 - Static Mode':'1' }"; x = hslider("x",0,0,1,0.01); y = hslider("y",0,0,1,0.01); gate = button("gate"); cutoff = hslider("cutoff[acc: 0 0 -10 0 10]",2500,50,5000,0.01); maxFreq = 100; minFreq = 1; freq = x*(maxFreq-minFreq) + minFreq : si.polySmooth(gate,0.999,2); maxQ = 40; minQ = 1; q = (1-y)*(maxQ-minQ) + minQ : si.smoo; filterCutoff = cutoff : si.smoo; process = sy.dubDub(freq,filterCutoff,q,gate);
23f048446cd5556652408fd727c4cae091584d629b3b626130874f46720f9c39
darkoverlordofdata/amp-sim-faust
freeverb.dsp
import("stdfaust.lib"); import("layout2.dsp"); declare name "freeverb"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c) GRAME 2006 and MoForte Inc. 2017"; declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html"; //====================================================== // // Freeverb // Faster version using fixed delays (20% gain) // //====================================================== // Constant Parameters //-------------------- fixedgain = 0.015; //value of the gain of fxctrl scalewet = 3.0; scaledry = 2.0; scaledamp = 0.4; scaleroom = 0.28; offsetroom = 0.7; initialroom = 0.5; initialdamp = 0.5; initialwet = 1.0/scalewet; initialdry = 0; initialwidth= 1.0; initialmode = 0.0; freezemode = 0.5; stereospread= 23; allpassfeed = 0.5; //feedback of the delays used in allpass filters // Filter Parameters //------------------ combtuningL1 = 1116; combtuningL2 = 1188; combtuningL3 = 1277; combtuningL4 = 1356; combtuningL5 = 1422; combtuningL6 = 1491; combtuningL7 = 1557; combtuningL8 = 1617; allpasstuningL1 = 556; allpasstuningL2 = 441; allpasstuningL3 = 341; allpasstuningL4 = 225; // Control Sliders //-------------------- // Damp : filters the high frequencies of the echoes (especially active for great values of RoomSize) // RoomSize : size of the reverberation room // Dry : original signal // Wet : reverberated signal dampSlider = rkg(vslider("Damp [midi:ctrl 3] [style:knob]",0.5, 0, 1, 0.025))*scaledamp; roomsizeSlider = rkg(vslider("RoomSize [midi:ctrl 4] [style:knob]", 0.5, 0, 1, 0.025))*scaleroom + offsetroom; wetSlider = rkg(vslider("Wet [midi:ctrl 79] [style:knob]", 0.3333, 0, 1, 0.025)); combfeed = roomsizeSlider; // Comb and Allpass filters //------------------------- allpass(dt,fb) = (_,_ <: (*(fb),_:+:@(dt)), -) ~ _ : (!,_); comb(dt, fb, damp) = (+:@(dt)) ~ (*(1-damp) : (+ ~ *(damp)) : *(fb)); // Reverb components //------------------ monoReverb(fb1, fb2, damp, spread) = _ <: comb(combtuningL1+spread, fb1, damp), comb(combtuningL2+spread, fb1, damp), comb(combtuningL3+spread, fb1, damp), comb(combtuningL4+spread, fb1, damp), comb(combtuningL5+spread, fb1, damp), comb(combtuningL6+spread, fb1, damp), comb(combtuningL7+spread, fb1, damp), comb(combtuningL8+spread, fb1, damp) +> allpass (allpasstuningL1+spread, fb2) : allpass (allpasstuningL2+spread, fb2) : allpass (allpasstuningL3+spread, fb2) : allpass (allpasstuningL4+spread, fb2) ; monoReverbToStereo(fb1, fb2, damp, spread) = + <: monoReverb(fb1, fb2, damp, 0) <: _,_; stereoReverb(fb1, fb2, damp, spread) = + <: monoReverb(fb1, fb2, damp, 0), monoReverb(fb1, fb2, damp, spread); monoToStereoReverb(fb1, fb2, damp, spread) = _ <: monoReverb(fb1, fb2, damp, 0), monoReverb(fb1, fb2, damp, spread); // fxctrl : add an input gain and a wet-dry control to a stereo FX //---------------------------------------------------------------- fxctrl(g,w,Fx) = _,_ <: (*(g),*(g) : Fx : *(w),*(w)), *(1-w), *(1-w) +> _,_; rbp = 1-int(rsg(vslider("[0] Enable [midi:ctrl 104][style:knob]",0,0,1,1))); // Freeverb //--------- //JOS:freeverb = fxctrl(fixedgain, wetSlider, stereoReverb(combfeed, allpassfeed, dampSlider, stereospread)); freeverb = fxctrl(fixedgain, wetSlider, monoReverbToStereo(combfeed, allpassfeed, dampSlider, stereospread)); process = ba.bypass2(rbp,freeverb);
https://raw.githubusercontent.com/darkoverlordofdata/amp-sim-faust/91696611bc64e94c5767a43aaa0478f260ca43a3/src/freeverb.dsp
faust
====================================================== Freeverb Faster version using fixed delays (20% gain) ====================================================== Constant Parameters -------------------- value of the gain of fxctrl feedback of the delays used in allpass filters Filter Parameters ------------------ Control Sliders -------------------- Damp : filters the high frequencies of the echoes (especially active for great values of RoomSize) RoomSize : size of the reverberation room Dry : original signal Wet : reverberated signal Comb and Allpass filters ------------------------- Reverb components ------------------ fxctrl : add an input gain and a wet-dry control to a stereo FX ---------------------------------------------------------------- Freeverb --------- JOS:freeverb = fxctrl(fixedgain, wetSlider, stereoReverb(combfeed, allpassfeed, dampSlider, stereospread));
import("stdfaust.lib"); import("layout2.dsp"); declare name "freeverb"; declare version "1.0"; declare author "Grame"; declare license "BSD"; declare copyright "(c) GRAME 2006 and MoForte Inc. 2017"; declare reference "https://ccrma.stanford.edu/~jos/pasp/Freeverb.html"; scalewet = 3.0; scaledry = 2.0; scaledamp = 0.4; scaleroom = 0.28; offsetroom = 0.7; initialroom = 0.5; initialdamp = 0.5; initialwet = 1.0/scalewet; initialdry = 0; initialwidth= 1.0; initialmode = 0.0; freezemode = 0.5; stereospread= 23; combtuningL1 = 1116; combtuningL2 = 1188; combtuningL3 = 1277; combtuningL4 = 1356; combtuningL5 = 1422; combtuningL6 = 1491; combtuningL7 = 1557; combtuningL8 = 1617; allpasstuningL1 = 556; allpasstuningL2 = 441; allpasstuningL3 = 341; allpasstuningL4 = 225; dampSlider = rkg(vslider("Damp [midi:ctrl 3] [style:knob]",0.5, 0, 1, 0.025))*scaledamp; roomsizeSlider = rkg(vslider("RoomSize [midi:ctrl 4] [style:knob]", 0.5, 0, 1, 0.025))*scaleroom + offsetroom; wetSlider = rkg(vslider("Wet [midi:ctrl 79] [style:knob]", 0.3333, 0, 1, 0.025)); combfeed = roomsizeSlider; allpass(dt,fb) = (_,_ <: (*(fb),_:+:@(dt)), -) ~ _ : (!,_); comb(dt, fb, damp) = (+:@(dt)) ~ (*(1-damp) : (+ ~ *(damp)) : *(fb)); monoReverb(fb1, fb2, damp, spread) = _ <: comb(combtuningL1+spread, fb1, damp), comb(combtuningL2+spread, fb1, damp), comb(combtuningL3+spread, fb1, damp), comb(combtuningL4+spread, fb1, damp), comb(combtuningL5+spread, fb1, damp), comb(combtuningL6+spread, fb1, damp), comb(combtuningL7+spread, fb1, damp), comb(combtuningL8+spread, fb1, damp) +> allpass (allpasstuningL1+spread, fb2) : allpass (allpasstuningL2+spread, fb2) : allpass (allpasstuningL3+spread, fb2) : allpass (allpasstuningL4+spread, fb2) ; monoReverbToStereo(fb1, fb2, damp, spread) = + <: monoReverb(fb1, fb2, damp, 0) <: _,_; stereoReverb(fb1, fb2, damp, spread) = + <: monoReverb(fb1, fb2, damp, 0), monoReverb(fb1, fb2, damp, spread); monoToStereoReverb(fb1, fb2, damp, spread) = _ <: monoReverb(fb1, fb2, damp, 0), monoReverb(fb1, fb2, damp, spread); fxctrl(g,w,Fx) = _,_ <: (*(g),*(g) : Fx : *(w),*(w)), *(1-w), *(1-w) +> _,_; rbp = 1-int(rsg(vslider("[0] Enable [midi:ctrl 104][style:knob]",0,0,1,1))); freeverb = fxctrl(fixedgain, wetSlider, monoReverbToStereo(combfeed, allpassfeed, dampSlider, stereospread)); process = ba.bypass2(rbp,freeverb);
5969464e234a0a35aebad9750e2251d7b3a6c93a2cb70168a3933d99e87a6c1a
friskgit/kmh_ls
KMHLS_channel_map_lin.dsp
declare name "KMHLS ChannelMap - 16+29+4"; declare version " 0.1 "; declare author " Henrik Frisk " ; declare license " BSD "; declare copyright "(c) dinergy 2018 "; //---------------`Channel mapping plugin` -------------------------- // // Channel mapping plugin that takes 52 inputs, although only the 49 first channels are routed. // These are routed to the Crescendo mixer channel layout. // // This version expects the floor ring in the beginning of the input. // // Insert this plugin on the master track or similar to get channels to map correctly to the Crescendo, i.e.: // // * Channel 1-16 of the input maps to Crescendo 33-48 (Layer B) // * Channel 17-45 of the input maps to Crescendo 1-29 (Layer A) // * Channel 46-49 maps to Crescendo 49-52 (Layer B) //--------------------------------------------------- import("stdfaust.lib"); domevol = hslider("Volume dome", 1., 0., 1., 0.001) : si.smoo; floorvol = hslider("Volume floor", 1., 0., 1., 0.001) : si.smoo; bassvol = hslider("Volume bass", 1., 0., 1., 0.001) : si.smoo; process (d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, b1, b2, b3, b4, b5, b6, b7, b8, c1, c2, c3, c4, c5, sub1, sub2, sub3, sub4, x1, x2, x3) = a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, b1, b2, b3, b4, b5, b6, b7, b8, c1, c2, c3, c4, c5, 0, 0, 0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, sub1, sub2, sub3, sub4 : hgroup("lower ring", par(i, 29, _ * domevol)), _, _, _, hgroup("floor ring", par(i, 16, _ * floorvol)), hgroup("subs", par(i, 4, _ * bassvol));
https://raw.githubusercontent.com/friskgit/kmh_ls/3273d90bee62a0200a96166b6f690705a3e82fcc/KMHLS_utility/doc/KMHLS_channel_map_lin-mdoc/src/KMHLS_channel_map_lin.dsp
faust
---------------`Channel mapping plugin` -------------------------- Channel mapping plugin that takes 52 inputs, although only the 49 first channels are routed. These are routed to the Crescendo mixer channel layout. This version expects the floor ring in the beginning of the input. Insert this plugin on the master track or similar to get channels to map correctly to the Crescendo, i.e.: * Channel 1-16 of the input maps to Crescendo 33-48 (Layer B) * Channel 17-45 of the input maps to Crescendo 1-29 (Layer A) * Channel 46-49 maps to Crescendo 49-52 (Layer B) ---------------------------------------------------
declare name "KMHLS ChannelMap - 16+29+4"; declare version " 0.1 "; declare author " Henrik Frisk " ; declare license " BSD "; declare copyright "(c) dinergy 2018 "; import("stdfaust.lib"); domevol = hslider("Volume dome", 1., 0., 1., 0.001) : si.smoo; floorvol = hslider("Volume floor", 1., 0., 1., 0.001) : si.smoo; bassvol = hslider("Volume bass", 1., 0., 1., 0.001) : si.smoo; process (d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, b1, b2, b3, b4, b5, b6, b7, b8, c1, c2, c3, c4, c5, sub1, sub2, sub3, sub4, x1, x2, x3) = a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, b1, b2, b3, b4, b5, b6, b7, b8, c1, c2, c3, c4, c5, 0, 0, 0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, sub1, sub2, sub3, sub4 : hgroup("lower ring", par(i, 29, _ * domevol)), _, _, _, hgroup("floor ring", par(i, 16, _ * floorvol)), hgroup("subs", par(i, 4, _ * bassvol));
233ef4449e45a560d2e19e07198414d70fc95efd90987bc24259d14ebfbe4a86
sadko4u/tamgamp.lv2
pre_12ax7_master_6v6.dsp
/* * Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "pre 12ax7/ master 6V6"; // in amp tube ba.selector declare name "pre 12ax7/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ process = stage1 : component("amp_dist.dsp").dist(gain) : stage2 : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); postgain = ampctrl.postgain * 0.06310 : si.smooth(0.999); // -24 dB correction stage1 = *(pregain) : tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) ; stage2 = pot_48db(master) : fi.lowpass(1,6531.0) <: ( tubestage(TB_6V6_250k,6531.0,820.0,1.130462), tubestage(TB_6V6_68k,6531.0,820.0,1.130740) ) :> _ ; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/gxsim/pre_12ax7_master_6v6.dsp
faust
* Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 -24 dB correction
declare name "pre 12ax7/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); process = stage1 : component("amp_dist.dsp").dist(gain) : stage2 : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); stage1 = *(pregain) : tubestage(TB_12AX7_68k,86.0,2700.0,1.581656) : fi.lowpass(1,6531.0) : tubestage(TB_12AX7_250k,132.0,1500.0,1.204285) : tubestage(TB_12AX7_250k,194.0,820.0,0.840703) ; stage2 = pot_48db(master) : fi.lowpass(1,6531.0) <: ( tubestage(TB_6V6_250k,6531.0,820.0,1.130462), tubestage(TB_6V6_68k,6531.0,820.0,1.130740) ) :> _ ; };
7eab17cb0ab8baba445b73d4b39afda6dd06389ca6c748041d2ab081f1833493
sadko4u/tamgamp.lv2
pre_12au7_master6v6.dsp
/* * Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ declare id "pre 12AU7/ master 6V6"; // in amp tube ba.selector declare name "pre 12AU7/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); /**************************************************************** ** Tube Preamp Emulation stage 1 - 2 */ process = stage1 : component("amp_dist.dsp").dist(gain) : stage2 : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); postgain = ampctrl.postgain * 0.06310 : si.smooth(0.999); // -24 dB correction stage1 = *(pregain) : tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = pot_48db(master) : fi.lowpass(1,6531.0) <: ( tubestage(TB_6V6_250k,6531.0,820.0,1.130462), tubestage(TB_6V6_68k,6531.0,820.0,1.130740) ) :> _ ; };
https://raw.githubusercontent.com/sadko4u/tamgamp.lv2/426da74142fcb6b7687a35b2b1dda3392e171b92/src/faust/gxsim/pre_12au7_master6v6.dsp
faust
* Simulation of Guitarix preamplifier chain * * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert * Copyright (C) 2011 Pete Shorthose <http://guitarix.org/> * This file is part of tamgamp.lv2 <https://github.com/sadko4u/tamgamp.lv2>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. in amp tube ba.selector *************************************************************** ** Tube Preamp Emulation stage 1 - 2 -24 dB correction
declare name "pre 12AU7/ master 6V6"; declare samplerate "96000"; import("stdfaust.lib"); import("amp_sim.lib"); process = stage1 : component("amp_dist.dsp").dist(gain) : stage2 : *(postgain) with { gain = ampctrl.gain : si.smooth(0.999); master = ampctrl.master : si.smooth(0.999); pregain = ampctrl.pregain : si.smooth(0.999); stage1 = *(pregain) : tubestage130_10(TB_12AU7_68k,86.0,2700.0,1.257240) : fi.lowpass(1,6531.0) : tubestage130_10(TB_12AU7_250k,132.0,1500.0,0.776162) : tubestage130_10(TB_12AU7_250k,194.0,820.0,0.445487); stage2 = pot_48db(master) : fi.lowpass(1,6531.0) <: ( tubestage(TB_6V6_250k,6531.0,820.0,1.130462), tubestage(TB_6V6_68k,6531.0,820.0,1.130740) ) :> _ ; };