aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina/LearnRequest.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-21 02:30:09 +0000
committerDavid Robillard <d@drobilla.net>2007-02-21 02:30:09 +0000
commit1429e4b2279566384ec09bfe3bfe7d7e0f0f79eb (patch)
tree9f0fb4eed56bacf52e738cd13029ec2683ee56e2 /src/engine/machina/LearnRequest.hpp
parenta865ddb5043c4dc094b8f64d2cae60e0df16b8ac (diff)
downloadmachina-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/LearnRequest.hpp')
-rw-r--r--src/engine/machina/LearnRequest.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/machina/LearnRequest.hpp b/src/engine/machina/LearnRequest.hpp
index 60f1b27..f485560 100644
--- a/src/engine/machina/LearnRequest.hpp
+++ b/src/engine/machina/LearnRequest.hpp
@@ -44,7 +44,7 @@ public:
}
// Add the learned actions to the node
- void finish(Timestamp time)
+ void finish(BeatTime time)
{
_node->add_enter_action(_enter_action);
_node->add_exit_action(_exit_action);
@@ -52,8 +52,8 @@ public:
std::cerr << "LEARN DURATION: " << _node->duration() << std::endl;
}
- void start(Timestamp time) { _started = true; _start_time = time; }
- bool started() { return _started; }
+ void start(BeatTime time) { _started = true; _start_time = time; }
+ bool started() { return _started; }
const SharedPtr<Node>& node() { return _node; }
const SharedPtr<MidiAction>& enter_action() { return _enter_action; }
@@ -69,7 +69,7 @@ private:
}
bool _started;
- Timestamp _start_time;
+ BeatTime _start_time;
SharedPtr<Node> _node;
SharedPtr<MidiAction> _enter_action;
SharedPtr<MidiAction> _exit_action;