added file that plays sin wave using rsc3
This commit is contained in:
parent
5c7fe7d54e
commit
4255e19607
1 changed files with 17 additions and 0 deletions
17
rsc3-sine-play.rkt
Normal file
17
rsc3-sine-play.rkt
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#lang racket
|
||||||
|
|
||||||
|
(require "rsc3/rsc3.rkt")
|
||||||
|
|
||||||
|
|
||||||
|
;; start udp SuperCollider server with: scsynth -u 57110
|
||||||
|
|
||||||
|
(with-sc3 (lambda (fd) (send fd (g-new1 1 add-to-tail 0))))
|
||||||
|
|
||||||
|
;; play sin wave
|
||||||
|
(audition (out 0 (mul (sin-osc ar 440 0) 0.1)))
|
||||||
|
|
||||||
|
;; reset
|
||||||
|
; (with-sc3 reset)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue