aboutsummaryrefslogtreecommitdiffstats
path: root/alv-lib
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2023-11-11 15:52:08 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commit0bb34781b9eebd1455a167dbbd4f9d0fe7b758a0 (patch)
treec1ee7aea8f63bed459b680916649ae7ce6c41b14 /alv-lib
parentlib: add osc/send_arr with support for [] tags (diff)
downloadalive-0bb34781b9eebd1455a167dbbd4f9d0fe7b758a0.tar.gz
alive-0bb34781b9eebd1455a167dbbd4f9d0fe7b758a0.zip
small fixes
Diffstat (limited to 'alv-lib')
-rw-r--r--alv-lib/_midi.moon8
1 files changed, 4 insertions, 4 deletions
diff --git a/alv-lib/_midi.moon b/alv-lib/_midi.moon
index 8e8b507..82b1b4f 100644
--- a/alv-lib/_midi.moon
+++ b/alv-lib/_midi.moon
@@ -3,10 +3,10 @@ import RtMidiIn, RtMidiOut, RtMidi from require 'luartmidi'
bit = if _VERSION == 'Lua 5.4'
{
- band: loadstring 'function (a, b) return a & b end'
- bor: loadstring 'function (a, b) return a | b end'
- lshift: loadstring 'function (a, b) return a << b end'
- rshift: loadstring 'function (a, b) return a >> b end'
+ band: (load 'return function (a, b) return a & b end')!
+ bor: (load 'return function (a, b) return a | b end')!
+ lshift: (load 'return function (a, b) return a << b end')!
+ rshift: (load 'return function (a, b) return a >> b end')!
}
else
ok, bit = pcall require, 'bit32'