Skip to content
Browse files

DBAP4.ck added: error fixed.

  • Loading branch information...
1 parent 781d6f5 commit 4c375fe25b6578a653e55138c5d29a3924342fbb @hoch hoch committed Oct 24, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 panning/DBAP4.ck
View
7 panning/DBAP4.ck
@@ -8,6 +8,12 @@
class DBAP4 extends Chubgraph
{
+ // sanity check
+ if (dac.channels() < 4) {
+ <<< "[DBAP4] Insufficient output ports." >>>;
+ me.exit();
+ }
+
// position of speakers: LF, RF, LR, RR (Z-config)
[[-1.0, 1.0], [1.0, 1.0], [-1.0, -1.0], [1.0, -1.0]]
@=> float _spks[][];
@@ -29,7 +35,6 @@ class DBAP4 extends Chubgraph
// _in => _out[i] => b4.pssp[i];
20::ms => _out[i].duration;
1.0 => _out[i].target;
- 0.1 => r[i].mix;
}
// setPosition(): implements simple DBAP. the radius

0 comments on commit 4c375fe

Please sign in to comment.
Something went wrong with that request. Please try again.