CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Tools
MIDIIO
File
MIDISongPlayer.hxx
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
3
* UNIVERSITAT POMPEU FABRA
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*
19
* MIDIFileReader C++ classes
20
* This code is part of the CLAM library, but also usable stand-alone.
21
* Maarten de Boer <mdeboer@iua.upf.es>
22
*
23
*/
24
#include <stddef.h>
25
26
namespace
MIDI
27
{
28
29
class
Event;
30
class
Song;
31
32
class
SongPlayer
33
/* class to obtain events from a midi song, ordered in time */
34
{
35
private
:
36
class
SongPlayerImpl* mImpl;
// hide implementation
37
public
:
38
SongPlayer
(
Song
* song =
NULL
);
39
void
Init
(
Song
* song);
40
~SongPlayer
();
41
42
/* get the next event from the song */
43
bool
GetEvent
(
Event
& event,
int
& trackId);
44
45
/* todo: add method :GoBack */
46
47
/* todo: add method :GoTo(ticks) */
48
49
};
50
51
}
52
Generated by
1.8.1