added sample.rkt
This commit is contained in:
parent
4a82d72d3f
commit
e8464bca98
1 changed files with 20 additions and 0 deletions
20
oregano/sample.rkt
Normal file
20
oregano/sample.rkt
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#lang racket
|
||||||
|
|
||||||
|
(require rsc3 rhs/rhs)
|
||||||
|
|
||||||
|
|
||||||
|
(with-sc3 reset)
|
||||||
|
|
||||||
|
(send-msg (dump-osc 1))
|
||||||
|
|
||||||
|
;; load a smple in a buffer
|
||||||
|
; (send-async-msg (b-alloc-read 42 "./Samples/Synth Hits/Synth Hit 01.wav" 0 0))
|
||||||
|
|
||||||
|
(define fname "./Samples/Synth Hits/Synth Hit 01.wav")
|
||||||
|
|
||||||
|
(send-async-msg (b-alloc 0 16380 2))
|
||||||
|
(send-async-msg (b-read 0 fname 0 -1 0 1))
|
||||||
|
|
||||||
|
(audition (out 0 (disk-in 2 ar 0)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue