comparison audioio/ContinuousSynth.h @ 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 58582119c92a
children d2c13ec0f148
comparison
equal deleted inserted replaced
319:ccd3c927638b 323:5c69d40a0e30
22 */ 22 */
23 23
24 class ContinuousSynth 24 class ContinuousSynth
25 { 25 {
26 public: 26 public:
27 ContinuousSynth(int channels, int sampleRate, int blockSize); 27 ContinuousSynth(int channels, int sampleRate, int blockSize, int waveType);
28 ~ContinuousSynth(); 28 ~ContinuousSynth();
29 29
30 void setChannelCount(int channels); 30 void setChannelCount(int channels);
31 31
32 void reset(); 32 void reset();
54 int m_sampleRate; 54 int m_sampleRate;
55 int m_blockSize; 55 int m_blockSize;
56 56
57 double m_prevF0; 57 double m_prevF0;
58 double m_phase; 58 double m_phase;
59
60 int m_wavetype;
59 }; 61 };
60 62
61 #endif 63 #endif