forked from mehdi47/PedalEditor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfaust-code-samples.txt
32 lines (24 loc) · 1.24 KB
/
faust-code-samples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
############################################## THREE HORIZONTAL ##########################################################
import("stdfaust.lib");
q = hslider("q",5,1,30,0.1);
gain = hslider("gain",1,0,1,0.01);
ctFreq = hslider("cutoffFrequency",500,50,10000,0.01);
process = no.noise : fi.resonlp(ctFreq,q,gain);
####################################### TWO VERTICAL AND ONE HORIZONTAL ###############################################
import("stdfaust.lib");
q = vslider("q",5,1,30,0.1);
gain = vslider("gain",1,0,1,0.01);
ctFreq = hslider("cutoffFrequency",500,50,10000,0.01);
process = no.noise : fi.resonlp(ctFreq,q,gain);
####################################### TWO KNOBS, ONE SLIDER ###############################################
import("stdfaust.lib");
q = hslider("q[style:knob]",5,1,30,0.1);
gain = hslider("gain[style:knob]",1,0,1,0.01);
ctFreq = hslider("cutoffFrequency",500,50,10000,0.01);
process = no.noise : fi.resonlp(ctFreq,q,gain);
####################################### ON KNOB, TWO SLIDERS ###############################################
import("stdfaust.lib");
q = hslider("q[style:knob]",5,1,30,0.1);
gain = hslider("gain",1,0,1,0.01);
ctFreq = hslider("cutoffFrequency",500,50,10000,0.01);
process = no.noise : fi.resonlp(ctFreq,q,gain);