CFugue
PolyphonicPressure.h
1 /*
2  This is part of CFugue, a C++ Runtime for MIDI Score Programming
3  Copyright (C) 2009 Gopalakrishna Palem
4 
5  For links to further information, or to contact the author,
6  see <http://musicnote.sourceforge.net/>.
7 */
8 
9 #ifndef __POLYPHONICPRESSURE_H__CA14D2EE_2BC0_4448_AA3D_5AC1F14983E9_
10 #define __POLYPHONICPRESSURE_H__CA14D2EE_2BC0_4448_AA3D_5AC1F14983E9_
11 
12 namespace CFugue
13 {
15  {
16  unsigned char uKey;
17  unsigned char uPressure;
18  public:
19  PolyphonicPressure(unsigned char argKey, unsigned char argPressure)
20  : uKey(argKey), uPressure(argPressure)
21  {
22  }
23 
24  /// Returns the Key value that the pressure should be applied to
25  inline unsigned char GetKey() const { return uKey; }
26 
27  /// Returns the Pressure value that should be applied to the Key
28  inline unsigned char GetPressure() const { return uPressure; }
29  };
30 } // namespace CFugue
31 
32 #endif // __POLYPHONICPRESSURE_H__CA14D2EE_2BC0_4448_AA3D_5AC1F14983E9_
unsigned char GetPressure() const
Returns the Pressure value that should be applied to the Key.
unsigned char GetKey() const
Returns the Key value that the pressure should be applied to.

CFugue, the C++ Music Programming Library © Copyright 2009 Cenacle Research India Private Limited Gopalakrishna Palem