rsc3/doc/help/ugen/envelopes/detect-silence.help.scrbl

23 lines
398 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(detect-silence in amp time doneAction)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
If the signal at `in' falls below `amp' for `time' seconds then
`doneAction' is raised.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((s (mul (sin-osc ar 440 0) (mouse-y kr 0 0.4 0 0.1))))
(audition (mrg2 (detect-silence s 0.1 0.2 remove-synth)
(out 0 s))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(with-sc3 display-server-status)
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00