CFugue
Layer.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 __LAYER_H__B93236D6_FA2B_4de1_B1F1_908DBA7B7CE4__
14 #define __LAYER_H__B93236D6_FA2B_4de1_B1F1_908DBA7B7CE4__
15 
16 namespace CFugue
17 {
18  /// <Summary>
19  /// Represents Layer object for MIDI tracks. A Layer allows multiple notes to be
20  /// played at the same time on a single track (also known as voice), without being
21  /// specified as a Chord. This is quite helpful with Track 9, the Percussion Track.
22  /// </Summary>
23  class Layer
24  {
25  unsigned char m_nLayer;
26 
27  public:
28  inline Layer(const unsigned char nLayer) : m_nLayer(nLayer) { }
29 
30  /// Returns the Layer ID the present object represents
31  inline unsigned char GetLayer() const { return m_nLayer; }
32  };
33 
34 } // namespace CFugue
35 
36 #endif // __LAYER_H__B93236D6_FA2B_4de1_B1F1_908DBA7B7CE4__
unsigned char GetLayer() const
Returns the Layer ID the present object represents.
Definition: Layer.h:31

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