comparison base/PlayParameterRepository.h @ 28:4b16526b011b

* Add LED button * Add note model playback (currently assuming that value == MIDI pitch) * Reorganise PlayParameters and move repository from ViewManager to new PlayParameterRepository class
author Chris Cannam
date Wed, 15 Feb 2006 17:58:35 +0000
parents
children 8460b3bf8f04
comparison
equal deleted inserted replaced
27:070e9e1e40ea 28:4b16526b011b
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005-2006
6
7 This is experimental software. Not for distribution.
8 */
9
10 #ifndef _PLAY_PARAMETER_REPOSITORY_H_
11 #define _PLAY_PARAMETER_REPOSITORY_H_
12
13 class PlayParameters;
14 class Model;
15
16 #include <map>
17
18 class PlayParameterRepository
19 {
20 public:
21 static PlayParameterRepository *instance();
22
23 virtual ~PlayParameterRepository();
24
25 //!!! No way to remove a model!
26 PlayParameters *getPlayParameters(const Model *model);
27
28 void clear();
29
30 protected:
31 std::map<const Model *, PlayParameters *> m_playParameters;
32
33 static PlayParameterRepository *m_instance;
34 };
35
36 #endif