andrew@0
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
andrew@0
|
2
|
andrew@0
|
3 /*
|
andrew@0
|
4 This is a modified version of a source file from the
|
andrew@0
|
5 Rosegarden MIDI and audio sequencer and notation editor.
|
andrew@0
|
6 This file copyright 2000-2010 Richard Bown and Chris Cannam.
|
andrew@0
|
7
|
andrew@0
|
8 Permission is hereby granted, free of charge, to any person
|
andrew@0
|
9 obtaining a copy of this software and associated documentation
|
andrew@0
|
10 files (the "Software"), to deal in the Software without
|
andrew@0
|
11 restriction, including without limitation the rights to use, copy,
|
andrew@0
|
12 modify, merge, publish, distribute, sublicense, and/or sell copies
|
andrew@0
|
13 of the Software, and to permit persons to whom the Software is
|
andrew@0
|
14 furnished to do so, subject to the following conditions:
|
andrew@0
|
15
|
andrew@0
|
16 The above copyright notice and this permission notice shall be
|
andrew@0
|
17 included in all copies or substantial portions of the Software.
|
andrew@0
|
18
|
andrew@0
|
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
andrew@0
|
20 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
andrew@0
|
21 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
andrew@0
|
22 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
|
andrew@0
|
23 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
andrew@0
|
24 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
andrew@0
|
25 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
andrew@0
|
26
|
andrew@0
|
27 Except as contained in this notice, the names of the authors
|
andrew@0
|
28 shall not be used in advertising or otherwise to promote the sale,
|
andrew@0
|
29 use or other dealings in this Software without prior written
|
andrew@0
|
30 authorization.
|
andrew@0
|
31 */
|
andrew@0
|
32
|
andrew@0
|
33 #ifndef _MIDI_COMPOSITION_H_
|
andrew@0
|
34 #define _MIDI_COMPOSITION_H_
|
andrew@0
|
35
|
andrew@0
|
36 #include "MIDIEvent.h"
|
andrew@0
|
37 #include <vector>
|
andrew@0
|
38 #include <map>
|
andrew@0
|
39
|
andrew@0
|
40 typedef std::vector<MIDIEvent> MIDITrack;
|
andrew@0
|
41 typedef std::map<unsigned int, MIDITrack> MIDIComposition;
|
andrew@0
|
42
|
andrew@0
|
43 #endif
|