Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed DBAP4.ck for homework 3

  • Loading branch information...
commit f5439d2f2ed1d9a86a8da5f7bc23edb5ba1d308b 1 parent 46f6736
@hoch hoch authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 panning/DBAP4.ck
View
6 panning/DBAP4.ck
@@ -18,15 +18,19 @@ class DBAP4 extends Chubgraph
// UGens
Envelope _in;
Envelope _out[4];
+ NRev _r[4];
// initialization
inlet => _in;
20::ms => _in.duration;
1.0 => _in.target;
for (0 => int i; i < 4; ++i) {
- _in => _out[i] => dac.chan(i);
+ _in => _out[i] => r[i] => dac.chan(i);
+ // NOTE: for binaural mixdown, use the line below
+ // _in => _out[i] => r[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
Please sign in to comment.
Something went wrong with that request. Please try again.