From e8464bca9830cd4999aa5bf04a7371880206873a Mon Sep 17 00:00:00 2001 From: Mustafa Date: Tue, 20 May 2014 11:04:42 -0700 Subject: [PATCH] added sample.rkt --- oregano/sample.rkt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 oregano/sample.rkt diff --git a/oregano/sample.rkt b/oregano/sample.rkt new file mode 100644 index 0000000..e25c660 --- /dev/null +++ b/oregano/sample.rkt @@ -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))) + +