rsc3/doc/help/ugen/triggers/schmidt.help.scrbl

24 lines
484 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(schmidt in lo hi)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
schmidt trigger. When in crosses to greater than hi, output 1.0,
then when signal crosses lower than lo output 0.0. output is
initially zero.
in - signal to be tested
lo - low threshold
hi - high threshold
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((in (lf-noise1 kr 3))
(octave (add (schmidt in -0.15 0.15) 1))
(f (add (mul in 200) (mul 500 octave))))
(audition (out 0 (mul (sin-osc ar f 0) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00