Permalink
Browse files

tested/revised DBAP4, DBAP4e

  • Loading branch information...
1 parent 18e77d6 commit db1d2cb8198ac924b193f3c8d76f2a0a59f0c86f @hoch hoch committed Oct 25, 2012
Showing with 26 additions and 10 deletions.
  1. +6 −7 binaural/Binaural4.ck
  2. +1 −1 binaural/example-Binaural4.ck
  3. +1 −1 panning/DBAP4.ck
  4. +3 −1 panning/DBAP4e.ck
  5. +15 −0 panning/example-DBAP4.ck
View
@@ -23,7 +23,7 @@ public class Binaural4
me.sourceDir() + "/ir/ccrma-ballroom/" => string _path;
// print startup message
- cherr <= "[Binaural4] Starting...\n";
+ cherr <= "[Binaural4] Creating instance...\n";
// number of synthesized point sources which will be
// the number of speakers that produced impulse responses
@@ -41,7 +41,7 @@ public class Binaural4
_path + _channels[channel] + "_" + ear + ".wav" => string filename;
SndBuf irbuf;
filename => irbuf.read;
- cherr <= filename <= IO.newline();
+ // cherr <= filename <= IO.newline();
50.0 => irbuf.gain; // ???
FFT X;
@@ -127,8 +127,7 @@ public class Binaural4
}
// log message and start loop
- cherr <= "[Binaural4] Launched successfully.\n";
- while(true) {
- 1::minute => now;
- }
-} // END OF CLASS: Binaural4
+ cherr <= "[Binaural4] Mixer launched successfully.\n";
+} // END OF CLASS: Binaural4
+
+cherr <= "[Binaural4] Class definition loaded.\n";
@@ -1,7 +1,7 @@
// @title example-Binaural4.ck
// @author Hongchan Choi (hongchan@ccrma)
// @desc A simple examplary usage of Binaural4 class
-// @version chuck-1.3.1.3
+// @version chuck-1.3.1.3 / ma-0.2.2c
// @revision 1
View
@@ -59,4 +59,4 @@ class DBAP4 extends Chubgraph
fun void setGain(float gain) {
gain => _in.target;
}
-}
+} // END OF CLASS: DBAP4
View
@@ -18,6 +18,8 @@ class DBAP4e extends Chubgraph
if (dac.channels() < 4) {
cherr <= "[DBAP4] Insufficient output ports - using binaural mixdown.\n";
1 => _BINAURAL;
+ } else {
+ cherr <= "[DBAP4] Using 4-channel configuration.\n";
}
// position of speakers: LF, RF, LR, RR (Z-config)
@@ -115,4 +117,4 @@ class DBAP4e extends Chubgraph
}
}
}
-}
+} // END OF CLASS: DBAP4e
@@ -0,0 +1,15 @@
+// @title example-DBAP4.ck
+// @author Hongchan Choi (hongchan@ccrma)
+// @desc A simple examplary usage of DBAP4, DBAP4e class
+// @version chuck-1.3.1.3 / ma-0.2.2c
+// @revision 1
+
+
+Impulse i => DBAP4e p;
+0.0 => float t;
+while(true) {
+ 1.0 => i.next;
+ 0.15 +=> t;
+ p.setPosition(Math.sin(t), Math.cos(t));
+ 100::ms => now;
+}

0 comments on commit db1d2cb

Please sign in to comment.