From fd7ea2f72a486888c30726a2482fcc1f7fce9378 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 27 Oct 2022 16:00:22 -0700 Subject: Add fast clear animation The old clear mechanism would write an empty cell in every layer, which would take (0.3 seconds) * (11 layers) == about 3 seconds. The new mechanism drives an animation which overwrites every character slot simultaneously, taking only 0.1 seconds. A nice ~30x speedup. * Fix the transcription exponential backoff logic. Saying new things will reset the delay to the minimum again. * Clearing the board will also reset the transcription delay back to the minimum. * Tune the noise detection minimum to 0.2 instead of 0.1. Speaking softly into the mic seems to fail to exceed the 0.1 threshold pretty often. --- generate_params.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'generate_params.py') diff --git a/generate_params.py b/generate_params.py index 23a2513..d09be63 100644 --- a/generate_params.py +++ b/generate_params.py @@ -69,6 +69,9 @@ params["SAVED"] = "0" params["PARAM_NAME"] = generate_utils.getLockWorldParam() print(generate_utils.replaceMacros(BOOL_PARAM, params)) +params["PARAM_NAME"] = generate_utils.getClearBoardParam() +print(generate_utils.replaceMacros(BOOL_PARAM, params)) + for i in range(0, generate_utils.NUM_LAYERS): params["PARAM_NAME"] = generate_utils.getLayerParam(i) print(generate_utils.replaceMacros(INT_PARAM, params)) -- cgit v1.2.3