From 2bd65c38433e5762219ea7a00f1cf0f92ffc0916 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Thu, 8 Apr 2021 09:30:00 -0400 Subject: [PATCH] node mvmt saved with patch, fixes #28 --- src/Neutrinode.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Neutrinode.cpp b/src/Neutrinode.cpp index 3b37ac6..51c5a41 100644 --- a/src/Neutrinode.cpp +++ b/src/Neutrinode.cpp @@ -329,6 +329,7 @@ struct Neutrinode : Module, Quantize { } json_object_set_new(rootJ, "start", json_boolean(toggleStart)); + json_object_set_new(rootJ, "movement", json_boolean(movement)); json_object_set_new(rootJ, "playMode", json_boolean(oneShotMode)); json_object_set_new(rootJ, "collisions", json_boolean(nodeCollisionMode)); json_object_set_new(rootJ, "channels", json_integer(channels)); @@ -345,6 +346,9 @@ struct Neutrinode : Module, Quantize { json_t *startJ = json_object_get(rootJ, "start"); if (startJ) toggleStart = json_boolean_value(startJ); + json_t *movementJ = json_object_get(rootJ, "movement"); + if (movementJ) movement = json_boolean_value(movementJ); + json_t *playModeJ = json_object_get(rootJ, "playMode"); if (playModeJ) oneShotMode = json_boolean_value(playModeJ);