From 704fd9a64fb8a8b1e929700c3e7413f8c3aaa2c2 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 2 Oct 2022 17:24:16 -0700 Subject: Add parameters to resize board (likely broken) ... and a bunch of bugfixes: * Shader is now transparent * Simplify shader row/column calculation * Add punctuation to texture * Fix generate.sh * Add lorum_ipsum.txt * Fix how long text is scrolled * Simplify encoding logic in osc_ctrl.py --- generate_utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'generate_utils.py') diff --git a/generate_utils.py b/generate_utils.py index e50a656..74fd095 100644 --- a/generate_utils.py +++ b/generate_utils.py @@ -19,9 +19,20 @@ NUM_LAYERS=ceil((BOARD_ROWS * BOARD_COLS) / (2**INDEX_BITS)) # 1 bit: enable bit (turns layer off while we index to a new slot) NUM_PARAM_BITS=(NUM_LAYERS * (8 + INDEX_BITS + 1)) +# Implementation detail. We use this parameter to return from the terminal +# state of the FX layer to the starting state. def getDummyParam(): return "TaSTT_Dummy" +def getResizeEnableParam(): + return "TaSTT_Resize_Enable" + +def getResize0Param(): + return "TaSTT_Resize_0" + +def getResize1Param(): + return "TaSTT_Resize_1" + # Each layer controls a group of cells. There's only one letter per layer, thus # this is also the name of the parameter which sets the letter for a layer. def getLayerParam(which_layer): -- cgit v1.2.3