Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


ModalBar.h
1#ifndef STK_MODALBAR_H
2#define STK_MODALBAR_H
3
4#include "Modal.h"
5
6namespace stk {
7
8/***************************************************/
36/***************************************************/
37
38class ModalBar : public Modal
39{
40public:
42 ModalBar( void );
43
45 ~ModalBar( void );
46
48 void setStickHardness( StkFloat hardness );
49
51 void setStrikePosition( StkFloat position );
52
54 void setPreset( int preset );
55
57 void setModulationDepth( StkFloat mDepth );
58
60 void controlChange( int number, StkFloat value );
61};
62
63} // stk namespace
64
65#endif
STK resonant bar instrument class.
Definition ModalBar.h:39
ModalBar(void)
Class constructor.
void setPreset(int preset)
Select a bar preset (currently modulo 9).
void setStrikePosition(StkFloat position)
Set stick position (0.0 - 1.0).
void controlChange(int number, StkFloat value)
Perform the control change specified by number and value (0.0 - 128.0).
~ModalBar(void)
Class destructor.
void setStickHardness(StkFloat hardness)
Set stick hardness (0.0 - 1.0).
void setModulationDepth(StkFloat mDepth)
Set the modulation (vibrato) depth (0.0 - 1.0).
STK resonance model abstract base class.
Definition Modal.h:27
The STK namespace.
Definition ADSR.h:6

The Synthesis ToolKit in C++ (STK)
©1995--2023 Perry R. Cook and Gary P. Scavone. All Rights Reserved.