From 05dab37fe1559d0bcbe089ea519ca0118ef25d13 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 5 Sep 2023 03:51:51 +0300 Subject: replaced math.pow(x, y) with x^y --- midi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midi.lua b/midi.lua index ac6283d..4025fe5 100644 --- a/midi.lua +++ b/midi.lua @@ -127,7 +127,7 @@ do local mtof_cache = table.new(128, 0) for note = 0, 127 do -- MIDI NOTE 69 corresponds to 440 Hz - mtof_cache[note] = 440*math.pow(2, (note - 69)/12) + mtof_cache[note] = 440 * 2^((note - 69)/12) end -- Convert from MIDI note to frequency -- cgit v1.2.3