aboutsummaryrefslogtreecommitdiffstats
path: root/maximilian_examples
diff options
context:
space:
mode:
authormick grierson <mickgrierson@gmail.com>2015-10-01 09:49:21 +0100
committermick grierson <mickgrierson@gmail.com>2015-10-01 09:49:21 +0100
commitdfa3efd8495628d55f55ee8c8c8576095c2089e4 (patch)
tree1373bdfd5a7fd92767d6ad7dae9239c5ba9f428a /maximilian_examples
parent0c154ee2ccda9dce065c666afaaaeadd449bef4c (diff)
fixing tutorial errors
Diffstat (limited to 'maximilian_examples')
-rwxr-xr-xmaximilian_examples/5.FM1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/maximilian_examples/5.FM1.cpp b/maximilian_examples/5.FM1.cpp
index d0ce736..266e11f 100755
--- a/maximilian_examples/5.FM1.cpp
+++ b/maximilian_examples/5.FM1.cpp
@@ -27,9 +27,9 @@ void play(double *output) {
// It also shows how the modulation index works. In this case the modulation index is 100
// Try adjusting the modolation index. Also, try altering the modulation frequency.
output[0]=mySine.sinewave(440+(myOtherSine.sinewave(1)*100));
-
+ output[1]=output[0];
+
}
// In complex FM systems you can have lots of modulators stacked together in interesting ways, and theoretically this can make any sound.
// John Chowning is the guy you probably want to talk to about that.
-output[1]=output[0];