From 204131397633b2d586db3ffd72b9e1631b342e44 Mon Sep 17 00:00:00 2001 From: Sven Arweiler Date: Sun, 9 Feb 2020 18:55:07 +0100 Subject: [PATCH] raise SCALE_LENGTH to 32 for grid 256 support --- lib/config.lua | 2 +- zellen.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/config.lua b/lib/config.lua index 21b8317..fe33230 100644 --- a/lib/config.lua +++ b/lib/config.lua @@ -20,7 +20,7 @@ local config = { NOTES = {}, -- constructed on init NOTE_NAMES = {}, -- constructed on init SCALE_NAMES = {}, -- constructed on init - SCALE_LENGTH = 24 + SCALE_LENGTH = 32 }, SEQ = { MODES = { diff --git a/zellen.lua b/zellen.lua index bd2f524..4b96180 100644 --- a/zellen.lua +++ b/zellen.lua @@ -1,4 +1,4 @@ --- zellen v1.3.2 +-- zellen v1.3.3 -- -- sequencer based on -- conway's game of life @@ -298,7 +298,7 @@ local function play_seq_step() if (state.beats[(state.beat_step % beat_seq_lengths) + 1] or seq_mode == 1) then if (state.play_pos <= #state.playable_cells) then state.seq.position = state.playable_cells[state.play_pos] - local midi_note = state.scale[(state.seq.position.x - 1) + state.seq.position.y] + local midi_note = math.min(state.scale[(state.seq.position.x - 1) + (state.seq.position.y)], 127) local support_mode = params:get("crow_support_mode") -- crow support note