/******************************************************************** 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(qint64 time,MachineCode code,SampleFormat * data,int samples,qint64 duration,SampleFormat min, SampleFormat max); ~Waveform(); SampleFormat operator[](int i) { if (i