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/Node.cpp | |
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/Node.cpp')
-rw-r--r-- | src/engine/Node.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp index c0e0ce6..a7aa453 100644 --- a/src/engine/Node.cpp +++ b/src/engine/Node.cpp @@ -23,7 +23,7 @@ namespace Machina { -Node::Node(FrameCount duration, bool initial) +Node::Node(BeatCount duration, bool initial) : _is_initial(initial) , _is_active(false) , _enter_time(0) @@ -63,7 +63,7 @@ Node::remove_exit_action(SharedPtr<Action> /*action*/) //using namespace std; void -Node::enter(Timestamp time) +Node::enter(BeatTime time) { //cerr << "ENTER " << time << endl; _is_active = true; @@ -74,7 +74,7 @@ Node::enter(Timestamp time) void -Node::exit(Timestamp time) +Node::exit(BeatTime time) { //cerr << "EXIT " << time << endl; if (_exit_action) @@ -111,7 +111,7 @@ Node::write_state(Raul::RDFWriter& writer) writer.write(_id, RdfId(RdfId::RESOURCE, "machina:duration"), - Raul::Atom((int)_duration)); + Raul::Atom((float)_duration)); } |