annotate 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
rev   line source
Chris@28 1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
Chris@28 2
Chris@28 3 /*
Chris@28 4 A waveform viewer and audio annotation editor.
Chris@28 5 Chris Cannam, Queen Mary University of London, 2005-2006
Chris@28 6
Chris@28 7 This is experimental software. Not for distribution.
Chris@28 8 */
Chris@28 9
Chris@28 10 #ifndef _PLAY_PARAMETER_REPOSITORY_H_
Chris@28 11 #define _PLAY_PARAMETER_REPOSITORY_H_
Chris@28 12
Chris@28 13 class PlayParameters;
Chris@28 14 class Model;
Chris@28 15
Chris@28 16 #include <map>
Chris@28 17
Chris@28 18 class PlayParameterRepository
Chris@28 19 {
Chris@28 20 public:
Chris@28 21 static PlayParameterRepository *instance();
Chris@28 22
Chris@28 23 virtual ~PlayParameterRepository();
Chris@28 24
Chris@28 25 //!!! No way to remove a model!
Chris@28 26 PlayParameters *getPlayParameters(const Model *model);
Chris@28 27
Chris@28 28 void clear();
Chris@28 29
Chris@28 30 protected:
Chris@28 31 std::map<const Model *, PlayParameters *> m_playParameters;
Chris@28 32
Chris@28 33 static PlayParameterRepository *m_instance;
Chris@28 34 };
Chris@28 35
Chris@28 36 #endif