rsc3/doc/help/ugen/oscillators/impulse.help.scrbl

30 lines
430 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
2022-08-28 10:27:01 +00:00
@title{impulse}
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
(import (rsc3))
]
@racketblock[
2022-08-24 13:53:18 +00:00
(audition (out 0 (mul (impulse ar 800 0) 0.1)))
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
(let ((f (x-line kr 800 10 5 remove-synth)))
(audition (out 0 (mul (impulse ar f 0.0) 0.5))))
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
(let ((f (mouse-y* kr 4 8 0 0.1))
(p (mouse-x* kr 0 1 0 0.1)))
2022-08-28 10:27:01 +00:00
(audition (out 0 (mul (impulse ar f (mce2 0 p)) 0.2))))
]
2022-08-24 13:53:18 +00:00