2013-12-08 22:44:43 +01:00
|
|
|
/*
|
|
|
|
* Author: Harry van Haaren 2013
|
|
|
|
* harryhaaren@gmail.com
|
2016-12-27 13:47:19 +01:00
|
|
|
*
|
2013-12-08 22:44:43 +01:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2016-12-27 13:47:19 +01:00
|
|
|
*
|
2013-12-08 22:44:43 +01:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2016-12-27 13:47:19 +01:00
|
|
|
*
|
2013-12-08 22:44:43 +01:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2013-05-15 03:55:51 +02:00
|
|
|
|
2019-06-09 10:41:19 +02:00
|
|
|
#ifndef LOOPP_TIME_OBSERVER_H
|
|
|
|
#define LOOPP_TIME_OBSERVER_H
|
2013-05-15 03:55:51 +02:00
|
|
|
|
2013-10-12 14:19:37 +02:00
|
|
|
#include "../config.hxx"
|
|
|
|
|
2013-07-31 11:55:48 +02:00
|
|
|
class TimeObserver
|
2013-05-15 03:55:51 +02:00
|
|
|
{
|
2016-12-27 13:47:19 +01:00
|
|
|
public:
|
|
|
|
/// registers with TimeManager
|
|
|
|
TimeObserver();
|
|
|
|
virtual ~TimeObserver() {};
|
|
|
|
|
2018-06-15 11:25:33 +02:00
|
|
|
virtual void setFpb(double fpb) {};
|
2016-12-27 13:47:19 +01:00
|
|
|
|
|
|
|
//Reset any internal set of this object regarding time. Don't reset/delete any buffers!!
|
|
|
|
//This is not to be confused with Stately::reset()
|
|
|
|
virtual void resetTimeState() {};
|
|
|
|
|
|
|
|
virtual void bar() {};
|
|
|
|
|
|
|
|
virtual void beat() {};
|
|
|
|
|
|
|
|
virtual void tapTempo(bool b) {};
|
|
|
|
|
2013-05-15 03:55:51 +02:00
|
|
|
};
|
|
|
|
|
2019-06-09 10:41:19 +02:00
|
|
|
#endif // LOOPP_TIME_OBSERVER_H
|