-
Notifications
You must be signed in to change notification settings - Fork 4
/
randomlp.ny
56 lines (22 loc) · 977 Bytes
/
randomlp.ny
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
;nyquist plug-in
;version 1
;type process
;name "Random low pass filter..."
;action "Playing around with your low pass cutoff knob..."
;info "Random low pass filter by David R. Sky"
;control maxspeed "Max filter sweep speed" real "hz" 0.20 0.01 10.00
;control factor "Filter depth factor" int "factor" 20 1 300
;control freq "Maximum cutoff frequency" real "Hz" 2000 20 5000
;; Random low pass filter by David R. Sky September 2004
;;
;; Note the lower the maxspeed frequency,
;; the higher factor must be to hear a result.
;; Factor can also be used to increase
;; or decrease the depth of the effect.
;; (Factor and maxspeed are inversely proportional.)
;; Freq in this plug-in is the maximum cutoff frequency
;; of the randomly-modulated low pass filter.
(defun ransiglog (freq factor maxspeed)
(mult freq (lp (mult factor (lp (noise) maxspeed))
(mult 0.5 maxspeed))))
(lp s (ransiglog freq factor maxspeed))