Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Binaural4 using static again, DBAP4e fixed

  • Loading branch information...
commit 7d029e81f1333ae8c60c72e3384c0fe46f72f697 1 parent f8143b7
@hoch hoch authored
Showing with 10 additions and 16 deletions.
  1. +1 −1  binaural/Binaural4.ck
  2. +9 −15 binaural/example-Binaural4.ck
View
2  binaural/Binaural4.ck
@@ -10,7 +10,7 @@
// to each ear using the nearfield quad setup in the CCRMA
// ballroom with help from Jonathan Abel.
// @version chuck-1.3.1.3 / ma-0.2.2c
-// @revision 8
+// @revision 9
// sanity check
View
24 binaural/example-Binaural4.ck
@@ -2,27 +2,21 @@
// @author Hongchan Choi (hongchan@ccrma)
// @desc A simple examplary usage of Binaural4 class
// @version chuck-1.3.1.3 / ma-0.2.2c
-// @revision 1
+// @revision 2
+// IMPORTANT: add Binaural4 class first!
-// NOTE: do not set this to 0 if you have stereo setup!
-1 => int BINAURAL_MIX;
-
+// load you audio files
SndBuf buf[4];
-Binaural4 b4;
-// NOTE: set your path otherwise the VM will fail you.
-"___YOUR_PATH_HERE___" => buf[0].read;
-"___YOUR_PATH_HERE___" => buf[1].read;
-"___YOUR_PATH_HERE___" => buf[2].read;
-"___YOUR_PATH_HERE___" => buf[3].read;
+// NOTE: set your path here otherwise the VM will fail you.
+"___YOUR_FILE_0___" => buf[0].read;
+"___YOUR_FILE_1___" => buf[1].read;
+"___YOUR_FILE_2___" => buf[2].read;
+"___YOUR_FILE_3___" => buf[3].read;
for(0 => int i; i < 4; ++i) {
- if (BINAURAL_MIX == 1) {
- buf[i] => b4.input[i];
- } else {
- buf[i] => dac.chan(i);
- }
+ buf[i] => Binaural4.input[i];
}
1::minute => now;
Please sign in to comment.
Something went wrong with that request. Please try again.