diff audioio/AudioGenerator.cpp @ 323:5c69d40a0e30 tonioni

Added alternate waveforms for sonification. Created parameter m_wavetype in ContinuousSynth.
author Rachel Bittner <rmb456@nyu.edu>
date Sun, 12 Jan 2014 05:12:08 -0500
parents 65b75e23bbd5
children 0e4332efcc7d
line wrap: on
line diff
--- a/audioio/AudioGenerator.cpp	Thu Jan 09 21:31:54 2014 +0000
+++ b/audioio/AudioGenerator.cpp	Sun Jan 12 05:12:08 2014 -0500
@@ -48,6 +48,7 @@
 AudioGenerator::AudioGenerator() :
     m_sourceSampleRate(0),
     m_targetChannelCount(1),
+	m_waveType(0),
     m_soloing(false)
 {
     initialiseSampleDir();
@@ -226,7 +227,8 @@
 
     ContinuousSynth *synth = new ContinuousSynth(m_targetChannelCount,
                                                  m_sourceSampleRate,
-                                                 m_processingBlockSize);
+                                                 m_processingBlockSize,
+                                                 m_waveType);
 
     std::cerr << "AudioGenerator::makeSynthFor(" << model << "): created synth" << std::endl;