/******************************************************************** SleepLib Waveform Header This stuff contains the base calculation smarts Copyright (c)2011 Mark Watkins License: GPL *********************************************************************/ #ifndef WAVEFORM_H #define WAVEFORM_H #include #include "machine_common.h" typedef qint16 SampleFormat; class Waveform { friend class Session; public: Waveform(QDateTime time,MachineCode code,SampleFormat * data,int samples,float duration,SampleFormat min, SampleFormat max); ~Waveform(); SampleFormat operator[](int i) { if (i