rsc3/doc/help/ugen/envelopes/free.help.scrbl

29 lines
478 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(free trig nodeID)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
When triggered frees a node.
trig - when triggered, frees node
nodeID - node to be freed
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(with-sc3
(lambda (fd)
(send-synth fd "a" (out 0 (mul (sin-osc ar 800 0) 0.1)))
(send-synth fd "b" (mrg2 (out 1 (mul (pink-noise ar) 0.1))
(free (dust ar 6) 1001)))
(send fd (s-new0 "a" 1001 0 0))
(send fd (s-new0 "b" -1 0 0))))
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 reset)
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00