xue@0: /* xue@0: Harmonic Visualiser xue@0: xue@0: An audio file viewer and editor. xue@0: Centre for Digital Music, Queen Mary, University of London. xue@0: This file copyright 2011 Wen Xue. xue@0: xue@0: This program is free software; you can redistribute it and/or xue@0: modify it under the terms of the GNU General Public License as xue@0: published by the Free Software Foundation; either version 2 of the xue@0: License, or (at your option) any later version. xue@0: */ xue@0: //--------------------------------------------------------------------------- xue@0: xue@0: #ifndef SUThreadH xue@0: #define SUThreadH xue@0: //--------------------------------------------------------------------------- xue@0: /* xue@0: SUThread.cpp implements the harmonic sinusoid synthesis thread used by the vibrato xue@0: analysis/synthesis and source-filter modelling demos of HV for real-time response. xue@0: */ xue@0: xue@0: #include xue@0: #include "EventBoxUnit.h" xue@0: #include "VibratoDemoUnit.h" xue@0: xue@0: //--------------------------------------------------------------------------- xue@0: class TSUThread : public TThread xue@0: { xue@0: private: xue@0: protected: xue@0: void __fastcall Execute(); xue@0: public: xue@0: __fastcall TSUThread(bool CreateSuspended); xue@0: __fastcall ~TSUThread(); xue@0: THS* HS; xue@0: double *xrec; xue@0: __int16* data; xue@0: int dst; xue@0: int den; xue@0: bool sf; xue@0: }; xue@0: //--------------------------------------------------------------------------- xue@0: #endif