diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/MachinaCanvas.cpp | 2 | ||||
-rw-r--r-- | src/gui/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index 222f1a8..26c805b 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -95,7 +95,7 @@ MachinaCanvas::canvas_event(GdkEvent* event) string name = string("Note")+(char)(last++ +'0'); - TimeDuration dur(TimeUnit(TimeUnit::BEATS, 0), 1.0); + TimeDuration dur(machine->time().unit(), 1.0); SharedPtr<Machina::Node> node(new Machina::Node(dur, false)); SharedPtr<NodeView> view(new NodeView(_app->window(), shared_from_this(), node, name, x, y)); diff --git a/src/gui/main.cpp b/src/gui/main.cpp index e819ac2..8d17479 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -68,7 +68,7 @@ main(int argc, char** argv) #endif if (!machine) - machine = SharedPtr<Machine>(new Machine(TimeUnit(TimeUnit::BEATS, 0))); + machine = SharedPtr<Machine>(new Machine(TimeUnit(TimeUnit::BEATS, 19200))); // Build engine SharedPtr<Driver> driver; |