diff options
author | David Robillard <d@drobilla.net> | 2007-02-21 02:30:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-21 02:30:09 +0000 |
commit | 1429e4b2279566384ec09bfe3bfe7d7e0f0f79eb (patch) | |
tree | 9f0fb4eed56bacf52e738cd13029ec2683ee56e2 /src/engine/machina/Engine.hpp | |
parent | a865ddb5043c4dc094b8f64d2cae60e0df16b8ac (diff) | |
download | machina-1429e4b2279566384ec09bfe3bfe7d7e0f0f79eb.tar.gz machina-1429e4b2279566384ec09bfe3bfe7d7e0f0f79eb.tar.bz2 machina-1429e4b2279566384ec09bfe3bfe7d7e0f0f79eb.zip |
Tempo based time in Machina (and related utilities added to Raul).
git-svn-id: http://svn.drobilla.net/lad/machina@324 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina/Engine.hpp')
-rw-r--r-- | src/engine/machina/Engine.hpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/engine/machina/Engine.hpp b/src/engine/machina/Engine.hpp new file mode 100644 index 0000000..fcb75d3 --- /dev/null +++ b/src/engine/machina/Engine.hpp @@ -0,0 +1,51 @@ +/* This file is part of Machina. + * Copyright (C) 2007 Dave Robillard <http://drobilla.net> + * + * Machina 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 2 of the License, or (at your option) any later + * version. + * + * Machina 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 details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef MACHINA_ENGINE_HPP +#define MACHINA_ENGINE_HPP + +#include <raul/SharedPtr.h> + +namespace Machina { + +class Machine; +class JackDriver; + + +class Engine { +public: + Engine(SharedPtr<JackDriver> driver, SharedPtr<Machine> machine) + : _driver(driver) + , _machine(machine) + {} + + SharedPtr<JackDriver> driver() { return _driver; } + SharedPtr<Machine> machine() { return _machine; } + + void set_bpm(double bpm); + + void set_quantization(double beat_fraction); + +private: + SharedPtr<JackDriver> _driver; + SharedPtr<Machine> _machine; +}; + + +} // namespace Machina + +#endif // MACHINA_ENGINE_HPP |