aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/MachineBuilder.cpp2
-rw-r--r--src/engine/SMFDriver.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/engine/MachineBuilder.cpp b/src/engine/MachineBuilder.cpp
index ff2ee77..cc7076b 100644
--- a/src/engine/MachineBuilder.cpp
+++ b/src/engine/MachineBuilder.cpp
@@ -35,7 +35,7 @@ MachineBuilder::MachineBuilder(SPtr<Machine> machine, double q, bool step)
: _quantization(q)
, _time(machine->time().unit()) // = 0
, _machine(machine)
- , _initial_node(new Node(_time, true)) // duration 0
+ , _initial_node(machine->initial_node()) // duration 0
, _connect_node(_initial_node)
, _connect_node_end_time(_time) // = 0
, _step(step)
diff --git a/src/engine/SMFDriver.cpp b/src/engine/SMFDriver.cpp
index 538b540..7f42602 100644
--- a/src/engine/SMFDriver.cpp
+++ b/src/engine/SMFDriver.cpp
@@ -126,7 +126,6 @@ SMFDriver::learn_track(SPtr<MachineBuilder> builder,
uint32_t ev_size;
uint32_t ev_delta_time;
-
Raul::TimeUnit unit = Raul::TimeUnit(TimeUnit::BEATS, MACHINA_PPQN);
uint64_t t = 0;