Morph-SynRJ
view fxSync.h @ 0:22de913c2d84
morph-synrj intro
| author | "Cedric Pinson <cedric.pinson@alcove.fr> <mornifle@plopbyte.net>" |
|---|---|
| date | Tue Nov 27 15:23:52 2007 +0100 (2007-11-27) |
| parents | |
| children |
line source
3 #ifndef __FX_SYNC__
4 #define __FX_SYNC__
6 #include "smplInfo.h"
7 #include "sndDetect.h"
8 #include "cmn_intro.h"
9 // efx
10 #include "efx_screen1.h"
11 #include "efx_screen2.h"
13 // Spherical Morph Rate
14 #define MORPH_RATE 3.0f
17 class fxSync
18 {
20 private:
21 sndDetect * detection;
23 // Equa ...
24 float ** equaIncDecLevel;
25 int ** equaDef;
26 float ** equaDepth;
27 int equaNbElements;
29 // Spherical
30 int target;
31 int lastTarget;
32 float morphFactor;
34 // Touff
35 int stepDance;
36 int lastStepDance;
37 int windTouf;
38 int lastWindTouf;
40 // Greetz
41 int greetz;
42 int lastGreetz;
44 public:
45 fxSync();
46 ~fxSync();
48 void Init( void );
49 void Kill( void );
51 sndDetect * GetDetection( void ) { return ( detection ); }
53 // Equa Related Funcs ...
54 void InitEquaIncDecLevel( void );
55 void InitEquaDefDepth( void );
56 void SetSmplLevel( enum SamplesDef i, float _level );
57 float GetSmplLevel( enum SamplesDef i );
58 void SetEquaDefDepth ( enum SamplesDef i, float _factor );
59 void SmplInc( enum SamplesDef i );
60 void SmplDec( enum SamplesDef i );
61 void SyncEqua( void );
63 // Spherical Sync ...
64 void SyncSpherical( void );
66 // Touffes Sync ...
67 void SyncSnareTouf( void );
68 void SyncWindTouf( void );
70 // Greetz
71 bool GetGreetzSync( void );
73 };
75 #endif
