From 5be3472f0f61d2e479f42759fed6fafd2a0e739a Mon Sep 17 00:00:00 2001 From: mick grierson Date: Tue, 22 Sep 2015 09:21:43 +0100 Subject: more work for kadenze mooc --- maximilian_examples/3.AM1.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'maximilian_examples/3.AM1.cpp') diff --git a/maximilian_examples/3.AM1.cpp b/maximilian_examples/3.AM1.cpp index 384a7f5..5d75942 100755 --- a/maximilian_examples/3.AM1.cpp +++ b/maximilian_examples/3.AM1.cpp @@ -17,5 +17,6 @@ void play(double *output) { // When you multiply something by -1, its phase is inverted but it retains its amplitude. // So you hear 2 waves per second, not 1, even though the frequency is 1. output[0]=mySine.sinewave(440)*myOtherSine.sinewave(1); - + output[1]=output[0]; + } -- cgit v1.3