CFugue
Voice.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://cfugue.sourceforge.net/>.
7 
8  $LastChangedDate: 2013-12-18 10:59:57 +0530 (Wed, 18 Dec 2013) $
9  $Rev: 197 $
10  $LastChangedBy: krishnapg $
11 */
12 
13 #ifndef __VOICE_H__4FBD8E09_755B_4f7f_B129_B22444EA8813__
14 #define __VOICE_H__4FBD8E09_755B_4f7f_B129_B22444EA8813__
15 
16 namespace CFugue
17 {
18  /// <Summary>
19  /// Class that represents Voice changes, also known as <i>track</i> changes
20  /// </Summary>
21  class Voice
22  {
23  unsigned char m_nTrack;
24  public:
25  inline Voice(unsigned char nTrackID) : m_nTrack(nTrackID) { }
26  /// Returns the Voice represented by this object
27  inline unsigned char GetVoice() const { return m_nTrack; }
28  };
29 
30 } // namespace CFugue
31 
32 #endif // __VOICE_H__4FBD8E09_755B_4f7f_B129_B22444EA8813__
unsigned char GetVoice() const
Returns the Voice represented by this object.
Definition: Voice.h:27

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