| 1 |
/***************************************************/ |
| 2 |
/*! \class ModalBar |
| 3 |
\brief STK resonant bar instrument class. |
| 4 |
|
| 5 |
This class implements a number of different |
| 6 |
struck bar instruments. It inherits from the |
| 7 |
Modal class. |
| 8 |
|
| 9 |
Control Change Numbers: |
| 10 |
- Stick Hardness = 2 |
| 11 |
- Stick Position = 4 |
| 12 |
- Vibrato Gain = 1 |
| 13 |
- Vibrato Frequency = 11 |
| 14 |
- Direct Stick Mix = 8 |
| 15 |
- Volume = 128 |
| 16 |
- Modal Presets = 16 |
| 17 |
- Marimba = 0 |
| 18 |
- Vibraphone = 1 |
| 19 |
- Agogo = 2 |
| 20 |
- Wood1 = 3 |
| 21 |
- Reso = 4 |
| 22 |
- Wood2 = 5 |
| 23 |
- Beats = 6 |
| 24 |
- Two Fixed = 7 |
| 25 |
- Clump = 8 |
| 26 |
|
| 27 |
by Perry R. Cook and Gary P. Scavone, 1995 - 2005. |
| 28 |
*/ |
| 29 |
/***************************************************/ |
| 30 |
|
| 31 |
#ifndef STK_MODALBAR_H |
| 32 |
#define STK_MODALBAR_H |
| 33 |
|
| 34 |
#include "Modal.h" |
| 35 |
|
| 36 |
namespace Nyq |
| 37 |
{ |
| 38 |
|
| 39 |
class ModalBar : public Modal |
| 40 |
{ |
| 41 |
public: |
| 42 |
//! Class constructor. |
| 43 |
ModalBar(); |
| 44 |
|
| 45 |
//! Class destructor. |
| 46 |
~ModalBar(); |
| 47 |
|
| 48 |
//! Set stick hardness (0.0 - 1.0). |
| 49 |
void setStickHardness(StkFloat hardness); |
| 50 |
|
| 51 |
//! Set stick position (0.0 - 1.0). |
| 52 |
void setStrikePosition(StkFloat position); |
| 53 |
|
| 54 |
//! Select a bar preset (currently modulo 9). |
| 55 |
void setPreset(int preset); |
| 56 |
|
| 57 |
//! Set the modulation (vibrato) depth. |
| 58 |
void setModulationDepth(StkFloat mDepth); |
| 59 |
|
| 60 |
//! Perform the control change specified by \e number and \e value (0.0 - 128.0). |
| 61 |
void controlChange(int number, StkFloat value); |
| 62 |
}; |
| 63 |
|
| 64 |
} // namespace Nyq |
| 65 |
|
| 66 |
#endif |