2014-05-20 18:04:42 +00:00
|
|
|
#lang racket
|
|
|
|
|
|
|
|
(require rsc3 rhs/rhs)
|
|
|
|
|
|
|
|
|
|
|
|
;; 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")
|
|
|
|
|
2014-05-22 17:39:35 +00:00
|
|
|
#|
|
2014-05-20 18:04:42 +00:00
|
|
|
(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)))
|
|
|
|
|
|
|
|
|
2014-05-22 17:39:35 +00:00
|
|
|
|#
|